Merge branch 'tplincSidebar' into 'master'

Add tplinc locations above and below the sidebar

See merge request !28
This commit is contained in:
Jana Deutschländer 2017-04-12 14:54:18 +02:00
commit 98321b7ca7
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 -->