diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:35:06 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-28 03:35:06 +0000 |
commit | 9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8 (patch) | |
tree | b752213a0ae13656cd88542984a328184fe07160 | |
parent | 5107faa7e96efd940ce28da9f46508298759c189 (diff) | |
download | elgg-9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8.tar.gz elgg-9e4cce719aafe736f784a3b7a886e5b5ba3c9ae8.tar.bz2 |
added a menu option to group album listing
-rw-r--r-- | index.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -13,10 +13,19 @@ //if page owner cannot be found, forward to user's pictures instead (or world if not logged in)
if (is_null($owner->username) || empty($owner->username)) {
//if not logged in, see world pictures instead
- if (!isloggedin()) forward('pg/photos/world');
+ if (!isloggedin())
+ forward('pg/photos/world');
+
forward('pg/photos/owned/' . $_SESSION['user']->username);
}
+ // setup group menu for album index
+ if ($owner instanceof ElggGroup) {
+ add_submenu_item( elgg_echo('album:create'),
+ $CONFIG->wwwroot . 'pg/photos/new/' . $owner->username,
+ 'tidypics');
+ }
+
//set the title
$title = sprintf(elgg_echo('album:user'), "$owner->name");
$area2 = elgg_view_title($title);
|