diff options
author | cash <cash.costello@gmail.com> | 2011-11-19 12:10:46 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-19 12:10:46 -0500 |
commit | 4562cfbb1a630b14fd194271f99f1f8c098dc38d (patch) | |
tree | 926e9e22cca553f48583ff25d782a092795ceb7c /pages/photos/friends.php | |
parent | eb9b13e1bfd861cba9b7a812d929b565d5775175 (diff) | |
download | elgg-4562cfbb1a630b14fd194271f99f1f8c098dc38d.tar.gz elgg-4562cfbb1a630b14fd194271f99f1f8c098dc38d.tar.bz2 |
basic pages for viewing all/mine/friends and viewing an album
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); |