You are here

printable.html.twig in Printer and PDF versions for Drupal 8+ 8

Same filename and directory in other branches
  1. 2.x templates/printable.html.twig

Default theme implementation for printer friendly version of entities.

Available variables:

  • title: Top level node title.
  • base_url: URL to the home page.

File

templates/printable.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for printer friendly version of entities.
  5. *
  6. * Available variables:
  7. * - title: Top level node title.
  8. * - base_url: URL to the home page.
  9. *
  10. * @see template_preprocess_printable()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <!DOCTYPE html>
  16. <html{{ html_attributes }}>
  17. <head>
  18. <title>{{ title }}</title>
  19. <style>
  20. .node_view ul li{
  21. display:none;
  22. }
  23. </style>
  24. <link type="text/css" rel="stylesheet" href="{{ base_url }}/css/drupal-printable.css" />
  25. {% if include_css %}
  26. <link type="text/css" rel="stylesheet" href="/{{ include_css }}" />
  27. {% endif %}
  28. {% if close_script %}
  29. <script type="text/javascript" src="{{ close_script }}"></script>
  30. {% else %}
  31. <script type="text/javascript" src="{{ send_script }}"></script>
  32. {% endif %}
  33. </head>
  34. <body>
  35. {{ header }}
  36. {{ content }}
  37. {{ footer }}
  38. </body>
  39. </html>