lib/social_share_button/helper.rb in social-share-button-0.0.8 vs lib/social_share_button/helper.rb in social-share-button-0.0.9
- old
+ new
@@ -2,11 +2,11 @@
module SocialShareButton
module Helper
def social_share_button_tag(title = "", opts = {})
rel = opts[:rel]
html = []
- html << "<div class='social-share-button' data-title='#{title}' data-img='#{opts[:image]}'>"
+ html << "<div class='social-share-button' data-title='#{title}' data-img='#{opts[:image]}' data-url='#{opts[:url]}'>"
SocialShareButton.config.allow_sites.each do |name|
link_title = t "social_share_button.share_to", :name => t("social_share_button.#{name.downcase}")
html << link_to("","#", :rel => "nofollow #{rel}",
"data-site" => name,
@@ -16,6 +16,6 @@
end
html << "</div>"
raw html.join("\n")
end
end
-end
\ No newline at end of file
+end