Sha256: 5ace49279ab674eea3467941a2918e330c38cb996832ebda4819c6e78410c10c

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

<% if Spree::Config[:vkontakte_app_id] %>
<div id="product_like_buttons">
  <% content_for :head do %>
  <style>
    #vk_like {
      display: inline-block !important;
      clear: none !important;
      width: 173px !important;
    }
  </style>
  <% end %>
  <!-- Put this script tag to the <head> of your page -->
  <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?25"></script>

  <script type="text/javascript">
    VK.init({apiId: <%= Spree::Config[:vkontakte_app_id] %>, onlyWidgets: true});
  </script>

  <!-- Put this div tag to the place, where the Like block will be -->
  <div id="vk_like" style=""></div>
  <script type="text/javascript">
  VK.Widgets.Like("vk_like", {type: "button"});
  </script>

  <iframe src="http://www.facebook.com/plugins/like.php?href=<%= CGI::escape(request.url) %>&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe>
</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
synergy_default_theme-1.0.2 app/views/shared/_like_buttons.html.erb
synergy_default_theme-1.0.1 app/views/shared/_like_buttons.html.erb
synergy_default_theme-1.0.0 app/views/shared/_like_buttons.html.erb