-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsocial-share
10 lines (6 loc) · 1.89 KB
/
social-share
1
2
3
4
5
6
7
8
9
10
<a class="facebook-share" onClick="window.open('http://www.facebook.com/sharer.php?u=<?php echo site_url();?>','Facebook','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://www.facebook.com/sharer.php?u=<?php echo site_url();?>"><i class="fa fa-facebook"></i></a>
<a class="twitter-share" onClick="window.open('http://twitter.com/share?url=<?php echo site_url();?>&text=<?php bloginfo('title'); ?>','Twitter share','width=600,height=300,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-150)+''); return false;" href="http://twitter.com/share?url=<?php echo site_url();?>&text=<?php echo str_replace(" ", "%20", bloginfo('title')); ?>"><i class="fa fa-twitter"></i></a>
<a class="google-plus-share" onClick="window.open('https://plus.google.com/share?url=<?php echo site_url();?>','Google plus','width=585,height=666,left='+(screen.availWidth/2-292)+',top='+(screen.availHeight/2-333)+''); return false;" href="https://plus.google.com/share?url=<?php echo site_url();?>"><i class="fa fa-google-plus"></i></a>
<a class="pinterest-share" href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><i class="fa fa-pinterest"></i></a>
<a id="ref_lkd" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode($share_url);?>&title=<?php echo strip_tags($title); ?>&source=<?php echo urlencode($siteurl);?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=800,width=1000');return false;"><i class="fa fa-linkedin"></i></a>