diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-27 04:08:16 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-27 04:08:16 +0000 |
commit | 52aa1de0e8b98c6a4f630ad1b74a85c93b7e5a1c (patch) | |
tree | 85be56b265fa6245d9e8f05af5da4a4197ffd739 /views/default | |
parent | 1f3149f54dd9ec94ff074dc9a0d2acaa732be7f6 (diff) | |
download | elgg-52aa1de0e8b98c6a4f630ad1b74a85c93b7e5a1c.tar.gz elgg-52aa1de0e8b98c6a4f630ad1b74a85c93b7e5a1c.tar.bz2 |
supporting adding a class to navigation tabs
git-svn-id: http://code.elgg.org/elgg/trunk@7947 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/navigation/tabs.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/navigation/tabs.php b/views/default/navigation/tabs.php index 4e9d1ee17..4a5a5e7a9 100644 --- a/views/default/navigation/tabs.php +++ b/views/default/navigation/tabs.php @@ -3,6 +3,7 @@ * Tab navigation * * @uses string $vars['type'] horizontal || vertical - Defaults to horizontal + * @uses string $vars['class'] Additional class to add to ul * @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 @@ -16,11 +17,15 @@ $type = elgg_get_array_value('type', $vars, 'horizontal'); if ($type == 'horizontal') { - $type_class = "elgg-tabs elgg-htabs mtm"; + $type_class = "elgg-tabs elgg-htabs"; } else { $type_class = "elgg-tabs elgg-vtabs"; } +if (isset($vars['class'])) { + $type_class = "$type_class {$vars['class']}"; +} + if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) { ?> <ul class="<?php echo $type_class; ?>"> |