13 public function LegacyRender_ThemeSelect(&$controller)
20 parent::__construct($controller);
21 $controller->mRoot->mDelegateManager->add(
'Legacy_ThemeSelect.IsSelectableTheme',
'LegacyRender_ThemeSelect::isSelectableTheme');
22 $controller->mRoot->mDelegateManager->add(
'LegacyThemeHandler.GetInstalledThemes',
'LegacyRender_DelegateFunctions::getInstalledThemes', XOOPS_ROOT_PATH .
'/modules/legacyRender/kernel/DelegateFunctions.class.php');
25 public function isSelectableTheme(&$flag, $theme_name)
27 $handler =& xoops_getmodulehandler(
'theme',
'legacyRender');
28 $themeArr =& $handler->getObjects(
new Criteria(
'name', $theme_name));
30 if (1 == (is_countable($themeArr) ? count($themeArr) : 0) && $themeArr[0]->
get(
'enable_select')) {