-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflat-book-node-export-html.tpl.php
More file actions
36 lines (34 loc) · 1.28 KB
/
flat-book-node-export-html.tpl.php
File metadata and controls
36 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
// $Id$
/**
* @file
* Default theme implementation for rendering a flattened node and
* its children.
*
* @see book-node-export-html.tpl.php
* Where it is collected and printed out.
*
* Available variables:
* - $flatten_depth: Depth at which this menu tree was flattened.
* - $depth: Depth of the current node inside the outline.
* - $title: Node title.
* - $content: Node content.
* - $children: All the child nodes recursively rendered through this file.
* - $root_nid: Node id of the root node displayed on this page
* - $is_admin: True if edit links need to be displayed
* - $edit_link: If $is_admin is true, the edit link markup
* - $outline_link: If $is_admin is true, the outline link markup
*
* @see template_preprocess_book_node_export_html()
*/
?>
<div id="booknode-<?php print $node->nid; ?>" class="section-<?php print $depth; ?>">
<?php if($is_admin): ?>
<div class="outlinelink" style="float:right">[<?php print $outline_link ?>]</div>
<div class="editlink" style="float:right">[<?php print $edit_link ?>]</div>
<?php endif ?>
<h2 class="book-heading"><?php print $title; ?></h2>
<?php print $content; ?>
<div class="back-to-top"><a href="#node-<?php print $root_nid; ?>"><?php print t('Back to Top'); ?></a></div>
<?php print $children; ?>
</div>