| @@ -1,7 +1,11 @@ | ||
| 1 | 1 | {% import 'elementor/macros' as m %} |
| 2 | -<{{ tag | e('html_tag') }} class="{{ m.render_base_classes(id, base_styles, settings, [], tag) }} {{ editor_classes | default('') }}" | |
| 2 | +{%- set tag = settings.tag | default('div') -%} | |
| 3 | +{%- if settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%} | |
| 4 | + {%- set tag = settings.link.tag | default('a') -%} | |
| 5 | +{%- endif -%} | |
| 6 | +<{{ tag }} class="{{ m.render_base_classes(id, base_styles, settings) }} {{ editor_classes | default('') }}" | |
| 3 | 7 | {{- ' ' }}{{ m.render_data_attributes(id, type, interaction_id) }} |
| 4 | 8 | {{- m.render_link_attributes(settings.link | default(null)) }} |
| 5 | 9 | {{- m.render_custom_attributes(settings, editor_attributes) }}> |
| 6 | 10 | <!-- elementor-children-placeholder --> |
| 7 | -</{{ tag | e('html_tag') }}> | |
| 11 | +</{{ tag }}> | |