| Server IP : 89.108.64.180 / Your IP : 216.73.216.60 Web Server : Apache/2.4.41 (Ubuntu) System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-root ( 1010) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/sadovaya-gelendgik.ru/wp-content/plugins/elementskit/ |
Upload File : |
<?php
namespace ElementsKit;
use ElementsKit\Export\Export_Screen;
use ElementsKit\Import\Import_Screen;
defined( 'ABSPATH' ) || exit;
/**
* ElementsKit - the God class.
* Initiate all necessary classes, hooks, configs.
*
* @since 1.1.0
*/
class Plugin{
/**
* The plugin instance.
*
* @since 1.0.0
* @access public
* @static
*
* @var Handler
*/
public static $instance = null;
/**
* Construct the plugin object.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
// Call the method for ElementsKit autoloader.
$this->registrar_autoloader();
Hooks\Register_Modules::instance();
Hooks\Register_Widgets::instance();
Libs\Framework\Attr::instance();
new Widgets\Init\Enqueue_Scripts();
// Register updater module
new Libs\Updater\Init();
Export_Screen::instance()->init();
Import_Screen::instance()->init();
// Register license module
$license = Libs\Framework\Classes\License::instance();
if($license->status() != 'valid' && apply_filters('elementskit/license/hide_banner', false) != true){
\Oxaim\Libs\Notice::instance('elementskit', 'pro-not-active')
->set_class('error')
->set_dismiss('global', (3600 * 24 * 30))
->set_message(esc_html__('Please activate ElementsKit to get automatic updates, premium support and unlimited access to the layout library of ElementsKit.', 'elementskit'))
->set_button([
'url' => self_admin_url('admin.php?page=elementskit-license'),
'text' => 'Activate License Now',
'class' => 'button-primary'
])
->call();
}
}
/**
* Autoloader.
*
* ElementsKit autoloader loads all the classes needed to run the plugin.
*
* @since 1.0.0
* @access private
*/
private function registrar_autoloader() {
require_once \ElementsKit::plugin_dir() . '/autoloader.php';
Autoloader::run();
}
/**
* Instance.
*
* Ensures only one instance of the plugin class is loaded or can be loaded.
*
* @since 1.0.0
* @access public
* @static
*
* @return Handler An instance of the class.
*/
public static function instance() {
if ( is_null( self::$instance ) ) {
// Fire when ElementsKit instance.
self::$instance = new self();
// Fire when ElementsKit was fully loaded and instantiated.
do_action( 'elementskit/loaded' );
}
return self::$instance;
}
}
// Run the instance.
Plugin::instance();