| 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. |
| 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; |