first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{% if settings.text is not empty %}
|
||||
{%- set allowed_tags = '<b><strong><sup><sub><s><em><i><u><del><span><br>' %}
|
||||
{% set classes = settings.classes | merge( [ base_styles.base ] ) | join(' ') %}
|
||||
{% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %}
|
||||
{% if settings.link and settings.link.attributes is not empty %}
|
||||
<{{ settings.link.tag | e('html_tag') }}
|
||||
{{ settings.link.attributes | raw }}
|
||||
class="{{ classes }}"
|
||||
data-interaction-id="{{ interaction_id }}"
|
||||
{{ id_attribute }} {{ settings.attributes | raw }}
|
||||
>
|
||||
{{ settings.text | striptags(allowed_tags) | raw }}
|
||||
</{{ settings.link.tag | e('html_tag') }}>
|
||||
{% else %}
|
||||
<button class="{{ classes }}" data-interaction-id="{{ interaction_id }}" {{ id_attribute }} {{ settings.attributes | raw }}>
|
||||
{{ settings.text | striptags(allowed_tags) | raw }}
|
||||
</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user