Balise sémantique main
This commit is contained in:
parent
112579c9d2
commit
0a13e35413
@ -55,9 +55,9 @@ class layout extends common
|
||||
* Formate le contenu de la page selon les gabarits
|
||||
* @param Page par defaut
|
||||
*/
|
||||
public function showSection()
|
||||
public function showMain()
|
||||
{
|
||||
echo '<section>';
|
||||
echo '<main><section>';
|
||||
// Récupérer la config de la page courante
|
||||
$blocks = is_null($this->getData(['page', $this->getUrl(0), 'block'])) ? '12' : $this->getData(['page', $this->getUrl(0), 'block']);
|
||||
$blocks = explode('-', $blocks);
|
||||
@ -143,7 +143,7 @@ class layout extends common
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
echo '</section>';
|
||||
echo '</main></section>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -172,7 +172,7 @@
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
<!-- Corps de page -->
|
||||
<?php $layout->showSection(); ?>
|
||||
<?php $layout->showMain(); ?>
|
||||
<!-- footer -->
|
||||
<?php $layout->showFooter(); ?>
|
||||
<!-- Fin du site -->
|
||||
|
Loading…
Reference in New Issue
Block a user