aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-12-13 02:03:17 +0000
committerCash Costello <cash.costello@gmail.com>2009-12-13 02:03:17 +0000
commitdd8ff039f642b9eb6ea65cc1a58017ce867ec7b3 (patch)
tree71f92cbf22405ddbec079480e207c7fd3fe00e0a /start.php
parente7a7c88d81f494d8a0c99f36338247caaf6b4bd3 (diff)
downloadelgg-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.php23
1 files changed, 12 insertions, 11 deletions
diff --git a/start.php b/start.php
index 7b6e46805..2c6057635 100644
--- a/start.php
+++ b/start.php
@@ -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' );