diff --git a/src/Twig/Extension/DataAttributesExtension.php b/src/Twig/Extension/DataAttributesExtension.php index f6f4d0a6..23fd5bde 100644 --- a/src/Twig/Extension/DataAttributesExtension.php +++ b/src/Twig/Extension/DataAttributesExtension.php @@ -15,8 +15,9 @@ public function __construct(protected DataAttributeService $dataAttributeService public function getFunctions(): array { return [ - new TwigFunction('toolbox_data_attributes_generator', [$this->dataAttributeService, 'generateDataAttributes']), + new TwigFunction('toolbox_data_attributes_generator', [$this->dataAttributeService, 'generateDataAttributes'], [ + 'is_safe' => ['html'], + ]), ]; } - } diff --git a/templates/toolbox/bootstrap4/video/type_asset.html.twig b/templates/toolbox/bootstrap4/video/type_asset.html.twig index 4b31a830..09ec2f76 100644 --- a/templates/toolbox/bootstrap4/video/type_asset.html.twig +++ b/templates/toolbox/bootstrap4/video/type_asset.html.twig @@ -1,4 +1,4 @@ -
+
{{ pimcore_vhs('video', { 'attributes': { 'class': 'video-js vjs-default-skin vjs-big-play-centered', diff --git a/templates/toolbox/bootstrap4/video/type_vimeo.html.twig b/templates/toolbox/bootstrap4/video/type_vimeo.html.twig index d63da520..89d9f0b2 100644 --- a/templates/toolbox/bootstrap4/video/type_vimeo.html.twig +++ b/templates/toolbox/bootstrap4/video/type_vimeo.html.twig @@ -1,4 +1,4 @@ -
+
{% if posterPath is not empty %} {% include toolbox_area_path(areaId, areaTemplateDirectory, '/partial/overlay') with {'posterPath' : posterPath, 'playInLightbox' : playInLightbox} %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/templates/toolbox/bootstrap4/video/type_youtube.html.twig b/templates/toolbox/bootstrap4/video/type_youtube.html.twig index 3e8d1760..84b9bd84 100644 --- a/templates/toolbox/bootstrap4/video/type_youtube.html.twig +++ b/templates/toolbox/bootstrap4/video/type_youtube.html.twig @@ -1,5 +1,5 @@ -
+
{% if posterPath is not empty %} {% include toolbox_area_path(areaId, areaTemplateDirectory, '/partial/overlay') with {'posterPath' : posterPath, 'playInLightbox' : playInLightbox} %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/templates/toolbox/uikit3/video/type_vimeo.html.twig b/templates/toolbox/uikit3/video/type_vimeo.html.twig index f885035f..013055ab 100644 --- a/templates/toolbox/uikit3/video/type_vimeo.html.twig +++ b/templates/toolbox/uikit3/video/type_vimeo.html.twig @@ -9,6 +9,6 @@ {% if autoPlay %}playsinline allow="autoplay;"{% endif %} data-uk-video="autoplay: true" width="1920" height="1080" data-uk-responsive - {{ toolbox_data_attributes_generator('video_parameter', {'video_parameter' : videoParameter}, true)|raw }}> + {{ toolbox_data_attributes_generator('video_parameter', {'video_parameter' : videoParameter}, true) }}> -{% endif %} \ No newline at end of file +{% endif %} diff --git a/templates/toolbox/uikit3/video/type_youtube.html.twig b/templates/toolbox/uikit3/video/type_youtube.html.twig index 0a791824..59b8393b 100644 --- a/templates/toolbox/uikit3/video/type_youtube.html.twig +++ b/templates/toolbox/uikit3/video/type_youtube.html.twig @@ -9,6 +9,6 @@ {% if autoPlay %}playsinline {% endif %} data-uk-video="autoplay: true" width="1920" height="1080" data-uk-responsive - {{ toolbox_data_attributes_generator('video_parameter', {'video_parameter' : videoParameter}, true)|raw }}> + {{ toolbox_data_attributes_generator('video_parameter', {'video_parameter' : videoParameter}, true) }}> -{% endif %} \ No newline at end of file +{% endif %}