FIX suggest artisan url
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
e0c395180d
commit
cfe696ecb1
|
|
@ -151,10 +151,8 @@ $foundPosts = $args['foundPosts'] ?? null;
|
||||||
<?php
|
<?php
|
||||||
$currentLang = apply_filters('wpml_current_language', null);
|
$currentLang = apply_filters('wpml_current_language', null);
|
||||||
|
|
||||||
$suggestArtisanPageId = 309;
|
|
||||||
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
||||||
|
|
||||||
|
|
||||||
$temp_suggestArtisanUrl = $currentLang === "fr" ? "/suggerer-une-entreprise" : "bedrijf-voorstellen";
|
$temp_suggestArtisanUrl = $currentLang === "fr" ? "/suggerer-une-entreprise" : "bedrijf-voorstellen";
|
||||||
|
|
||||||
$artisanAboutPageId = 5;
|
$artisanAboutPageId = 5;
|
||||||
|
|
@ -167,8 +165,7 @@ $foundPosts = $args['foundPosts'] ?? null;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- <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_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="">
|
<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>
|
<p><?php echo __("Communiquer une entreprise ou un artisan", "metiers-patrimoine-theme") ?></p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user