PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.0-beta4
Elementor Website Builder – more than just a page builder v3.29.0-beta4
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig +5 -15 4.0.9 → 3.29.0-beta4 View file →
@@ -1,19 +1,9 @@
1 1 {% if settings.image.src is not empty %}
2 - {% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %}
3 - {% set has_link = settings.link and settings.link.attributes is not empty %}
4 - {% if has_link %}
5 - <{{ settings.link.tag | e('html_tag') }}
6 - {{ settings.link.attributes | raw }}
7 - class="{{ base_styles['link-base'] }}"
8 - data-interaction-id="{{ interaction_id }}"
9 - >
2 + {% if settings.link.href %}
3 + <a href="{{ settings.link.href | e('full_url') }}" class="{{ base_styles['link-base'] }}" target="{{ settings.link.target }}">
10 4 {% endif %}
11 - <img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}"
12 - {% if not settings.link.href %}
13 - data-interaction-id="{{ interaction_id }}"
14 - {% endif %}
15 - {{ id_attribute }} {{ settings.attributes | raw }}
5 + <img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}"
16 6 {% for attr, value in settings.image %}
17 7 {% if attr == 'src' %}
18 8 src="{{ value | e('full_url') }}"
19 9 {% else %}
@@ -20,8 +10,8 @@
20 10 {{ attr | e('html_attr') }}="{{ value }}"
21 11 {% endif %}
22 12 {% endfor %}
23 13 />
24 - {% if has_link %}
25 - </{{ settings.link.tag | e('html_tag') }}>
14 + {% if settings.link.href %}
15 + </a>
26 16 {% endif %}
27 17 {% endif %}