cleaning lineskips

This commit is contained in:
Antoine M 2024-01-18 15:44:31 +01:00
parent 8bad741204
commit 8fb3f3f593

View File

@ -6,9 +6,6 @@
$currentThematique = get_the_terms(get_the_ID(), 'thematiques')[0];
$mainThematique = getMainThematique($currentThematique);
$thematiqueColorSlug = $mainThematique->slug;
?>
<div class="homegrade-page-container template-empty-parent">
@ -17,7 +14,7 @@ $thematiqueColorSlug = $mainThematique->slug;
<?php
$currentPage = get_post();
$parentPage = $currentPage->post_parent !== 0 ? get_post($currentPage->post_parent) : null;
$grandParentPage = $parentPage->post_parent ? get_post($parentPage->post_parent) : null;
$grandParentPage = $parentPag && $parentPage->post_parent ? get_post($parentPage->post_parent) : null;
$args = array(
'posts_per_page' => -1,
@ -28,9 +25,6 @@ $thematiqueColorSlug = $mainThematique->slug;
);
$childrenPages = get_children($args);
// echo '<pre>';
// print_r($childrens);
// echo '</pre>';
?>
<nav class=" breadcrumbs_navigation" aria-label="breadcrumbs">
@ -56,9 +50,9 @@ $thematiqueColorSlug = $mainThematique->slug;
<?php
get_template_part("template-components/heading-box", null, array(
"pageIcon" => $pageIcon,
"title" => $currentPage->post_title,
"description" => get_the_excerpt(),
// "pageIcon" => $pageIcon,
"pageIcon" => get_field('page_icon', $currentPage->ID),
));
?>