| 1 |
{% if settings.image.src is not empty %} |
| 2 |
{% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %} |
| 3 |
{% if settings.link.href %} |
| 4 |
<a href="{{ settings.link.href }}" class="{{ base_styles['link-base'] }}" target="{{ settings.link.target }}"> |
| 5 |
{% endif %} |
| 6 |
<img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}" {{ id_attribute }} |
| 7 |
{% for attr, value in settings.image %} |
| 8 |
{% if attr == 'src' %} |
| 9 |
src="{{ value | e('full_url') }}" |
| 10 |
{% else %} |
| 11 |
{{ attr | e('html_attr') }}="{{ value }}" |
| 12 |
{% endif %} |
| 13 |
{% endfor %} |
| 14 |
/> |
| 15 |
{% if settings.link.href %} |
| 16 |
</a> |
| 17 |
{% endif %} |
| 18 |
{% endif %} |
| 19 |
|