You are here

fblikebutton.html.twig in Facebook Like Button 8

Template file for fblikebutton.

The variable of primary importance is src. This is generated and sanitized the preprocess function. As facebook's services change frequently you can override these settings without altering this module by overriding the preprocess function in your theme's pages.inc file. The overriding preprocessor should be a function named MYTHEME_preprocess_fblikebutton. You can also override the output of this file by copying it into your own theme directory. For maintainability you should not alter this file on your site as it will lead to complications when updating the module later.

File

templates/fblikebutton.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template file for fblikebutton.
  5. *
  6. * The variable of primary importance is src. This is generated and sanitized
  7. * the preprocess function. As facebook's services change frequently you can
  8. * override these settings without altering this module by overriding the
  9. * preprocess function in your theme's pages.inc file. The overriding
  10. * preprocessor should be a function named MYTHEME_preprocess_fblikebutton. You
  11. * can also override the output of this file by copying it into your own theme
  12. * directory. For maintainability you should not alter this file on your site as
  13. * it will lead to complications when updating the module later.
  14. *
  15. */
  16. #}
  17. <div id="fb-root"></div>
  18. <script>(function(d, s, id) {
  19. var js, fjs = d.getElementsByTagName(s)[0];
  20. if (d.getElementById(id)) return;
  21. js = d.createElement(s); js.id = id;
  22. js.src = "//connect.facebook.net/{{ language }}/sdk.js#xfbml=1&version=v2.5";
  23. fjs.parentNode.insertBefore(js, fjs);
  24. }(document, 'script', 'facebook-jssdk'));</script>
  25. <div class="fb-like" data-href="{{ url }}" data-layout="{{ layout }}" data-action="{{ action }}" data-show-faces="{{ show_faces }}" data-share="true"></div>