diff --git a/controller/Controller.class.php b/controller/Controller.class.php index 68f5e93b..a4d8fb47 100644 --- a/controller/Controller.class.php +++ b/controller/Controller.class.php @@ -168,7 +168,7 @@ class Controller public static function shutdown() { - foreach(static::$queuedFunctions as $fn) + while($fn = array_shift(static::$queuedFunctions)) { call_user_func($fn); } diff --git a/controller/action/NavActions.class.php b/controller/action/NavActions.class.php index 8adce5ad..4c10a227 100644 --- a/controller/action/NavActions.class.php +++ b/controller/action/NavActions.class.php @@ -17,7 +17,6 @@ class NavActions extends Actions public static function prepareFooterPartial(array $vars) { return $vars + [ - 'isDark' => false, 'showLearnFooter' => false ]; } @@ -28,13 +27,6 @@ class NavActions extends Actions return $vars; } - public static function prepareLearnFooterPartial(array $vars) - { - return $vars + [ - 'isDark' => true - ]; - } - public static function execute400(array $vars) { Response::setStatus(400); diff --git a/view/template/content/_postAuthor.php b/view/template/content/_postAuthor.php index 8c710a8e..1232b488 100644 --- a/view/template/content/_postAuthor.php +++ b/view/template/content/_postAuthor.php @@ -1,5 +1,5 @@ -
-
+
+ diff --git a/view/template/content/news-post.php b/view/template/content/news-post.php index 8449d550..16606292 100644 --- a/view/template/content/news-post.php +++ b/view/template/content/news-post.php @@ -25,11 +25,12 @@ $post]) ?> - false]) ?> hasAuthor()): ?> $post]) ?> + + diff --git a/view/template/nav/_footer.php b/view/template/nav/_footer.php index dc7c5027..0e8e792e 100644 --- a/view/template/nav/_footer.php +++ b/view/template/nav/_footer.php @@ -2,7 +2,7 @@