{# /** * @file * Theme override of a responsive image. * * Available variables: * - sources: The attributes of the tags for this tag. * - img_element: The controlling image, with the fallback image in srcset. * - output_image_tag: Whether or not to output an tag instead of a * tag. * * @see template_preprocess() * @see template_preprocess_responsive_image() */ #} {% if output_image_tag %} {{ img_element }} {% else %} {% if sources %} {# Internet Explorer 9 doesn't recognise source elements that are wrapped in picture tags. See http://scottjehl.github.io/picturefill/#ie9 #} {% for source_attributes in sources %} {% endfor %} {% endif %} {# The controlling image, with the fallback image in srcset. #} {{ img_element }} {% endif %}