praiadeseselle/site/templates/habitacions.php

38 lines
1.3 KiB
PHP
Raw Normal View History

2022-05-03 12:18:01 +02:00
<?php namespace ProcessWire;
$menu = '';
$contido = '';
$mantemento = $inicio->mantemento;
if($mantemento && !$user->isLoggedin())
{
$session->redirect($inicio->url);
}
else
{
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
$contido .= ' ' . renderMigasPan($page) . "\n";
2022-10-25 14:47:38 +02:00
$contido .= ' <article id="' . $page->name .'">' . "\n";
2022-05-03 12:18:01 +02:00
$contido .= ' <header>' . "\n";
$contido .= ' <div class="columna">' . "\n";
$contido .= ' <h2>' . ucfirst($page->title) . '</h2>' . "\n";
$contido .= ' </div>' . "\n";
$contido .= ' </header>' . "\n";
$contido .= ' <div class="contedor">' . "\n";
if(count($page->seccions))
{
$contido .= ' ' . getSeccions($page->seccions) . "\n";
}
$contido .= ' </div>' . "\n";
$contido .= ' <section class="contedor">' . "\n";
$contido .= ' <h3 class="visually-hidden">' . $page->title . '</h3>' . "\n";
if(count($page->imaxe_ligazon))
{
$contido .= ' ' . getSeccions($page->imaxe_ligazon) . "\n";
}
$contido .= ' </section>' . "\n";
$contido .= ' </article>' . "\n";
}