[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/templates/idots navbar.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] phpgwapi/templates/idots navbar.inc.php |
Date: |
Sat, 14 Oct 2006 13:52:43 +0000 |
CVSROOT: /sources/phpgwapi
Module name: phpgwapi
Changes by: Sigurd Nes <sigurdne> 06/10/14 13:52:43
Modified files:
templates/idots: navbar.inc.php
Log message:
mark current item in sidebox-menu to simplify navigation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/templates/idots/navbar.inc.php?cvsroot=phpgwapi&r1=1.15&r2=1.16
Patches:
Index: navbar.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/templates/idots/navbar.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- navbar.inc.php 29 Aug 2006 08:54:13 -0000 1.15
+++ navbar.inc.php 14 Oct 2006 13:52:42 -0000 1.16
@@ -5,7 +5,7 @@
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @package phpgwapi
* @subpackage gui
- * @version $Id: navbar.inc.php,v 1.15 2006/08/29 08:54:13 skwashd Exp $
+ * @version $Id: navbar.inc.php,v 1.16 2006/10/14 13:52:42 sigurdne Exp $
*/
@@ -174,7 +174,12 @@
$item['image'] = '';
}
- sidebox_menu_item($item['url'], $item['text'],
$item['image'], $use_lang);
+ if ( !isset($item['this']) )
+ {
+ $item['this'] = '';
+ }
+
+ sidebox_menu_item($item['url'], $item['text'],
$item['image'], $use_lang, $item['this']);
}
$GLOBALS['phpgw']->template->pfp('out','extra_blocks_footer');
@@ -190,7 +195,7 @@
* @param string $item_image
* @param boolean $use_lang
*/
- function sidebox_menu_item($item_link='', $item_text='',
$item_image='', $use_lang = True)
+ function sidebox_menu_item($item_link='', $item_text='',
$item_image='', $use_lang = True, $current_item = '')
{
if($item_text == '_NewLine_')
{
@@ -198,10 +203,11 @@
}
else
{
+ $lang_item = $use_lang ? lang($item_text) : $item_text;
$GLOBALS['phpgw']->template->set_var(array
(
'list_style_image' => ($item_image ?
"url('{$item_image}')" : 'none'),
- 'lang_item' => $use_lang ?
lang($item_text) : $item_text,
+ 'lang_item' =>
$current_item ? '<b>' . $lang_item . '</b>': $lang_item,
'item_link' => $item_link
));
$GLOBALS['phpgw']->template->pfp('out','extra_block_row');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/templates/idots navbar.inc.php,
Sigurd Nes <=