diff options
Diffstat (limited to 'mod/profile')
-rwxr-xr-x | mod/profile/views/default/profile/ownerblock.php | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/mod/profile/views/default/profile/ownerblock.php b/mod/profile/views/default/profile/ownerblock.php index 3fb5f509e..c0b5fd898 100755 --- a/mod/profile/views/default/profile/ownerblock.php +++ b/mod/profile/views/default/profile/ownerblock.php @@ -74,39 +74,7 @@ if (isadminloggedin()) { $admin_links = ''; } - -//check tools are enabled - hard-coded for phase1 -// @todo - provide a view to extend for profile pages ownerblock tool-links -if(is_plugin_enabled('blog')){ - $blog_link = "<li><a href=\"".elgg_get_site_url()."pg/blog/{$username}\">Blog</a></li>"; -}else{ - $blog_link = ""; -} -if(is_plugin_enabled('bookmarks')){ - $bookmark_link = "<li><a href=\"".elgg_get_site_url()."pg/bookmarks/{$username}\">Bookmarks</a></li>"; -}else{ - $bookmark_link = ""; -} -if(is_plugin_enabled('document')){ - $docs_link = "<li><a href=\"".elgg_get_site_url()."pg/document/{$username}\">Documents</a></li>"; -}else{ - $docs_link = ""; -} -if(is_plugin_enabled('feeds')){ - $feeds_link = "<li><a href=\"".elgg_get_site_url()."pg/feeds/{$username}\">Feeds</a></li>"; -}else{ - $feeds_link = ""; -} -if(is_plugin_enabled('tidypics')){ - $tidypics_link = "<li><a href=\"".elgg_get_site_url()."pg/photos/owned/{$username}\">Photos</a></li>"; -}else{ - $tidypics_link = ""; -} -if(is_plugin_enabled('videolist')){ - $video_link = "<li><a href=\"".elgg_get_site_url()."pg/videolist/owned/{$username}\">Videos</a></li>"; -}else{ - $video_link = ""; -} +$menu = elgg_view_menu('user_ownerblock', array('user' => elgg_get_page_owner())); //contruct the display $display = <<<EOT @@ -118,14 +86,7 @@ $display = <<<EOT {$more_info} {$profile_actions} <div class="owner_block_links"> - <ul> - {$blog_link} - {$bookmark_link} - {$docs_link} - {$feeds_link} - {$tidypics_link} - {$video_link} - </ul> + $menu </div> <!-- if admin user --> {$admin_links} |