lib/social_share_button/helper.rb in social-share-button-0.1.6 vs lib/social_share_button/helper.rb in social-share-button-0.1.7
- old
+ new
@@ -3,10 +3,10 @@
module Helper
def social_share_button_tag(title = "", opts = {})
extra_data = {}
rel = opts[:rel]
html = []
- html << "<div class='social-share-button' data-title='#{h title}' data-img='#{opts[:image]}' data-url='#{opts[:url]}'>"
+ html << "<div class='social-share-button' data-title='#{h title}' data-img='#{opts[:image]}' data-url='#{opts[:url]}' data-desc='#{opts[:desc]}'>"
SocialShareButton.config.allow_sites.each do |name|
extra_data = opts.select { |k, _| k.to_s.start_with?('data') } if name.eql?('tumblr')
link_title = t "social_share_button.share_to", :name => t("social_share_button.#{name.downcase}")