re-handling sibling pages link
This commit is contained in:
parent
ca36457cb2
commit
63a63810d9
|
|
@ -52,24 +52,42 @@ get_template_part("template-components/heading-box--parcours", null, array(
|
|||
?>
|
||||
|
||||
<div class="parcours-content-wrapper conseils_wrapper">
|
||||
<!-- 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>
|
||||
|
||||
<aside>
|
||||
<div class="parcours-steps">
|
||||
<div class="current-steps-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; ?>
|
||||
</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; ?>
|
||||
|
||||
<?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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user