Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -6,6 +6,8 @@
|
|||
* 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()
|
||||
|
@ -13,18 +15,22 @@
|
|||
* @ingroup themeable
|
||||
*/
|
||||
#}
|
||||
<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. #}
|
||||
{% if output_image_tag %}
|
||||
{{ img_element }}
|
||||
</picture>
|
||||
{% 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