1: <?php
2: 3: 4: 5:
6:
7: if (!defined('XOOPS_ROOT_PATH')) exit();
8:
9: require_once XOOPS_ROOT_PATH . "/core/XCube_Theme.class.php";
10:
11: class LegacyRender_DelegateFunctions
12: {
13: 14: 15:
16: function getInstalledThemes(&$results)
17: {
18: foreach (glob(XOOPS_THEME_PATH.'/*', GLOB_ONLYDIR) as $themeDir) {
19: $theme =new XCube_Theme();
20: $theme->mDirname = $dirname = basename($themeDir);
21:
22: if ($theme->loadManifesto($themeDir . '/manifesto.ini.php')) {
23: if ($theme->mRenderSystemName != 'Legacy_RenderSystem') continue;
24: } else {
25: if (file_exists($themeDir . '/theme.html')) {
26: $theme->mName = $dirname;
27: $theme->mRenderSystemName = 'Legacy_RenderSystem';
28: $theme->mFormat = 'XOOPS2 Legacy Style';
29: }
30: }
31: $results[$dirname] =& $theme;
32: unset($theme);
33: }
34: }
35: }
36:
37: ?>
38: