Author: nextgens
Date: 2007-05-10 18:56:06 +0000 (Thu, 10 May 2007)
New Revision: 13204
Modified:
trunk/website/pages/en/menu.php
Log:
website: maybe fix it
Modified: trunk/website/pages/en/menu.php
===================================================================
--- trunk/website/pages/en/menu.php 2007-05-10 18:49:29 UTC (rev 13203)
+++ trunk/website/pages/en/menu.php 2007-05-10 18:56:06 UTC (rev 13204)
@@ -38,6 +38,19 @@
<li><a href="<?=$link?>"><?=$text ?></a></li>
<?
}
+
+function showMenu($category) {
+ echo '<ul class="submenu">';
+ foreach ($category as $subtitle => $sublink) {
+ if (strcmp(substr($sublink, 0, 4), 'http')) {
+ page($subtitle, $sublink);
+ } else {
+ lnk($subtitle, $sublink);
+ }
+ /* echo '<li><a
href="'.$sublink.'">'.$subtitle.'</a></li>'; */
+ }
+}
+
function page($text, $link) {
global $page;
//far away from perfect but better than nothing!
@@ -72,16 +85,10 @@
}
else
{
- if(strcmp($title, 'Documentation') || strcmp($title,
'Developer')) {
- echo '<ul class="submenu">';
- foreach ($link as $subtitle => $sublink) {
- if (strcmp(substr($sublink, 0, 4), 'http')) {
- page($subtitle, $sublink);
- } else {
- lnk($subtitle, $sublink);
- }
- /* echo '<li><a
href="'.$sublink.'">'.$subtitle.'</a></li>'; */
- }
+ if(strcmp($title, 'Documentation')) {
+ showMenu('sub1');
+ } else if (strcmp($title, 'Developer')) {
+ showMenu('sub2');
}
}
echo '</ul>';