aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 13:01:01 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-03 13:01:01 +0000
commit3500fcfa23ec6d140b88ab0f75b2116b12d739c6 (patch)
tree39931f403e42d3df47ba00c4d71bc9e50d1af2ff
parent3d71951545613b9e866640169a82218c14ba5f42 (diff)
downloadelgg-3500fcfa23ec6d140b88ab0f75b2116b12d739c6.tar.gz
elgg-3500fcfa23ec6d140b88ab0f75b2116b12d739c6.tar.bz2
removed extra div in navigation/tabs
git-svn-id: http://code.elgg.org/elgg/trunk@7515 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--views/default/navigation/tabs.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/views/default/navigation/tabs.php b/views/default/navigation/tabs.php
index 582b56bbe..9d634a35a 100644
--- a/views/default/navigation/tabs.php
+++ b/views/default/navigation/tabs.php
@@ -11,24 +11,24 @@
* 'class' => string // Class of the li element.
* 'selected' => bool // if this link is currently selected
* )
- **/
+ */
-$type = (isset($vars['type'])) ? $vars['type'] : 'horizontal';
+$type = elgg_get_array_value('type', $vars, 'horizontal');
if ($type == 'horizontal') {
- $type_class = "elgg-horizontal-tabbed-nav margin-top";
+ $type_class = "elgg-horizontal-tabbed-nav mtm";
} else {
$type_class = "elgg_vertical_tabbed_nav";
}
if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) {
- ?>
- <div class="<?php echo $type_class; ?>">
- <ul>
+?>
+ <ul class="<?php echo $type_class; ?>">
<?php
foreach ($vars['tabs'] as $info) {
- $class = (isset($info['class'])) ? $info['class'] : '';
-
- if (isset($info['selected']) && $info['selected'] == TRUE) {
+ $class = elgg_get_array_value('class', $info, '');
+
+ $selected = elgg_get_array_value('selected', $info, FALSE);
+ if ($selected) {
$class .= ' selected';
}
@@ -56,6 +56,5 @@ if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) {
}
?>
</ul>
- </div>
<?php
-} \ No newline at end of file
+}