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 @@