Compare commits
2 Commits
c92bc6acdb
...
b62122eb59
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b62122eb59 | ||
|
|
7cb06d46d8 |
|
|
@ -5,40 +5,67 @@
|
|||
<?php get_template_part('template-parts/post-header'); ?>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<div class="sidebar">
|
||||
<!-- <div class="top-toolbar">
|
||||
<div role="tablist" aria-labelledby="tablist-1" class="tablist">
|
||||
<button id="tab-1" type="button" role="tab" aria-selected="true" aria-controls="tabpanel-1">
|
||||
<span class="focus">Article</span>
|
||||
</button>
|
||||
<button id="tab-2" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-2" tabindex="-1">
|
||||
<span class="focus">Auteur·e·s</span>
|
||||
</button>
|
||||
<button id="tab-3" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-3" tabindex="-1">
|
||||
<span class="focus">Références</span>
|
||||
</button>
|
||||
<button id="tab-4" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-4" tabindex="-1">
|
||||
<span class="focus">Table des matières </span>
|
||||
</button>
|
||||
<button id="tab-5" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-5" tabindex="-1">
|
||||
<span class="focus">Informations</span>
|
||||
</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<aside class="sidebar">
|
||||
<div class="search-field">
|
||||
<input type="text" placeholder="Rechercher">
|
||||
</div>
|
||||
<?php
|
||||
$tags = get_terms(array(
|
||||
'taxonomy' => 'etiquettes',
|
||||
));
|
||||
?>
|
||||
<?php if ($tags) : ?>
|
||||
<div class="tags">
|
||||
<h3 class="tags__title">Tags</h3>
|
||||
<ul class="tags-list">
|
||||
<?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 class="index-panel">
|
||||
<div class="index-panel__header">
|
||||
<button class="focus" data-index="sommaire" aria-selected="true" aria-controls="sommaire-index">
|
||||
Résumé
|
||||
</button>
|
||||
<button class="focus" data-index="footnotes" aria-selected="false" aria-controls="footnotes-index">
|
||||
Notes de bas de page
|
||||
</button>
|
||||
</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">
|
||||
|
||||
<?php get_template_part('template-parts/articles/article-content', null, array(
|
||||
'ID' => get_the_ID()
|
||||
)); ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -49,15 +76,13 @@
|
|||
<!-- #### INFOLETTRE #### -->
|
||||
<?php get_template_part('template-parts/components/subscribe-infolettre'); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user