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