Elgg  Version 1.9
index.php
Go to the documentation of this file.
1 <?php
10 
11 $title = elgg_echo("friends:owned", array($owner->name));
12 
13 $dbprefix = elgg_get_config('dbprefix');
14 $options = array(
15  'relationship' => 'friend',
16  'relationship_guid' => $owner->getGUID(),
17  'inverse_relationship' => false,
18  'type' => 'user',
19  'joins' => array("JOIN {$dbprefix}users_entity ue ON e.guid = ue.guid"),
20  'order_by' => 'ue.name ASC',
21  'full_view' => false,
22  'no_results' => elgg_echo('friends:none'),
23 );
25 
26 $params = array(
27  'content' => $content,
28  'title' => $title,
29 );
30 $body = elgg_view_layout('one_sidebar', $params);
31 
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$dbprefix
Definition: index.php:13
$owner
Definition: index.php:9
$params
Definition: index.php:26
$body
Definition: index.php:30
$options
Definition: index.php:14
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_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view_layout($layout_name, $vars=array())
Displays a layout with optional parameters.
Definition: views.php:617
elgg_list_entities_from_relationship(array $options=array())
Returns a viewable list of entities by relationship.
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437
$content
Definition: index.php:24
$title
Definition: index.php:11