shortcode-quote.html.twig in Shortcode 2.0.x
Same filename and directory in other branches
Default theme implementation for the quote shortcode.
Available variables:
- class: Class string.
- author: The author.
- text: The quoted text.
1 theme call to shortcode-quote.html.twig
- QuoteShortcode::process in shortcode_basic_tags/
src/ Plugin/ Shortcode/ QuoteShortcode.php - Performs the shortcode processing.
File
shortcode_basic_tags/templates/shortcode-quote.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the quote shortcode.
- *
- * Available variables:
- * - class: Class string.
- * - author: The author.
- * - text: The quoted text.
- */
- #}
- <span class="{{ class }}">
- {% if author %}
- {# TODO: Make translatable #}
- <span class="quote-author">{{ author | trans }} wrote: </span>
- {% endif %}
- {{ text | raw }}
- </span>