source: extensions/FacebookPlug/Plugin/tpl/init.fb.tpl @ 8254

Last change on this file since 8254 was 8254, checked in by rub, 13 years ago

Use tpl instead of XFBML on php

  • Property svn:eol-style set to LF
File size: 955 bytes
Line 
1{if $fbp.async_script}
2<div id="fb-root"></div>
3<script>
4  window.fbAsyncInit = function() {ldelim}
5    FB.init({ldelim}
6      appId  : '{$FACEBOOK_APP_ID}',
7      status : true, // check login status
8      cookie : true, // enable cookies to allow the server to access the session
9      xfbml  : true  // parse XFBML
10    {rdelim});
11  {rdelim};
12  (function() {ldelim}
13    var e = document.createElement(script);
14    e.src = document.location.protocol + //connect.facebook.net/{$LANGUAGE}/all.js;
15    e.async = true;
16    document.getElementById(fb-root).appendChild(e);
17  {rdelim}());
18</script>
19{else}
20<div id="fb-root"></div>
21<script>
22  FB.init({ldelim}
23    appId  : '{$FACEBOOK_APP_ID}',
24    status : true, // check login status
25    cookie : true, // enable cookies to allow the server to access the session
26    xfbml  : true  // parse XFBML
27 {rdelim});
28</script>
29<script src="http://connect.facebook.net/{$LANGUAGE}/all.js#xfbml=1"></script>
30{/if}
Note: See TracBrowser for help on using the repository browser.