Compare commits

...

2 Commits

Author SHA1 Message Date
Antoine M
bef7895cba FIX Has thumbnail property injection
All checks were successful
continuous-integration/drone/push Build is passing
2026-05-27 18:48:59 +02:00
Antoine M
90d62856de STYLE FIX padding top too big on thumbnail 2026-05-27 18:32:16 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,8 @@
transition: all 0.3s ease-out; transition: all 0.3s ease-out;
@media (max-width: 599px) { @media (max-width: 599px) {
padding-top: 100px; /* padding-top: 100px; */
/* background-color: yellow !important; */
order: 3; order: 3;
} }

View File

@ -30,7 +30,7 @@ $media_types_list = array(
?> ?>
<a class="post-card post-card--archives-presse <?php $has_post_thumbnail ? 'post-card--has-thumbnail' : ''; ?> card" href="<?php echo $link; ?> " target="_blank"> <a class="post-card post-card--archives-presse <?php echo $has_post_thumbnail ? 'post-card--has-thumbnail' : ''; ?> card" href="<?php echo $link; ?> " target="_blank">
<?php if ($has_post_thumbnail) : ?> <?php if ($has_post_thumbnail) : ?>
<div class="post-card__thumbnail"> <div class="post-card__thumbnail">
<img src="<?php echo $thumbnail_url; ?>" alt="<?php echo $title; ?>"> <img src="<?php echo $thumbnail_url; ?>" alt="<?php echo $title; ?>">
@ -82,7 +82,7 @@ $media_types_list = array(
<?php <?php
$amount = $media_type['amount']; $amount = $media_type['amount'];
$media_type = $media_type['acf_fc_layout']; $media_type = $media_type['acf_fc_layout'];
if (!$amount || !$media_type) continue; if (!$amount || !$media_type) continue;
?> ?>
<li class="media-type media-type--<?php echo esc_attr($media_type); ?>"><?php echo $amount . ' ' . ($media_types_list[$media_type] ?? $media_type) . ($amount > 1 ? 's' : ''); ?></li> <li class="media-type media-type--<?php echo esc_attr($media_type); ?>"><?php echo $amount . ' ' . ($media_types_list[$media_type] ?? $media_type) . ($amount > 1 ? 's' : ''); ?></li>