FEATURE handling birth daeath date
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dd221f782c
commit
758ed2156d
|
|
@ -59,6 +59,14 @@
|
|||
.card__description {
|
||||
@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 {
|
||||
@apply flex flex-col gap-3;
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ $numerotation = get_post_meta($ID, 'post_numerotation', true);
|
|||
$tags = get_the_terms($ID, 'etiquettes');
|
||||
|
||||
$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) : ?>
|
||||
<div class="card__excerpt"><?php echo $excerpt; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ($birth_death_date) : ?>
|
||||
<div class="card__birth-death-date"><?php echo $birth_death_date; ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if ($description) : ?>
|
||||
<div class="card__description"><?php echo $description; ?></div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user