handling single page template

This commit is contained in:
Antoine M 2023-10-27 14:24:16 +02:00
parent adce6ca331
commit a5bebd99dd

View File

@ -3,6 +3,7 @@ get_header();
?>
<?php if (have_posts()) : ?>
<?php
while (have_posts()) :
@ -11,6 +12,7 @@ get_header();
$thematiqueParent = getParentThematique($thematique);
$thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug);
?>
<article class="container my-8 mx-auto entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
<?php the_content() ?>
</article>