FEATURE Transforming repertoire into the front page — handling page permalink link
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
bcbe865cc4
commit
10603dbb1b
|
|
@ -161,14 +161,18 @@ $foundPosts = $args['foundPosts'] ?? null;
|
||||||
do_action('wpml_switch_language', 'fr');
|
do_action('wpml_switch_language', 'fr');
|
||||||
$artisanAboutPageIcon = get_field('page_icon', $artisanAboutPageId) ?? null;
|
$artisanAboutPageIcon = get_field('page_icon', $artisanAboutPageId) ?? null;
|
||||||
do_action('wpml_switch_language', $currentLang);
|
do_action('wpml_switch_language', $currentLang);
|
||||||
|
|
||||||
|
|
||||||
|
$artisanAboutPageId = $currentLang === "nl" ? 8208 : 5;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<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) */ ?>"> -->
|
<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>
|
||||||
<a class="card-information-page card block" href="<?php echo get_home_url() ?>">
|
<a class="card-information-page card block" href="<?php echo get_the_permalink($artisanAboutPageId) ?>">
|
||||||
<img class="search-artisan-btn__page-icon" src="<?php echo $artisanAboutPageIcon['url'] ?> " alt="">
|
<img class="search-artisan-btn__page-icon" src="<?php echo $artisanAboutPageIcon['url'] ?> " alt="">
|
||||||
<p><?php echo __("À propos", "metiers-patrimoine-theme") ?></p>
|
<p><?php echo __("À propos", "metiers-patrimoine-theme") ?></p>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user