You are here

se-facebook-like.html.twig in Share Everywhere 8

Same filename and directory in other branches
  1. 2.x templates/se-facebook-like.html.twig

Default theme implementation for Facebook like button.

Available variables:

  • url: The url of the page to be liked.

File

templates/se-facebook-like.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for Facebook like button.
  5. *
  6. * Available variables:
  7. * - url: The url of the page to be liked.
  8. *
  9. */
  10. #}
  11. <div id="fb-root"></div>
  12. <script>(function(d, s, id) {
  13. var js, fjs = d.getElementsByTagName(s)[0];
  14. if (d.getElementById(id)) return;
  15. js = d.createElement(s); js.id = id;
  16. js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
  17. fjs.parentNode.insertBefore(js, fjs);
  18. }(document, 'script', 'facebook-jssdk'));</script>
  19. <div class="fb-like" data-href="{{ url }}" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div>