Compare commits
No commits in common. "fc0fb25f605e67c65f822ded3694aa7ea28ff46f" and "a8a33fea1984897c6b38fb922398339ff267a8b4" have entirely different histories.
fc0fb25f60
...
a8a33fea19
|
|
@ -138,17 +138,19 @@ function getAcfStateNameFromEnglish($localisation)
|
|||
|
||||
function getGenericStateNameFromAcfStateName($state)
|
||||
{
|
||||
switch ($state) {
|
||||
case 'Bruxelles':
|
||||
return 'brussels';
|
||||
case 'Région flamande':
|
||||
case 'Vlaams Gewest':
|
||||
return 'flanders';
|
||||
case 'Région Wallonne':
|
||||
return 'wallonia';
|
||||
case 'all':
|
||||
default:
|
||||
return 'all';
|
||||
if ($state === 'Bruxelles') {
|
||||
return 'brussels';
|
||||
}
|
||||
|
||||
if ($state === 'Vlaams Gewest') {
|
||||
return 'flanders';
|
||||
}
|
||||
|
||||
if ($state === 'Région Wallonne') {
|
||||
return 'wallonia';
|
||||
}
|
||||
if ($state === 'all') {
|
||||
return 'all';
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -244,7 +246,7 @@ function getRelativeTimeFromTimestamp($timestamp)
|
|||
function format_phone_number($phoneNumber)
|
||||
{
|
||||
// Nettoyage du numéro : retirer espaces, tirets, points, etc.
|
||||
if (!$phoneNumber) return;
|
||||
|
||||
|
||||
$cleanedNumber = preg_replace('/\D+/', '', $phoneNumber);
|
||||
$phoneType = detectBelgianPhoneType($cleanedNumber);
|
||||
|
|
|
|||
|
|
@ -167,9 +167,7 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
<?php if ($city): ?>
|
||||
<p class="chantier__city"><?php echo $city ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if ($date): ?>
|
||||
<time class="chantier__date"> <?php echo $date ?></time>
|
||||
<?php endif; ?>
|
||||
<time class="chantier__date"> <?php echo $date ?></time>
|
||||
</div>
|
||||
<p class="chantier__description"><?php echo $chantier_description ?></p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user