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) {
|
public function registerIncludes(\Doku_Event $event) {
|
||||||
$event->data['footer'] = 'Footer below the page content';
|
$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><!-- .search -->
|
||||||
|
|
||||||
<div id="dokuwiki__aside">
|
<div id="dokuwiki__aside">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo Template::getInstance()->getInclude(
|
||||||
|
'sidebarheader',
|
||||||
|
'<div class="sidebarheader">',
|
||||||
|
'<div class="clearer"></div></div>'
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
/* sidebar */
|
/* sidebar */
|
||||||
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */
|
||||||
include('tpl/main-sidebar-nav.php');
|
include('tpl/main-sidebar-nav.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo Template::getInstance()->getInclude(
|
||||||
|
'sidebarfooter',
|
||||||
|
'<div class="sidebarfooter">',
|
||||||
|
'<div class="clearer"></div></div>'
|
||||||
|
);
|
||||||
|
?>
|
||||||
</div><!-- .aside -->
|
</div><!-- .aside -->
|
||||||
|
|
||||||
</div><!-- .col -->
|
</div><!-- .col -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue