PluginProbe
Elementor Website Builder – more than just a page builder / 3.22.2
Elementor Website Builder – more than just a page builder v3.22.2
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 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / app / modules / import-export / compatibility / kit-library.php

kit-library.php in Elementor Website Builder – more than just a page builder 3.22.2, at app/modules/import-export/compatibility/kit-library.php

30 lines 753 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\App\Modules\ImportExport\Compatibility;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly
7 }
8
9 class Kit_Library extends Base_Adapter {
10 public static function is_compatibility_needed( array $manifest_data, array $meta ) {
11 return ! empty( $meta['referrer'] ) && 'kit-library' === $meta['referrer'];
12 }
13
14 public function adapt_manifest( array $manifest_data ) {
15 if ( ! empty( $manifest_data['content']['page'] ) ) {
16 foreach ( $manifest_data['content']['page'] as & $page ) {
17 $page['thumbnail'] = false;
18 }
19 }
20
21 if ( ! empty( $manifest_data['templates'] ) ) {
22 foreach ( $manifest_data['templates'] as & $template ) {
23 $template['thumbnail'] = false;
24 }
25 }
26
27 return $manifest_data;
28 }
29 }
30