FEAT Introducing page

This commit is contained in:
Nonimart 2025-06-12 08:53:07 +02:00
parent 82637f46ac
commit 141a2aa985

64
single-articles.php Normal file
View File

@ -0,0 +1,64 @@
<?php get_header(); ?>
<div class="page--single-articles" data-revue-id="<?php echo get_the_ID(); ?>">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('template-parts/revues/revue-header'); ?>
<div class="content-wrapper">
<div 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>
</div>
<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'); ?>
</div>
</div>
</article>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php
get_footer();