glossify-link.html.twig in Glossify 8
Markup for inline tooltips.
Available variables:
- word: the text where the tooltips applies to.
- tip: the tooltip text.
- tipurl: the tooltip link.
1 theme call to glossify-link.html.twig
- GlossifyBase::parseTooltipMatch in src/
GlossifyBase.php - Convert terms in text to links.
File
templates/glossify-link.html.twigView source
- {#
- /**
- * @file
- * Markup for inline tooltips.
- *
- * Available variables:
- * - word: the text where the tooltips applies to.
- * - tip: the tooltip text.
- * - tipurl: the tooltip link.
- *
- *
- * @ingroup themeable
- */
- #}
- <a href="{{ tipurl }}" {% if tip %}title="{{ tip }}"{% endif %} class="glossify-tooltip-link">{{ word }}</a>