fixing lineskips
This commit is contained in:
parent
0fa358464d
commit
c90e766780
|
|
@ -9,102 +9,104 @@ $thematiquesTerms = get_terms(array(
|
|||
$page_icon = get_field('page_icon', get_queried_object());
|
||||
|
||||
?>
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li>
|
||||
<a href="<?php echo home_url() ?>" 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 get_post_type_archive_link('questions') ?>" aria-current='location'>FAQ</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<section class="archive-page-header archive-page-header--faq">
|
||||
<?php if ($page_icon) : ?>
|
||||
<img class="archive-page-header__icon" src="<?php echo $page_icon['url'] ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<h1 class="archive-page-header__title archive-page-header--faq__title"><?php echo __("Les questions par thématique", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h1>
|
||||
<p class="archive-page-header__description"><?php echo __("Simplifions votre recherche grâce aux questions fréquemment posées !", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
<ul class="archive-page-header__terms-grid">
|
||||
<?php foreach ($thematiquesTerms as $thematique) : ?>
|
||||
<?php if (
|
||||
$thematique->slug === "renovation-circulaire"
|
||||
|| $thematique->slug === "circulaire-renovatie"
|
||||
|| $thematique->slug === "au-quotidien"
|
||||
|| $thematique->slug === "dagelijks"
|
||||
|| $thematique->slug === "aides-financieres"
|
||||
|| $thematique->slug === "financiele-steun"
|
||||
) continue; ?>
|
||||
|
||||
<?php
|
||||
// $thematique_icon = get_field('taxonomy_pictures', $thematique)['icon'];
|
||||
$original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', TRUE, 'fr');
|
||||
$thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon'];
|
||||
$termSlug = getThematiqueFamilySlug($thematique->slug);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<li class="term">
|
||||
<a href="<?php echo get_term_link($thematique) ?>">
|
||||
<?php if ($thematique_icon) : ?>
|
||||
<img src="<?php echo $thematique_icon['url'] ?>" alt="">
|
||||
<?php endif; ?>
|
||||
<p class="text-<?php echo $termSlug ?>"><span class="sr-only">Question </span><?php echo $thematique->name ?></p>
|
||||
<div class="homegrade-page-container homegrade-page-container--archive-faq">
|
||||
<nav class="breadcrumbs_navigation" aria-label="breadcrumbs">
|
||||
<ol>
|
||||
<li>
|
||||
<a href="<?php echo home_url() ?>" 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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<li><a href="<?php echo get_post_type_archive_link('questions') ?>" aria-current='location'>FAQ</a></li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
</section>
|
||||
<section class="archive-page-header archive-page-header--faq">
|
||||
<?php if ($page_icon) : ?>
|
||||
<img class="archive-page-header__icon" src="<?php echo $page_icon['url'] ?>" alt="" />
|
||||
<?php endif; ?>
|
||||
<h1 class="archive-page-header__title archive-page-header--faq__title"><?php echo __("Les questions par thématique", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h1>
|
||||
<p class="archive-page-header__description"><?php echo __("Simplifions votre recherche grâce aux questions fréquemment posées !", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
<ul class="archive-page-header__terms-grid">
|
||||
<?php foreach ($thematiquesTerms as $thematique) : ?>
|
||||
<?php if (
|
||||
$thematique->slug === "renovation-circulaire"
|
||||
|| $thematique->slug === "circulaire-renovatie"
|
||||
|| $thematique->slug === "au-quotidien"
|
||||
|| $thematique->slug === "dagelijks"
|
||||
|| $thematique->slug === "aides-financieres"
|
||||
|| $thematique->slug === "financiele-steun"
|
||||
) continue; ?>
|
||||
|
||||
<?php
|
||||
// $thematique_icon = get_field('taxonomy_pictures', $thematique)['icon'];
|
||||
$original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', TRUE, 'fr');
|
||||
$thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon'];
|
||||
$termSlug = getThematiqueFamilySlug($thematique->slug);
|
||||
|
||||
|
||||
<section class="homegrade-help card-large-content-container">
|
||||
<div class="card-large-content card-large-content--has-illustration">
|
||||
<img class="card-large-content__top-illustration" src='<?php echo get_template_directory_uri() ?>/resources/img/illustrations/illustration-homegrade-help.svg' alt=''>
|
||||
?>
|
||||
|
||||
<div class="section_titling">
|
||||
<h2 class="section_titling__title"><?php echo __("Comment Homegrade peut vous aider ?", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h2>
|
||||
<p class="section_titling__subtitle"><?php echo __("Homegrade met à disposition des outils en ligne pour vous aider dans votre recherche", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
</div>
|
||||
<div class="card-large-content__links-container">
|
||||
<!-- PUBLICATIONS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $publication_page_ID = apply_filters('wpml_object_id', 106, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-outils.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($publication_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($publication_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($publication_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
<li class="term">
|
||||
<a href="<?php echo get_term_link($thematique) ?>">
|
||||
<?php if ($thematique_icon) : ?>
|
||||
<img src="<?php echo $thematique_icon['url'] ?>" alt="">
|
||||
<?php endif; ?>
|
||||
<p class="text-<?php echo $termSlug ?>"><span class="sr-only">Question </span><?php echo $thematique->name ?></p>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<section class="homegrade-help card-large-content-container">
|
||||
<div class="card-large-content card-large-content--has-illustration">
|
||||
<img class="card-large-content__top-illustration" src='<?php echo get_template_directory_uri() ?>/resources/img/illustrations/illustration-homegrade-help.svg' alt=''>
|
||||
|
||||
<div class="section_titling">
|
||||
<h2 class="section_titling__title"><?php echo __("Comment Homegrade peut vous aider ?", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h2>
|
||||
<p class="section_titling__subtitle"><?php echo __("Homegrade met à disposition des outils en ligne pour vous aider dans votre recherche", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
|
||||
</div>
|
||||
<!-- CONSEILS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $conseils_page_ID = apply_filters('wpml_object_id', 102, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-faq.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($conseils_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($conseils_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($conseils_page_ID) ?>"><?php echo __("Accéder aux conseils ", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- SERVICE -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $services_page_ID = apply_filters('wpml_object_id', 52, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-services.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($services_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($services_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Accéder aux services", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
<div class="card-large-content__links-container">
|
||||
<!-- PUBLICATIONS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $publication_page_ID = apply_filters('wpml_object_id', 106, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-outils.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($publication_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($publication_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($publication_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- CONSEILS -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $conseils_page_ID = apply_filters('wpml_object_id', 102, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-faq.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($conseils_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($conseils_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($conseils_page_ID) ?>"><?php echo __("Accéder aux conseils ", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
<!-- SERVICE -->
|
||||
<div class="card-large-content__link">
|
||||
<?php $services_page_ID = apply_filters('wpml_object_id', 52, 'page', TRUE); ?>
|
||||
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-services.svg' ?>" alt="">
|
||||
<h3 class="card-large-content__link__title"><?php echo get_the_title($services_page_ID) ?></h3>
|
||||
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($services_page_ID) ?></p>
|
||||
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Accéder aux services", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user