diff options
Diffstat (limited to 'pages/lightbox/friends.php')
-rw-r--r-- | pages/lightbox/friends.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pages/lightbox/friends.php b/pages/lightbox/friends.php new file mode 100644 index 000000000..6b0bbb03e --- /dev/null +++ b/pages/lightbox/friends.php @@ -0,0 +1,34 @@ +<?php +/** + * Friends albums + * + * @package ElggLightbox + */ + +$owner = elgg_get_page_owner_entity(); +if (!$owner) { + forward('photos/all'); +} + +elgg_push_breadcrumb(elgg_echo('lightbox'), "photos/all"); +elgg_push_breadcrumb($owner->name, "photos/owner/$owner->username"); +elgg_push_breadcrumb(elgg_echo('friends')); + +elgg_register_title_button(); + +$title = elgg_echo("lightbox:friends"); + +// offset is grabbed in list_user_friends_objects +$content = list_user_friends_objects($owner->guid, 'albums', 10, false); +if (!$content) { + $content = elgg_echo("lightbox:none"); +} + +$body = elgg_view_layout('content', array( + 'filter_context' => 'friends', + 'content' => $content, + 'title' => $title, + 'sidebar' => $sidebar, +)); + +echo elgg_view_page($title, $body); |