diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-20 22:15:58 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-20 22:15:58 +0000 |
commit | 23b38301a25d603ba66d74e9a791af5eb3685cc2 (patch) | |
tree | e8bb37458a295c270e2dbf3765437af5c564bd44 | |
parent | ff1d229781304112d3376fedabb98e3dbfb0c0ab (diff) | |
download | elgg-23b38301a25d603ba66d74e9a791af5eb3685cc2.tar.gz elgg-23b38301a25d603ba66d74e9a791af5eb3685cc2.tar.bz2 |
Adding submenu items for standard plugins to owner block.
git-svn-id: http://code.elgg.org/elgg/trunk@6122 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/blog/start.php | 8 | ||||
-rw-r--r-- | mod/bookmarks/start.php | 7 | ||||
-rw-r--r-- | mod/file/start.php | 7 | ||||
-rw-r--r-- | mod/pages/start.php | 7 |
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}", + )); + } } /** |