whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
themes
/
glowing
/
inc
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/themes/glowing/inc/elementor.php
<?php // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } if (!class_exists('GLOWING_ELEMENTOR')) { class GLOWING_ELEMENTOR { private static $_instance; public static function getInstance() { if ( self::$_instance == null ) { self::$_instance = new self(); } return self::$_instance; } public function __construct() { spl_autoload_register(array($this, 'autoload')); } public function init(){ add_action('g5blog_init',array($this->blog(),'init')); add_action('g5shop_init',array($this->shop(),'init')); add_action('ube_init',array($this->ube(),'init')); } public function autoload($class) { $file_name = preg_replace('/^GLOWING_ELEMENTOR_/', '', $class); if ($file_name !== $class) { $file_name = strtolower($file_name); $file_name = str_replace('_', '-', $file_name); $this->loadFile($this->themeDir("inc/elementor/{$file_name}.class.php")); } } public function loadFile($path) { if ( $path && is_readable($path) ) { include_once($path); return true; } return false; } public function themeDir($path = '') { return trailingslashit(get_template_directory()) . $path; } /** * @return GLOWING_ELEMENTOR_BLOG */ public function blog() { return GLOWING_ELEMENTOR_BLOG::getInstance(); } /** * @return GLOWING_ELEMENTOR_SHOP */ public function shop() { return GLOWING_ELEMENTOR_SHOP::getInstance(); } /** * @return GLOWING_ELEMENTOR_UBE */ public function ube() { return GLOWING_ELEMENTOR_UBE::getInstance(); } } function GLOWING_ELEMENTOR() { return GLOWING_ELEMENTOR::getInstance(); } GLOWING_ELEMENTOR()->init(); }
Copyright ©2021 || Defacer Indonesia