11 lines
571 B
PHP
11 lines
571 B
PHP
<?php
|
|
|
|
addHead('<script>$(document).ready(function(){ $("article").append(\'<div class="pad fb-share-button" data-href="'.get_current_link(true).'" data-type="button_count"></div>\');});</script>', 'fb-share');
|
|
addHead('<div id="fb-root"></div>
|
|
<script>(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, "script", "facebook-jssdk"));</script>', 'fb-root'); |