Jeremy Newman : pass along the short name of the link to be used in the template

Jeremy Newman jnewman at winehq.org
Tue Aug 5 11:44:43 CDT 2008


Module: website
Branch: master
Commit: 5bf3eecdb1cde3eacf15964a1b049321b310696f
URL:    http://source.winehq.org/git/website.git/?a=commit;h=5bf3eecdb1cde3eacf15964a1b049321b310696f

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Tue Aug  5 11:43:15 2008 -0500

pass along the short name of the link to be used in the template

---

 include/menu.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/menu.php b/include/menu.php
index edb58c9..c014810 100644
--- a/include/menu.php
+++ b/include/menu.php
@@ -105,7 +105,7 @@ class menu
             {
                 // add item with template
                 $template = isset($nav['template']) ? $nav['template'] : 'item';
-                $this->add($template, $nav['desc'], $link, $level, $sel);
+                $this->add($template, $nav['name'], $nav['desc'], $link, $level, $sel);
                 
                 // go into this item and get subitems if selected
                 if ($sel or $nav['unfold'])
@@ -157,7 +157,7 @@ class menu
     }
 
     // add a menu link
-    function add ($template, $name, $url = null, $level = 0, $selected = 0)
+    function add ($template, $item, $name, $url = null, $level = 0, $selected = 0)
     {
         // bold select items
         if ($selected)
@@ -169,6 +169,7 @@ class menu
         // vars for template
         $vars = array(
                       'pad'  => "$pad",
+                      'item' => "$item",
                       'name' => "$name",
                       'url'  => "$url",
                      );




More information about the wine-cvs mailing list