← All changes
|
modules/atomic-widgets/elements/atomic-heading/atomic-heading.html.twig
+4
-4
4.2.2
→
4.3.1
View file →
| @@ -1,14 +1,14 @@ | ||
| 1 | 1 | {% import 'elementor/macros' as m %} |
| 2 | -{%- set classes = settings.classes | merge( [ base_styles.base ] ) | join(' ') -%} | |
| 3 | -<{{ settings.tag | e('html_tag') }} data-interaction-id="{{ interaction_id }}" class="{{ classes }}" | |
| 2 | +{%- set classes = settings.classes | merge( [ base_styles.base, m.default_tag_class(tag) ] ) | join(' ') -%} | |
| 3 | +<{{ tag | e('html_tag') }} data-interaction-id="{{ interaction_id }}" class="{{ classes }}" | |
| 4 | 4 | {{- m.render_custom_attributes(settings) }}> |
| 5 | 5 | {%- set allowed_tags = '<b><strong><sup><sub><s><em><i><u><a><del><span><br>' -%} |
| 6 | 6 | {%- if settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%} |
| 7 | 7 | <{{ settings.link.tag | default('a') | e('html_tag') }} |
| 8 | - {{- m.render_link_attributes(settings.link) }} class="{{ base_styles['link-base'] }}"> | |
| 8 | + {{- m.render_link_attributes(settings.link) }} class="{{ base_styles['link-base'] }} {{ m.default_tag_class(settings.link.tag | default('a')) }}"> | |
| 9 | 9 | {{ settings.title | striptags(allowed_tags) | raw }} |
| 10 | 10 | </{{ settings.link.tag | default('a') | e('html_tag') }}> |
| 11 | 11 | {%- else -%} |
| 12 | 12 | {{ settings.title | striptags(allowed_tags) | raw }} |
| 13 | 13 | {%- endif %} |
| 14 | -</{{ settings.tag | e('html_tag') }}> | |
| 14 | +</{{ tag | e('html_tag') }}> | |