introducing the single
This commit is contained in:
parent
d3d7611332
commit
e8e1e0a330
66
single-artisans.php
Normal file
66
single-artisans.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?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();
|
||||
Loading…
Reference in New Issue
Block a user