Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation to display a formatted responsive image field.
|
||||
*
|
||||
* Available variables:
|
||||
* - responsive_image: A collection of responsive image data.
|
||||
* - url: An optional URL the image can be linked to.
|
||||
*
|
||||
* @see template_preprocess_responsive_image_formatter()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{% if url %}
|
||||
<a href="{{ url }}">{{ responsive_image }}</a>
|
||||
{% else %}
|
||||
{{ responsive_image }}
|
||||
{% endif %}
|
|
@ -0,0 +1,36 @@
|
|||
{#
|
||||
/**
|
||||
* @file
|
||||
* Default theme implementation of a responsive image.
|
||||
*
|
||||
* Available variables:
|
||||
* - sources: The attributes of the <source> tags for this <picture> tag.
|
||||
* - img_element: The controlling image, with the fallback image in srcset.
|
||||
* - output_image_tag: Whether or not to output an <img> tag instead of a
|
||||
* <picture> tag.
|
||||
*
|
||||
* @see template_preprocess()
|
||||
* @see template_preprocess_responsive_image()
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
{% if output_image_tag %}
|
||||
{{ img_element }}
|
||||
{% else %}
|
||||
<picture>
|
||||
{% if sources %}
|
||||
{#
|
||||
Internet Explorer 9 doesn't recognise source elements that are wrapped in
|
||||
picture tags. See http://scottjehl.github.io/picturefill/#ie9
|
||||
#}
|
||||
<!--[if IE 9]><video style="display: none;"><![endif]-->
|
||||
{% for source_attributes in sources %}
|
||||
<source{{ source_attributes }}/>
|
||||
{% endfor %}
|
||||
<!--[if IE 9]></video><![endif]-->
|
||||
{% endif %}
|
||||
{# The controlling image, with the fallback image in srcset. #}
|
||||
{{ img_element }}
|
||||
</picture>
|
||||
{% endif %}
|
Reference in a new issue