← All changes
|
modules/atomic-widgets/elements/atomic-tabs/atomic-tab-content/atomic-tab-content.php
+8
-1
4.0.9
→
4.3.2
View file →
| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Tabs\Atomic_Tab_Content; |
| 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; | |
| 6 | 7 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; |
| 7 | 8 | use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type; |
| 8 | 9 | use Elementor\Modules\AtomicWidgets\Styles\Style_Definition; |
| 9 | 10 | use Elementor\Modules\AtomicWidgets\Styles\Style_Variant; |
| @@ -24,11 +25,13 @@ | ||
| 24 | 25 | use Has_Element_Template; |
| 25 | 26 | |
| 26 | 27 | const BASE_STYLE_KEY = 'base'; |
| 27 | 28 | |
| 29 | + public static $widget_description = 'A tab content panel. Accepts any widget type inside. The index of this e-tab-content MUST match the index of the corresponding e-tab in the e-tabs-menu.'; | |
| 30 | + | |
| 28 | 31 | public function __construct( $data = [], $args = null ) { |
| 29 | 32 | parent::__construct( $data, $args ); |
| 30 | - $this->meta( 'llm_support', false ); | |
| 33 | + $this->meta( 'permanently_locked', true ); | |
| 31 | 34 | } |
| 32 | 35 | |
| 33 | 36 | public static function get_type() { |
| 34 | 37 | return 'e-tab-content'; |
| @@ -51,8 +54,12 @@ | ||
| 51 | 54 | } |
| 52 | 55 | |
| 53 | 56 | public function should_show_in_panel() { |
| 54 | 57 | return false; |
| 58 | + } | |
| 59 | + | |
| 60 | + public static function get_computed_html_tag( array $settings ): string { | |
| 61 | + return Html_Tag_Computer::compute( $settings, 'div' ); | |
| 55 | 62 | } |
| 56 | 63 | |
| 57 | 64 | protected static function define_props_schema(): array { |
| 58 | 65 | return [ |