You are here

font--full.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--full.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.addClass('font') }}>
  19. {% if font_style %}
  20. <div>If you wish to use the font in your theme / css file, use:</div>
  21. <code style="white-space: pre;">
  22. {{- font_style }}
  23. </code>
  24. {% endif %}
  25. <details open>
  26. <summary>Details</summary>
  27. <div class="details-wrapper">
  28. {% if content %}
  29. {{- content -}}
  30. {% endif %}
  31. </div>
  32. </details>
  33. <detail open>
  34. <summary>Preview</summary>
  35. <div class="fontyourface-preview" style="{{- font_style_inline }}">
  36. {% if font_preview %}
  37. {{- font_preview }}
  38. {% else %}
  39. <h1>h1. This is a very large header.</h1>
  40. <h2>h2. This is a large header.</h2>
  41. <h3>h3. This is a medium header.</h3>
  42. <h4>h4. This is a moderate header.</h4>
  43. <h5>h5. This is a small header.</h5>
  44. <h6>h6. This is a tiny header.</h6>
  45. <br>
  46. <h1 class="subheader">h1. subheader</h1>
  47. <h2 class="subheader">h2. subheader</h2>
  48. <h3 class="subheader">h3. subheader</h3>
  49. <h4 class="subheader">h4. subheader</h4>
  50. <h5 class="subheader">h5. subheader</h5>
  51. <h6 class="subheader">h6. subheader</h6>
  52. <hr>
  53. <h3>Definition List</h3>
  54. <h5>Definition lists are great for small block of copy that describe the header</h5>
  55. <dl>
  56. <dt>Lower cost</dt>
  57. <dd>The new version of this product costs significantly less than the previous one!</dd>
  58. <dt>Easier to use</dt>
  59. <dd>We've changed the product so that it's much easier to use!</dd>
  60. <dt>Safe for kids</dt>
  61. <dd>You can leave your kids alone in a room with this product and they won't get hurt (not a guarantee).</dd>
  62. </dl>
  63. <hr>
  64. <h5>Un-ordered lists are great for making quick outlines bulleted.</h5>
  65. <ul class="disc">
  66. <li>List item with a much longer description or more content.</li>
  67. <li>List item</li>
  68. <li>List item
  69. <ul>
  70. <li>Nested List Item</li>
  71. <li>Nested List Item</li>
  72. <li>Nested List Item</li>
  73. </ul>
  74. </li>
  75. <li>List item</li>
  76. <li>List item</li>
  77. <li>List item</li>
  78. </ul>
  79. <h5>Ordered lists are great for lists that need order, duh.</h5>
  80. <ol>
  81. <li>List Item 1</li>
  82. <li>List Item 2</li>
  83. <li>List Item 3</li>
  84. </ol>
  85. <br>
  86. <h5>Blockquote</h5>
  87. <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
  88. <br>
  89. <h5>Vcard</h5>
  90. <ul class="vcard">
  91. <li class="fn">Gaius Baltar</li>
  92. <li class="street-address">123 Colonial Ave.</li>
  93. <li class="locality">Caprica City</li>
  94. <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
  95. <li class="email"><a href="#">g.baltar@example.com</a></li>
  96. </ul>
  97. {% endif %}
  98. </div>
  99. </detail>
  100. </div>