����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace EA11y\Modules\Legacy;
use EA11y\Classes\Module_Base;
use EA11y\Modules\Legacy\Components\Customizer;
use EA11y\Modules\Legacy\Components\Settings;
use EA11y\Modules\Legacy\Components\Upgrade;
use EA11y\Modules\Connect\Module as Connect;
use EA11y\Plugin;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends Module_Base {
public function get_name(): string {
return 'legacy';
}
public static function component_list() : array {
return [
'Frontend',
'Customizer',
'Settings',
'Admin',
'Upgrade',
];
}
public function backwards_compatibility() {
if ( false === get_option( POJO_A11Y_CUSTOMIZER_OPTIONS, false ) ) {
/**
* @var Customizer $customizer
*/
$customizer = $this->get_components()['Customizer'];
$customizer_fields = $customizer->get_customizer_fields();
$options = [];
$mods = get_theme_mods();
foreach ( $customizer_fields as $field ) {
if ( isset( $mods[ $field['id'] ] ) ) {
$options[ $field['id'] ] = $mods[ $field['id'] ];
} else {
$options[ $field['id'] ] = $field['std'];
}
}
update_option( POJO_A11Y_CUSTOMIZER_OPTIONS, $options );
}
}
public function add_elementor_support() {
$this->register_components( [ 'Elementor' ] );
}
public static function get_settings() {
/**
* @var Settings $settings
*/
return Plugin::instance()->modules_manager->get_modules( 'Legacy' )->get_component( 'Settings' );
}
public static function is_active(): bool {
$connect = new Connect();
if (
( Upgrade::has_legacy_data() && ! Upgrade::is_upgraded() && ! $connect::is_connected() )
|| Upgrade::is_reverted()
) {
return true;
}
return false;
}
/**
* Module constructor.
*/
public function __construct() {
$this->register_components();
add_action( 'admin_init', [ $this, 'backwards_compatibility' ] );
add_action( 'elementor/init', [ $this, 'add_elementor_support' ] );
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| assets | Folder | 0755 |
|
|
| components | Folder | 0755 |
|
|
| notices | Folder | 0755 |
|
|
| module.php | File | 1.92 KB | 0644 |
|