From c55aef5f05ee5299ab9ab33e6cddd2c2fdce62f5 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 16 Dec 2012 22:59:22 +0100 Subject: [PATCH] Pass on boolean instead of class name to main template --- frontend/rewrite.php | 3 +-- frontend/templates/default/shared/main.tpl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/rewrite.php b/frontend/rewrite.php index 52865b7..e22d723 100644 --- a/frontend/rewrite.php +++ b/frontend/rewrite.php @@ -255,8 +255,7 @@ $sTemplateParameters = array_merge($sTemplateParameters, array( 'logged-in' => $sLoggedIn, 'title' => $sPageTitle, 'main' => $sMainContents, - /* TODO: Return a boolean instead and use this in the template. */ - 'main-class' => (isset($router->uVariables['menu']) && $router->sAuthenticated === true) ? "shift" : "", + 'menu-visible' => (isset($router->uVariables['menu']) && $router->sAuthenticated === true), 'generation' => "" )); diff --git a/frontend/templates/default/shared/main.tpl b/frontend/templates/default/shared/main.tpl index 2429c27..d3418ed 100644 --- a/frontend/templates/default/shared/main.tpl +++ b/frontend/templates/default/shared/main.tpl @@ -26,7 +26,7 @@ {%/if} -
+