23 lines
No EOL
533 B
PHP
23 lines
No EOL
533 B
PHP
<?php namespace ProcessWire;
|
|
|
|
$menu = '';
|
|
$contido = '';
|
|
|
|
$mantemento = $inicio->mantemento;
|
|
$contido .= '<article id="' . $page->name . '">';
|
|
$contido .= '<h2 class="visually-hidden">' . $page->title . '</h2>';
|
|
|
|
if($mantemento && !$user->isLoggedin())
|
|
{
|
|
$session->redirect($inicio->url);
|
|
}
|
|
else
|
|
{
|
|
$menu = renderMenu($inicio->and($inicio->children), 0, 'paxinas');
|
|
$contido .= renderMigasPan($page);
|
|
if(count($page->seccions))
|
|
{
|
|
$contido .= getSeccions($page->seccions);
|
|
}
|
|
}
|
|
$contido .= '</article>'; |