praiadeseselle/site/templates/pagina.php

27 lines
731 B
PHP
Raw Normal View History

<?php namespace ProcessWire;
$menu = '';
$contido = '';
$mantemento = $inicio->mantemento;
if($mantemento && !$user->isLoggedin())
{
$session->redirect($inicio->url);
}
else
{
2022-04-08 12:32:49 +02:00
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
2022-04-08 12:32:49 +02:00
$contido .= ' ' . renderMigasPan($page) . "\n";
$contido .= ' <article id="inicio">' . "\n";
$contido .= ' <div class="contedor">' . "\n";
$contido .= ' <h2>' . ucfirst($page->title) . '</h2>' . "\n";
if(count($page->seccions))
{
2022-04-08 12:32:49 +02:00
$contido .= ' ' . getSeccions($page->seccions) . "\n";
}
2022-04-08 12:32:49 +02:00
$contido .= ' </div>' . "\n";
$contido .= '</article>';
}