diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 23:10:18 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 23:10:18 +0000 |
commit | 0b3724c9b87f891b48c41ad61c1caf3486cc0799 (patch) | |
tree | 7bd117e0256e1857da935533eb064213bc890a39 /mod/externalpages/views/default/expages/menu.php | |
parent | 26f9c39ae33bc01b0f8c62b4e27f7ee077d0fadc (diff) | |
download | elgg-0b3724c9b87f891b48c41ad61c1caf3486cc0799.tar.gz elgg-0b3724c9b87f891b48c41ad61c1caf3486cc0799.tar.bz2 |
updates externalpages to 1.8
git-svn-id: http://code.elgg.org/elgg/trunk@8209 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/externalpages/views/default/expages/menu.php')
-rw-r--r-- | mod/externalpages/views/default/expages/menu.php | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/mod/externalpages/views/default/expages/menu.php b/mod/externalpages/views/default/expages/menu.php index d91418065..e471619b8 100644 --- a/mod/externalpages/views/default/expages/menu.php +++ b/mod/externalpages/views/default/expages/menu.php @@ -1,17 +1,44 @@ <?php +/** + * External pages menu + * + * @uses $vars['type'] + */ - /** - * Elgg External pages menu - * - * @package ElggExpages - * - */ - - //type - $type = $vars['type']; - - //set the url - $url = $vars['url'] . "pg/expages/index.php?type="; +$type = $vars['type']; + + //set the url + $url = $vars['url'] . "pg/admin/site/expages?type="; + +$pages = array('about', 'terms', 'privacy'); +$tabs = array(); +foreach ($pages as $page) { + $tabs[] = array( + 'title' => elgg_echo("expages:$page"), + 'url' => "pg/admin/site/expages?type=$page", + 'selected' => $page == $type, + ); +} + +echo elgg_view('navigation/tabs', array('tabs' => $tabs)); + +return true; + +/** + * 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 + * '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 + * 'url_id' => string, // ID to pass to the link + * ) + */ ?> |