File "anywhere-elementor-pro.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/anywhere-elementor-pro.2.15.5/anywhere-elementor-pro.php
File
size: 1.77 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
if (!defined('ABSPATH')) {
exit;
}
define('AE_PRO_VERSION', '2.15.5');
define('AE_PRO_URL', plugins_url('/', __FILE__));
define('AE_PRO_PATH', plugin_dir_path(__FILE__));
define('AE_PRO_BASE', plugin_basename(__FILE__));
define('AE_PRO_FILE', __FILE__);
define('AE_PRO_SCRIPT_SUFFIX', defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min');
define('AEP_PHP_VERSION_REQUIRED', '5.6');
add_action('plugins_loaded', 'ae_pro_load_plugin_textdomain');
if (version_compare(PHP_VERSION, AEP_PHP_VERSION_REQUIRED, '<')) {
add_action('admin_notices', 'aep_php_fail');
add_action('admin_init', 'aep_deactivate');
return;
}
function aep_php_fail()
{
global $php_version_required;
$class = 'notice notice-error';
$message = sprintf(__('AnyWhere Elementor Pro needs at least PHP version %s to work properly. We deactivated the plugin for now.', 'ae-pro '), AEP_PHP_VERSION_REQUIRED);
printf('<div class="%1$s"><p>%2$s</p></div>', esc_attr($class), esc_html($message));
}
function aep_deactivate()
{
deactivate_plugins(plugin_basename(__FILE__));
}
function aep_activate()
{
\Elementor\Plugin::$instance->files_manager->clear_cache();
}
register_activation_hook(__FILE__, 'aep_activate');
global $ae_template;
$ae_template = get_option('template');
function ae_pro_load_plugin_textdomain()
{
load_plugin_textdomain('ae-pro');
}
if (!function_exists('is_plugin_active')) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}
if (!function_exists('_is_elementor_installed')) {
function _is_elementor_installed()
{
$file_path = 'elementor/elementor.php';
$installed_plugins = get_plugins();
return isset($installed_plugins[$file_path]);
}
}
require_once AE_PRO_PATH . 'vendor/autoload.php';
require AE_PRO_PATH . 'includes/bootstrap.php';