aboutsummaryrefslogtreecommitdiff
path: root/mod/lightbox/pages/lightbox/friends.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:04:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:04:14 -0300
commit4a86fa9b2e63b9d6bb0a07333d4c7d59df621270 (patch)
tree5770bd548bc70a10dbd5c24aee13c3449bf428a9 /mod/lightbox/pages/lightbox/friends.php
parentd7317abf01cc1f5a6e4ee54f25664e51d23217b9 (diff)
parent66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30 (diff)
downloadelgg-4a86fa9b2e63b9d6bb0a07333d4c7d59df621270.tar.gz
elgg-4a86fa9b2e63b9d6bb0a07333d4c7d59df621270.tar.bz2
Merge commit '66dd3f3f5f14bb0ba6d2c7ef83b5b612d5ee2e30' as 'mod/lightbox'
Diffstat (limited to 'mod/lightbox/pages/lightbox/friends.php')
-rw-r--r--mod/lightbox/pages/lightbox/friends.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/mod/lightbox/pages/lightbox/friends.php b/mod/lightbox/pages/lightbox/friends.php
new file mode 100644
index 000000000..6b0bbb03e
--- /dev/null
+++ b/mod/lightbox/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);