示例#1
0
<?php

defined('ABSPATH') or die;
// ensure EXT is defined
if (!defined('EXT')) {
    define('EXT', '.php');
}
$basepath = dirname(__FILE__) . DIRECTORY_SEPARATOR;
require $basepath . 'core' . EXT;
// load classes
$interfacepath = $basepath . 'interfaces' . DIRECTORY_SEPARATOR;
pixcustomify::require_all($interfacepath);
$classpath = $basepath . 'classes' . DIRECTORY_SEPARATOR;
pixcustomify::require_all($classpath);
// load callbacks
$callbackpath = $basepath . 'callbacks' . DIRECTORY_SEPARATOR;
pixcustomify::require_all($callbackpath);
示例#2
0
 protected function register_customizer_controls()
 {
     // first get the base customizer extend class
     require_once self::get_base_path() . '/features/customizer/class-Pix_Customize_Control.php';
     // now get all the controls
     $path = self::get_base_path() . '/features/customizer/controls/';
     pixcustomify::require_all($path);
 }