Compare commits

..

No commits in common. "b62122eb59df4025d3752e8fa5f4d5241932939f" and "c92bc6acdbfda58e8e89865e2b7df7ef8a19fbb2" have entirely different histories.

View File

@ -1,88 +1,63 @@
<?php get_header(); ?> <?php get_header(); ?>
<div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>"> <div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?> <?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/post-header'); ?> <?php get_template_part('template-parts/post-header'); ?>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- <div class="top-toolbar"> <div class="sidebar">
<div role="tablist" aria-labelledby="tablist-1" class="tablist"> <div class="search-field">
<button id="tab-1" type="button" role="tab" aria-selected="true" aria-controls="tabpanel-1"> <input type="text" placeholder="Rechercher">
<span class="focus">Article</span> </div>
</button> <?php
<button id="tab-2" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-2" tabindex="-1"> $tags = get_terms(array(
<span class="focus">Auteur·e·s</span> 'taxonomy' => 'etiquettes',
</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> <?php if ($tags) : ?>
</button> <div class="tags">
<button id="tab-4" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-4" tabindex="-1"> <h3 class="tags__title">Tags</h3>
<span class="focus">Table des matières </span> <ul class="tags-list">
</button> <?php foreach ($tags as $tag) : ?>
<button id="tab-5" type="button" role="tab" aria-selected="false" aria-controls="tabpanel-5" tabindex="-1"> <li>
<span class="focus">Informations</span> <a class="article-tag" href="<?php echo get_term_link($tag); ?>"><?php echo $tag->name; ?></a>
</button> </li>
</div> <?php endforeach; ?>
</div> --> <?php endif; ?>
<aside class="sidebar"> </ul>
<div class="search-field"> </div>
<input type="text" placeholder="Rechercher">
</div> </div>
<div class="index-panel"> <div class="content-area">
<div class="index-panel__header">
<button class="focus" data-index="sommaire" aria-selected="true" aria-controls="sommaire-index"> <?php get_template_part('template-parts/articles/article-content', null, array(
Résumé 'ID' => get_the_ID()
</button> )); ?>
<button class="focus" data-index="footnotes" aria-selected="false" aria-controls="footnotes-index">
Notes de bas de page
</button>
</div>
<div class="index-panel__content"> </div>
<ul data-index="sommaire" class="sommaire-index" aria-hidden="false">
<?php </div>
$sommaire = build_sommaire_from_content(get_the_ID());
<!-- #### EXPLORE TAGS #### -->
foreach ($sommaire as $chapter) { <?php get_template_part('template-parts/components/explore-tags'); ?>
echo '<li><a href="#' . $chapter['anchor'] . '">' . $chapter['title'] . '</a></li>';
} <!-- #### INFOLETTRE #### -->
?> <?php get_template_part('template-parts/components/subscribe-infolettre'); ?>
</ul>
<ul data-index="footnotes" class="footnotes-index" aria-hidden="true"> </div>
<?php
$footnotes = build_footnotes_index_from_content(get_the_content()); </div>
?>
</article>
<?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; ?> <?php endwhile; ?>
</div> <?php endif; ?>
</div>
</div> <?php
</aside> get_footer();
<div class="content-area">
<?php get_template_part('template-parts/articles/article-content', null, array(
'ID' => get_the_ID()
)); ?>
</div>
</div>
<!-- #### EXPLORE TAGS #### -->
<?php get_template_part('template-parts/components/explore-tags'); ?>
<!-- #### INFOLETTRE #### -->
<?php get_template_part('template-parts/components/subscribe-infolettre'); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</article>
</div>
<?php
get_footer();