REFINE Restructuring post-card component to enhance layout and include thumbnail display for specific post types
This commit is contained in:
parent
342187cd5e
commit
0441b323c7
|
|
@ -28,17 +28,25 @@ $numerotation = get_post_meta($ID, 'post_numerotation', true);
|
||||||
</div>
|
</div>
|
||||||
<div class="card__details">
|
<div class="card__details">
|
||||||
|
|
||||||
<time datetime="<?php echo $date; ?>" class="card__details-date date"><?php echo $date; ?></time>
|
<div class="card__details-text">
|
||||||
|
<time datetime="<?php echo $date; ?>" class="card__details-date date"><?php echo $date; ?></time>
|
||||||
|
|
||||||
<?php if ($authors) : ?>
|
<?php if ($authors) : ?>
|
||||||
<ul class="post-card__authors">
|
<ul class="post-card__authors">
|
||||||
<?php foreach ($authors as $author) : ?>
|
<?php foreach ($authors as $author) : ?>
|
||||||
<li class="author"><?php echo $author->post_title; ?></li>
|
<li class="author"><?php echo $author->post_title; ?></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php if ($current_post_type === 'outils-pedagogiques' && has_post_thumbnail($ID)) : ?>
|
||||||
|
<div class="card__thumbnail">
|
||||||
|
<?php the_post_thumbnail('medium'); ?>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user