error handling for post code
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
93bf32774e
commit
8c26c27d19
|
|
@ -42,9 +42,11 @@ $adresse = get_field('adresse', $postID);
|
|||
<?php endif; ?>
|
||||
|
||||
<?php if ($adresse): ?>
|
||||
<p class="card-artisans__adresse"><?php echo $adresse['post_code'] . " " . $adresse['city'] ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="card-artisans__adresse">
|
||||
<?= ($adresse['post_code'] ?? '') . ' ' . ($adresse['city'] ?? '') ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($phoneNumber): ?>
|
||||
<a class="card-artisans__phone" href="tel:<?php echo $phoneNumber ?>"><?php echo $formattedPhoneNumber ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user