Sha256: fbe3086d4e4449a7ca236351998796d7e57db9ffe38571e200a8ee1cd959473a

Contents?: true

Size: 1.71 KB

Versions: 25

Compression:

Stored size: 1.71 KB

Contents

<%
  show_empty_sections ||= false
  remove_automatic_sections ||= false

  body_content_title = page_title if (body_content_title = yield :body_content_title).blank? and !show_empty_sections and !remove_automatic_sections
  body_content_left = @page[:body] if (body_content_left = yield :body_content_left).blank? and !show_empty_sections and !remove_automatic_sections
  body_content_right = @page[:side_body] if (body_content_right = yield :body_content_right).blank? and !show_empty_sections and !remove_automatic_sections

  extra_body_content_classes = []
  extra_body_content_classes << "no_title" if body_content_title.blank?
  extra_body_content_classes << "no_left" if body_content_left.blank?
  extra_body_content_classes << "no_right" if body_content_right.blank?
-%>
<%= render :partial => "/shared/submenu" if !admin? and (show_submenu ||= true) and RefinerySetting.find_or_set(:show_submenu_on_content_pages, true) %>
<div id='body_content' class='clearfix<%= " #{extra_body_content_classes.join(" ")}" if extra_body_content_classes.any? %>'>
<% if body_content_title.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <h1 id='body_content_page_title'>
    <%= body_content_title %>
  </h1>
<% end -%>
<% if body_content_left.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <div id='body_content_left' class='clearfix'>
    <%= body_content_left %>
  </div>
<% end -%>
<% if body_content_right.present? or (show_empty_sections and !remove_automatic_sections)  -%>
  <div id='body_content_right' class='clearfix'>
    <%= body_content_right %>
  </div>
<% end -%>
</div>
<% unless @page.live? -%>
  <div class='page_not_live'>
    This page is NOT live for public viewing.
  </div>
<% end -%>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.34 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.33 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.32 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.31 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.30 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.29 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.28 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.27 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.26 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.25 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.24 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.23 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.22 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.21 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.19 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.18 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.17 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.16 vendor/plugins/refinery/app/views/shared/_content_page.html.erb
refinerycms-0.9.6.15 vendor/plugins/refinery/app/views/shared/_content_page.html.erb