You are here

font--teaser.html.twig in @font-your-face 8.3

font.html.twig Default theme implementation to present Font data.

This template is used when viewing Font pages.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or
  • attributes: HTML attributes for the container element.

File

templates/font--teaser.html.twig
View source
  1. {#
  2. /**
  3. * @file font.html.twig
  4. * Default theme implementation to present Font data.
  5. *
  6. * This template is used when viewing Font pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_font()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div{{ attributes }}>
  19. <div class="fontyourface-header">
  20. <h4>{{ font_title }}</h4>
  21. <h5>{{- content.pid }}</h5>
  22. </div>
  23. <div class="fontyourface-preview">
  24. {% if font_preview %}
  25. <span class="fontyourface-preview" style="line-height: 40px">{{- font_preview }}</span>
  26. {% else %}
  27. <span class="fontyourface-preview" style="{{- font_style_inline }} font-size: 40px; line-height: 40px">AaGg</span>
  28. {% endif %}
  29. </div>
  30. <div class="fontyourface-operations">
  31. {{ operation_links }}
  32. </div>
  33. </div>