mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 03:26:20 +05:30
Update functions.php
This commit is contained in:
parent
c26c33095e
commit
05d31496f7
1 changed files with 2 additions and 1 deletions
|
|
@ -2510,6 +2510,7 @@ function facebook()
|
|||
{
|
||||
$comment = config('comment.system');
|
||||
$appid = config('fb.appid');
|
||||
$lang = config('language');
|
||||
$script = <<<EOF
|
||||
<div id="fb-root"></div>
|
||||
<script>(function (d, s, id) {
|
||||
|
|
@ -2517,7 +2518,7 @@ function facebook()
|
|||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={$appid}";
|
||||
js.src = "//connect.facebook.net/{$lang}/all.js#xfbml=1&appId={$appid}";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue