34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<?php
|
|
get_header();
|
|
?>
|
|
|
|
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
|
<article class="container my-8 mx-auto entry-content single-editor-content <?php echo $thematiqueColorSlug ? "entry-content--" . $thematiqueColorSlug : "" ?>">
|
|
<h1>parent</h1>
|
|
<!-- CHAPTER INDEX -->
|
|
<aside class="chapter_index">
|
|
<?php if ($chapterBlockIndex) : ?>
|
|
<div class="chapter_index__titling">
|
|
<div class="icon">
|
|
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icon-feather-menu.svg' ?>" alt="">
|
|
</div>
|
|
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
|
</div>
|
|
<ul class="chapter_index__list">
|
|
<div class="chapter_index__position-indicator"></div>
|
|
<?php foreach ($chapterBlockIndex as $chapter) : ?>
|
|
<li class="chapter_index__link"><a href="<?php echo $chapter['anchor'] ?>"><?php echo $chapter['title'] ?></a></li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<?php endif; ?>
|
|
</aside>
|
|
<?php the_content() ?>
|
|
</article>
|
|
<?php endwhile; ?>
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
|
get_footer();
|