[xoops-cvslog 3542] CVS update: xoops2jp/html/modules/legacyRender/preload

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 7月 11日 (火) 14:11:11 JST


Index: xoops2jp/html/modules/legacyRender/preload/ThemeSelect.class.php
diff -u /dev/null xoops2jp/html/modules/legacyRender/preload/ThemeSelect.class.php:1.1.2.1
--- /dev/null	Tue Jul 11 14:11:10 2006
+++ xoops2jp/html/modules/legacyRender/preload/ThemeSelect.class.php	Tue Jul 11 14:11:10 2006
@@ -0,0 +1,28 @@
+<?php
+/**
+ * @package legacyRender
+ * @version $Id: ThemeSelect.class.php,v 1.1.2.1 2006/07/11 05:11:10 minahito Exp $
+ */
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+class legacyRender_ThemeSelect extends XCube_ActionFilter
+{
+    function legacyRender_ThemeSelect(&$controller)
+    {
+		parent::XCube_ActionFilter($controller);
+		$controller->mRoot->mDelegateManager->add('Base_ThemeSelect.IsSelectableTheme', 'legacyRender_ThemeSelect::isSelectableTheme');
+    }
+    
+    function isSelectableTheme(&$flag, $theme_name)
+	{
+		$handler =& xoops_getmodulehandler('theme', 'legacyRender');
+		$themeArr =& $handler->getObjects(new Criteria('name', $theme_name));
+		
+		if (count($themeArr) == 1 && $themeArr[0]->get('enable_select')) {
+			$flag = true;
+		}
+    }
+}
+
+?>


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index