diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-12-13 02:03:17 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-12-13 02:03:17 +0000 |
commit | dd8ff039f642b9eb6ea65cc1a58017ce867ec7b3 (patch) | |
tree | 71f92cbf22405ddbec079480e207c7fd3fe00e0a /start.php | |
parent | e7a7c88d81f494d8a0c99f36338247caaf6b4bd3 (diff) | |
download | elgg-dd8ff039f642b9eb6ea65cc1a58017ce867ec7b3.tar.gz elgg-dd8ff039f642b9eb6ea65cc1a58017ce867ec7b3.tar.bz2 |
fixed display of some album pages - caused a cascade of changes required
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -97,7 +97,7 @@ $view_count = get_plugin_setting('view_count', 'tidypics'); - // owner gets "your albumn", "your friends albums", "your most viewed", "your most recent" + // owner gets "your albumn", "your friends albums", "your most recent", "your most viewed" if (get_loggedin_userid() && get_loggedin_userid() == $page_owner->guid) { add_submenu_item( elgg_echo('album:create'), @@ -112,36 +112,37 @@ $CONFIG->wwwroot . "pg/photos/friends/{$page_owner->username}/", 'tidypics-a'); + add_submenu_item( elgg_echo('tidypics:yourmostrecent'), + $CONFIG->wwwroot . "pg/photos/mostrecent/{$page_owner->username}/", + 'tidypics-a'); + if ($view_count != 'disabled') { add_submenu_item( elgg_echo('tidypics:yourmostviewed'), $CONFIG->wwwroot . "pg/photos/mostviewed/{$page_owner->username}/", 'tidypics-a'); } - add_submenu_item( elgg_echo('tidypics:yourmostrecent'), - $CONFIG->wwwroot . "pg/photos/mostrecent/{$page_owner->username}/", - 'tidypics-a'); } else if (isloggedin()) { $user = get_loggedin_user(); // logged in not owner gets "page owners albums", "page owner's friends albums", "page owner's most viewed", "page owner's most recent" - // and then "your albums", "your most viewed", "your most recent" + // and then "your albums", "your most recent", "your most viewed" add_submenu_item( elgg_echo("album:yours"), $CONFIG->wwwroot . "pg/photos/owned/{$user->username}/", 'tidypics-b' ); - + + add_submenu_item( elgg_echo('tidypics:yourmostrecent'), + $CONFIG->wwwroot . "pg/photos/mostrecent/{$user->username}/", + 'tidypics-b'); + if ($view_count != 'disabled') { add_submenu_item( elgg_echo('tidypics:yourmostviewed'), $CONFIG->wwwroot . "pg/photos/mostviewed/{$user->username}/", 'tidypics-b'); } - add_submenu_item( elgg_echo('tidypics:yourmostrecent'), - $CONFIG->wwwroot . "pg/photos/mostrecent/{$user->username}/", - 'tidypics-b'); - - if($page_owner->name) { // check to make sure the owner set their display name + if ($page_owner->name) { // check to make sure the owner set their display name add_submenu_item( sprintf(elgg_echo("album:user"), $page_owner->name), $CONFIG->wwwroot . "pg/photos/owned/{$page_owner->username}/", 'tidypics-a' ); |