PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-beta2
Elementor Website Builder – more than just a page builder v4.1.0-beta2
4.3.4 4.3.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 All 457 releases
← All changes | modules/atomic-widgets/elements/atomic-svg/atomic-svg.html.twig +8 -14 4.0.9 → 4.1.0-beta2 View file →
@@ -1,15 +1,9 @@
1 -{%- if settings.svg.html is defined and settings.svg.html is not empty -%}
2 - {%- set classes = settings.classes | merge([base_styles.base]) | join(' ') -%}
3 - {%- set id_attribute = settings._cssid is not empty ? 'id="' ~ settings._cssid | e('html_attr') ~ '"' : '' -%}
4 - {%- if settings.link is defined and settings.link.attributes is not empty -%}
5 - <{{ settings.link.tag | e('html_tag') }} {{ settings.link.attributes | raw }} class="{{ classes }}" data-interaction-id="{{ interaction_id }}"
6 - {%- if id_attribute is not empty %} {{ id_attribute }}{% endif -%}
7 - {%- if settings.attributes is defined and settings.attributes is not empty %} {{ settings.attributes | raw }}{% endif -%}
8 - >{{ settings.svg.html | raw }}</{{ settings.link.tag | e('html_tag') }}>
9 - {%- else -%}
10 - <div class="{{ classes }}" data-interaction-id="{{ interaction_id }}"
11 - {%- if id_attribute is not empty %} {{ id_attribute }}{% endif -%}
12 - {%- if settings.attributes is defined and settings.attributes is not empty %} {{ settings.attributes | raw }}{% endif -%}
13 - >{{ settings.svg.html | raw }}</div>
14 - {%- endif -%}
1 +{% import 'elementor/macros' as m %}
2 +{%- set classes = settings.classes | merge([base_styles.base]) | join(' ') -%}
3 +{%- if settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%}
4 + <{{ settings.link.tag | default('a') | e('html_tag') }}{{ m.render_link_attributes(settings.link) }} class="{{ classes }}" data-interaction-id="{{ interaction_id }}"
5 + {{- m.render_custom_attributes(settings) }}>{{ settings.svg.html | raw }}</{{ settings.link.tag | default('a') | e('html_tag') }}>
6 +{%- else -%}
7 + <div class="{{ classes }}" data-interaction-id="{{ interaction_id }}"
8 + {{- m.render_custom_attributes(settings) }}>{{ settings.svg.html | raw }}</div>
15 9 {%- endif -%}