/MeldForums/themes/preen/templates/display/profilepanel.cfm

http://github.com/meldsolutions/Meld-Forums · ColdFusion · 86 lines · 64 code · 2 blank · 20 comment · 0 complexity · bd829f5e3a8988316cb51a225b02ad79 MD5 · raw file

  1. <!---
  2. This file is part of the Meld Forums application.
  3. Meld Forums is licensed under the GPL 2.0 license
  4. Copyright (C) 2010 2011 Meld Solutions Inc. http://www.meldsolutions.com/
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation, version 2 of that license..
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. --->
  16. <cfsilent>
  17. <cfset local.rc = rc />
  18. <cfset local.userBean = rc.userBean />
  19. <cfset local.context = "profile" />
  20. <cfinclude template="#rc.MFBean.getThemeRootDirectory()#event/e_global.cfm">
  21. <cfinclude template="#rc.MFBean.getThemeRootDirectory()#event/e_profilepanel.cfm">
  22. </cfsilent>
  23. <cfoutput>
  24. <cfmodule template="module/md_page_header.cfm" local="#local#">
  25. <cfif rc.userBean.getUserID() neq $.currentUser().getUserID()>
  26. <div class="notice highlight"><strong>#rc.mmRBF.key('attention')#:</strong> #rc.mmRBF.key('moderatingprofile')#</div>
  27. </cfif>
  28. <cfif len( rc.userBean.getAdminMessage() )>
  29. <div class="notice highlight">
  30. <p>#rc.userBean.getAdminMessage()#</p>
  31. </div>
  32. </cfif>
  33. <table id="md-profile-panel" class="clearfix md-profile-panel-#rc.panel#">
  34. <tr>
  35. <td id="md-profile-panel-menu">
  36. <cfmodule template="module/md_profile_panel_menu.cfm" local="#local#">
  37. </td>
  38. <td id="md-profile-panel-panel" class="clearfix">
  39. <cfif rc.panel eq "custom">
  40. <cfmodule template="module/md_profile_custom.cfm" local="#local#">
  41. <cfelseif len(local.eventContent['panelContent'])>
  42. #local.eventContent['panelContent']#
  43. <cfelse>
  44. <cfswitch expression="#rc.panel#">
  45. <cfcase value="overview">
  46. <cfmodule template="module/md_profile_panel.cfm" local="#local#">
  47. </cfcase>
  48. <cfcase value="avatar">
  49. <cfmodule template="module/md_profile_panel_avatar.cfm" local="#local#">
  50. </cfcase>
  51. <cfcase value="moderate">
  52. <cfif rc.MFBean.userHasModeratePermissions(rc.userID)>
  53. <cfmodule template="module/md_profile_panel_moderate.cfm" local="#local#">
  54. <cfelse>
  55. <cfthrow message="!" />
  56. </cfif>
  57. </cfcase>
  58. <cfcase value="privacy">
  59. <cfmodule template="module/md_profile_panel_privacy.cfm" local="#local#">
  60. </cfcase>
  61. <cfcase value="settings">
  62. <cfmodule template="module/md_profile_panel_settings.cfm" local="#local#">
  63. </cfcase>
  64. <cfcase value="error">
  65. <cfmodule template="module/md_profile_panel_error.cfm" local="#local#">
  66. </cfcase>
  67. <cfdefaultcase>
  68. <cfmodule template="module/md_profile_panel.cfm" local="#local#">
  69. </cfdefaultcase>
  70. </cfswitch>
  71. </cfif>
  72. <cfif len(local.eventContent['customPanelContent'])>
  73. #local.eventContent['customPanelContent']#
  74. </cfif>
  75. </td>
  76. </tr>
  77. </table>
  78. <cfmodule template="module/md_page_footer.cfm" local="#local#">
  79. </cfoutput>