1<?php
2/**
3 * Template footer, included in the main and detail files
4 */
5
6// must be run from within DokuWiki
7if (!defined('DOKU_INC')) die();
8?>
9
10<!-- ********** CONTENT ********** -->
11<div id="dokuwiki__content"><div class="pad group">
12	<?php html_msgarea() ?>
13
14
15	<div class="page group">
16		<?php tpl_flush() ?>
17		<?php tpl_includeFile('pageheader.html') ?>
18		<!-- wikipage start -->
19		<?php tpl_content() ?>
20		<!-- wikipage stop -->
21		<?php tpl_includeFile('pagefooter.html') ?>
22	</div>
23
24	<div class="docInfo">
25		<?php print $lang['lastmod']." le ".dformat($INFO['lastmod']);?>
26	</div>
27
28	<?php tpl_flush() ?>
29</div></div>
30<!-- /content -->
31
32<hr class="a11y" />
33<!-- PAGE ACTIONS -->
34<div id="dokuwiki__pagetools">
35	<h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
36	<div class="tools">
37		<ul>
38			<?php
39				$data = array(
40					'view'  => 'main',
41					'items' => array(
42						'edit'      => tpl_action('edit',      true, 'li', true, '<span>', '</span>'),
43						'revert'    => tpl_action('revert',    true, 'li', true, '<span>', '</span>'),
44						'revisions' => tpl_action('revisions', true, 'li', true, '<span>', '</span>'),
45						'backlink'  => tpl_action('backlink',  true, 'li', true, '<span>', '</span>'),
46						'subscribe' => tpl_action('subscribe', true, 'li', true, '<span>', '</span>'),
47						'top'       => tpl_action('top',       true, 'li', true, '<span>', '</span>')
48					)
49				);
50
51				// the page tools can be amended through a custom plugin hook
52				$evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
53				if($evt->advise_before()){
54					foreach($evt->data['items'] as $k => $html) echo $html;
55				}
56				$evt->advise_after();
57				unset($data);
58				unset($evt);
59			?>
60		</ul>
61	</div>
62</div>
63