Skip to content

Instantly share code, notes, and snippets.

@DanAntFerrari
Last active March 9, 2016 15:57
Show Gist options
  • Save DanAntFerrari/9088344 to your computer and use it in GitHub Desktop.
Save DanAntFerrari/9088344 to your computer and use it in GitHub Desktop.
Social links share
<ul class="social">
<li>
<a title="Pinterest" href="//www.pinterest.com/pin/create/button/?url=http://www.YOURSITE.com/cat-{{ post.id_post }}"
target="_blank"
rel="nofollow"
onclick="window.open(this.href,'_blank', 'width=700, height=300');return false;">
<span class="icon icon-pinterest"></span>
</a>
</li>
<li>
<a title="Google Plus" href="https://plusone.google.com/_/+1/confirm?hl=it&url=http://www.YOURSITE.com/cat-{{ post.id_post }}"
target="_blank"
rel="nofollow"
onclick="window.open(this.href,'_blank', 'width=700, height=300');return false;">
<span class="icon icon-googleplus"></span>
</a>
</li>
<li>
<a title="Facebook"
href="http://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=http://www.YOURSITE.com/cat-{{ post.id_post }}&amp;p[images][0]={{ app.request.basepath }}/(( imagePath ))&amp;p[title]=YOUR SITE TITLE&amp;p[summary]=YOUR SITE DESCTIPTION"
target="_blank"
rel="nofollow"
onclick="window.open(this.href,'_blank', 'width=700, height=300');return false;">
<span class="icon icon-facebook"></span>
</a>
</li>
<li>
<a title="Twitter" href="//twitter.com/intent/tweet?hashtags=cat&original_referer=http://www.YOURSITE.com/cat-{{ post.id_post }}&url=http://www.YOURSITE.com/cat-{{ post.id_post }}"
target="_blank"
rel="nofollow"
onclick="window.open(this.href,'_blank', 'width=612, height=461');return false;">
<span class="icon icon-twitter"></span>
</a>
</li>
<li>
<a title="linkedIn" href="//www.linkedin.com/cws/share?original_referer=http://www.YOURSITE.com/cat-{{ post.id_post }}&url=http://www.YOURSITE.com/cat-{{ post.id_post }}&lang=it_IT"
target="_blank"
rel="nofollow"
onclick="window.open(this.href,'_blank', 'width=598, height=399');return false;">
<span class="icon icon-linkedin"></span>
</a>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment