source: spip-zone/_plugins_/socialtags/noisettes/socialtags_fb_like.html @ 60008

Last change on this file since 60008 was 60008, checked in by yffic@…, 8 years ago
  • Ajout de possibilités de configuration dans la noisette du bouton like de facebook
  • Ajout d'une noisette pour la boîte Like de Facebook
File size: 952 bytes
Line 
1#SET{width,#ENV{width,490}}
2#SET{bouton_action,#ENV{bouton_action,like}}
3#SET{show_faces,#ENV{show_faces,true}}
4#SET{layout,#ENV{layout,standard}}
5#SET{colorscheme,#ENV{colorscheme,light}}
6[(#SET{code,#LANG|concat{_}|concat{#LANG|strtoupper}})]
7
8<div id="fb-root"></div>
9<script type="application/javascript">/*<!#EVAL{chr(91)}CDATA#EVAL{chr(91)}*/
10(function(d, s, id) {
11  var js, fjs = d.getElementsByTagName(s)[0];
12  if (d.getElementById(id)) {return;}
13  js = d.createElement(s); js.id = id;
14  js.src = "//connect.facebook.net/#GET{code}/all.js#xfbml=1";
15  fjs.parentNode.insertBefore(js, fjs);
16}(document, 'script', 'facebook-jssdk'));
17/*#EVAL{chr(93)}[(#EVAL{chr(93)})]>*/</script>
18
19<div class="fb-like" [(#ENV{afficher_send}|oui)data-send="true"] data-width="#GET{width}" data-show-faces="#GET{show_faces}" data-action="#GET{bouton_action}" data-font="arial" data-layout="#GET{layout}" data-colorscheme="#GET{colorscheme}"></div>
Note: See TracBrowser for help on using the repository browser.