You are here

shortcode-quote.html.twig in Shortcode 2.0.x

Same filename and directory in other branches
  1. 8 shortcode_basic_tags/templates/shortcode-quote.html.twig

Default theme implementation for the quote shortcode.

Available variables:

  • class: Class string.
  • author: The author.
  • text: The quoted text.

File

shortcode_basic_tags/templates/shortcode-quote.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the quote shortcode.
  5. *
  6. * Available variables:
  7. * - class: Class string.
  8. * - author: The author.
  9. * - text: The quoted text.
  10. */
  11. #}
  12. <span class="{{ class }}">
  13. {% if author %}
  14. {# TODO: Make translatable #}
  15. <span class="quote-author">{{ author | trans }} wrote: </span>
  16. {% endif %}
  17. {{ text | raw }}
  18. </span>