From cb20d84a4ce17c8071e8f474b82341ec1aec083d Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 8 Dec 2011 19:28:56 -0500 Subject: added the ability to pass a class to be applied to all menu item
  • elements --- views/default/navigation/menu/elements/item.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'views/default/navigation/menu/elements/item.php') diff --git a/views/default/navigation/menu/elements/item.php b/views/default/navigation/menu/elements/item.php index 5d6a7e367..22383ce0b 100644 --- a/views/default/navigation/menu/elements/item.php +++ b/views/default/navigation/menu/elements/item.php @@ -4,6 +4,9 @@ * * @package Elgg.Core * @subpackage Navigation + * + * @uses $vars['item'] ElggMenuItem + * @uses $vars['item_class'] Additional CSS class for the menu item */ $item = $vars['item']; @@ -21,6 +24,9 @@ if ($children) { } $item_class = $item->getItemClass(); +if (isset($vars['item_class']) && $vars['item_class']) { + $item_class .= ' ' . $vars['item_class']; +} echo "
  • "; echo $item->getContent(); -- cgit v1.2.3