FIX translations for metiers du patrimoine
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-09-01 15:34:36 +02:00
parent 8d4d9de6be
commit 69cd06dac4

View File

@ -74,8 +74,11 @@ switch_to_blog(1);
switch_to_blog(2); switch_to_blog(2);
$home_url_metiers_patrimoine = get_home_url(); $home_url_metiers_patrimoine = get_home_url();
restore_current_blog(); restore_current_blog();
$current_lang = apply_filters('wpml_current_language', null);
$metiers_patrimoine_title = $current_lang === "nl" ? "Vakmensen in het erfgoed" : "Artisans du patrimoine";
?> ?>
<a class="cta cta--button cta--outline metiers-patrimoine-btn" href="<?php echo $home_url_metiers_patrimoine ?>"><?php echo __('Artisans du patrimoine', 'homegrade') ?></a> <a class="cta cta--button cta--outline metiers-patrimoine-btn" href="<?php echo $home_url_metiers_patrimoine ?>"><?php echo $metiers_patrimoine_title ?></a>
<a class="cta cta--button cta--outline sitemap-btn" href="<?php echo get_the_permalink($localizedSiteMapPage) ?>"> <a class="cta cta--button cta--outline sitemap-btn" href="<?php echo get_the_permalink($localizedSiteMapPage) ?>">
<?php echo get_the_title($localizedSiteMapPage) ?> <?php echo get_the_title($localizedSiteMapPage) ?>