public static function init()
 {
     self::_defined();
     $files = glob(AT_DIR . "/core/*.php");
     foreach ($files as $file) {
         if (!is_dir($file)) {
             require_once $file;
         }
     }
     AT_Loader::get_instance()->helper('common');
     AT_Loader::get_instance()->helper('route');
     AT_Loader::get_instance()->library('Shortcodes', false);
     AT_Loader::get_instance()->library('Widgets', false);
     AT_Core::locale();
     // setup_theme
     if (is_admin()) {
         AT_Admin::init();
         self::_support();
         return;
     }
     self::_support();
     // self::_locale();
     self::_filters();
     self::_actions();
 }
 public static function register()
 {
     $class_methods = get_class_methods('AT_Meta_Options_Config');
     foreach ($class_methods as $value) {
         $options = AT_Meta_Options_Config::$value();
         if (!empty($options) && in_array(AT_Admin::get_current_post_type(), $options['pages'])) {
             new AT_Meta_Box($options);
         }
     }
 }