Skip to content
Snippets Groups Projects
Commit 47f553bc authored by abu zakham's avatar abu zakham Committed by Rajab Natshah
Browse files

Issue #2917072 by abu-zakham: Added Media and entity embed templates to fix...

Issue #2917072 by abu-zakham: Added Media and entity embed templates to fix the generate of weird HTML
parent 59510e8c
No related branches found
No related tags found
No related merge requests found
{#
/**
* @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>
{#
/**
* @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>
{#
/**
* @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 %}>&nbsp;</iframe>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment