From 976db8925d6642f8a0e5fed9f486269d78cb3d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Goetz?= Date: Mon, 27 Apr 2015 11:57:31 +0200 Subject: [PATCH] Fix header homepage in generated mode --- libs/Template.php | 1 - templates/home.php | 3 +-- templates/layout/05_page.php | 3 +-- templates/partials/navbar_content.php | 2 ++ 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 templates/partials/navbar_content.php diff --git a/libs/Template.php b/libs/Template.php index de22fdd..387dd91 100644 --- a/libs/Template.php +++ b/libs/Template.php @@ -22,7 +22,6 @@ class Template public function render($name, array $data = array()) { $this->engine->addData([ - 'index' => utf8_encode($data['params']['base_page'] . $data['params']['index']->value), 'base_url' => $data['params']['base_url'], 'base_page' => $data['params']['base_page'], 'page' => $data['page'], diff --git a/templates/home.php b/templates/home.php index 0d2b5aa..a5ee3cf 100644 --- a/templates/home.php +++ b/templates/home.php @@ -1,8 +1,7 @@ layout('theme::layout/00_layout') ?> diff --git a/templates/layout/05_page.php b/templates/layout/05_page.php index c69d5d9..cc9c02e 100644 --- a/templates/layout/05_page.php +++ b/templates/layout/05_page.php @@ -6,8 +6,7 @@
diff --git a/templates/partials/navbar_content.php b/templates/partials/navbar_content.php new file mode 100644 index 0000000..7932a42 --- /dev/null +++ b/templates/partials/navbar_content.php @@ -0,0 +1,2 @@ + +