/[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.35.2.15, Sun Nov 30 19:47:53 2008 UTC revision 1.35.2.16, Wed May 6 15:36:53 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nice_menus.module,v 1.35.2.14 2008/09/17 18:18:11 add1sun Exp $  // $Id: nice_menus.module,v 1.35.2.15 2008/11/30 19:47:53 add1sun Exp $
3  /**  /**
4   * @file   * @file
5   *  Module to enable CSS dropdown and flyout menus.   *  Module to enable CSS dropdown and flyout menus.
# Line 309  function theme_nice_menu_build($menu) { Line 309  function theme_nice_menu_build($menu) {
309        // Build class name based on menu path        // Build class name based on menu path
310        // e.g. to give each menu item individual style.        // e.g. to give each menu item individual style.
311        // Strip funny symbols.        // Strip funny symbols.
312        $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']);        $clean_path = str_replace(array('http://', 'www', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']);
313        // Convert slashes to dashes.        // Convert slashes to dashes.
314        $clean_path = str_replace('/', '-', $clean_path);        $clean_path = str_replace('/', '-', $clean_path);
315        $path_class = 'menu-path-'. $clean_path;        $path_class = 'menu-path-'. $clean_path;

Legend:
Removed from v.1.35.2.15  
changed lines
  Added in v.1.35.2.16

  ViewVC Help
Powered by ViewVC 1.1.2