Current Path : /storage/v11800/andslite-new/public_html/wp-content/plugins/redux-framework/redux-templates/classes/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/andslite-new/public_html/wp-content/plugins/redux-framework/redux-templates/classes/class-init.php |
<?php
/**
* Initialize the Redux Template Library.
*
* @since 4.0.0
* @package Redux Framework
*/
namespace ReduxTemplates;
use ReduxTemplates;
defined( 'ABSPATH' ) || exit;
/**
* Redux Templates Init Class
*
* @since 4.0.0
*/
class Init {
/**
* Init constructor.
*
* @access public
*/
public function __construct() {
global $pagenow;
if ( 'widgets.php' === $pagenow ) {
return;
}
require_once REDUXTEMPLATES_DIR_PATH . 'classes/class-templates.php';
add_action( 'init', array( $this, 'load' ) );
if ( did_action( 'init' ) ) { // In case the devs load it at the wrong place.
$this->load();
}
}
/**
* Load everything up after init.
*
* @access public
* @since 4.0.0
*/
public static function load() {
new ReduxTemplates\Templates();
}
}
new Init();