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) %>&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&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