Skip to content

Instantly share code, notes, and snippets.

@tomfuertes
Created December 19, 2013 16:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomfuertes/8042127 to your computer and use it in GitHub Desktop.
Save tomfuertes/8042127 to your computer and use it in GitHub Desktop.
Social Sharing w/ no external requests (Bootstrap3 + FontAwesome)
%li
-# https://developers.facebook.com/docs/reference/dialogs/feed/#redirect
%a{:href => "https://www.facebook.com/sharer/sharer.php?u=#{u request.original_url}", :target=>"blank", :rel=>"external nofollow"}
%span.fa.fa-facebook.fa-2x
%span.text-hide Facebook
%li
-# http://stackoverflow.com/a/11212220/94668
%a{:href => "//pinterest.com/pin/create/button/?url=#{u request.original_url}", :target=>"blank", :rel=>"external nofollow"}
%span.fa.fa-pinterest.fa-2x
%span.text-hide Pinterest
%li
-# https://dev.twitter.com/discussions/10863
%a{:href => "https://twitter.com/intent/tweet?text=#{u(@community_property.name + ' on SeniorAdvisor.com')}&url=#{u request.original_url}", :target=>"blank", :rel=>"external nofollow"}
%span.fa.fa-twitter.fa-2x
%span.text-hide Twitter
%li
-# http://stackoverflow.com/a/11898234/94668
%a{:href => "https://plus.google.com/share?url=#{u request.original_url}", :target=>"blank", :rel=>"external nofollow"}
%span.fa.fa-google-plus.fa-2x
%span.text-hide Google+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment