se-facebook-like.html.twig in Share Everywhere 8
Same filename and directory in other branches
Default theme implementation for Facebook like button.
Available variables:
- url: The url of the page to be liked.
1 theme call to se-facebook-like.html.twig
- ShareEverywhereService::build in src/
ShareEverywhereService.php - Builds a renderable array of Social buttons.
File
templates/se-facebook-like.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for Facebook like button.
- *
- * Available variables:
- * - url: The url of the page to be liked.
- *
- */
- #}
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
-
- <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>