]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Adding submenu items for standard plugins to owner block.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 May 2010 22:15:58 +0000 (22:15 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 May 2010 22:15:58 +0000 (22:15 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6122 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/start.php
mod/bookmarks/start.php
mod/file/start.php
mod/pages/start.php

index b5efa96d8ccbe38cf57637dc557f15888ce6e81b..20f51937ffff903f3b0dc2e3e91cb16a2540257c 100644 (file)
@@ -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');
index 778133d4fd496e1500a784a8fb9f588d6544034c..205069197f77651b53d591bb66514e7edfa7a93b 100644 (file)
@@ -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}",
+                       ));
+               }
        }
 }
 
index b8a26fab59e5c9d426cbcc3c606539f67e0a8347..a257a90acda73ad787ce59f955a75a5646f38665 100644 (file)
                                    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}",
+                       ));
+               }
        }
 
        /**
index fd9d253f79a3e6f9b24ef33f263abe9e9a59277f..a769f369108ed17399f039f618597e6dfd0f1769 100644 (file)
                            }
                        }
                        
-                       
+               if ($page_owner instanceof ElggEntity) {
+                       elgg_add_submenu_item(array(
+                               'text' => elgg_echo('pages'),
+                               'href' => "{$CONFIG->url}pg/pages/owned/{$page_owner->username}",
+                       ));
+               }
     }
        
        /**