Compare commits

..

No commits in common. "fc0fb25f605e67c65f822ded3694aa7ea28ff46f" and "a8a33fea1984897c6b38fb922398339ff267a8b4" have entirely different histories.

2 changed files with 15 additions and 15 deletions

View File

@ -138,16 +138,18 @@ function getAcfStateNameFromEnglish($localisation)
function getGenericStateNameFromAcfStateName($state) function getGenericStateNameFromAcfStateName($state)
{ {
switch ($state) { if ($state === 'Bruxelles') {
case 'Bruxelles':
return 'brussels'; return 'brussels';
case 'Région flamande': }
case 'Vlaams Gewest':
if ($state === 'Vlaams Gewest') {
return 'flanders'; return 'flanders';
case 'Région Wallonne': }
if ($state === 'Région Wallonne') {
return 'wallonia'; return 'wallonia';
case 'all': }
default: if ($state === 'all') {
return 'all'; return 'all';
} }
}; };
@ -244,7 +246,7 @@ function getRelativeTimeFromTimestamp($timestamp)
function format_phone_number($phoneNumber) function format_phone_number($phoneNumber)
{ {
// Nettoyage du numéro : retirer espaces, tirets, points, etc. // Nettoyage du numéro : retirer espaces, tirets, points, etc.
if (!$phoneNumber) return;
$cleanedNumber = preg_replace('/\D+/', '', $phoneNumber); $cleanedNumber = preg_replace('/\D+/', '', $phoneNumber);
$phoneType = detectBelgianPhoneType($cleanedNumber); $phoneType = detectBelgianPhoneType($cleanedNumber);

View File

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