From 3692a1fbe3f250bdd772d1e07bb5cb69e86f9c3b Mon Sep 17 00:00:00 2001 From: pete Date: Wed, 26 May 2010 09:29:42 +0000 Subject: Additional links to tools added to profile pages ownerblock (hardcoded for phase1) git-svn-id: http://code.elgg.org/elgg/trunk@6222 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/profile/profile_ownerblock.php | 41 +++++++++++----------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'mod/profile/views/default') diff --git a/mod/profile/views/default/profile/profile_ownerblock.php b/mod/profile/views/default/profile/profile_ownerblock.php index a040582d0..a0c551b94 100755 --- a/mod/profile/views/default/profile/profile_ownerblock.php +++ b/mod/profile/views/default/profile/profile_ownerblock.php @@ -69,40 +69,39 @@ if(isadminloggedin()){ } -//check tools are enabled -if(is_plugin_enabled('file')){ - $file_link = "
  • Files
  • "; -}else{ - $file_link = ""; -} +//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('videolist')){ - $video_link = "
  • Videos
  • "; +if(is_plugin_enabled('bookmarks')){ + $bookmark_link = "
  • Bookmarks
  • "; }else{ - $video_link = ""; + $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('pages')){ - $pages_link = "
  • Pages
  • "; +if(is_plugin_enabled('tidypics')){ + $tidypics_link = "
  • Photos
  • "; }else{ - $pages_link = ""; + $tidypics_link = ""; } -if(is_plugin_enabled('bookmarks')){ - $bookmark_link = "
  • Bookmarks
  • "; +if(is_plugin_enabled('videolist')){ + $video_link = "
  • Videos
  • "; }else{ - $bookmark_link = ""; + $video_link = ""; } - - //contruct the display $display = << -- cgit v1.2.3