From b4bd662414f2d49f238bf0fabf05878d9d967877 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 31 Dec 2010 14:36:26 +0000 Subject: Fixes #2703 - added support for url ids in navigation tabs git-svn-id: http://code.elgg.org/elgg/trunk@7788 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/tabs.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'views/default/navigation/tabs.php') diff --git a/views/default/navigation/tabs.php b/views/default/navigation/tabs.php index e3398a99d..21fae8202 100644 --- a/views/default/navigation/tabs.php +++ b/views/default/navigation/tabs.php @@ -6,10 +6,11 @@ * @uses array $vars['tabs'] A multi-dimensional array of tab entries in the format array( * 'title' => string, // Title of link * 'url' => string, // URL for the link - * 'url_js' => string, // JS to pass to the link + * 'class' => string // Class of the li element + * 'id' => string, // ID of the li element + * 'selected' => bool // if this li element is currently selected * 'url_class' => string, // Class to pass to the link - * 'class' => string // Class of the li element. - * 'selected' => bool // if this link is currently selected + * 'url_id' => string, // ID to pass to the link * ) */ @@ -26,6 +27,7 @@ if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) { $url, @@ -42,14 +45,14 @@ if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) { 'text' => $title ); - if (isset($info['url_js'])) { - $options['js'] = $info['url_js']; - } - if (isset($info['url_class'])) { $options['class'] = $info['url_class']; } + if (isset($info['url_id'])) { + $options['internalid'] = $info['url_id']; + } + $link = elgg_view('output/url', $options); echo "
  • $link
  • "; -- cgit v1.2.3