Balise sémantique main

This commit is contained in:
Fred Tempez 2023-08-05 16:20:19 +02:00
parent 112579c9d2
commit 0a13e35413
2 changed files with 4 additions and 4 deletions

View File

@ -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>';
}
/**

View File

@ -172,7 +172,7 @@
</nav>
<?php endif; ?>
<!-- Corps de page -->
<?php $layout->showSection(); ?>
<?php $layout->showMain(); ?>
<!-- footer -->
<?php $layout->showFooter(); ?>
<!-- Fin du site -->