Compare commits
2 Commits
ecfcc43211
...
cf7f7bb750
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf7f7bb750 | ||
|
|
9d34e1b30d |
|
|
@ -1,6 +1,7 @@
|
||||||
.block-dernieres-dynamiques {
|
.block-dernieres-dynamiques {
|
||||||
@apply bg-primary text-white pt-20 px-4 md:px-12;
|
@apply bg-primary text-white pt-20 px-4 md:px-12;
|
||||||
overflow: visible !important;
|
/* overflow: visible !important; */
|
||||||
|
overflow: hidden !important;
|
||||||
|
|
||||||
&__inner {
|
&__inner {
|
||||||
@apply max-w-screen-2xl mx-auto;
|
@apply max-w-screen-2xl mx-auto;
|
||||||
|
|
|
||||||
35
template-parts/dynamiques/article-card.php
Normal file
35
template-parts/dynamiques/article-card.php
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
$articleID = $args['ID'];
|
||||||
|
$isSwiperSlide = $args['isSwiperSlide'];
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="article-card <?php echo $isSwiperSlide ? 'swiper-slide' : ''; ?>">
|
||||||
|
<div class="content-meta">
|
||||||
|
<span class="content-meta__type content-meta__type--article">Article</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="<?php echo get_the_permalink($articleID); ?>" class="article-card__link">
|
||||||
|
|
||||||
|
<h4 class="article-card__title"><?php echo get_the_title($articleID); ?></h4>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<ul class="article-card__tags">
|
||||||
|
<?php
|
||||||
|
$terms = get_the_terms($articleID, 'etiquettes');
|
||||||
|
if ($terms): ?>
|
||||||
|
<?php foreach ($terms as $term): ?>
|
||||||
|
<li class="article-card__tag article-tag"><?php echo esc_html($term->name); ?></li>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<?php get_template_part('template-parts/components/cta--go', null, array(
|
||||||
|
'url' => get_the_permalink($articleID),
|
||||||
|
'label' => 'Lire la revue lol',
|
||||||
|
'target' => '_self',
|
||||||
|
)); ?>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user