[pLog-svn] r1130 - plog/trunk/class/template/menu

oscar at devel.plogworld.net oscar at devel.plogworld.net
Fri Feb 18 21:46:49 GMT 2005


Author: oscar
Date: 2005-02-18 21:46:49 +0000 (Fri, 18 Feb 2005)
New Revision: 1130

Modified:
   plog/trunk/class/template/menu/menurenderer.class.php
Log:
made a couple of arrangements needed for the 'manage'  and similar pages. Now the css class of each one of the items in a list is not 'menuTop' or 'menuOption' but instead, 'Level_XX' where 'XX' is the depth of the element in the menu... in inverse order, meaning that Level_0 would be deepest option in the menu, Level_1 the one on top, etc. I know it should be the other way around but it works fine now.

Also changed the character that is used to show the "bread and crumbs" navigation.

Modified: plog/trunk/class/template/menu/menurenderer.class.php
===================================================================
--- plog/trunk/class/template/menu/menurenderer.class.php	2005-02-18 12:55:33 UTC (rev 1129)
+++ plog/trunk/class/template/menu/menurenderer.class.php	2005-02-18 21:46:49 UTC (rev 1130)
@@ -94,10 +94,11 @@
 					if( $this->userCanSee( $child, $this->_userInfo )) {
 						$url = $child->getAttribute( "url" );
 						$localeId = $this->getLocaleId( $child );
+						$cssClass = "Level_".$depth;
 						if( $url != "" ) 
-							$result .= "<li class=\"menuOption\"><a href=\"".$child->getAttribute("url")."\">".$this->_locale->tr($localeId)."</a></li>";
+							$result .= "<li class=\"$cssClass\"><a href=\"".$child->getAttribute("url")."\">".$this->_locale->tr($localeId)."</a></li>";
 						else
-							$result .= "<li class=\"menuOption\">".$this->_locale->tr($child->name)."</li>";
+							$result .= "<li class=\"$cssClass\">".$this->_locale->tr($child->name)."</li>";
 						
 						if( $depth > 0 )
 							$result .= $this->_render( $child, $depth, $activeOpt );
@@ -156,8 +157,8 @@
 						else
 							$result .= $this->_locale->tr($part);
 						if( $entryId == $part ) $result .= "</b>";						
-						if( $count == 0 ) $result .= " > <a href=\"?op=blogSelect&amp;blogId=".$this->_blogInfo->getId()."\">".$this->_blogInfo->getBlog()."</a>";
-						if( $count < $totalParts-1 ) $result .= " > ";
+						if( $count == 0 ) $result .= " &raquo; <a href=\"?op=blogSelect&amp;blogId=".$this->_blogInfo->getId()."\">".$this->_blogInfo->getBlog()."</a>";
+						if( $count < $totalParts-1 ) $result .= " &raquo; ";
 					}
 					$count++;
 					$path .= "/";




More information about the pLog-svn mailing list