| @@ -47,9 +47,8 @@ | ||
| 47 | 47 | * @return void |
| 48 | 48 | */ |
| 49 | 49 | public function styles() { |
| 50 | 50 | templately()->assets->enqueue( 'templately-elementor-preview', 'css/elementor.css' ); |
| 51 | - templately()->assets->enqueue( 'templately-tailwind', 'css/tailwind.css', ['templately-elementor-preview'] ); | |
| 52 | 51 | } |
| 53 | 52 | |
| 54 | 53 | /** |
| 55 | 54 | * Assets Enqueueing |
| @@ -56,9 +55,8 @@ | ||
| 56 | 55 | * @return void |
| 57 | 56 | */ |
| 58 | 57 | public function scripts() { |
| 59 | 58 | templately()->assets->enqueue( 'templately-elementor', 'css/elementor.css' ); |
| 60 | - templately()->assets->enqueue( 'templately-tailwind', 'css/tailwind.css', ['templately-elementor'] ); | |
| 61 | 59 | templately()->assets->enqueue( 'templately-elementor', 'js/elementor.js', [ 'jquery' ], true ); |
| 62 | 60 | templately()->admin->scripts( 'elementor' ); |
| 63 | 61 | } |
| 64 | 62 | |
| @@ -76,9 +74,9 @@ | ||
| 76 | 74 | * Checking the template eligibility for import. |
| 77 | 75 | * |
| 78 | 76 | * @return WP_Error|void |
| 79 | 77 | */ |
| 80 | - protected function is_eligible( $template, $types = [ 'page', 'section','block' ] ) { | |
| 78 | + protected function is_eligible( $template, $types = [ 'page', 'section' ] ) { | |
| 81 | 79 | if ( ! Helper::is_plugin_active( 'elementor-pro/elementor-pro.php' ) && |
| 82 | 80 | isset( $template['type'] ) && |
| 83 | 81 | ! in_array( $template['type'], $types, true ) |
| 84 | 82 | ) { |
| @@ -296,12 +294,8 @@ | ||
| 296 | 294 | } |
| 297 | 295 | |
| 298 | 296 | if ( ! empty( $settings ) && ! empty( $template_data['content'] ) && is_array( $template_data['content'] ) ) { |
| 299 | 297 | $template_data['content'] = \Templately\Core\Importer\Utils\ElementorSettingsMerger::merge( $template_data['content'], $settings ); |
| 300 | - } | |
| 301 | - | |
| 302 | - if(trim($template_data['type']) == 'block'){ | |
| 303 | - $template_data['type'] = 'section'; | |
| 304 | 298 | } |
| 305 | 299 | |
| 306 | 300 | $importer = new ElementorImporter; |
| 307 | 301 | $imported_template = $importer->import_in_library( $template_data ); |