diff options
Diffstat (limited to 'mod/pages/friends.php')
-rw-r--r-- | mod/pages/friends.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mod/pages/friends.php b/mod/pages/friends.php new file mode 100644 index 000000000..fd2e01833 --- /dev/null +++ b/mod/pages/friends.php @@ -0,0 +1,34 @@ +<?php +/** + * Elgg Pages list + * + * @package ElggPages + */ + +$guid = get_input('guid'); + +elgg_set_page_owner_guid($guid); +$owner = elgg_get_page_owner(); +if (!$owner) { + +} + +elgg_push_breadcrumb($owner->name, "pg/pages/owner/$owner->username"); +elgg_push_breadcrumb(elgg_echo('friends')); + +$title = elgg_echo('pages:friends'); + +$content = list_user_friends_objects($owner->guid, 'page_top', 10, false); +if (!$content) { + $content = elgg_echo('pages:none'); +} + +$params = array( + 'filter_context' => 'friends', + 'content' => $content, + 'title' => $title, +); + +$body = elgg_view_layout('content', $params); + +echo elgg_view_page($title, $body); |