Fix the image shortcode

This commit is contained in:
David Lapshin
2024-05-13 17:34:32 +03:00
parent ad5d9d6ce2
commit d6e9d094cd

View File

@ -1,3 +1,5 @@
{% if url_min %}
<a href="{{ url }}">
<img class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
@ -5,4 +7,15 @@
{% if no_hover %}no-hover{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
src="{% if url_min %}{{url_min}}{% else %}{{url}}{% endif %}" />
src="{{ url_min }}" />
</a>
{% else %}
<img class="
{% if full %}full{% endif %}
{% if pixels %}pixels{% endif %}
{% if transparent %}transparent{% endif %}
{% if no_hover %}no-hover{% endif %}
"
{% if alt %}alt="{{alt}}"{% endif %}
src="{{ url }}" />
{% endif %}