Sha256: 5606a665b6e6d33768d117fe477e55078b53c273bc6c887bf16a93d2d969e39e
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
<% show_empty_sections ||= false body_content_title = ((title = yield :body_content_title).present? or (title.blank? and show_empty_sections)) ? title : page_title body_content_left = ((body_content_left = yield :body_content_left).present? or (body_content_left.blank? and show_empty_sections)) ? body_content_left : @page[:body] body_content_right = ((body_content_right = yield :body_content_right).present? or (body_content_right.blank? and show_empty_sections)) ? body_content_right : @page[:side_body] 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 -%> <h1 id='body_content_page_title'> <%= body_content_title %> </h1> <% end -%> <% if body_content_left.present? or show_empty_sections -%> <div id='body_content_left' class='clearfix'> <%= body_content_left %> </div> <% end -%> <% if body_content_right.present? or show_empty_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.6.9 | vendor/plugins/refinery/app/views/shared/_content_page.html.erb |