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">
|
<div class="parcours-content-wrapper conseils_wrapper">
|
||||||
<!-- CHAPTER INDEX -->
|
|
||||||
<aside class="chapter_index">
|
<aside>
|
||||||
<?php if ($chapterBlockIndex) : ?>
|
<div class="parcours-steps">
|
||||||
<div class="chapter_index__titling">
|
<div class="current-steps-index">
|
||||||
<div class="icon">
|
<?php if ($chapterBlockIndex) : ?>
|
||||||
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/icon-feather-menu.svg' ?>" alt="">
|
<div class="chapter_index__titling">
|
||||||
</div>
|
<div class="icon">
|
||||||
<h2 class="chapter_index__title"> <?php echo __("Dans ce conseil", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
<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>
|
</div>
|
||||||
<ul class="chapter_index__list">
|
|
||||||
<div class="chapter_index__position-indicator"></div>
|
<?php foreach ($otherSteps->posts as $otherStep) : ?>
|
||||||
<?php foreach ($chapterBlockIndex as $chapter) : ?>
|
<a class="parcours-other-steps-suggestion" href="<?php echo get_the_permalink($otherStep->ID) ?>">
|
||||||
<li class="chapter_index__link"><a href="<?php echo $chapter['anchor'] ?>"><?php echo $chapter['title'] ?></a></li>
|
<?php
|
||||||
<?php endforeach; ?>
|
|
||||||
</ul>
|
$stepIcon = get_field('step_icon', $otherStep->ID);
|
||||||
<?php endif; ?>
|
?>
|
||||||
|
<?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>
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
<article class="container my-8 mx-auto entry-content single-editor-content">
|
<article class="container my-8 mx-auto entry-content single-editor-content">
|
||||||
<?php
|
<?php
|
||||||
the_content();
|
the_content();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user