← All changes
|
modules/atomic-widgets/elements/flexbox/flexbox.php
+1
-10
4.2.2
→
3.35.7
View file →
| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Modules\AtomicWidgets\Elements\Flexbox; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base; |
| 5 | -use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template; | |
| 6 | 5 | use Elementor\Modules\AtomicWidgets\PropDependencies\Manager as Dependency_Manager; |
| 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; |
| @@ -21,10 +20,8 @@ | ||
| 21 | 20 | exit; // Exit if accessed directly. |
| 22 | 21 | } |
| 23 | 22 | |
| 24 | 23 | class Flexbox extends Atomic_Element_Base { |
| 25 | - use Has_Element_Template; | |
| 26 | - | |
| 27 | 24 | const BASE_STYLE_KEY = 'base'; |
| 28 | 25 | |
| 29 | 26 | public function __construct( $data = [], $args = null ) { |
| 30 | 27 | parent::__construct( $data, $args ); |
| @@ -43,9 +40,9 @@ | ||
| 43 | 40 | return esc_html__( 'Flexbox', 'elementor' ); |
| 44 | 41 | } |
| 45 | 42 | |
| 46 | 43 | public function get_keywords() { |
| 47 | - return [ 'ato', 'atom', 'atoms', 'atomic', 'layout' ]; | |
| 44 | + return [ 'ato', 'atom', 'atoms', 'atomic' ]; | |
| 48 | 45 | } |
| 49 | 46 | |
| 50 | 47 | public function get_icon() { |
| 51 | 48 | return 'eicon-flexbox'; |
| @@ -182,12 +179,6 @@ | ||
| 182 | 179 | $attributes = array_merge( $attributes, $link_attributes ); |
| 183 | 180 | } |
| 184 | 181 | |
| 185 | 182 | $this->add_render_attribute( '_wrapper', array_merge( $initial_attributes, $attributes ) ); |
| 186 | - } | |
| 187 | - | |
| 188 | - protected function get_templates(): array { | |
| 189 | - return [ | |
| 190 | - 'elementor/elements/flexbox' => __DIR__ . '/flexbox.html.twig', | |
| 191 | - ]; | |
| 192 | 183 | } |
| 193 | 184 | } |