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