From 9cc2fbf333a1286941e07071e36c73bfe79a9e1f Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 14 Jan 2021 10:19:32 +0100 Subject: [PATCH] fix tac yt --- .../popsu_colloque/css/components/components.scss | 7 ++++++- .../template/fields/video-embed-iframe.html.twig | 11 ++++++++++- .../custom/popsu_colloque/template/html.html.twig | 7 +++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/web/themes/custom/popsu_colloque/css/components/components.scss b/web/themes/custom/popsu_colloque/css/components/components.scss index 881ce98a..06c64d98 100644 --- a/web/themes/custom/popsu_colloque/css/components/components.scss +++ b/web/themes/custom/popsu_colloque/css/components/components.scss @@ -14,4 +14,9 @@ @import "btn/all_btn.scss"; @import "footer/footer.scss"; @import "leaflet/custom_leaflet.scss"; -@import "paragraph/paragraphs.scss"; \ No newline at end of file +@import "paragraph/paragraphs.scss"; + + +.video-embed-field-provider-youtube.video-embed-field-responsive-video{ + display: flex; +} diff --git a/web/themes/custom/popsu_colloque/template/fields/video-embed-iframe.html.twig b/web/themes/custom/popsu_colloque/template/fields/video-embed-iframe.html.twig index 00e53504..fb628c97 100644 --- a/web/themes/custom/popsu_colloque/template/fields/video-embed-iframe.html.twig +++ b/web/themes/custom/popsu_colloque/template/fields/video-embed-iframe.html.twig @@ -4,4 +4,13 @@ * Display an iframe with alterable components. */ #} - +{# #} + +{% if url is not empty %} +{% set id = url|split('v=')|last %} +{% set id = id|split('&')|first %} +{% set id = id|split('/')|last %} + +
+ +{% endif %} diff --git a/web/themes/custom/popsu_colloque/template/html.html.twig b/web/themes/custom/popsu_colloque/template/html.html.twig index 5e5350bb..72bd5ecc 100644 --- a/web/themes/custom/popsu_colloque/template/html.html.twig +++ b/web/themes/custom/popsu_colloque/template/html.html.twig @@ -34,6 +34,8 @@ + + {# @@ -47,5 +49,10 @@ {{ page }} {{ page_bottom }} + + +