Elgg  Version 1.9
of.php
Go to the documentation of this file.
1 <?php
10 
11 $title = elgg_echo("friends:of: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' => true,
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 if (!$content) {
26  $content = elgg_echo('friends:none');
27 }
28 
29 $params = array(
30  'content' => $content,
31  'title' => $title,
32 );
33 $body = elgg_view_layout('one_sidebar', $params);
34 
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$body
Definition: of.php:33
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$options
Definition: of.php:14
if(!$content) $params
Definition: of.php:29
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
$owner
Definition: of.php:9
elgg_list_entities_from_relationship(array $options=array())
Returns a viewable list of entities by relationship.
$content
Definition: of.php:24
elgg_view_page($title, $body, $page_shell= 'default', $vars=array())
Assembles and outputs a full page.
Definition: views.php:437
$dbprefix
Definition: of.php:13
$title
Definition: of.php:11