123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Elgg friends page
- *
- * @package Elgg.Core
- * @subpackage Social.Friends
- */
- $owner = elgg_get_page_owner_entity();
- $title = elgg_echo("friends:owned", array($owner->name));
- $dbprefix = elgg_get_config('dbprefix');
- $options = array(
- 'relationship' => 'friend',
- 'relationship_guid' => $owner->getGUID(),
- 'inverse_relationship' => false,
- 'type' => 'user',
- 'joins' => array("JOIN {$dbprefix}users_entity ue ON e.guid = ue.guid"),
- 'order_by' => 'ue.name ASC',
- 'full_view' => false,
- 'no_results' => elgg_echo('friends:none'),
- );
- $content = elgg_list_entities_from_relationship($options);
- $params = array(
- 'content' => $content,
- 'title' => $title,
- );
- $body = elgg_view_layout('one_sidebar', $params);
- echo elgg_view_page($title, $body);
|