Mercurial > hg > isophonics-drupal-site
annotate core/themes/stable/templates/layout/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 * Theme override 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 #} |
Chris@0 | 19 <!DOCTYPE html> |
Chris@0 | 20 <html{{ html_attributes }}> |
Chris@0 | 21 <head> |
Chris@0 | 22 <title>{{ title }}</title> |
Chris@0 | 23 {{ page.head }} |
Chris@0 | 24 <base href="{{ base_url }}" /> |
Chris@0 | 25 <link type="text/css" rel="stylesheet" href="misc/print.css" /> |
Chris@0 | 26 </head> |
Chris@0 | 27 <body> |
Chris@0 | 28 {# |
Chris@0 | 29 The given node is embedded to its absolute depth in a top level section. |
Chris@0 | 30 For example, a child node with depth 2 in the hierarchy is contained in |
Chris@0 | 31 (otherwise empty) div elements corresponding to depth 0 and depth 1. This |
Chris@0 | 32 is intended to support WYSIWYG output - e.g., level 3 sections always look |
Chris@0 | 33 like level 3 sections, no matter their depth relative to the node selected |
Chris@0 | 34 to be exported as printer-friendly HTML. |
Chris@0 | 35 #} |
Chris@0 | 36 |
Chris@0 | 37 {% for i in 1..depth-1 if depth > 1 %} |
Chris@0 | 38 <div> |
Chris@0 | 39 {% endfor %} |
Chris@0 | 40 {{ contents }} |
Chris@0 | 41 {% for i in 1..depth-1 if depth > 1 %} |
Chris@0 | 42 </div> |
Chris@0 | 43 {% endfor %} |
Chris@0 | 44 </body> |
Chris@0 | 45 </html> |