FEATURE Introducing sidebar markup and components
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7cb06d46d8
commit
b62122eb59
|
|
@ -28,36 +28,44 @@
|
||||||
<div class="search-field">
|
<div class="search-field">
|
||||||
<input type="text" placeholder="Rechercher">
|
<input type="text" placeholder="Rechercher">
|
||||||
</div>
|
</div>
|
||||||
<?php
|
|
||||||
$tags = get_terms(array(
|
<div class="index-panel">
|
||||||
'taxonomy' => 'etiquettes',
|
<div class="index-panel__header">
|
||||||
));
|
<button class="focus" data-index="sommaire" aria-selected="true" aria-controls="sommaire-index">
|
||||||
?>
|
Résumé
|
||||||
<?php if ($tags) : ?>
|
</button>
|
||||||
<div class="tags">
|
<button class="focus" data-index="footnotes" aria-selected="false" aria-controls="footnotes-index">
|
||||||
<h3 class="tags__title">Tags</h3>
|
Notes de bas de page
|
||||||
<ul class="tags-list">
|
</button>
|
||||||
<?php foreach ($tags as $tag) : ?>
|
|
||||||
<li>
|
|
||||||
<a class="article-tag" href="<?php echo get_term_link($tag); ?>"><?php echo $tag->name; ?></a>
|
|
||||||
</li>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
<div class="index-panel__content">
|
||||||
|
<ul data-index="sommaire" class="sommaire-index" aria-hidden="false">
|
||||||
|
<?php
|
||||||
|
$sommaire = build_sommaire_from_content(get_the_ID());
|
||||||
|
|
||||||
|
foreach ($sommaire as $chapter) {
|
||||||
|
echo '<li><a href="#' . $chapter['anchor'] . '">' . $chapter['title'] . '</a></li>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</ul>
|
||||||
|
<ul data-index="footnotes" class="footnotes-index" aria-hidden="true">
|
||||||
|
<?php
|
||||||
|
$footnotes = build_footnotes_index_from_content(get_the_content());
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php foreach ($footnotes as $footnote) : ?>
|
||||||
|
<li><a href="#footnote-<?php echo $footnote['anchorID']; ?>" class="footnote-reference-item"><?php echo $footnote['content']; ?></a></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
|
||||||
<div class="content-area">
|
<div class="content-area">
|
||||||
|
|
||||||
<?php get_template_part('template-parts/articles/article-content', null, array(
|
<?php get_template_part('template-parts/articles/article-content', null, array(
|
||||||
'ID' => get_the_ID()
|
'ID' => get_the_ID()
|
||||||
)); ?>
|
)); ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -68,15 +76,13 @@
|
||||||
<!-- #### INFOLETTRE #### -->
|
<!-- #### INFOLETTRE #### -->
|
||||||
<?php get_template_part('template-parts/components/subscribe-infolettre'); ?>
|
<?php get_template_part('template-parts/components/subscribe-infolettre'); ?>
|
||||||
|
|
||||||
</div>
|
<?php endwhile; ?>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
<?php endwhile; ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user