[freenet-cvs] r13210 - trunk/website/pages/en

nextgens at freenetproject.org nextgens at freenetproject.org
Thu May 10 19:42:37 UTC 2007


Author: nextgens
Date: 2007-05-10 19:42:37 +0000 (Thu, 10 May 2007)
New Revision: 13210

Modified:
   trunk/website/pages/en/menu.php
Log:
website: fix it.

Modified: trunk/website/pages/en/menu.php
===================================================================
--- trunk/website/pages/en/menu.php	2007-05-10 19:17:13 UTC (rev 13209)
+++ trunk/website/pages/en/menu.php	2007-05-10 19:42:37 UTC (rev 13210)
@@ -59,16 +59,7 @@
 		lnk($text, $link.".html");
 	}
 }
-/*
-   foreach($menus[$mode] as $title => $link) {
-   if (strcmp(substr($link, 0, 4), 'http')) {
-   page($title, $link);
-   } else {
-   lnk($title, $link);
-   }
-   } */
 
-
 echo '<ul class="menu">';
 foreach($menus as $title => $link) {
 	if (!stristr(substr($title, 0, 3), 'sub'))
@@ -78,16 +69,19 @@
 		} else {
 			lnk($title, $link);
 		}	
-		echo '</ul>';
 	}
 	else
 	{
-		if(strcmp($page, 'documentation')) {
-			showMenu($menus['sub1']);
-		} else if (strcmp($previousLink, 'developer')) {
-			showMenu($menus['sub2']);
+		if(0 == strcmp($page, '/documentation')) {
+			showMenu($menus["$title"]);
 		}
+		
+		if (0 == strcmp($page, '/developer')) {
+			showMenu($menus["$title"]);
+		}
 	}
+	echo '</ul>';
 }
+echo '</ul>';
 ?>
 




More information about the cvs mailing list