| 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 |
|