Skip to content
Browse files

$logged variable to page template

  • Loading branch information...
1 parent f9e2a13 commit 9ec7b86831487e9ee6f5f9064ba33db98f5f4bb5 @hkirsman committed Dec 22, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 _html-warrior/classes/htmlwarrior.php
View
8 _html-warrior/classes/htmlwarrior.php
@@ -99,6 +99,14 @@ public function load_page($url_path = false) {
}
+ // logged variable to page template
+ if ($htmlwarrior->logged) {
+ $page_object->assign('logged_sufix', '__logged');
+ } else {
+ $page_object->assign('logged_sufix', '');
+ }
+
+
// parse template object
$page_content = $smarty->fetch($page_object);

0 comments on commit 9ec7b86

Please sign in to comment.
Something went wrong with that request. Please try again.