spoiler.html.twig in Extensible BBCode 8.3
Same filename and directory in other branches
Render a BBCode spoiler.
File
standard/templates/spoiler.html.twigView source
- {#
- /**
- * @file
- * Render a BBCode spoiler.
- */
- #}
- {% spaceless %}
- {% set id = random() %}
- <input id="xbbcode-spoiler-{{ id }}" type="checkbox" class="xbbcode-spoiler" />
- <label class="xbbcode-spoiler" for="xbbcode-spoiler-{{ id }}">{{ tag.content }}</label>
- {% endspaceless %}