| Server IP : 185.88.153.241 / Your IP : 216.73.216.220 Web Server : LiteSpeed System : Linux server312.bertina.biz 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64 User : ( 1405) PHP Version : 7.0.33 Disable Function : mail, apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd, exec, fp, highlight_file, ini_alter, ini_restore, inject_code, mysql_pconnect, openlog, passthru, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,dl,leak,crack_check,crack_closedict,crack_getlastmessage,crack_opendict,symlink,link,escapeshellarg,parse_ini_file, ln, show_source, pclose, parse_perms, mysql_list_dbs,stream_select,mysql_list_dbs,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,socket_strerror,socket_clear_error,socket_close,socket_connect,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_read,socket_recv,socket_recvfrom,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_write,readlink,pfsockopen,pcntl_exec,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,fpassthru, posix_access, posix_ctermid, posix_errno, posix_get_last_error, posix_getcwd, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgrp, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_initgroups, posix_isatty, posix_mknod, posix_setegid, posix_seteuid, posix_strerror, posix_times, posix_ttyname, diskfreespace, disk_free_space, disk_total_space, sys_getloadavg,get_current_user MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/newhome1/public_html/wp-content/plugins/elementskit-lite/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || exit;
if(!class_exists('ElementsKit')):
final class ElementsKit{
/**
* Plugin Version
*
* @since 1.0.0
* @var string The plugin version.
*/
const VERSION = '1.5.6';
/**
* Package type
*
* @since 1.1.0
* @var string The plugin purchase type [pro/ free].
*/
const PACKAGE_TYPE = 'free';
/**
* Product ID
*
* @since 1.2.6
* @var string The plugin ID in our server.
*/
const PRODUCT_ID = '9';
/**
* Minimum Elementor Version
*
* @since 1.0.0
* @var string Minimum Elementor version required to run the plugin.
*/
const MINIMUM_ELEMENTOR_VERSION = '2.4.0';
/**
* Minimum PHP Version
*
* @since 1.0.0
* @var string Minimum PHP version required to run the plugin.
*/
const MINIMUM_PHP_VERSION = '5.6';
/**
* API url
*
* @since 1.0.0
* @var string plugins's root url.
*/
static function api_url(){
return 'https://api.wpmet.com/public/';
}
/**
* Plugin url
*
* @since 1.0.0
* @var string plugins's root url.
*/
static function plugin_url(){
return trailingslashit(plugin_dir_url( __FILE__ ));
}
/**
* Plugin dir
*
* @since 1.0.0
* @var string plugins's root directory.
*/
static function plugin_dir(){
return trailingslashit(plugin_dir_path( __FILE__ ));
}
/**
* Plugin's widget directory.
*
* @since 1.0.0
* @var string widget's root directory.
*/
static function widget_dir(){
return self::plugin_dir() . 'widgets/';
}
/**
* Plugin's widget url.
*
* @since 1.0.0
* @var string widget's root url.
*/
static function widget_url(){
return self::plugin_url() . 'widgets/';
}
/**
* Plugin's widget image choose url.
*
* @since 1.0.0
* @var string widget image choose's root url.
*/
/**
* Plugin's module directory.
*
* @since 1.0.0
* @var string module's root directory.
*/
static function module_dir(){
return self::plugin_dir() . 'modules/';
}
/**
* Plugin's module url.
*
* @since 1.0.0
* @var string module's root url.
*/
static function module_url(){
return self::plugin_url() . 'modules/';
}
/**
* Plugin's lib directory.
*
* @since 1.0.0
* @var string lib's root directory.
*/
static function lib_dir(){
return self::plugin_dir() . 'libs/';
}
/**
* Plugin's lib url.
*
* @since 1.0.0
* @var string lib's root url.
*/
static function lib_url(){
return self::plugin_url() . 'libs/';
}
/**
* Constructor
*
* @since 1.0.0
* @access public
*/
public function __construct() {
// Load translation
add_action( 'init', array( $this, 'i18n' ) );
// Init Plugin
$this->init();
}
/**
* Load Textdomain
*
* Load plugin localization files.
* Fired by `init` action hook.
*
* @since 1.0.0
* @access public
*/
public function i18n() {
load_plugin_textdomain( 'elementskit', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
/**
* Initialize the plugin
*
* Checks for basic plugin requirements, if one check fail don't continue,
* if all check have passed include the plugin class.
*
* Fired by `plugins_loaded` action hook.
*
* @since 1.0.0
* @access public
*/
public function init() {
// Load the main static helper class.
require_once self::plugin_dir() . 'helpers/notice.php';
require_once self::plugin_dir() . 'helpers/utils.php';
// Check if Elementor installed and activated.
if ( ! did_action( 'elementor/loaded' ) ) {
add_action( 'admin_notices', array( $this, 'missing_elementor' ) );
return;
}
// Check for required Elementor version.
if ( ! version_compare( ELEMENTOR_VERSION, self::MINIMUM_ELEMENTOR_VERSION, '>=' ) ) {
add_action( 'admin_notices', array( $this, 'failed_elementor_version' ) );
return;
}
// Check for required PHP version.
if ( version_compare( PHP_VERSION, self::MINIMUM_PHP_VERSION, '<' ) ) {
add_action( 'admin_notices', array( $this, 'failed_php_version' ) );
return;
}
// Once we get here, We have passed all validation checks so we can safely include our plugin.
// Register ElementsKit widget category
add_action('elementor/init', [$this, 'elementor_widget_category']);
add_action( 'elementor/init', function(){
// Load the Handler class, it's the core class of ElementsKit.
require_once self::plugin_dir() . 'handler.php';
});
}
/**
* Admin notice
*
* Warning when the site doesn't have required Elementor.
*
* @since 1.0.0
* @access public
*/
public function missing_elementor() {
if ( isset( $_GET['activate'] ) ) {
unset( $_GET['activate'] );
}
if ( file_exists( WP_PLUGIN_DIR . '/elementor/elementor.php' ) ) {
$btn['label'] = esc_html__('Activate Elementor', 'elementskit');
$btn['url'] = wp_nonce_url( 'plugins.php?action=activate&plugin=elementor/elementor.php&plugin_status=all&paged=1', 'activate-plugin_elementor/elementor.php' );
} else {
$btn['label'] = esc_html__('Install Elementor', 'elementskit');
$btn['url'] = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=elementor' ), 'install-plugin_elementor' );
}
\ElementsKit\Notice::push(
[
'id' => 'unsupported-elementor-version',
'type' => 'error',
'dismissible' => true,
'btn' => $btn,
'message' => sprintf( esc_html__( 'ElementsKit requires Elementor version %1$s+, which is currently NOT RUNNING.', 'elementskit' ), self::MINIMUM_ELEMENTOR_VERSION ),
]
);
}
/**
* Admin notice
*
* Warning when the site doesn't have a minimum required PHP version.
*
* @since 1.0.0
* @access public
*/
public function admin_notice_minimum_php_version() {
\ElementsKit\Notice::push(
[
'id' => 'unsupported-php-version',
'type' => 'error',
'dismissible' => true,
'message' => sprintf( esc_html__( 'ElementsKit requires PHP version %1$s+, which is currently NOT RUNNING on this server.', 'elementskit' ), self::MINIMUM_PHP_VERSION ),
]
);
}
/**
* Add category.
*
* Register custom widget category in Elementor's editor
*
* @since 1.0.0
* @access public
*/
public function elementor_widget_category($widgets_manager){
\Elementor\Plugin::$instance->elements_manager->add_category(
'elementskit',
[
'title' =>esc_html__( 'ElementsKit', 'elementskit' ),
'icon' => 'fa fa-plug',
],
1
);
\Elementor\Plugin::$instance->elements_manager->add_category(
'elementskit_headerfooter',
[
'title' =>esc_html__( 'ElementsKit Header Footer', 'elementskit' ),
'icon' => 'fa fa-plug',
],
1
);
}
static function default_widgets($package = null){
$package = ($package != null) ? $package : self::PACKAGE_TYPE;
$default_list = [
'image-accordion',
'accordion',
'button',
'heading',
'blog-posts',
'icon-box',
'image-box',
'countdown-timer',
'client-logo',
'faq',
'funfact',
'image-comparison',
'lottie',
'testimonial',
'pricing',
'team',
'social',
'progressbar',
'category-list',
'page-list',
'post-grid',
'post-list',
'post-tab',
'nav-menu',
'mail-chimp',
'header-info',
'piechart',
'header-search',
'header-offcanvas',
'tab',
'contact-form7',
'video',
'business-hours',
'drop-caps',
'social-share',
'dual-button',
'caldera-forms',
'we-forms',
'wp-forms',
'ninja-forms',
];
$optional_list = [
'advanced-accordion',
'advanced-tab',
'hotspot',
'motion-text',
'twitter-feed',
'facebook-feed',
'instagram-feed',
'gallery',
'chart',
'woo-category-list',
'woo-mini-cart',
'woo-product-carousel',
'woo-product-list',
'table',
'timeline',
'creative-button',
'vertical-menu',
'advanced-toggle'
];
if(class_exists('\ElementsKit_Widget_Config')){
$default_list = \ElementsKit_Widget_Config::instance()->get_default_widgets();
$optional_list = \ElementsKit_Widget_Config::instance()->get_widgets();
return (array_merge($default_list, $optional_list));
}else{
return ($package == 'pro') ? array_merge($default_list, $optional_list) : $default_list;
}
}
static function default_modules($package = null){
$package = ($package != null) ? $package : self::PACKAGE_TYPE;
$default_list = [
'header-footer',
'megamenu',
'onepage-scroll',
];
$optional_list =[
'parallax',
'sticky-content',
];
return ($package == 'pro') ? array_merge($default_list, $optional_list) : $default_list;
}
}
new ElementsKit();
endif;