1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 01:18:21 +01:00

remove facebook api on blog

This commit is contained in:
Xuan Sang LE 2020-06-05 20:00:42 +02:00
parent 41e32d2730
commit fa26dfd71f
3 changed files with 4 additions and 3 deletions

View File

@ -74,13 +74,14 @@
}(document, "script", "twitter-wjs"));
// facebook
/*
(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 = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.12';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}(document, 'script', 'facebook-jssdk'));*/
/*(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;

View File

@ -25,7 +25,7 @@
local old_url = HTTP_ROOT.."/r:id:"..data.id
?>
</span>
<div class="fb-like" data-href="<?=old_url?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>
<!--div class="fb-like" data-href="<?=old_url?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div-->
<!--div class="g-plusone" data-action="share" data-size="medium" data-href="<?=url?>"></div-->
<a class="twitter-share-button" href='https://twitter.com/intent/tweet?url=<?=url?>&text=<?=data.title?>'></a>
</div>

View File

@ -32,7 +32,7 @@
local old_url = HTTP_ROOT.."/r:id:"..data.id
?>
</span>
<div class="fb-like" data-href="<?=old_url?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div>
<!--div class="fb-like" data-href="<?=old_url?>" data-layout="button_count" data-action="like" data-size="small" data-show-faces="true" data-share="true"></div-->
<!--div class="g-plusone" data-action="share" data-size="medium" data-href="<?=url?>"></div-->
<a class="twitter-share-button" href='https://twitter.com/intent/tweet?url=<?=url?>&text=<?=data.title?>'></a>
</div>