67 lines
1.9 KiB
PHP
67 lines
1.9 KiB
PHP
<?php
|
|
get_header();
|
|
?>
|
|
|
|
<?php
|
|
get_header();
|
|
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|
?>
|
|
|
|
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "homegrade-theme__texte-fonctionnel") ?>">
|
|
<?php
|
|
$currentPage = get_post(get_queried_object_id());
|
|
$networkHomeUrl = network_home_url();
|
|
$pages = get_pages(array(
|
|
'meta_key' => '_wp_page_template',
|
|
'meta_value' => 'template-repertoire-des-metiers.php'
|
|
));
|
|
|
|
//get page id with template Template Name: Repertoire des métiers
|
|
|
|
|
|
$frontPageUrl = get_home_url();
|
|
$frontPageTitle = get_the_title(get_option('page_on_front'));
|
|
|
|
$searchPageId = 43;
|
|
$searchPageTitle = get_the_title($searchPageId);
|
|
$searchPageUrl = get_post_permalink($searchPageId);
|
|
$pageIcon = get_field('page_icon', $searchPageId) ?? null;
|
|
|
|
|
|
?>
|
|
<ol>
|
|
<li>
|
|
<a href="<?php echo $networkHomeUrl ?>" title="<?php echo __("Accueil", "homegrade-theme__texte-fonctionnel") ?>">
|
|
<img src="<?php echo get_template_directory_uri() . "/resources/img/pictogrammes/icon_house_dark.svg" ?>" alt="">
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<li><a href="<?php echo $frontPageUrl ?>"><?php echo $frontPageTitle ?></a></li>
|
|
|
|
<li><a href="<?php echo $searchPageUrl ?>"><?php echo $searchPageTitle ?></a></li>
|
|
|
|
<?php if ($currentPage) : ?>
|
|
<li><a href="<?php echo get_post_permalink($currentPage->ID) ?>" aria-current="location" aria-disabled="true"><?php echo $currentPage->post_title ?></a></li>
|
|
<?php endif; ?>
|
|
|
|
</ol>
|
|
</nav>
|
|
<div class="homegrade-page-container metiers-patrimoine-page-container--single-artisans">
|
|
|
|
<?php /* --------
|
|
HEADING BOX
|
|
---------------*/ ?>
|
|
<?php
|
|
get_template_part("template-components/heading-box", null, array(
|
|
"pageIcon" => $pageIcon,
|
|
"title" => $currentPage->post_title,
|
|
"description" => __("En savoir plus sur nos artisans du patrimoine", "metiers-patrimoine-theme"),
|
|
));
|
|
?>
|
|
|
|
</div>
|
|
|
|
|
|
<?php get_footer();
|