[xoops-cvslog 5938] CVS update: xoops2jp/html/modules/legacy/blocks

アーカイブの一覧に戻る

Minahito minah****@users*****
2006年 11月 27日 (月) 14:14:35 JST


Index: xoops2jp/html/modules/legacy/blocks/legacy_themes.php
diff -u xoops2jp/html/modules/legacy/blocks/legacy_themes.php:1.1.2.3 xoops2jp/html/modules/legacy/blocks/legacy_themes.php:1.1.2.4
--- xoops2jp/html/modules/legacy/blocks/legacy_themes.php:1.1.2.3	Fri Nov 17 19:41:24 2006
+++ xoops2jp/html/modules/legacy/blocks/legacy_themes.php	Mon Nov 27 14:14:34 2006
@@ -16,14 +16,20 @@
 	$block['isEnableChanger'] = 1;
 	
     $theme_options = array();
-    foreach ($xoopsConfig['theme_set_allowed'] as $theme) {
-        $theme_option['name'] = $theme;
-        if ($theme == $xoopsConfig['theme_set']) {
-            $theme_option['selected'] = 'selected="selected"';
-        } else {
-            $theme_option['selected'] = '';
-        }
-        $theme_options[] = $theme_option;
+	$handler =& xoops_getmodulehandler('theme', 'legacy');
+    foreach ($xoopsConfig['theme_set_allowed'] as $name) {
+		$theme =& $handler->get($name);
+		if ($theme != null) {
+			$theme_option['name'] = $name;
+			$theme_option['screenshot'] = $theme->getShow('screenshot');
+			$theme_option['screenshotUrl'] = XOOPS_THEME_URL . "/" . $name . "/" . $theme->getShow('screenshot');
+	        if ($name == $xoopsConfig['theme_set']) {
+	            $theme_option['selected'] = 'selected="selected"';
+	        } else {
+	            $theme_option['selected'] = '';
+	        }
+	        $theme_options[] = $theme_option;
+		}
     }
 	
     $block['count'] = count($xoopsConfig['theme_set_allowed']);


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る