From 8f485a083240057ca0babcd6dd960e7b8e03a742 Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Mon, 23 Jan 2023 16:45:07 +0000 Subject: [PATCH] dynamic navbar --- CSY2028/EntryPoint.php | 1 + templates/layout.html.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CSY2028/EntryPoint.php b/CSY2028/EntryPoint.php index ef2c359..98e570b 100644 --- a/CSY2028/EntryPoint.php +++ b/CSY2028/EntryPoint.php @@ -32,6 +32,7 @@ class EntryPoint { $page = $this->routes->getController($controllerName)->$functionName(); $content = $this->loadTemplate('../templates/' . $page['template'], $page['vars']); + $nav = $this->loadTemplate('../templates/nav.html.php', $page['vars']); $title = $page['title']; require '../templates/layout.html.php'; } diff --git a/templates/layout.html.php b/templates/layout.html.php index 41a6817..d07ee39 100644 --- a/templates/layout.html.php +++ b/templates/layout.html.php @@ -21,10 +21,10 @@
  • Home
  • Jobs
  • -
  • About Us
  • +
  • About Us