コード例 #1
0
 protected function __initialize_scripts()
 {
     $this->register_script(self::SCRIPT_KNOCKOUT, TYPES_RELPATH . '/library/knockout/knockout-3.4.0.debug.js', array(), '3.4.0');
     $this->register_script(self::SCRIPT_ADJUST_MENU_LINK, TYPES_RELPATH . '/public/page/adjust_submenu_links.js', array('jquery', 'underscore'), TYPES_VERSION);
     $this->register_script(self::SCRIPT_SLUG_CONFLICT_CHECKER, TYPES_RELPATH . '/public/js/slug_conflict_checker.js', array('jquery', 'underscore'), TYPES_VERSION);
     $this->register_script(self::SCRIPT_PAGE_EDIT_POST_TYPE, TYPES_RELPATH . '/public/page/edit_post_type/main.js', array('jquery', 'underscore', self::SCRIPT_SLUG_CONFLICT_CHECKER, self::SCRIPT_UTILS), TYPES_VERSION);
     $this->register_script(self::SCRIPT_PAGE_EDIT_TAXONOMY, TYPES_RELPATH . '/public/page/edit_taxonomy/main.js', array('jquery', 'underscore', self::SCRIPT_SLUG_CONFLICT_CHECKER, self::SCRIPT_UTILS), TYPES_VERSION);
     return parent::__initialize_scripts();
 }
コード例 #2
0
ファイル: manager.php プロジェクト: axeljohansson1988/oddcv
 protected function __initialize_scripts()
 {
     $this->register_script(self::SCRIPT_ADJUST_MENU_LINK, TYPES_RELPATH . '/public/page/adjust_submenu_links.js', array('jquery', 'underscore'), TYPES_VERSION);
     $this->register_script(self::SCRIPT_KNOCKOUT, TYPES_RELPATH . '/library/knockout/knockout-3.4.0.debug.js', array(), '3.4.0');
     return parent::__initialize_scripts();
 }
コード例 #3
0
ファイル: bootstrap.php プロジェクト: axeljohansson1988/oddcv
 public function register_res()
 {
     $sections_loaded = self::$sections_loaded;
     if (!in_array('toolset_res', $sections_loaded)) {
         $sections_loaded[] = 'toolset_res';
         // Use the class provided by Ric
         require_once TOOLSET_COMMON_PATH . '/inc/toolset.assets.manager.class.php';
         $this->assets_manager = Toolset_Assets_Manager::getInstance();
         self::$sections_loaded = $sections_loaded;
     }
 }
コード例 #4
0
 public function register_res()
 {
     if (!$this->is_section_loaded(self::TOOLSET_RESOURCES)) {
         $this->add_section_loaded(self::TOOLSET_RESOURCES);
         // Use the class provided by Ric
         require_once TOOLSET_COMMON_PATH . '/inc/toolset.assets.manager.class.php';
         $this->assets_manager = Toolset_Assets_Manager::getInstance();
         $this->apply_filters_on_sections_loaded('toolset_register_assets_section');
     }
 }