{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% if options.picture is defined %}
    <picture>
        {% for source in options.picture.source %}
            <source {% for name, value in source %}{{ name }}="{{ value }}" {% endfor %}/>
        {% endfor %}
        <img {% for name, value in options.picture.img %}{{ name }}="{{ value }}" {% endfor %}/>
    </picture>
{% else %}
    <img {% for name, value in options %}{{ name }}="{{ value }}" {% endfor %}/>
{% endif %}
