diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 02:14:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 02:14:39 +0000 |
commit | 72c83e4904a13c0e07d0d328ccbd201d16a617cc (patch) | |
tree | cae9eee563d5dce2cf22896ecdfbdf516611abe0 /mod/profile/views/default | |
parent | abf3fcae3f90b4c52e40d3ef8bb11f92c7a03d1c (diff) | |
download | elgg-72c83e4904a13c0e07d0d328ccbd201d16a617cc.tar.gz elgg-72c83e4904a13c0e07d0d328ccbd201d16a617cc.tar.bz2 |
pulled user owner block menu out of profile plugin with new menu code
git-svn-id: http://code.elgg.org/elgg/trunk@7677 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/views/default')
-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} |