Mercurial > hg > isophonics-drupal-site
annotate core/modules/book/templates/book-export-html.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 {# |
Chris@0 | 2 /** |
Chris@0 | 3 * @file |
Chris@0 | 4 * Default theme implementation for printed version of book outline. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - title: Top level node title. |
Chris@0 | 8 * - head: Header tags. |
Chris@0 | 9 * - language: Language object. |
Chris@0 | 10 * - language_rtl: A flag indicating whether the current display language is a |
Chris@0 | 11 * right to left language. |
Chris@0 | 12 * - base_url: URL to the home page. |
Chris@0 | 13 * - contents: Nodes within the current outline rendered through |
Chris@0 | 14 * book-node-export-html.html.twig. |
Chris@0 | 15 * |
Chris@0 | 16 * @see template_preprocess_book_export_html() |
Chris@0 | 17 * |
Chris@0 | 18 * @ingroup themeable |
Chris@0 | 19 */ |
Chris@0 | 20 #} |
Chris@0 | 21 <!DOCTYPE html> |
Chris@0 | 22 <html{{ html_attributes }}> |
Chris@0 | 23 <head> |
Chris@0 | 24 <title>{{ title }}</title> |
Chris@0 | 25 {{ page.head }} |
Chris@0 | 26 <base href="{{ base_url }}" /> |
Chris@0 | 27 <link type="text/css" rel="stylesheet" href="misc/print.css" /> |
Chris@0 | 28 </head> |
Chris@0 | 29 <body> |
Chris@0 | 30 {# |
Chris@0 | 31 The given node is embedded to its absolute depth in a top level section. |
Chris@0 | 32 For example, a child node with depth 2 in the hierarchy is contained in |
Chris@0 | 33 (otherwise empty) div elements corresponding to depth 0 and depth 1. This |
Chris@0 | 34 is intended to support WYSIWYG output - e.g., level 3 sections always look |
Chris@0 | 35 like level 3 sections, no matter their depth relative to the node selected |
Chris@0 | 36 to be exported as printer-friendly HTML. |
Chris@0 | 37 #} |
Chris@0 | 38 |
Chris@0 | 39 {% for i in 1..depth-1 if depth > 1 %} |
Chris@0 | 40 <div> |
Chris@0 | 41 {% endfor %} |
Chris@0 | 42 {{ contents }} |
Chris@0 | 43 {% for i in 1..depth-1 if depth > 1 %} |
Chris@0 | 44 </div> |
Chris@0 | 45 {% endfor %} |
Chris@0 | 46 </body> |
Chris@0 | 47 </html> |