8 lines
335 B
Twig

{% macro variants(fullImage,preview=null,alt="",height=300,width=400,class="") %}
{% set preview = preview!="" ? preview : fullImage %}
<div data-href="{{ fullImage }}" class="progressive replace {{class}}">
<img class="preview" src="{{ preview }}" alt="{{ alt}}" height="{{ height }}" width="{{ width }}">
</div>
{% endmacro %}