From 842031dd358282f608c232094422cd281117c21f Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 14 Apr 2011 14:15:12 +0000 Subject: Refs #3023. Exposed item_class option in the menu item factory. Should we change 'class' to 'link_class' to avoid confusion? git-svn-id: http://code.elgg.org/elgg/trunk@8999 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggMenuItem.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/classes/ElggMenuItem.php') diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index 98a3d7d24..bf6cf2edc 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -127,6 +127,11 @@ class ElggMenuItem { $item->setLinkClass($options['class']); unset($options['class']); } + + if (isset($options['item_class'])) { + $item->setItemClass($options['item_class']); + unset($options['item_class']); + } foreach ($options as $key => $value) { $item->$key = $value; -- cgit v1.2.3