FEATURE Handling icon for about page
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
56dae76c2e
commit
b81383a6d7
|
|
@ -151,6 +151,12 @@ $foundPosts = $args['foundPosts'] ?? null;
|
||||||
<?php
|
<?php
|
||||||
$suggestArtisanPageId = 309;
|
$suggestArtisanPageId = 309;
|
||||||
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
$suggestArtisanPageIcon = get_field('page_icon', $suggestArtisanPageId) ?? null;
|
||||||
|
|
||||||
|
$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_the_permalink($suggestArtisanPageId) ?>">
|
||||||
|
|
@ -158,7 +164,7 @@ $foundPosts = $args['foundPosts'] ?? null;
|
||||||
<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_home_url() ?>">
|
||||||
<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 $artisanAboutPageIcon['url'] ?> " alt="">
|
||||||
<p><?php echo __("Page d'information", "metiers-patrimoine-theme") ?></p>
|
<p><?php echo __("À propos", "metiers-patrimoine-theme") ?></p>
|
||||||
</a>
|
</a>
|
||||||
</aside>
|
</aside>
|
||||||
Loading…
Reference in New Issue
Block a user