diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-12-12 19:51:49 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-12-12 19:51:49 +0000 |
commit | 621177abc2bc60e9edb3ca723a4afaa9d9e713ef (patch) | |
tree | d6064f1fe767d042ea41e4adea88e57b8e5138ff /pages/friends.php | |
parent | b40060fafaba46e2fb8800b2c2e557a8c6bde9db (diff) | |
download | elgg-621177abc2bc60e9edb3ca723a4afaa9d9e713ef.tar.gz elgg-621177abc2bc60e9edb3ca723a4afaa9d9e713ef.tar.bz2 |
convert line endings to Unix
Diffstat (limited to 'pages/friends.php')
-rw-r--r-- | pages/friends.php | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/pages/friends.php b/pages/friends.php index 8ac1e21d0..e35adce04 100644 --- a/pages/friends.php +++ b/pages/friends.php @@ -1,38 +1,38 @@ -<?php
- /**
- * Tidypics Friends Albums Listing
- *
- * List all the albums of someone's friends
- */
-
- include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";
-
- $username = get_input('username');
-
- // if no username, redirect to world photo albums
- if (!$username) {
- forward('pg/photos/world');
- }
-
- // setup title
- $user = get_user_by_username($username);
- if (!$user) {
- forward('pg/photos/world');
- }
- if ($user->guid == get_loggedin_userid())
- $title = elgg_echo('album:yours:friends');
- else
- $title = sprintf(elgg_echo('album:friends'), $user->name);
-
- $area2 = elgg_view_title($title);
-
- // get html for viewing list of photo albums
- set_context('search');
- set_input('search_viewtype', 'gallery'); // need to force gallery view
- $area2 .= list_user_friends_objects($user->guid, 'album', 10, true, false);
-
-
- $body = elgg_view_layout('two_column_left_sidebar', '', $area2);
-
- page_draw($title, $body);
+<?php + /** + * Tidypics Friends Albums Listing + * + * List all the albums of someone's friends + */ + + include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php"; + + $username = get_input('username'); + + // if no username, redirect to world photo albums + if (!$username) { + forward('pg/photos/world'); + } + + // setup title + $user = get_user_by_username($username); + if (!$user) { + forward('pg/photos/world'); + } + if ($user->guid == get_loggedin_userid()) + $title = elgg_echo('album:yours:friends'); + else + $title = sprintf(elgg_echo('album:friends'), $user->name); + + $area2 = elgg_view_title($title); + + // get html for viewing list of photo albums + set_context('search'); + set_input('search_viewtype', 'gallery'); // need to force gallery view + $area2 .= list_user_friends_objects($user->guid, 'album', 10, true, false); + + + $body = elgg_view_layout('two_column_left_sidebar', '', $area2); + + page_draw($title, $body); ?>
\ No newline at end of file |