| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Breakpoints\Manager as Breakpoints_Manager; |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base; |
| 6 | 6 | use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template; |
| 7 | -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer; | |
| 8 | 7 | use Elementor\Modules\AtomicWidgets\PropDependencies\Manager as Dependency_Manager; |
| 9 | 8 | use Elementor\Modules\AtomicWidgets\PropTypes\Grid_Track_Size_Prop_Type; |
| 10 | 9 | use Elementor\Modules\AtomicWidgets\PropTypes\Layout_Direction_Prop_Type; |
| 11 | 10 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Boolean_Prop_Type; |
| @@ -30,10 +29,8 @@ | ||
| 30 | 29 | use Has_Element_Template; |
| 31 | 30 | |
| 32 | 31 | const BASE_STYLE_KEY = 'base'; |
| 33 | 32 | |
| 34 | - public static $widget_description = 'CSS grid layout. Always set grid-template-rows to match the actual number of rows the children fill. Empty fr row tracks do not collapse and render as an equal-height empty band below the content.'; | |
| 35 | - | |
| 36 | 33 | public function __construct( $data = [], $args = null ) { |
| 37 | 34 | parent::__construct( $data, $args ); |
| 38 | 35 | $this->meta( 'is_container', true ); |
| 39 | 36 | } |
| @@ -50,9 +47,9 @@ | ||
| 50 | 47 | return esc_html__( 'Grid', 'elementor' ); |
| 51 | 48 | } |
| 52 | 49 | |
| 53 | 50 | public function get_keywords() { |
| 54 | - return [ 'ato', 'atom', 'atoms', 'atomic', 'container', 'wrapper', 'section', 'row', 'column', 'grid', 'columns', 'gallery', 'layout' ]; | |
| 51 | + return [ 'ato', 'atom', 'atoms', 'atomic', 'grid', 'layout' ]; | |
| 55 | 52 | } |
| 56 | 53 | |
| 57 | 54 | public function get_icon() { |
| 58 | 55 | return 'eicon-library-grid'; |
| @@ -57,12 +54,8 @@ | ||
| 57 | 54 | public function get_icon() { |
| 58 | 55 | return 'eicon-library-grid'; |
| 59 | 56 | } |
| 60 | 57 | |
| 61 | - public static function get_computed_html_tag( array $settings ): string { | |
| 62 | - return Html_Tag_Computer::compute( $settings, 'div' ); | |
| 63 | - } | |
| 64 | - | |
| 65 | 58 | protected static function define_props_schema(): array { |
| 66 | 59 | $tag_dependencies = Dependency_Manager::make( Dependency_Manager::RELATION_AND ) |
| 67 | 60 | ->where( [ |
| 68 | 61 | 'operator' => 'ne', |
| @@ -87,9 +80,9 @@ | ||
| 87 | 80 | ->default( [] ), |
| 88 | 81 | 'tag' => String_Prop_Type::make() |
| 89 | 82 | ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'a', 'button' ] ) |
| 90 | 83 | ->default( 'div' ) |
| 91 | - ->description( 'The HTML tag for the grid container. One of: div, header, section, article, aside, footer, a (link), or button.' ) | |
| 84 | + ->description( 'The HTML tag for the grid container. Could be div, header, section, article, aside, footer, or a (link).' ) | |
| 92 | 85 | ->set_dependencies( $tag_dependencies ), |
| 93 | 86 | 'link' => Link_Prop_Type::make(), |
| 94 | 87 | 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ), |
| 95 | 88 | ]; |