Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 /**
  * @return Types_Asset_Manager
  */
 public static function get_instance()
 {
     return parent::getInstance();
 }
Exemplo n.º 3
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');
     }
 }