PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-beta1
Elementor Website Builder – more than just a page builder v4.0.0-beta1
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 -4 4.0.9 → 4.0.0-beta1 View file →
@@ -1,11 +1,12 @@
1 1 {% if settings.image.src is not empty %}
2 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 %}
3 + {% if settings.link.href %}
5 4 <{{ settings.link.tag | e('html_tag') }}
6 - {{ settings.link.attributes | raw }}
5 + {% set linkAttr = settings.link.tag == 'a' ? 'href' : 'data-action-link' %}
6 + {{ linkAttr }}="{{ settings.link.href | raw }}"
7 7 class="{{ base_styles['link-base'] }}"
8 + target="{{ settings.link.target }}"
8 9 data-interaction-id="{{ interaction_id }}"
9 10 >
10 11 {% endif %}
11 12 <img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}"
@@ -20,8 +21,8 @@
20 21 {{ attr | e('html_attr') }}="{{ value }}"
21 22 {% endif %}
22 23 {% endfor %}
23 24 />
24 - {% if has_link %}
25 + {% if settings.link.href %}
25 26 </{{ settings.link.tag | e('html_tag') }}>
26 27 {% endif %}
27 28 {% endif %}