FEATURE handling birth daeath date
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2026-04-13 17:25:32 +02:00
parent dd221f782c
commit 758ed2156d
2 changed files with 12 additions and 0 deletions

View File

@ -59,6 +59,14 @@
.card__description { .card__description {
@apply pb-5; @apply pb-5;
} }
.card__birth-death-date {
@apply text-primary font-bold mb-4;
}
.card__title:has(+ .card__birth-death-date) {
@apply mb-4;
}
.card__details { .card__details {
@apply flex flex-col gap-3; @apply flex flex-col gap-3;

View File

@ -33,6 +33,7 @@ $numerotation = get_post_meta($ID, 'post_numerotation', true);
$tags = get_the_terms($ID, 'etiquettes'); $tags = get_the_terms($ID, 'etiquettes');
$description = get_field('description', $ID); $description = get_field('description', $ID);
$birth_death_date = get_field('birth_death_date', $ID);
?> ?>
@ -56,6 +57,9 @@ $description = get_field('description', $ID);
<?php if ($showExcerpt) : ?> <?php if ($showExcerpt) : ?>
<div class="card__excerpt"><?php echo $excerpt; ?></div> <div class="card__excerpt"><?php echo $excerpt; ?></div>
<?php endif; ?> <?php endif; ?>
<?php if ($birth_death_date) : ?>
<div class="card__birth-death-date"><?php echo $birth_death_date; ?></div>
<?php endif; ?>
<?php if ($description) : ?> <?php if ($description) : ?>
<div class="card__description"><?php echo $description; ?></div> <div class="card__description"><?php echo $description; ?></div>
<?php endif; ?> <?php endif; ?>