lib/social_share_button/helper.rb in social-share-button-0.3.4 vs lib/social_share_button/helper.rb in social-share-button-0.4.0
- old
+ new
@@ -11,9 +11,11 @@
html << "data-url='#{opts[:url]}' data-desc='#{opts[:desc]}' data-via='#{opts[:via]}'>"
opts[:allow_sites].each do |name|
extra_data = opts.select { |k, _| k.to_s.start_with?('data') } if name.eql?('tumblr')
special_data = opts.select { |k, _| k.to_s.start_with?('data-' + name) }
+
+ special_data["data-weichat-footer"] = t "social_share_button.weichat_footer" if name == "weichat"
link_title = t "social_share_button.share_to", :name => t("social_share_button.#{name.downcase}")
html << link_to("", "#", { :rel => ["nofollow", rel],
"data-site" => name,
:class => "ssb-icon ssb-#{name}",