working on parcours
This commit is contained in:
parent
e86d6b4c19
commit
ecc16ae6df
|
|
@ -24,12 +24,9 @@ $chapterBlockIndex = build_page_chapter_index($blocks); // see utilities.php
|
|||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "homegrade-theme__texte-fonctionnel") ?>">
|
||||
<?php
|
||||
$archiveParcours = get_page_by_template('template-parcours-renovateur.php')[0];
|
||||
|
||||
?>
|
||||
<ol>
|
||||
<li>
|
||||
|
|
@ -72,59 +69,12 @@ get_template_part("template-components/heading-box--parcours", null, array(
|
|||
</ul>
|
||||
<?php endif; ?>
|
||||
</aside>
|
||||
<!-- <aside>
|
||||
<div class="parcours-steps">
|
||||
<div class="current-steps-index">
|
||||
<?php if ($chapters->posts) : ?>
|
||||
<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 parcours", "homegrade-theme__texte-fonctionnel") ?> </h2>
|
||||
</div>
|
||||
<ul class="chapter_index__list">
|
||||
<div class="chapter_index__position-indicator"></div>
|
||||
<?php foreach ($chapters->posts as $chapter) : ?>
|
||||
<?php
|
||||
$shortTitle = get_field('short_title', $chapter->ID);
|
||||
?>
|
||||
<li class="chapter_index__link"><a href="#<?php echo $chapter->post_name ?>"><?php echo $chapter->post_title ?></a></li>
|
||||
<?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();
|
||||
?>
|
||||
<!-- <?php foreach ($chapters->posts as $chapter) : ?>
|
||||
<?php if ($chapter->post_content) : ?>
|
||||
<div id="<?php echo $chapter->post_name ?>" class="parcours-chapter-container">
|
||||
<h2><?php echo $chapter->post_title ?></h2>
|
||||
|
||||
<img src="" alt="">
|
||||
<?php echo $chapter->post_content ?>
|
||||
<a href="<?php echo get_post_permalink($chapter->ID) ?>">Voir la single <?php echo $chapter->post_title ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?> -->
|
||||
|
||||
</article>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user