| Server IP : 146.190.157.162 / Your IP : 216.73.217.6 Web Server : Apache System : Linux ubuntu-s-2vcpu-4gb-amd-sfo3-01-KIT-DIGITAL 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 User : businessweek ( 639) PHP Version : 8.2.10-2ubuntu2.2 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_signal,pcntl_signal_dispatch,pcntl_getpriority,pcntl_setpriority,dl,putenv,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/conde/wp-content/plugins/template-kit-import/inc/ |
Upload File : |
<?php
/**
* Template Kit Import:
*
* This starts things up. Registers the SPL and starts up some classes.
*
* @package Envato/Template_Kit_Import
* @since 0.0.2
*/
namespace Template_Kit_Import;
use Template_Kit_Import\Backend\Welcome;
use Template_Kit_Import\Utils\Base;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Envato Elements plugin.
*
* The main plugin handler class is responsible for initializing Envato Elements. The
* class registers and all the components required to run the plugin.
*
* @since 0.0.2
*/
class Plugin extends Base {
/**
* Initializing Envato Elements plugin.
*
* @since 0.0.2
* @access private
*/
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'plugins_loaded', array( $this, 'db_upgrade_check' ) );
}
/**
* Sets up the admin menu options.
*
* @since 0.0.2
* @access public
*/
public function admin_menu() {
Welcome::get_instance()->admin_menu();
}
/**
* Sets up the admin menu options.
*
* @since 0.0.2
* @access public
*/
public function admin_init() {
}
public function db_upgrade_check() {
if ( is_admin() && get_option( 'template_kit_import_version' ) !== ENVATO_TEMPLATE_KIT_IMPORT_VER ) {
$this->activation();
}
}
public function activation() {
update_option( 'template_kit_import_version', ENVATO_TEMPLATE_KIT_IMPORT_VER );
if ( ! get_option( 'template_kit_import_install_time' ) ) {
update_option( 'template_kit_import_install_time', time() );
}
}
}