Add tplinc locations above and below the sidebar
SPR-921
This commit is contained in:
parent
26a5535e70
commit
485e7ff45a
2 changed files with 19 additions and 0 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
17
main.php
17
main.php
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue