Elgg  Version 1.11
add.php
Go to the documentation of this file.
1 <?php
9 // You need to be logged in for this one
11 
12 $title = elgg_echo('friends:collections:add');
13 
14 $content = elgg_view_form('friends/collections/add', array(), array(
15  'friends' => elgg_get_logged_in_user_entity()->getFriends(array('limit' => 0)),
16 ));
17 
18 $body = elgg_view_layout('one_sidebar', array(
19  'title' => $title,
20  'content' => $content
21 ));
22 
$content
Definition: add.php:14
$body
Definition: add.php:18
elgg_gatekeeper()
Used at the top of a page to mark it as logged in users only.
Definition: pagehandler.php:58
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:622
$title
Definition: add.php:12
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437
elgg_get_logged_in_user_entity()
Return the current logged in user, or null if no user is logged in.
Definition: sessions.php:32
elgg_view_form($action, $form_vars=array(), $body_vars=array())
Definition: views.php:1313