/** * Start things up * * @since 1.6.3 */ public function __construct() { //set_theme_mod( 'theme_skin', 'agent' ); // for testing // Get current skin self::$current_skin = $this->get_current_skin(); $current_skin = self::$current_skin; // Enabled $this->enabled = $current_skin && 'base' != $current_skin ? true : false; $this->enabled = apply_filters('wpex_enable_skins', $this->enabled); // Return if disabled if (!$this->enabled) { return; } // Skins Paths define('WPEX_SKIN_DIR', WPEX_THEME_DIR . '/skins/'); define('WPEX_SKIN_DIR_URI', WPEX_THEME_URI . '/skins/'); // Admin if (is_admin()) { require_once WPEX_SKIN_DIR . 'skins-admin.php'; } // Load skin if needed if ($current_skin && 'base' != $current_skin) { $this->load_skin(); } }