Add tplinc locations above and below the sidebar

SPR-921
This commit is contained in:
Michael Große 2017-04-11 14:43:40 +02:00
commit 485e7ff45a
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79
2 changed files with 19 additions and 0 deletions

View file

@ -49,6 +49,8 @@ class Template {
*/
public function registerIncludes(\Doku_Event $event) {
$event->data['footer'] = 'Footer below the page content';
$event->data['sidebarfooter'] = 'Footer below the sidebar';
$event->data['sidebarheader'] = 'Header above the sidebar';
}
/**

View file

@ -177,12 +177,29 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
</div><!-- .search -->
<div id="dokuwiki__aside">
<?php
echo Template::getInstance()->getInclude(
'sidebarheader',
'<div class="sidebarheader">',
'<div class="clearer"></div></div>'
);
?>
<?php
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
/* sidebar */
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
include('tpl/main-sidebar-nav.php');
?>
<?php
echo Template::getInstance()->getInclude(
'sidebarfooter',
'<div class="sidebarfooter">',
'<div class="clearer"></div></div>'
);
?>
</div><!-- .aside -->
</div><!-- .col -->