FIX Temporary fix for suggest artisan url beacause broken
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
0ee675e646
commit
a767530658
|
|
@ -149,17 +149,22 @@ $foundPosts = $args['foundPosts'] ?? null;
|
|||
</form>
|
||||
|
||||
<?php
|
||||
$currentLang = apply_filters('wpml_current_language', null);
|
||||
|
||||
$suggestArtisanPageId = 309;
|
||||
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
||||
|
||||
|
||||
$temp_suggestArtisanUrl = $currentLang === "fr" ? "/suggerer-une-entreprise" : "bedrijf-voorstellen";
|
||||
|
||||
$artisanAboutPageId = 5;
|
||||
$currentLang = apply_filters('wpml_current_language', null);
|
||||
do_action('wpml_switch_language', 'fr');
|
||||
$artisanAboutPageIcon = get_field('page_icon', $artisanAboutPageId) ?? null;
|
||||
do_action('wpml_switch_language', $currentLang);
|
||||
?>
|
||||
|
||||
<a class="card-suggest-artisan card block" href="<?php echo get_the_permalink($suggestArtisanPageId) ?>">
|
||||
<a class="card-suggest-artisan card block" href="<?php echo get_home_url() . $temp_suggestArtisanUrl ?>">
|
||||
<!-- <a class="card-suggest-artisan card block" href="<?php /* echo get_the_permalink($suggestArtisanPageId) */ ?>"> -->
|
||||
<img class="search-artisan-btn__page-icon" src="<?php echo $suggestArtisanPageIcon['sizes']['medium_large'] ?> " alt="">
|
||||
<p><?php echo __("Communiquer une entreprise ou un artisan", "metiers-patrimoine-theme") ?></p>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user