Guest User

Untitled

a guest
Jun 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. <%
  2. show_empty_sections ||= false
  3. remove_automatic_sections ||= false
  4.  
  5. body_content_title = page_title if (body_content_title = yield :body_content_title).blank? and !show_empty_sections and !remove_automatic_sections
  6. body_content_left = @page[:body] if (body_content_left = yield :body_content_left).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?
  7. body_content_right = @page[:side_body] if (body_content_right = yield :body_content_right).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?
  8.  
  9. extra_body_content_classes = []
  10. extra_body_content_classes << "no_title" if body_content_title.blank?
  11. extra_body_content_classes << "no_left" if body_content_left.blank?
  12. extra_body_content_classes << "no_right" if body_content_right.blank?
  13. -%><!-- InstanceBeginEditable name="mainSection" -->
  14.  
  15. <td width="667" valign="top" bgcolor="#FFFFFF" align="left">
  16. <table cellspacing="0" cellpadding="0" border="0" width="667">
  17. <tbody>
  18. <!-- tag line and ornamentation at top right of page -->
  19. <tr>
  20. <td height="146" width="376" valign="top" align="left" class="topdesign">
  21. <img height="146" width="376" src="/theme/images/tagline-design.jpg">
  22. </td>
  23. <td width="291" valign="top" align="left" class="topdesign">
  24. <img height="146" width="291" src="/theme/images/top-plants-design.jpg">
  25. </td>
  26. </tr><!-- attention-getting image or animation -->
  27. <tr>
  28. <td height="240" width="667" valign="top" bgcolor="#f" align="left" colspan="2">
  29. <% if body_content_right.present? or (show_empty_sections and !remove_automatic_sections) %>
  30. <%= body_content_right %>
  31. <% end %>
  32. </td>
  33. </tr><!-- title -->
  34. <tr>
  35. <td height="56" width="667" valign="top" align="left" colspan="2">
  36. <div class="titleContainer">
  37. <% if body_content_title.present? or (show_empty_sections and !remove_automatic_sections) -%>
  38. <h1 id='body_content_page_title' class="title">
  39. <%= body_content_title %>
  40. </h1><% end -%>
  41. </div>
  42. </td>
  43. </tr><!-- body text -->
  44. <tr>
  45. <td width="667" valign="top" align="left" colspan="2">
  46. <table cellspacing="0" cellpadding="0" border="0" width="667">
  47. <tbody>
  48. <tr>
  49. <td width="33" valign="top" align="left">
  50. &nbsp;
  51. </td>
  52. <td width="604" valign="top" align="left">
  53. <% if body_content_left.present? or (show_empty_sections and !remove_automatic_sections) %>
  54. <div id='body_content_left' class='clearfix'>
  55. <%= body_content_left %>
  56. </div><% end %>
  57. </td>
  58. <td width="30" valign="top" align="left">
  59. &nbsp;
  60. </td>
  61. </tr>
  62. <tr>
  63. <td valign="top" align="left">
  64. &nbsp;
  65. </td>
  66. <td width="604" valign="top" align="left"></td>
  67. <td valign="top" align="left">
  68. &nbsp;
  69. </td>
  70. </tr>
  71. <tr>
  72. <td valign="top" align="left">
  73. &nbsp;
  74. </td>
  75. <td valign="top" align="left">
  76. &nbsp;
  77. </td>
  78. <td valign="top" align="left">
  79. &nbsp;
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table><!-- InstanceEndEditable -->
  88. </td>
Add Comment
Please, Sign In to add comment