ref: master
plugins/context_content/views/blocks/context_content.html.erb
<% extend ContextContentBlockHelper %> <% contents = block.contents(@page) unless contents.blank? %> <% if block.use_parent_title %> <%= block_title(block.parent_title(contents), block.subtitle) %> <% else %> <%= block_title(block.title, block.subtitle) %> <% end %><% contents.each do |content| %> <% content = FilePresenter.for(content) %><% end %><%= content_image(content) if block.show_image %><% if block.show_name %><%= content.name %><% end %> <% end %>