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