handling embed for hightlighted webinaire

This commit is contained in:
Antoine M 2023-11-21 12:04:19 +01:00
parent 4d161bc4fa
commit c1223ca171
2 changed files with 11 additions and 7 deletions

View File

@ -68,9 +68,15 @@
.cta {
@apply mt-8;
}
iframe {
@apply w-full max-w-xl h-auto my-2 rounded-2xl;
aspect-ratio: 16/9;
}
}
.brochures-archives,
.fiches-infos-archives {
.fiches-infos-archives,
.videos-webinaires-archives {
@apply max-w-screen-xl mx-auto py-4 mt-8;
}
}

View File

@ -20,7 +20,6 @@ $args = array(
);
$brochuresPosts = new WP_Query($args);
// #### FICHES INFOS QUERY
$args = array(
'post_type' => 'fiches-infos',
@ -35,8 +34,6 @@ $args = array(
);
$fichesInfosPosts = new WP_Query($args);
// #### VIDÉOS & WEBINAIRES QUERY
$videosWebinairesDatas = get_field('videos_webinaires', $current_page_id)['videos_webinaires_datas'] ?? null;
@ -84,7 +81,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
<span class="results-filter-name">
<?php echo __("categorie", "homegrade-theme__texte-fonctionnel"); ?>
</span>
</p>
<ul>
@ -165,7 +161,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
$rootThematic = getParentThematique($thematique);
?>
<li class="publications-grid__row">
<?php if ($brochureCover) : ?>
<img class="publications-grid__cover" src="<?php echo $brochureCover['sizes']['medium'] ?>" />
@ -251,7 +246,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
<?php if ($highlightedBrochurePdf) : ?>
<div class="highlighted-publication">
<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="">
@ -273,6 +267,10 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
<img src='<?php echo $highlightedWebinaire['thumbnail']['url'] ?>' alt="<?php echo $highlightedWebinaire['thumbnail']['alt'] ?>" />
</div>
<?php endif; ?>
<?php if ($highlightedWebinaire['embed']) : ?>
<?php echo $highlightedWebinaire['embed'] ?>
<?php endif; ?>
</div>
<?php endif; ?>