From 72c83e4904a13c0e07d0d328ccbd201d16a617cc Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 19 Dec 2010 02:14:39 +0000 Subject: 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 --- mod/profile/views/default/profile/ownerblock.php | 43 ++---------------------- 1 file changed, 2 insertions(+), 41 deletions(-) (limited to 'mod/profile/views/default') 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 = "
  • Blog
  • "; -}else{ - $blog_link = ""; -} -if(is_plugin_enabled('bookmarks')){ - $bookmark_link = "
  • Bookmarks
  • "; -}else{ - $bookmark_link = ""; -} -if(is_plugin_enabled('document')){ - $docs_link = "
  • Documents
  • "; -}else{ - $docs_link = ""; -} -if(is_plugin_enabled('feeds')){ - $feeds_link = "
  • Feeds
  • "; -}else{ - $feeds_link = ""; -} -if(is_plugin_enabled('tidypics')){ - $tidypics_link = "
  • Photos
  • "; -}else{ - $tidypics_link = ""; -} -if(is_plugin_enabled('videolist')){ - $video_link = "
  • Videos
  • "; -}else{ - $video_link = ""; -} +$menu = elgg_view_menu('user_ownerblock', array('user' => elgg_get_page_owner())); //contruct the display $display = << - + $menu {$admin_links} -- cgit v1.2.3