Exemplo n.º 1
0
 public static function loadCatalogs()
 {
     if (!self::$catalogs_loaded) {
         // load the module themes catalog
         require_once JPATH_ROOT . '/modules/mod_roknavmenu/themes/catalog.php';
         foreach (self::getTemplates() as $template) {
             $template_theme_catalog = JPATH_ROOT . '/templates/' . $template . "/html/mod_roknavmenu/themes/catalog.php";
             if (JFile::exists($template_theme_catalog)) {
                 //load the templates themes
                 include_once $template_theme_catalog;
             }
         }
         self::$catalogs_loaded = true;
     }
 }