diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-22 23:53:05 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-04-22 23:53:05 +0000 |
commit | dc76b92badcbcc3d04c9ce4e221dbec5232b2df4 (patch) | |
tree | 1d9eaa4c37bbcf52368854738f1eb4f5a2595773 /views/default/navigation/menu/elements | |
parent | 24a76071b2cc491cc6a2f781cc3759ba2bde17e8 (diff) | |
download | elgg-dc76b92badcbcc3d04c9ce4e221dbec5232b2df4.tar.gz elgg-dc76b92badcbcc3d04c9ce4e221dbec5232b2df4.tar.bz2 |
Fixes #3282: Added a class to menu items which includes menu item name (just like ul contains a class with the menu name)
git-svn-id: http://code.elgg.org/elgg/trunk@9017 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/menu/elements')
-rw-r--r-- | views/default/navigation/menu/elements/item.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php index 893bbd205..55ddc2fe4 100644 --- a/views/default/navigation/menu/elements/item.php +++ b/views/default/navigation/menu/elements/item.php @@ -21,8 +21,11 @@ if ($children) { } $item_class = $item->getItemClass(); + +//allow people to specify name with underscores +$name = str_replace('_', '-', $item->getName()); if ($item_class) { - $class = "class=\"$item_class\""; + $class = "class=\"elgg-menu-item-$name $item_class\""; } echo "<li $class>"; |