Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Elementor\App\Modules\ImportExport\Runners\Export; use Elementor\Plugin; ..
Decoded Output download
<?php
namespace Elementor\App\Modules\ImportExport\Runners\Export;
use Elementor\Plugin;
class Site_Settings extends Export_Runner_Base {
public static function get_name() : string {
return 'site-settings';
}
public function should_export( array $data ) {
return (
isset( $data['include'] ) &&
in_array( 'settings', $data['include'], true )
);
}
public function export( array $data ) {
$kit = Plugin::$instance->kits_manager->get_active_kit();
$kit_data = $kit->get_export_data();
$kit_tabs = $kit->get_tabs();
$excluded_kit_settings_keys = [
'site_name',
'site_description',
'site_logo',
'site_favicon',
];
foreach ( $excluded_kit_settings_keys as $setting_key ) {
unset( $kit_data['settings'][ $setting_key ] );
}
unset( $kit_tabs['settings-site-identity'] );
$kit_tabs = array_keys( $kit_tabs );
$manifest_data['site-settings'] = $kit_tabs;
return [
'files' => [
'path' => 'site-settings',
'data' => $kit_data,
],
'manifest' => [
$manifest_data,
],
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Elementor\App\Modules\ImportExport\Runners\Export;
use Elementor\Plugin;
class Site_Settings extends Export_Runner_Base {
public static function get_name() : string {
return 'site-settings';
}
public function should_export( array $data ) {
return (
isset( $data['include'] ) &&
in_array( 'settings', $data['include'], true )
);
}
public function export( array $data ) {
$kit = Plugin::$instance->kits_manager->get_active_kit();
$kit_data = $kit->get_export_data();
$kit_tabs = $kit->get_tabs();
$excluded_kit_settings_keys = [
'site_name',
'site_description',
'site_logo',
'site_favicon',
];
foreach ( $excluded_kit_settings_keys as $setting_key ) {
unset( $kit_data['settings'][ $setting_key ] );
}
unset( $kit_tabs['settings-site-identity'] );
$kit_tabs = array_keys( $kit_tabs );
$manifest_data['site-settings'] = $kit_tabs;
return [
'files' => [
'path' => 'site-settings',
'data' => $kit_data,
],
'manifest' => [
$manifest_data,
],
];
}
}
Function Calls
None |
Stats
MD5 | 7a110034c2bfebccf48eb508f7154ac1 |
Eval Count | 0 |
Decode Time | 111 ms |