[xoops-cvslog 16] CVS update: xoops2jp/html

アーカイブの一覧に戻る

onokazu onoka****@users*****
2005年 5月 28日 (土) 08:42:07 JST


Index: xoops2jp/html/header.php
diff -u xoops2jp/html/header.php:1.2.6.3 xoops2jp/html/header.php:1.2.6.4
--- xoops2jp/html/header.php:1.2.6.3	Thu May 26 20:04:11 2005
+++ xoops2jp/html/header.php	Sat May 28 08:42:07 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: header.php,v 1.2.6.3 2005/05/26 11:04:11 onokazu Exp $
+// $Id: header.php,v 1.2.6.4 2005/05/27 23:42:07 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -91,7 +91,7 @@
         $xoopsTpl->assign(array('xoops_isuser' => true, 'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin));
         if (!empty($xoopsModule)) {
             // set page title
-            $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
+            $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_moduledir' => $xoopsModule->getVar('dirname')));
             if (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
                 $block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(), $xoopsModule->getVar('mid'), true, XOOPS_BLOCK_VISIBLE);
             } else {
@@ -109,7 +109,7 @@
         $xoopsTpl->assign(array('xoops_isuser' => false, 'xoops_isadmin' => false));
         if (!empty($xoopsModule)) {
             // set page title
-            $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
+            $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_moduledir' => $xoopsModule->getVar('dirname')));
             if (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
                 $block_arr =& $xoopsblock->getAllByGroupModule(XOOPS_GROUP_ANONYMOUS, $xoopsModule->getVar('mid'), true, XOOPS_BLOCK_VISIBLE);
             } else {
@@ -169,35 +169,35 @@
                 $xoopsTpl->assign('xoops_showlblock', 1);
                 $show_lblock = 1;
             }
-            $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
+            $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
             break;
         case XOOPS_CENTERBLOCK_LEFT:
             if (!isset($show_cblock)) {
                 $xoopsTpl->assign('xoops_showcblock', 1);
                 $show_cblock = 1;
             }
-            $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
+            $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
             break;
         case XOOPS_CENTERBLOCK_RIGHT:
             if (!isset($show_cblock)) {
                 $xoopsTpl->assign('xoops_showcblock', 1);
                 $show_cblock = 1;
             }
-            $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
+            $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
             break;
         case XOOPS_CENTERBLOCK_CENTER:
             if (!isset($show_cblock)) {
                 $xoopsTpl->assign('xoops_showcblock', 1);
                 $show_cblock = 1;
             }
-            $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
+            $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
             break;
         case XOOPS_SIDEBLOCK_RIGHT:
             if (!isset($show_rblock)) {
                 $xoopsTpl->assign('xoops_showrblock', 1);
                 $show_rblock = 1;
             }
-            $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent));
+            $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight')));
             break;
         }
         unset($bcontent);


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