aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/pages/friends.php
blob: 239359ec227a8d6623db296f9c7781060ed10a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * Wire posts of your friends
 */

$owner = elgg_get_page_owner_entity();

$title = elgg_echo('thewire:friends');

elgg_push_breadcrumb(elgg_echo('thewire'), "pg/thewire/all/");
elgg_push_breadcrumb($owner->name, "pg/thewire/owner/$owner->username");
elgg_push_breadcrumb(elgg_echo('friends'));

$content = list_user_friends_objects($owner->guid, 'thewire', 15, false);

$body = elgg_view_layout('content', array(
	'filter_context' => 'friends',
	'content' => $content,
	'title' => $title,
	'buttons' => false,
));

echo elgg_view_page($title, $body);