34 lines
No EOL
956 B
PHP
34 lines
No EOL
956 B
PHP
<?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";
|
|
$contido .= '<article id="' . $page->name .'">' . "\n";
|
|
$contido .= '<div class="contedor">' . "\n";
|
|
$contido .= '<h2 class="visually-hidden">' . ucfirst($page->title) . '</h2>' . "\n";
|
|
if(count($page->seccions))
|
|
{
|
|
$contido .= getSeccions($page->seccions) . "\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 .= '</div>' . "\n";
|
|
$contido .= '</article>' . "\n";
|
|
} |