artabro/site/templates/layout/main.php

45 lines
1.7 KiB
PHP
Raw Normal View History

2024-08-27 11:51:03 +02:00
<?php namespace ProcessWire;
/** @var Page $page */
/** @var Pages $pages */
/** @var Config $config */
2024-08-27 16:26:09 +02:00
/** @var SiteConfig $configuracion */
/** @var HomePage $inicio */
2024-08-27 11:51:03 +02:00
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-08-27 16:26:09 +02:00
<title><?php echo $configuracion['sitio_nome'] . ($configuracion['sitio_descripcion'] ? ' - ' . $configuracion['sitio_descripcion'] : ''); ?></title>
<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" />
2024-08-27 11:51:03 +02:00
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates; ?>css/main.css" />
</head>
<body class="grella">
<header id="cabeceira" class="destacado">
2024-08-27 16:26:09 +02:00
<div id="logo">
<picture>
<source srcset="<?=$configuracion['sitio_logo']['miniatura'];?>" media="(max-width: 768px)" />
<img src="<?=$configuracion['sitio_logo']['url'];?>" alt="<?=$configuracion['sitio_logo']['descripcion'];?>" />
</picture>
</div>
<?php if($page->hasChildren()): ?>
<nav id="menu">
<?=renderMenu("menu-paxinas", $inicio->children);?>
</nav>
2024-08-27 16:26:09 +02:00
<?php endif; ?>
</header>
<main id="contido" class="completo">
</main>
<footer class="completo">
2024-08-27 11:51:03 +02:00
<?php if($page->editable()): ?>
<p>
<a href='<?php echo $page->editUrl(); ?>'>Edit this page</a>
</p>
2024-08-27 11:51:03 +02:00
<?php endif; ?>
</footer>
2024-08-27 11:51:03 +02:00
<script src="<?php echo $config->urls->templates; ?>js/main.js"></script>
</body>
</html>