handling embed for hightlighted webinaire
This commit is contained in:
parent
4d161bc4fa
commit
c1223ca171
|
|
@ -68,9 +68,15 @@
|
||||||
.cta {
|
.cta {
|
||||||
@apply mt-8;
|
@apply mt-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
@apply w-full max-w-xl h-auto my-2 rounded-2xl;
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.brochures-archives,
|
.brochures-archives,
|
||||||
.fiches-infos-archives {
|
.fiches-infos-archives,
|
||||||
|
.videos-webinaires-archives {
|
||||||
@apply max-w-screen-xl mx-auto py-4 mt-8;
|
@apply max-w-screen-xl mx-auto py-4 mt-8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ $args = array(
|
||||||
);
|
);
|
||||||
$brochuresPosts = new WP_Query($args);
|
$brochuresPosts = new WP_Query($args);
|
||||||
|
|
||||||
|
|
||||||
// #### FICHES INFOS QUERY
|
// #### FICHES INFOS QUERY
|
||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'fiches-infos',
|
'post_type' => 'fiches-infos',
|
||||||
|
|
@ -35,8 +34,6 @@ $args = array(
|
||||||
);
|
);
|
||||||
$fichesInfosPosts = new WP_Query($args);
|
$fichesInfosPosts = new WP_Query($args);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// #### VIDÉOS & WEBINAIRES QUERY
|
// #### VIDÉOS & WEBINAIRES QUERY
|
||||||
$videosWebinairesDatas = get_field('videos_webinaires', $current_page_id)['videos_webinaires_datas'] ?? null;
|
$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">
|
<span class="results-filter-name">
|
||||||
<?php echo __("categorie", "homegrade-theme__texte-fonctionnel"); ?>
|
<?php echo __("categorie", "homegrade-theme__texte-fonctionnel"); ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
@ -165,7 +161,6 @@ $total_posts_found = $brochuresPosts->found_posts + $fichesInfosPosts->found_pos
|
||||||
$rootThematic = getParentThematique($thematique);
|
$rootThematic = getParentThematique($thematique);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<li class="publications-grid__row">
|
<li class="publications-grid__row">
|
||||||
<?php if ($brochureCover) : ?>
|
<?php if ($brochureCover) : ?>
|
||||||
<img class="publications-grid__cover" src="<?php echo $brochureCover['sizes']['medium'] ?>" />
|
<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) : ?>
|
<?php if ($highlightedBrochurePdf) : ?>
|
||||||
<div class="highlighted-publication">
|
<div class="highlighted-publication">
|
||||||
<div class="highlighted-publication__infos">
|
<div class="highlighted-publication__infos">
|
||||||
|
|
||||||
<div class="highlighted-publication__titling">
|
<div class="highlighted-publication__titling">
|
||||||
<div class="highlighted-publication__titling__icon">
|
<div class="highlighted-publication__titling__icon">
|
||||||
<img src="<?php echo get_template_directory_uri() . '/resources/img/graphic-assets/house-homegrade-icon.svg' ?>" alt="">
|
<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'] ?>" />
|
<img src='<?php echo $highlightedWebinaire['thumbnail']['url'] ?>' alt="<?php echo $highlightedWebinaire['thumbnail']['alt'] ?>" />
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php if ($highlightedWebinaire['embed']) : ?>
|
||||||
|
<?php echo $highlightedWebinaire['embed'] ?>
|
||||||
|
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user