FIX Optional Date with escape if in case no date

This commit is contained in:
Nonimart 2025-06-12 17:44:01 +02:00
parent a8a33fea19
commit dd3361682f

View File

@ -167,7 +167,9 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
<?php if ($city): ?>
<p class="chantier__city"><?php echo $city ?></p>
<?php endif; ?>
<time class="chantier__date"> <?php echo $date ?></time>
<?php if ($date): ?>
<time class="chantier__date"> <?php echo $date ?></time>
<?php endif; ?>
</div>
<p class="chantier__description"><?php echo $chantier_description ?></p>