Sha256: aa6785ada12465e58223beea0c84fd9a35c2eee8fa358ae931000527704c4389
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
<%= cache @entry do %> <% page_media_breakpoints.each do |style, condition| %> <%= media_query(condition) do %> <% @entry.image_files.each do |image_file| %> <%= background_image_lazy_loading_css_class('image', image_file) %> { background-image: url('<%= image_file.attachment.url(style) %>'); } <% end %> <% @entry.video_files.each do |video_file| %> <%= background_image_lazy_loading_css_class('video_poster', video_file) %> { background-image: url('<%= video_file.poster.url(style) %>'); } <% end %> <% end %> <% end %> <% page_media_breakpoints.each do |style, condition| %> <%= media_query(condition) do %> <% @entry.image_files.each do |image_file| %> <%= background_image_lazy_loading_css_class('image_panorama', image_file) %> { background-image: url('<%= image_file.attachment.url("panorama_#{style}") %>'); } <% end %> <% end %> <% end %> <%= file_thumbnails_css(@entry) %> <%= render 'pageflow/entries/theming' %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems