You are here

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

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

Default theme implementation for Facebook share button.

Available variables:

  • url: The url of the page to be shared.
  • content: The button's image or other content to appear on the page. (default: image)

File

templates/se-facebook-share.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for Facebook share button.
  5. *
  6. * Available variables:
  7. * - url: The url of the page to be shared.
  8. * - content: The button's image or other content to appear on the page. (default: image)
  9. *
  10. */
  11. #}
  12. <a href="https://www.facebook.com/sharer/sharer.php?u={{ url | url_encode }}" target="_blank" >{{ content }}</a>