← All changes
|
modules/atomic-widgets/elements/atomic-tabs/atomic-tab/atomic-tab.html.twig
+19
-2
4.0.8
→
4.3.1
View file →
| @@ -1,2 +1,19 @@ | ||
| 1 | -{% set classes = ['e-con', 'e-atomic-element', base_styles.base] | merge(settings.classes | default([])) | join(' ') %} | |
| 2 | -<button class="{{ classes }} {{ editor_classes | default('') }}{{ is_active ? ' e--selected' : '' }}" data-id="{{ id }}" data-element_type="{{ type }}" data-e-type="{{ type }}" data-interaction-id="{{ interaction_id }}" data-interactions="{{ interactions | json_encode | e('html_attr') }}" role="tab" tabindex="{{ is_active ? '0' : '-1' }}" aria-selected="{{ is_active ? 'true' : 'false' }}" x-bind="tab" x-ref="{{ id }}" id="{{ tab_id }}" aria-controls="{{ tab_content_id }}" {{ editor_attributes | default('') | raw }}><!-- elementor-children-placeholder --></button> | |
| 1 | +{% import 'elementor/macros' as m %} | |
| 2 | +{% set classes = ['e-con', 'e-atomic-element', base_styles.base, m.default_tag_class('button')] | merge(settings.classes | default([])) | join(' ') %} | |
| 3 | +<button class="{{ classes }} {{ editor_classes | default('') }}{{ is_active ? ' e--selected' : '' }}" | |
| 4 | + data-id="{{ id }}" | |
| 5 | + data-element_type="{{ type }}" | |
| 6 | + data-e-type="{{ type }}" | |
| 7 | + data-interaction-id="{{ interaction_id }}" | |
| 8 | + data-interactions="{{ interactions | json_encode | e('html_attr') }}" | |
| 9 | + role="tab" | |
| 10 | + tabindex="{{ is_active ? '0' : '-1' }}" | |
| 11 | + aria-selected="{{ is_active ? 'true' : 'false' }}" | |
| 12 | + x-bind="tab" | |
| 13 | + x-ref="{{ id }}" | |
| 14 | + id="{{ tab_id }}" | |
| 15 | + aria-controls="{{ tab_content_id }}" | |
| 16 | + {% if settings.attributes is defined and settings.attributes is not empty %} | |
| 17 | + {{ settings.attributes | raw }} | |
| 18 | + {% endif %} | |
| 19 | + {{ editor_attributes | default('') | raw }}><!-- elementor-children-placeholder --></button> | |