Web site sharing plug-in, a lot of online, but all need to integrate others packaged well or their own every one of the implementation of the home, rather troublesome.
Here is a new way to implement this:
From: https://tumutanzi.com/archives/11987
In short, a word, directly in the <a> tag inside the href plus JS code, you can achieve the effect of sharing the site.
As follows:
<!--social Sharing-<ul> <li><a href= "Javascript:var d=document,f=" https ://www.facebook.com/share ', l=d.location,e=encodeuricomponent,p= '. php?src=bm&v=4&i=1378393915&u= ' +e (l.href) + ' &t= ' +e (d.title); 1;try{if (!/^ (. *\.)? Facebook\. [^.] *$/.test (L.host)) throw (0), Share_internal_bookmarklet (p)}catch (z) {a=function () {if (!window.open (f+ ' R ' +p, ' sharer ') , ' toolbar=0,status=0,resizable=1,width=626,height=436 ')) l.href=f+p};if (/firefox/.test (navigator.userAgent)) SetTimeout (a,0); Else{a ()}}void (0) "><i class=" fa Fa-facebook "></i></a></li> & Lt;li><a href= "javascript: (function () {window.twttr=window.twttr| | {};var D=550,a=450,c=screen.height,b=screen.width,h=math.round ((B/2)-(D/2)), G=0,f=document,e;if (C>A) {G= Math.Round ((C/2)-(A/2))}window.twttr.sharewin=window.open (' Https://twitter.com/share ', ' ', ' left= ' +h+ ', top= ' +g+ ' , width= ' +d+ ', height= ' +a+ ', personalbar=0,toolbar=0,scrollbars=1,resizable=1‘ ); E=f.createelement (' script '); e.src= ' https://platform.twitter.com/bookmarklets/share.js?v=1 '; F.getelementsbytagname (' head ') [0].appendchild (E)} ()); " ><i class= "fa fa-twitter" ></i></a></li> <li><a href= "#" ><i cl ass= "FA Fa-linkedin" ></i></a></li> <li><a href= "Javascript:void (window.op En (' https://plus.google.com/share?ur\l= ' +encodeuricomponent, ' share to Google + ', ' width=600,height=460, Menubar=no,location=no,status=no ')); " ><i class= "fa fa-google-plus" ></i></a></li> <li><a href= "#" >< I class= "fa fa-youtube" ></i></a></li> </ul> </div> <!--. Soc Ial-icons-</div> <!--. Sidebar-menu--
A kind of website sharing plug-in implementation