/[drupal]/contributions/modules/nice_menus/nice_menus.module
ViewVC logotype

Diff of /contributions/modules/nice_menus/nice_menus.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16.2.19, Sun Nov 30 14:20:21 2008 UTC revision 1.16.2.20, Wed May 6 15:33:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nice_menus.module,v 1.16.2.18 2008/09/17 18:18:44 add1sun Exp $  // $Id: nice_menus.module,v 1.16.2.19 2008/11/30 14:20:21 add1sun Exp $
3  /*  /*
4    By Jake Gordon (jakeg)    By Jake Gordon (jakeg)
5    Module to enable CSS dropdoen and flyout menus.    Module to enable CSS dropdoen and flyout menus.
# Line 214  function theme_nice_menu_tree($pid = 1, Line 214  function theme_nice_menu_tree($pid = 1,
214      // e.g. to give each menu item individual style.      // e.g. to give each menu item individual style.
215      foreach ($menu['visible'][$pid]['children'] as $mid) {      foreach ($menu['visible'][$pid]['children'] as $mid) {
216        // Strip funny symbols        // Strip funny symbols
217        $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu['items'][$mid]['path']);        $clean_path = str_replace(array('http://', 'www', '<', '>', '&', '=', '?', ':'), '', $menu['items'][$mid]['path']);
218        // Convert slashes to dashes        // Convert slashes to dashes
219        $clean_path = str_replace('/', '-', $clean_path);        $clean_path = str_replace('/', '-', $clean_path);
220        $path_class = 'menu-path-'. $clean_path;        $path_class = 'menu-path-'. $clean_path;

Legend:
Removed from v.1.16.2.19  
changed lines
  Added in v.1.16.2.20

  ViewVC Help
Powered by ViewVC 1.1.2