From a8fd46fa6e81f091f73d7d2839f9031ced423f58 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 23 Jun 2010 16:14:51 +0000 Subject: Updated documentation for page_elements/content_header git-svn-id: http://code.elgg.org/elgg/trunk@6555 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/page_elements/content_header.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/views/default/page_elements/content_header.php b/views/default/page_elements/content_header.php index 79e1ce279..1591c2267 100644 --- a/views/default/page_elements/content_header.php +++ b/views/default/page_elements/content_header.php @@ -3,12 +3,19 @@ * Displays the Add New button, and the All, Mine, My Friends tabs for plugins * If a user is not logged in, this only displays the All tab. * If this is in a group context, it doesn't display any tabs + * + * @uses string $vars['type'] The section type. Should be the same as the page handler. Used for generating URLs. + * @uses string $vars['context'] Which filter we're looking at: all, mine, friends, or action. Nothing to do with get_context(). + * + * @uses string $vars['all_link'] Optional. The URL to use for the "All" tab link. Defaults to mod/$type/all.php + * @uses string $vars['mine_link'] Optional. The URL to use for the "Mine" tab link. Defaults to pg/$type/$username + * @uses string $vars['friends_link'] Optional. The URL to use for the "Friends" tab link. Defaults to pg/$type/$username/friends + * @uses string $vars['new_link'] Optional. The URL to use for the "New" button. Defaults to pg/$type/$username/new + * @uses array $vars['tabs'] Optional. Override all tab generation. See view:navgiation/tabs for formatting * * @package Elgg * @subpackage Core - * @author Curverider Ltd * @link http://elgg.org/ - * */ $page_owner = page_owner_entity(); @@ -62,10 +69,10 @@ if (isloggedin()) { $tab_list = ''; } else { // @todo remove the hard coded reference to the videolist plugin - if(get_context() == "videolist"){ + if (get_context() == "videolist"){ $video_link = $CONFIG->wwwroot . "pg/videolist/browse/$username/"; $new_button = "" . elgg_echo('videolist:browsemenu') . ''; - }else{ + } else { $new_link = (isset($vars['new_link'])) ? $vars['new_link'] : "{$CONFIG->wwwroot}pg/$type/$username/new"; $new_button = "" . elgg_echo($type . ':new') . ''; } -- cgit v1.2.3