public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Early loading actions. * * Initialize the Toolset Common library with the new loader. * Initialize asset manager if we're not doing an AJAX call. * Initialize the Types hook API. * * @since 2.0 */ public function after_setup_theme() { Toolset_Common_Bootstrap::getInstance(); // If an AJAX callback handler needs other assets, they should initialize the asset manager by themselves. if (!defined('DOING_AJAX')) { Types_Assets::get_instance()->initialize_scripts_and_styles(); } Types_Api::initialize(); }