Sha256: 0f85b75834704340b5e3abaeb933185c231cac4bea9b55e76a48d7fecf681a28

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

<%= content_tag(:div, class: css_classes, data: data_attributes) do %>
  <% (configuration['linkmap_areas'].presence || []).each_with_index do |attributes, index| %>
    <%= linkmap_area(entry, attributes, index, configuration['background_type']) do %>
      <%= linkmap_area_background_image_div('visited',
                                            attributes,
                                            configuration,
                                            color_map_file) %>

      <% if configuration['background_type'] == 'hover_video' &&
            !Pageflow::ImageFile.find_by_id(configuration['hover_image_id']) %>

        <%= background_image_div(configuration,
                                 'panorama_video',
                                 file_type: 'video_file',
                                 class: 'hover_image') %>
      <% else %>
        <%= linkmap_area_background_image_div('hover',
                                              attributes,
                                              configuration,
                                              color_map_file) %>
      <% end %>

      <div class="linkmap_marker <%= attributes['marker'] %>">
        <div class="inline_loading_spinner">
          <div class="circle_inner">
            <div class="circle_innerst"></div>
          </div>
        </div>
      </div>
      <div class="linkmap_description">
        <div class="link_title"><%= attributes['link_title'] %></div>
        <div class="link_description"><%= raw(attributes['link_description']) %></div>
      </div>
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.1.0 app/views/pageflow/linkmap_page/areas/_div.html.erb
pageflow-linkmap-page-2.0.0 app/views/pageflow/linkmap_page/areas/_div.html.erb