re-handling sibling pages link

This commit is contained in:
Antoine M 2024-07-02 16:19:30 +02:00
parent ca36457cb2
commit 63a63810d9

View File

@ -52,8 +52,10 @@ get_template_part("template-components/heading-box--parcours", null, array(
?>
<div class="parcours-content-wrapper conseils_wrapper">
<!-- CHAPTER INDEX -->
<aside class="chapter_index">
<aside>
<div class="parcours-steps">
<div class="current-steps-index">
<?php if ($chapterBlockIndex) : ?>
<div class="chapter_index__titling">
<div class="icon">
@ -68,8 +70,24 @@ get_template_part("template-components/heading-box--parcours", null, array(
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<?php foreach ($otherSteps->posts as $otherStep) : ?>
<a class="parcours-other-steps-suggestion" href="<?php echo get_the_permalink($otherStep->ID) ?>">
<?php
$stepIcon = get_field('step_icon', $otherStep->ID);
?>
<?php if ($stepIcon) : ?>
<img class="step-icon" src="<?php echo $stepIcon['url'] ?>" alt="">
<?php endif; ?>
<span><?php echo $otherStep->post_title ?></span>
</a>
<?php endforeach; ?>
</div>
</aside>
<article class="container my-8 mx-auto entry-content single-editor-content">
<?php
the_content();