PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.4
Elementor Website Builder – more than just a page builder v3.31.4
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 4.0.8 All 454 releases
← All changes | modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig +18 -19 4.3.0 → 3.31.4 View file →
@@ -1,19 +1,18 @@
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 -{%- set link_tag = settings.link.tag | default('a') -%}
4 -{%- if has_link -%}
5 - <{{ link_tag | e('html_tag') }}
6 - {{- m.render_link_attributes(settings.link) }} class="{{ base_styles['link-base'] }} {{ m.default_tag_class(link_tag) }}" data-interaction-id="{{ interaction_id }}"
7 - >
8 -{%- endif %}
9 -<img class="{{ base_styles['base'] }} {{ m.default_tag_class('img') }} {{ settings.classes | join(' ') }}"
10 - {%- if not has_link %} data-interaction-id="{{ interaction_id }}"{% endif -%}
11 - {{- m.render_custom_attributes(settings) }}
12 - {%- for attr, value in settings.image -%}
13 - {%- if attr == 'src' %} src="{{ value | e('full_url') }}"
14 - {%- else %} {{ attr | e('html_attr') }}="{{ value }}"{% endif -%}
15 - {%- endfor %}
16 -/>
17 -{%- if has_link %}
18 - </{{ settings.link.tag | default('a') | e('html_tag') }}>
19 -{%- 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.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 }} {{ settings.attributes | raw }}
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 %}