← All changes
|
modules/atomic-widgets/elements/atomic-svg/atomic-svg.html.twig
+5
-8
4.2.2
→
4.3.2
View file →
| @@ -1,9 +1,6 @@ | ||
| 1 | 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> | |
| 9 | -{%- endif -%} | |
| 2 | +{%- set has_link = settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%} | |
| 3 | +{%- set classes = settings.classes | merge([base_styles.base, m.default_tag_class(tag)]) | join(' ') -%} | |
| 4 | +<{{ tag | e('html_tag') }} | |
| 5 | + {%- if has_link %}{{ m.render_link_attributes(settings.link) }}{% endif %} class="{{ classes }}" data-interaction-id="{{ interaction_id }}" | |
| 6 | + {{- m.render_custom_attributes(settings) }}>{{ settings.svg.html | raw }}</{{ tag | e('html_tag') }}> | |