From c1223ca171bff3c491375842730b24053676bb7c Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 21 Nov 2023 12:04:19 +0100 Subject: [PATCH] handling embed for hightlighted webinaire --- resources/css/pages/template-archive-publications.css | 8 +++++++- template-publications.php | 10 ++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/resources/css/pages/template-archive-publications.css b/resources/css/pages/template-archive-publications.css index b1125ef..f1b8699 100644 --- a/resources/css/pages/template-archive-publications.css +++ b/resources/css/pages/template-archive-publications.css @@ -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; } } diff --git a/template-publications.php b/template-publications.php index f99f98c..a1d9855 100644 --- a/template-publications.php +++ b/template-publications.php @@ -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 -