praiadeseselle/site/templates/layout/partial/main_head.php

144 lines
9.2 KiB
PHP
Raw Normal View History

2022-10-06 13:14:42 +02:00
<?php namespace ProcessWire;
if($input->get->logout == true)
{
$session->logout();
$session->redirect($inicio->url);
}
?><!DOCTYPE html>
2023-02-21 14:48:37 +01:00
<html class="h-100" lang="<?php echo _x('en', 'HTML language code'); ?>">
2022-03-09 18:09:44 +01:00
<head>
<title><?php echo $titulo; ?></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2022-10-06 10:54:15 +02:00
<?php if($configuracion['sitio_descripcion']): ?>
<meta name="description" content="<?php echo $configuracion['sitio_nome'] . ' ' . $configuracion['sitio_descripcion']; ?>">
2022-03-10 01:47:18 +01:00
<?php endif; ?>
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="msapplication-config" content="<?php echo $config->urls->templates; ?>images/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
2022-04-05 16:52:02 +02:00
<!-- Facebook Social Tags
<meta property="og:title" content="<?php echo $titulo; ?>">
2022-10-06 10:54:15 +02:00
<meta property="og:description" content="<?php echo $configuracion['sitio_nome'] . ' ' . $configuracion['sitio_descripcion']; ?>">
2022-04-05 16:52:02 +02:00
<meta property="og:image" content="https://your-website.com/og-image.png">
<meta property="og:url" content="<?php echo $page->httpUrl(); ?>">
-->
<!-- Twitter Socual Tags
<meta name="twitter:title" content="<?php echo $titulo; ?>">
2022-10-06 10:54:15 +02:00
<meta name="twitter:description" content="<?php echo $configuracion['sitio_nome'] . ' ' . $configuracion['sitio_descripcion']; ?>">
2022-04-05 16:52:02 +02:00
<meta name="twitter:url" content="https://your-website.com/twitter-image.png">
<meta name="twitter:card" content="summary">
-->
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $config->urls->templates; ?>images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo $config->urls->templates; ?>images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo $config->urls->templates; ?>images/favicon-16x16.png">
<link rel="manifest" href="<?php echo $config->urls->templates; ?>images/site.webmanifest">
<link rel="mask-icon" href="<?php echo $config->urls->templates; ?>images/safari-pinned-tab.svg" color="#00a099">
<link rel="shortcut icon" href="<?php echo $config->urls->templates; ?>images/favicon.ico">
<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 rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>vendors/Bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>vendors/Swiperjs/css/swiper-bundle.min.css">
<link title="Praia de Seselle" rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>css/style.css">
2022-03-10 01:47:18 +01:00
<?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->httpUrl($idioma); ?>">
2022-03-10 01:47:18 +01:00
<?php endforeach; ?>
2022-04-05 16:52:02 +02:00
<style>
:root
{
font-size: 16px;
2022-10-06 10:54:15 +02:00
--cor_60: <?php echo $configuracion['cor_fondo'] ?>;
--cor_30: <?php echo $configuracion['cor_principal'] ?>;
--cor_10: <?php echo $configuracion['cor_secundario'] ?>;
2022-05-03 12:18:01 +02:00
--imaxe_destacada: <?php echo $page->imaxe ? 'url("'. $page->imaxe->url . '")' : 'none'; ?>;
2022-04-05 16:52:02 +02:00
}
</style>
<script src="<?php echo $config->urls->templates?>vendors/Bootstrap/js/bootstrap.bundle.js"></script>
<script src="<?php echo $config->urls->templates?>vendors/Swiperjs/js/swiper-bundle.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-K9CF4D4SZX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-K9CF4D4SZX');
</script>
2022-03-09 18:09:44 +01:00
</head>
2023-02-21 14:48:37 +01:00
<body class="d-flex flex-column h-100">
2022-03-10 01:47:18 +01:00
<a href="#contido" class="visually-hidden element-focusable bypass-to-main"><?php echo _x('Skip to content', 'bypass'); ?></a>
2023-02-22 18:57:39 +01:00
<header id="cabeceira">
<nav id="menu-usuario" class="py-2 bg-light border-bottom" aria-label="User">
<div class="container d-flex flex-row flex-lg-row-reverse flex-wrap justify-content-between">
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#menu-desplegable" aria-controls="menu-desplegable" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
2023-02-27 17:10:20 +01:00
<ul class="nav">
2022-10-06 13:14:42 +02:00
<?php if($user->isLoggedin()): ?>
2023-02-22 18:57:39 +01:00
<li class="nav-item"><a class="btn btn-outline-dark rounded-0 px-2" title="<?php echo _x('Log out', 'Log out'); ?>" href="/?logout=true"><i class='icon-user'></i></a></li>
<li class="nav-item"><a class="btn btn-outline-dark rounded-0 px-2" title="<?php echo _x('Management', 'Management'); ?>" href='/es/gestion'><i class='icon-settings'></i></a></li>
2022-10-23 19:21:53 +02:00
<?php else: ?>
2023-02-22 18:57:39 +01:00
<li class="nav-item"><a class="btn btn-outline-dark rounded-0 px-2" title="<?php echo _x('Log in', 'Log in'); ?>" href='/es/gestion/acceder'><i class='icon-user'></i></a></li>
2022-10-06 13:14:42 +02:00
<?php endif; ?>
2023-02-22 18:57:39 +01:00
</ul>
</div>
</nav>
2023-02-27 17:10:20 +01:00
<div class="container d-flex flex-column flex-md-row flex-wrap align-items-center justify-content-center justify-content-md-start">
2023-02-22 18:57:39 +01:00
<a href="/" class="mb-3 mb-md-0 me-md-auto text-dark text-decoration-none">
<picture class="me-2">
<source srcset="<?php echo $config->urls->templates?>images/logo-praia-seselle-150x116.jpg" media="(max-width: 767px)">
<source srcset="<?php echo $config->urls->templates?>images/logo-praia-seselle-230x179.jpg" media="(min-width: 768px)">
<img src="<?php echo $config->urls->templates?>images/logo-praia-seselle.svg" alt="<?php echo _x('Logo of Praia de Seselle Tourist Apartments', 'Site logo'); ?>">
</picture>
<h1 class="visually-hidden"><?php echo $configuracion['sitio_nome']; ?> <?php echo $configuracion['sitio_descripcion']; ?></h1>
</a>
2023-03-10 16:52:43 +01:00
<div class="d-flex flex-row justify-content-between">
<form class="col-7 py-2 mb-3 mb-md-0" action="<?php echo pages()->get('template=atopar')->url; ?>" method="get" role="search">
2023-02-27 17:10:20 +01:00
<div class="input-group">
<div class="form-floating">
<input type="search" id="atopar-consulta" name="q" class="form-control rounded-0 shadow-none py-1" placeholder="<?php echo _x("Atopar", "Search"); ?>&hellip;" />
<label class="py-1" for="atopar-consulta"><?php echo _x("Atopar", "Search"); ?>&hellip;</label>
</div>
<button type="submit" class="btn btn-primary rounded-0">
<i class="icon-search"></i>
</button>
</div>
2023-02-27 17:10:20 +01:00
</form>
2023-03-10 16:52:43 +01:00
<nav id="menus-idiomas" class="d-flex flex-row-reverse col-5 m-0 py-2" aria-label="Languages">
2023-02-22 18:57:39 +01:00
<ul class="nav">
<?php foreach($languages as $idioma) : ?>
<?php if(!$page->viewable($idioma)) continue; ?>
2023-02-22 18:57:39 +01:00
<li class="nav-item">
<?php
$url = $page->localUrl($idioma);
$hreflang = $inicio->getLanguageValue($idioma, 'name');
?>
2023-02-22 18:57:39 +01:00
<a class="px-2 btn btn-outline-dark rounded-0<?php echo $idioma->id == $user->language->id ? ' active' : ''; ?>" title="<?php echo $idioma->title; ?>" hreflang="<?php echo $hreflang;?>" href="<?php echo $url; ?>"><?php echo $hreflang; ?></a>
</li>
<?php endforeach; ?>
2023-02-22 18:57:39 +01:00
</ul>
2023-02-27 17:10:20 +01:00
</nav>
</div>
</div>
<div class="border-bottom mb-3">
<div class="container d-flex flex-wrap justify-content-center">
2023-02-22 18:57:39 +01:00
<nav id="menus-principal" class="navbar navbar-expand-lg p-0" aria-label="Main navigation">
<div class="container-fluid">
<div id="menu-desplegable" class="offcanvas offcanvas-start justify-content-center justify-content-lg-start w-50 border-0 border-end border-3 border-primary" style="">
<div class="offcanvas-header">
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body p-0">
2022-03-10 01:47:18 +01:00
<?php echo $menu; ?>
2023-02-22 18:57:39 +01:00
</div>
</div>
</div>
</nav>
</div>
2022-03-10 01:47:18 +01:00
</div>
</header>