Elgg  Version 2.2
view.php
Go to the documentation of this file.
1 <?php
10 if (!$owner) {
11  forward('', '404');
12 }
13 
14 $title = elgg_echo('friends:collections');
15 if ($owner->canEdit()) {
16  elgg_register_menu_item('title', [
17  'name' => 'add',
18  'href' => "collections/add/$owner->guid",
19  'text' => elgg_echo('collections:add'),
20  'link_class' => 'elgg-button elgg-button-action',
21  ]);
22 }
23 
25 
26 $body = elgg_view_layout('content', array(
27  'filter' => false,
28  'content' => $content,
29  'title' => $title,
30  'context' => 'collections',
31 ));
32 
if(!$owner) $title
Definition: view.php:14
elgg_view_access_collections($owner_guid)
Displays a user&#39;s access collections, using the core/friends/collections view.
Definition: views.php:1519
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
if($owner->canEdit()) $content
Definition: view.php:24
$body
Definition: view.php:26
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:679
elgg forward
Meant to mimic the php forward() function by simply redirecting the user to another page...
Definition: elgglib.js:425
$owner
Definition: view.php:9
elgg echo
Translates a string.
Definition: languages.js:48
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_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437