aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/blog/start.php8
-rw-r--r--mod/bookmarks/start.php7
-rw-r--r--mod/file/start.php7
-rw-r--r--mod/pages/start.php7
4 files changed, 27 insertions, 2 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index b5efa96d8..20f51937f 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -193,6 +193,13 @@ function blog_page_setup() {
add_submenu_item(elgg_echo('blog:groups:group_blogs'), $url);
}
}
+
+ if ($page_owner instanceof ElggEntity) {
+ elgg_add_submenu_item(array(
+ 'text' => elgg_echo('blog'),
+ 'href' => "{$CONFIG->url}pg/blog/{$page_owner->username}/read",
+ ));
+ }
}
/**
@@ -209,5 +216,4 @@ function blog_ecml_views_hook($hook, $entity_type, $return_value, $params) {
return $return_value;
}
-
register_elgg_event_handler('init', 'system', 'blog_init');
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php
index 778133d4f..205069197 100644
--- a/mod/bookmarks/start.php
+++ b/mod/bookmarks/start.php
@@ -63,6 +63,13 @@ function bookmarks_pagesetup() {
add_submenu_item(sprintf(elgg_echo("bookmarks:group"),$page_owner->name), $CONFIG->wwwroot . "pg/bookmarks/" . $page_owner->username . '/items');
}
}
+
+ if ($page_owner instanceof ElggEntity) {
+ elgg_add_submenu_item(array(
+ 'text' => elgg_echo('bookmarks'),
+ 'href' => "{$CONFIG->url}pg/bookmarks/{$page_owner->username}",
+ ));
+ }
}
}
diff --git a/mod/file/start.php b/mod/file/start.php
index b8a26fab5..a257a90ac 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -79,6 +79,13 @@
add_submenu_item(sprintf(elgg_echo("file:group"),$page_owner->name), $CONFIG->wwwroot . "pg/file/" . $page_owner->username);
}
}
+
+ if ($page_owner instanceof ElggEntity) {
+ elgg_add_submenu_item(array(
+ 'text' => elgg_echo('file'),
+ 'href' => "{$CONFIG->url}pg/file/{$page_owner->username}",
+ ));
+ }
}
/**
diff --git a/mod/pages/start.php b/mod/pages/start.php
index fd9d253f7..a769f3691 100644
--- a/mod/pages/start.php
+++ b/mod/pages/start.php
@@ -104,7 +104,12 @@
}
}
-
+ if ($page_owner instanceof ElggEntity) {
+ elgg_add_submenu_item(array(
+ 'text' => elgg_echo('pages'),
+ 'href' => "{$CONFIG->url}pg/pages/owned/{$page_owner->username}",
+ ));
+ }
}
/**