1<?php
2/* tplinc plugin setup */
3class TplDokuWikiDefaultIncludeHandler {
4    public function __construct() {
5        /** @var \Doku_Event_Handler */
6        global $EVENT_HANDLER;
7        $EVENT_HANDLER->register_hook('PLUGIN_TPLINC_LOCATIONS_SET', 'BEFORE', $this, 'registerIncludes');
8
9        $this->hlp = plugin_load('helper', 'tplinc');
10    }
11
12    public function registerIncludes(\Doku_Event $event) {
13        $event->data['meta.html'] = 'Inside the HTML <head>, use this to add additional styles or metaheaders';
14        $event->data['sidebarheader.html'] = 'At the top of the sidebar (if any)';
15        $event->data['sidebarfooter.html'] = 'At the bottom of the sidebar (if any)';
16        $event->data['pageheader.html'] = 'At the top inside the content box, above the actual content';
17        $event->data['pagefooter.html'] = 'At the bottom inside the content box, below the actual content';
18        $event->data['header.html'] = 'At the top of the page, above the logo and wiki title';
19        $event->data['footer.html'] = 'At the very end of the page after all other page content';
20    }
21}
22$tplinc = new TplDokuWikiDefaultIncludeHandler();
23
24/* tplinc output */
25$tplinc = plugin_load('helper', 'tplinc');
26if($tplinc) echo $tplinc->renderIncludes(basename(__FILE__));
27