← All changes
|
modules/atomic-widgets/elements/atomic-svg/atomic-svg.html.twig
+8
-5
4.3.2
→
4.1.0-dev3
View file →
| @@ -1,6 +1,9 @@ | ||
| 1 | 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 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') }}> | |
| 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 -%} | |