PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.0-dev4
Elementor Website Builder – more than just a page builder v4.0.0-dev4
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 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/atomic-widgets/elements/atomic-tabs/atomic-tab/atomic-tab.php +10 -10 4.3.0-beta2 → 4.0.0-dev4 View file →
@@ -2,9 +2,8 @@
2 2 namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Tabs\Atomic_Tab;
3 3
4 4 use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base;
5 5 use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template;
6 -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
7 6 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
8 7 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
9 8 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
10 9 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
@@ -10,9 +9,9 @@
10 9 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
11 10 use Elementor\Modules\AtomicWidgets\Styles\Style_States;
12 11 use Elementor\Modules\AtomicWidgets\Controls\Section;
13 12 use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type;
14 -use Elementor\Modules\AtomicWidgets\PropTypes\Escaped_Html_Prop_Type;
13 +use Elementor\Modules\AtomicWidgets\PropTypes\Html_V3_Prop_Type;
15 14 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Paragraph\Atomic_Paragraph;
16 15 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
17 16 use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type;
18 17 use Elementor\Modules\AtomicWidgets\Elements\Base\Render_Context;
@@ -28,13 +27,11 @@
28 27 use Has_Element_Template;
29 28
30 29 const BASE_STYLE_KEY = 'base';
31 30
32 - public static $widget_description = 'A tab trigger element. Contains a single heading or paragraph that serves as the tab label. The index of this e-tab MUST match the index of the corresponding e-tab-content in the e-tabs-content-area.';
33 -
34 31 public function __construct( $data = [], $args = null ) {
35 32 parent::__construct( $data, $args );
36 - $this->meta( 'permanently_locked', true );
33 + $this->meta( 'llm_support', false );
37 34 }
38 35
39 36 public static function get_type() {
40 37 return 'e-tab';
@@ -59,12 +56,8 @@
59 56 public function should_show_in_panel() {
60 57 return false;
61 58 }
62 59
63 - public static function get_computed_html_tag( array $settings ): string {
64 - return Html_Tag_Computer::compute( $settings, 'button' );
65 - }
66 -
67 60 protected static function define_props_schema(): array {
68 61 return [
69 62 'classes' => Classes_Prop_Type::make()
70 63 ->default( [] ),
@@ -155,13 +148,20 @@
155 148 'tabindex' => '-1',
156 149 ];
157 150 }
158 151
152 + protected function define_default_html_tag() {
153 + return 'button';
154 + }
155 +
159 156 protected function define_default_children() {
160 157 return [
161 158 Atomic_Paragraph::generate()
162 159 ->settings( [
163 - 'paragraph' => Escaped_Html_Prop_Type::generate( 'Tab' ),
160 + 'paragraph' => Html_V3_Prop_Type::generate( [
161 + 'content' => String_Prop_Type::generate( 'Tab' ),
162 + 'children' => [],
163 + ] ),
164 164 'tag' => String_Prop_Type::generate( 'span' ),
165 165 ] )
166 166 ->build(),
167 167 ];