diff options
Diffstat (limited to 'pages/photos/friends.php')
-rw-r--r-- | pages/photos/friends.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pages/photos/friends.php b/pages/photos/friends.php new file mode 100644 index 000000000..b7b6178c5 --- /dev/null +++ b/pages/photos/friends.php @@ -0,0 +1,33 @@ +<?php +/** + * List all the albums of someone's friends + * + * @author Cash Costello + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 + */ + +$owner = elgg_get_page_owner_entity(); + +elgg_push_breadcrumb(elgg_echo('photos'), "photos/all"); +elgg_push_breadcrumb($owner->name, "photos/friends/$owner->username"); +elgg_push_breadcrumb(elgg_echo('friends')); + +$title = elgg_echo('album:friends'); + + +$num_albums = 16; + +elgg_push_context('tidypics:main'); +set_input('list_type', 'gallery'); +$content = list_user_friends_objects($owner->guid, 'album', $num_albums, false); +elgg_pop_context(); + +elgg_register_title_button(); + +$body = elgg_view_layout('content', array( + 'filter_context' => 'friends', + 'content' => $content, + 'title' => $title, +)); + +echo elgg_view_page($title, $body); |