PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.3
Elementor Website Builder – more than just a page builder v4.0.3
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 +26 -18 4.1.0-beta3 → 4.0.3 View file →
@@ -1,18 +1,26 @@
1 -{% import 'elementor/macros' as m %}
2 -{%- set has_link = settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%}
3 -{%- if has_link -%}
4 - <{{ settings.link.tag | default('a') | e('html_tag') }}
5 - {{- m.render_link_attributes(settings.link) }} class="{{ base_styles['link-base'] }}" data-interaction-id="{{ interaction_id }}"
6 - >
7 -{%- endif %}
8 -<img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}"
9 - {%- if not has_link %} data-interaction-id="{{ interaction_id }}"{% endif -%}
10 - {{- m.render_custom_attributes(settings) }}
11 - {%- for attr, value in settings.image -%}
12 - {%- if attr == 'src' %} src="{{ value | e('full_url') }}"
13 - {%- else %} {{ attr | e('html_attr') }}="{{ value }}"{% endif -%}
14 - {%- endfor %}
15 -/>
16 -{%- if has_link %}
17 - </{{ settings.link.tag | default('a') | e('html_tag') }}>
18 -{%- endif %}
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 and settings.link.attributes is not empty %}
4 + <{{ settings.link.tag | e('html_tag') }}
5 + {{ settings.link.attributes | raw }}
6 + class="{{ base_styles['link-base'] }}"
7 + data-interaction-id="{{ interaction_id }}"
8 + >
9 + {% endif %}
10 + <img class="{{ base_styles['base'] }} {{ settings.classes | join(' ') }}"
11 + {% if not settings.link.href %}
12 + data-interaction-id="{{ interaction_id }}"
13 + {% endif %}
14 + {{ id_attribute }} {{ settings.attributes | raw }}
15 + {% for attr, value in settings.image %}
16 + {% if attr == 'src' %}
17 + src="{{ value | e('full_url') }}"
18 + {% else %}
19 + {{ attr | e('html_attr') }}="{{ value }}"
20 + {% endif %}
21 + {% endfor %}
22 + />
23 + {% if settings.link.href %}
24 + </{{ settings.link.tag | e('html_tag') }}>
25 + {% endif %}
26 +{% endif %}