From ad896c53deac3f1fd405ba582d41c164470cbf4e Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 27 Apr 2010 22:26:36 +0000 Subject: Added navigation/tabs view for tabbed navigation. git-svn-id: http://code.elgg.org/elgg/trunk@5907 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/tabs.php | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 views/default/navigation/tabs.php (limited to 'views/default/navigation/tabs.php') diff --git a/views/default/navigation/tabs.php b/views/default/navigation/tabs.php new file mode 100644 index 000000000..8a51c7f3d --- /dev/null +++ b/views/default/navigation/tabs.php @@ -0,0 +1,43 @@ + string, // Title of link + * 'url' => string, // URL for the link + * 'class' => string // Class of the li element. + * 'selected' => bool // if this link is currently selected + * ) + **/ + +$type = (isset($vars['type'])) ? $vars['type'] : 'horizontal'; +if ($type == 'horizontal') { + $type_class = "elgg_horizontal_tabbed_nav margin_top"; +} else { + $type_class = "elgg_vertical_tabbed_nav"; +} + +if (isset($vars['tabs'])) { + ?> +
+ +
+