XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
DelegateFunctions.class.php
1<?php
6
7if (!defined('XOOPS_ROOT_PATH')) {
8 exit();
9}
10
11require_once XOOPS_ROOT_PATH . '/core/XCube_Theme.class.php';
12
14{
19 public static function getInstalledThemes(&$results)
20 {
21 foreach (glob(XOOPS_THEME_PATH.'/*', GLOB_ONLYDIR) as $themeDir) {
22 $theme =new XCube_Theme();
23 $theme->mDirname = $dirname = basename($themeDir);
24
25 if ($theme->loadManifesto($themeDir . '/manifesto.ini.php')) {
26 if ('Legacy_RenderSystem' != $theme->mRenderSystemName) {
27 continue;
28 }
29 } else {
30 if (file_exists($themeDir . '/theme.html')) {
31 $theme->mName = $dirname;
32 $theme->mRenderSystemName = 'Legacy_RenderSystem';
33 $theme->mFormat = 'XOOPS2 Legacy Style';
34 }
35 }
36 $results[$dirname] =& $theme;
37 unset($theme);
38 }
39 }
40}