diff options
author | cash <cash.costello@gmail.com> | 2011-11-20 18:41:34 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-20 18:41:34 -0500 |
commit | 9b814dd2124a8c71dec3a8d510d288f040b03b9e (patch) | |
tree | 63a53f0445df06963de1537af58faba38213b587 /pages/photos/owner.php | |
parent | c51b483f24936c8d04a54a6999412937ec21c49a (diff) | |
download | elgg-9b814dd2124a8c71dec3a8d510d288f040b03b9e.tar.gz elgg-9b814dd2124a8c71dec3a8d510d288f040b03b9e.tar.bz2 |
working on settings
Diffstat (limited to 'pages/photos/owner.php')
-rw-r--r-- | pages/photos/owner.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pages/photos/owner.php b/pages/photos/owner.php index f6582e326..214cd2e37 100644 --- a/pages/photos/owner.php +++ b/pages/photos/owner.php @@ -35,11 +35,22 @@ elgg_pop_context(); elgg_register_title_button(); -$body = elgg_view_layout('content', array( +$params = array( 'filter_context' => 'mine', 'content' => $content, 'title' => $title, 'sidebar' => elgg_view('tidypics/sidebar', array('page' => 'owner')), -)); +); + +// don't show filter if out of filter context +if ($owner instanceof ElggGroup) { + $params['filter'] = false; +} + +if ($owner->getGUID() != elgg_get_logged_in_user_guid()) { + $params['filter_context'] = ''; +} + +$body = elgg_view_layout('content', $params); echo elgg_view_page($title, $body); |