Sha256: 5c0c3e5fcf155bc00a1e6439e5655cd746e2b01bf37286bd9856e06315123c21

Contents?: true

Size: 346 Bytes

Versions: 19

Compression:

Stored size: 346 Bytes

Contents

<%
   key = attributes.keys.first.to_s
   widget = @current_site.widgets.where("slug = ?", key).first
%>
<% if widget.present? %>
    <% if (r = widget.renderer).present? %>
        <%= render partial: r, locals: {attributes: attributes } %>
    <% else %>
        <%= raw do_shortcode(widget[:description].translate) %>
    <% end %>
<% end  %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
camaleon_cms-2.9.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.8.3 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.8.2 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.8.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.8.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.5 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.4 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.3 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.2 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.7.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.4 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.3 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.2 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.0.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.6.0 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.5.3.1 app/views/camaleon_cms/shortcode_templates/widget.html.erb
camaleon_cms-2.5.3 app/views/camaleon_cms/shortcode_templates/widget.html.erb