55 lines
No EOL
2.6 KiB
PHP
55 lines
No EOL
2.6 KiB
PHP
<?php namespace ProcessWire;?><!DOCTYPE html>
|
|
<html lang="<?php echo _x('en', 'HTML language code'); ?>">
|
|
<head>
|
|
<title><?php echo $titulo; ?></title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<?php if($inicio->descripcion_sitio): ?>
|
|
<meta name="description" content="<?php echo $configuracion['nome_sitio'] . ' ' . $configuracion['descripcion_sitio']; ?>" />
|
|
<?php endif; ?>
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>css/reset.css" />
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>css/fonts.css" />
|
|
<link title="Praia de Seselle" rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>css/style.css" />
|
|
<?php foreach($languages as $idioma): ?>
|
|
<?php if(!$page->viewable($idioma)): continue; endif; ?>
|
|
<link rel="alternate" hreflang="<?php echo $inicio->getLanguageValue($idioma, 'name'); ?>" href="<?php echo $page->localHttpUrl($idioma); ?>" />
|
|
<?php endforeach; ?>
|
|
</head>
|
|
<body>
|
|
<a href="#contido" class="visually-hidden element-focusable bypass-to-main"><?php echo _x('Skip to content', 'bypass'); ?></a>
|
|
<header id="cabeceira">
|
|
<div class="contedor">
|
|
<div id="logo">
|
|
<h1><?php echo $configuracion['nome_sitio']; ?></h1>
|
|
<p><?php echo $configuracion['descripcion_sitio']; ?></p>
|
|
</div>
|
|
<input type="checkbox" name="interruptor" id="interruptor">
|
|
<div class="interruptor">
|
|
<span class="linna linna1"></span>
|
|
<span class="linna linna2"></span>
|
|
<span class="linna linna3"></span>
|
|
</div>
|
|
<nav id="menu">
|
|
<h2 class="visually-hidden"><?php echo _x('Menu', 'Navigation menu');?></h2>
|
|
<ul id="idiomas" class="contenedor columna separado fin">
|
|
<?php
|
|
foreach($languages as $idioma)
|
|
{
|
|
if(!$page->viewable($idioma))
|
|
{
|
|
continue;
|
|
}
|
|
?>
|
|
<li <?php echo $idioma->id == $user->language->id ? 'class="activo"' : ''; ?>>
|
|
<?php
|
|
$url = $page->localUrl($idioma);
|
|
$hreflang = $inicio->getLanguageValue($idioma, 'name');
|
|
?>
|
|
<a title="<?php echo $idioma->title; ?>" hreflang="<?php echo $hreflang;?>" href="<?php echo $url; ?>"><?php echo $hreflang; ?></a>
|
|
</li>
|
|
<?php } ?>
|
|
</ul>
|
|
<?php echo $menu; ?>
|
|
</nav>
|
|
</div>
|
|
</header>
|