From 485e7ff45a362a51fdfbe9dde90505c39a9f6641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= Date: Tue, 11 Apr 2017 14:43:40 +0200 Subject: [PATCH] Add tplinc locations above and below the sidebar SPR-921 --- Template.php | 2 ++ main.php | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Template.php b/Template.php index e221821..7eae3ae 100644 --- a/Template.php +++ b/Template.php @@ -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'; } /** diff --git a/main.php b/main.php index ee84e6e..35bb210 100755 --- a/main.php +++ b/main.php @@ -177,12 +177,29 @@ $classWideContent = ($ACT === "show") ? "": "wide-content ";
+ + getInclude( + 'sidebarheader', + '
', + '
' + ); + ?> + + + getInclude( + 'sidebarfooter', + '
', + '
' + ); + ?>