PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.0-beta1
Elementor Website Builder – more than just a page builder v3.30.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | modules/atomic-widgets/elements/atomic-button/atomic-button.html.twig +10 -11 4.0.9 → 3.30.0-beta1 View file →
@@ -1,19 +1,18 @@
1 1 {% if settings.text is not empty %}
2 - {%- set allowed_tags = '<b><strong><sup><sub><s><em><i><u><del><span><br>' %}
3 2 {% set classes = settings.classes | merge( [ base_styles.base ] ) | join(' ') %}
4 3 {% set id_attribute = settings._cssid is not empty ? 'id=' ~ settings._cssid | e('html_attr') : '' %}
5 - {% if settings.link and settings.link.attributes is not empty %}
6 - <{{ settings.link.tag | e('html_tag') }}
7 - {{ settings.link.attributes | raw }}
8 - class="{{ classes }}"
9 - data-interaction-id="{{ interaction_id }}"
10 - {{ id_attribute }} {{ settings.attributes | raw }}
4 + {% if settings.link.href %}
5 + <a
6 + href="{{ settings.link.href }}"
7 + target="{{ settings.link.target }}"
8 + class="{{ classes }}"
9 + {{ id_attribute }}
11 10 >
12 - {{ settings.text | striptags(allowed_tags) | raw }}
13 - </{{ settings.link.tag | e('html_tag') }}>
11 + {{ settings.text }}
12 + </a>
14 13 {% else %}
15 - <button class="{{ classes }}" data-interaction-id="{{ interaction_id }}" {{ id_attribute }} {{ settings.attributes | raw }}>
16 - {{ settings.text | striptags(allowed_tags) | raw }}
14 + <button class="{{ classes }}" {{ id_attribute }}>
15 + {{ settings.text }}
17 16 </button>
18 17 {% endif %}
19 18 {% endif %}