se-twitter.html.twig in Share Everywhere 2.x
Same filename and directory in other branches
Default theme implementation for Twitter 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-twitter.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for Twitter 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)
- *
- */
- #}
- <a href="https://twitter.com/intent/tweet?text=&url={{ url | url_encode }}" target="_blank" rel="noreferrer">{{ content }}</a>