You are here

se-whatsapp.html.twig in Share Everywhere 2.x

Same filename and directory in other branches
  1. 8 templates/se-whatsapp.html.twig

Default theme implementation for WhatsApp 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-whatsapp.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for WhatsApp 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="whatsapp://send?text={{ url | url_encode }}" data-action="share/whatsapp/share">{{ content }}</a>