diff --git a/themes/vartheme/templates/entity-embed/entity-embed-container.html.twig b/themes/vartheme/templates/entity-embed/entity-embed-container.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..e3af87832689e70d75428b8921d5a7caad1c3c08 --- /dev/null +++ b/themes/vartheme/templates/entity-embed/entity-embed-container.html.twig @@ -0,0 +1,15 @@ +{# +/** + * @file + * Default theme implementation of a container used to wrap embedded entities. + * + * Available variables: + * - attributes: HTML attributes for the containing element. + * - children: The rendered child elements of the container. + * + * @see template_preprocess_entity_embed_container() + * + * @ingroup themeable + */ +#} +<div{{ attributes }}>{{ children }}</div> diff --git a/themes/vartheme/templates/media/media--image.html.twig b/themes/vartheme/templates/media/media--image.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..c6316bb89f25cad73395c74e462a30768133cdab --- /dev/null +++ b/themes/vartheme/templates/media/media--image.html.twig @@ -0,0 +1,19 @@ +{# +/** + * @file + * Default theme implementation to present a media entity. + * + * Available variables: + * - name: Name of the media. + * - content: Media content. + * + * @see template_preprocess_media() + * + * @ingroup themeable + */ +#} +<div{{ attributes }}> + {% if content %} + {{ content }} + {% endif %} +</div> diff --git a/themes/vartheme/templates/video-embed-field/video-embed-iframe.html.twig b/themes/vartheme/templates/video-embed-field/video-embed-iframe.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..b19fa3490447892e065bcaf52b344af95039756d --- /dev/null +++ b/themes/vartheme/templates/video-embed-field/video-embed-iframe.html.twig @@ -0,0 +1,7 @@ +{# +/** + * @file + * Display an iframe with alterable components. + */ +#} +<iframe{{ attributes }}{% if url is not empty %} src="{{ url }}{% if query is not empty %}?{{ query | url_encode }}{% endif %}{% if fragment is not empty %}#{{ fragment }}{% endif %}"{% endif %}> </iframe>