updating page with new highlighted components
This commit is contained in:
parent
aa40ae8b0f
commit
f423d685fa
|
|
@ -198,9 +198,7 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
|
||||||
<a class="cta cta--secondary cta--button" href="<?php echo $highlightedDocumentDatas['document']['url'] ?>" target="_blank"><?php echo __("Consulter le PDF", "homegrade-theme__texte-fonctionnel__archive-publications") ?></a>
|
<a class="cta cta--secondary cta--button" href="<?php echo $highlightedDocumentDatas['document']['url'] ?>" target="_blank"><?php echo __("Consulter le PDF", "homegrade-theme__texte-fonctionnel__archive-publications") ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($documentThumbnail) : ?>
|
<img class="highlighted-publication__cover" src='<?php echo get_template_directory_uri() . '/resources/img/illustrations/homegrade_brochure-impression.svg' ?>' />
|
||||||
<img class="highlighted-publication__cover" src='<?php echo $documentThumbnail['sizes']['large'] ?>' />
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
@ -234,6 +232,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
|
||||||
|
$sharePublications = get_field('section_share_publications', $current_page_id);
|
||||||
|
// echo '<pre>';
|
||||||
|
// print_r($sharePublications);
|
||||||
|
// echo '</pre>';
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div id="highlighted-share-publication" class="highlighted-publication highlighted-share-publication">
|
||||||
|
<?php
|
||||||
|
$documentThumbnail = get_field('brochure_cover_image', $highlightedDocumentDatas['document']['ID']);
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="highlighted-publication__infos">
|
||||||
|
|
||||||
|
<div class="highlighted-publication__titling">
|
||||||
|
<div class="highlighted-publication__titling__icon">
|
||||||
|
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/house-homegrade-icon.svg' ?>" alt="">
|
||||||
|
</div>
|
||||||
|
<h3 class="highlighted-publication__titling__title">
|
||||||
|
<?php echo $sharePublications['title'] ?>
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="highlighted-publication__comment"><?php echo $sharePublications['text_content'] ?></div>
|
||||||
|
<a class="cta cta--secondary cta--button" href="" target="_blank"><?php echo __("Remplir le formulaire", "homegrade-theme__texte-fonctionnel__archive-publications") ?></a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<img class="highlighted-share-publication__cover" src="<?php echo get_template_directory_uri() . '/resources/img/illustrations/homegrade_brochure-impression-domicile.svg' ?>" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
@ -250,7 +284,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
|
||||||
<p class="section_titling__subtitle"><?php echo $sectionFichesInfosDatas['subtitle'] ?></p>
|
<p class="section_titling__subtitle"><?php echo $sectionFichesInfosDatas['subtitle'] ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<ul id="fiche-infos-rows" class="publications-grid">
|
<ul id="fiche-infos-rows" class="publications-grid">
|
||||||
<?php
|
<?php
|
||||||
get_template_part(
|
get_template_part(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user