updating page structure
This commit is contained in:
parent
e8e1e0a330
commit
af0d187d4c
|
|
@ -1,41 +1,36 @@
|
||||||
<?php
|
<?php /* Template Name: Repertoire des métiers */ ?>
|
||||||
|
|
||||||
/* Template Name: Repertoire des métiers */
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
get_header();
|
get_header();
|
||||||
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
$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") ?>">
|
<div class="homegrade-page-container metiers-patrimoine-page-container--repertoire-metiers">
|
||||||
<?php
|
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "homegrade-theme__texte-fonctionnel") ?>">
|
||||||
$currentPage = get_post(get_queried_object_id());
|
<?php
|
||||||
$networkHomeUrl = network_home_url();
|
$currentPage = get_post(get_queried_object_id());
|
||||||
|
$networkHomeUrl = network_home_url();
|
||||||
|
|
||||||
$frontPageUrl = get_home_url();
|
$frontPageUrl = get_home_url();
|
||||||
$frontPageTitle = get_the_title(get_option('page_on_front'));
|
$frontPageTitle = get_the_title(get_option('page_on_front'));
|
||||||
?>
|
?>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<a href="<?php echo $networkHomeUrl ?>" title="<?php echo __("Accueil", "homegrade-theme__texte-fonctionnel") ?>">
|
<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="">
|
<img src="<?php echo get_template_directory_uri() . "/resources/img/pictogrammes/icon_house_dark.svg" ?>" alt="">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><a href="<?php echo $frontPageUrl ?>" aria-current="location" aria-disabled="true"><?php echo $frontPageTitle ?></a></li>
|
<li><a href="<?php echo $frontPageUrl ?>"><?php echo $frontPageTitle ?></a></li>
|
||||||
|
|
||||||
|
|
||||||
<?php if ($currentPage) : ?>
|
<?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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="homegrade-page-container homegrade-page-container--metiers-patrimoine">
|
|
||||||
|
|
||||||
<?php /* --------
|
<?php /* --------
|
||||||
HEADING BOX
|
HEADING BOX
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user