← All changes
|
modules/atomic-widgets/elements/atomic-heading/atomic-heading.html.twig
+6
-16
4.0.9
→
3.29.0-beta4
View file →
| @@ -1,21 +1,11 @@ | ||
| 1 | 1 | {% if settings.title is not empty %} |
| 2 | - {% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %} | |
| 3 | - <{{ settings.tag | e('html_tag') }} | |
| 4 | - data-interaction-id="{{ interaction_id }}" | |
| 5 | - class="{{ settings.classes | merge( [ base_styles.base ] ) | join(' ') }}" | |
| 6 | - {{ id_attribute }} | |
| 7 | - {{ settings.attributes | raw }} | |
| 8 | - > | |
| 9 | - {% set allowed_tags = '<b><strong><sup><sub><s><em><i><u><a><del><span><br>' %} | |
| 10 | - | |
| 11 | - {% if settings.link and settings.link.attributes is not empty %} | |
| 12 | - <{{ settings.link.tag | e('html_tag') }} | |
| 13 | - {{ settings.link.attributes | raw }} | |
| 14 | - class="{{ base_styles['link-base'] }}"> | |
| 15 | - {{ settings.title | striptags(allowed_tags) | raw }} | |
| 16 | - </{{ settings.link.tag | e('html_tag') }}> | |
| 2 | + <{{ settings.tag | e('html_tag') }} class="{{ settings.classes | merge( [ base_styles.base ] ) | join(' ') }}"> | |
| 3 | + {% if settings.link.href %} | |
| 4 | + <a href="{{ settings.link.href | e('full_url') }}" target="{{ settings.link.target }}" class="{{ base_styles['link-base'] }}"> | |
| 5 | + {{ settings.title }} | |
| 6 | + </a> | |
| 17 | 7 | {% else %} |
| 18 | - {{ settings.title | striptags(allowed_tags) | raw }} | |
| 8 | + {{ settings.title }} | |
| 19 | 9 | {% endif %} |
| 20 | 10 | </{{ settings.tag | e('html_tag') }}> |
| 21 | 11 | {% endif %} |