introducing propper section for brochuer distribution for professionnals

This commit is contained in:
Antoine M 2025-01-22 15:20:43 +01:00
parent 9cbb718b79
commit 82340dd0c9

View File

@ -75,12 +75,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
"pageIcon" => $pageIcon, "pageIcon" => $pageIcon,
"title" => get_the_title(get_queried_object_id()), "title" => get_the_title(get_queried_object_id()),
"description" => __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel"), "description" => __("Découvrez toutes nos publications et outils en ligne", "homegrade-theme__texte-fonctionnel"),
"ctaSecondary" => array(
"title" => $receivePrintedPublicationsDatas['cta_title'] ?? null,
"url" => $receivePrintedPublicationsDatas['order_form_url'] ?? null,
"target" => "_blank",
"custom-class" => "paper-button",
),
)); ));
?> ?>
@ -239,15 +233,42 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
<!-- LOAD MORE --> <!-- LOAD MORE -->
<button id="load-more-brochures" class="cta cta--button cta--outline cta--button cta--centered cta--load-more" data-publication-type="brochures"><?php echo __("Consulter plus de brochures", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></button> <button id="load-more-brochures" class="cta cta--button cta--outline cta--button cta--centered cta--load-more" data-publication-type="brochures"><?php echo __("Consulter plus de brochures", "homegrade-theme__texte-fonctionnel__publications-archive-brochures") ?></button>
<?php wp_reset_postdata(); ?> <?php wp_reset_postdata(); ?>
<?php /* ---------
DISTRIBUEZ PUBLICATIONS
-----------------*/ ?>
<?php <?php
$sharePublications = get_field('section_share_publications', $current_page_id); $sharePublications = get_field('section_share_publications', $current_page_id);
?> ?>
</section> </section>
<?php
/* -------------------------
DISTRIBUEZ PUBLICATIONS
-----------------------------*/
?>
<?php
$receivePrintedPublicationsDatas['order_form_url'] ?? null
?>
<section class="distribuez-publications wp-block-homegrade-content-blocks-highlight homegrade-blocks-highlight homegrade-blocks-highlight--classic homegrade-blocks-highlight--has-illustration">
<div class="homegrade-blocks-highlight--has-illustration__content">
<div class="homegrade-blocks-highlight__titling ">
<div class="icon"><img decoding="async" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNy44MDMiIGhlaWdodD0iMTcuNDI2IiB2aWV3Qm94PSIwIDAgMTcuODAzIDE3LjQyNiI+CiAgPHBhdGggaWQ9Ikljb25fZmVhdGhlci1rZXkiIGRhdGEtbmFtZT0iSWNvbiBmZWF0aGVyLWtleSIgZD0iTTE4LjAxMywzbC0xLjU4LDEuNThNMTAuNDIsMTAuNTkzYTQuMzQ2LDQuMzQ2LDAsMSwxLTYuMTQ2LDAsNC4zNDYsNC4zNDYsMCwwLDEsNi4xNDYsMFptMCwwLDMuMjQ4LTMuMjQ4bTAsMCwyLjM3LDIuMzdMMTguOCw2Ljk1MWwtMi4zNy0yLjM3TTEzLjY2OCw3LjM0NiwxNi40MzMsNC41OCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIuMDAxIC0xLjU4NikiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjIiLz4KPC9zdmc+Cg==" alt=""></div>
<h3 class="homegrade-blocks-highlight__block-title"><?php echo $receivePrintedPublicationsDatas['title'] ?></h3>
</div>
<div class="homegrade-blocks-highlight__content__innerblocks">
<p><?php echo $receivePrintedPublicationsDatas['description'] ?></p>
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo $receivePrintedPublicationsDatas['order_form_url'] ?>" target="_blank" rel="noreferrer noopener"><?php echo $receivePrintedPublicationsDatas['cta_title'] ?></a></div>
</div>
</div>
<img class="homegrade-blocks-highlight--has-illustration__illustration" decoding="async" src="<?php echo get_template_directory_uri() . "/resources/img/illustrations/homegrade_brochure-impression-domicile.svg" ?>" alt="">
</section>
<?php /* ----------- <?php /* -----------
FICHES INFOS FICHES INFOS
------------------*/ ?> ------------------*/ ?>