From 72de53f6b9cf475e73271bda388f3097adc625e8 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Fri, 25 Feb 2011 19:28:05 +0000 Subject: Supporting is_action in ElggMenuItem git-svn-id: http://code.elgg.org/elgg/trunk@8469 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggMenuItem.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine') diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index 3ba76f246..784b5670f 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -416,15 +416,22 @@ class ElggMenuItem { } $vars['text'] = $this->text; + if ($this->href) { $vars['href'] = $this->href; } + if ($this->linkClass) { $vars['class'] = $this->linkClass; } + if ($this->title) { $vars['title'] = $this->title; } + + if ($this->is_action) { + $vars['is_action'] = $this->is_action; + } return elgg_view('output/url', $vars); } -- cgit v1.2.3