You are here

spoiler.html.twig in Extensible BBCode 8.3

Same filename and directory in other branches
  1. 4.0.x standard/templates/spoiler.html.twig

Render a BBCode spoiler.

File

standard/templates/spoiler.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Render a BBCode spoiler.
  5. */
  6. #}
  7. {% spaceless %}
  8. {% set id = random() %}
  9. <input id="xbbcode-spoiler-{{ id }}" type="checkbox" class="xbbcode-spoiler" />
  10. <label class="xbbcode-spoiler" for="xbbcode-spoiler-{{ id }}">{{ tag.content }}</label>
  11. {% endspaceless %}