diff --git a/config/routes.php b/config/routes.php index 27f069d..4001177 100644 --- a/config/routes.php +++ b/config/routes.php @@ -8,7 +8,7 @@ $framework_routes = [ ], '/novaconium/login' => [ 'post' => 'NOVACONIUM/authenticate', - 'get' => 'NOVACONIUM/login' + 'get' => 'NOVACONIUM/auth/login' ], '/novaconium/dashboard' => [ 'get' => 'NOVACONIUM/dashboard' @@ -38,8 +38,8 @@ $framework_routes = [ 'post' => 'NOVACONIUM/message_save' ], '/novaconium/logout' => [ - 'post' => 'NOVACONIUM/logout', - 'get' => 'NOVACONIUM/logout' + 'post' => 'NOVACONIUM/auth/logout', + 'get' => 'NOVACONIUM/auth/logout' ], '/novaconium/sitemap.xml' => [ 'get' => 'NOVACONIUM/sitemap' diff --git a/controllers/login.php b/controllers/auth/login.php similarity index 100% rename from controllers/login.php rename to controllers/auth/login.php diff --git a/controllers/logout.php b/controllers/auth/logout.php similarity index 100% rename from controllers/logout.php rename to controllers/auth/logout.php diff --git a/controllers/init.php b/controllers/init.php index eb736fe..fb660c9 100644 --- a/controllers/init.php +++ b/controllers/init.php @@ -7,6 +7,7 @@ $data = [ 'empty_users' => false, 'show_login' => false, 'token' => $session->get('token'), + 'pageclass' => 'novaconium', 'title' => 'Novaconium Admin' ]; diff --git a/skeleton/novaconium/App/controllers/index.php b/skeleton/novaconium/App/controllers/index.php index 132b1a6..b5aaa30 100644 --- a/skeleton/novaconium/App/controllers/index.php +++ b/skeleton/novaconium/App/controllers/index.php @@ -1,2 +1,7 @@ 'Welcome to Novaconium Index Page', + 'pageclass' => 'novaconium' +]); + view('index'); diff --git a/twig/controlPanel/control-panel.html twig b/twig/controlPanel/control-panel.html twig new file mode 100644 index 0000000..0d7ac7b --- /dev/null +++ b/twig/controlPanel/control-panel.html twig @@ -0,0 +1,38 @@ + + + + + {% include ['@override/head.html.twig', '@novaconium/head.html.twig'] %} + + + + +{# Page Header #} +
+

Novaconium PHP

+
+ + +
+ + {% include ['@novaconium/controlPanel/menu.html.twig'] %} + +
+ {% block content %}{% endblock %} +
+ +
+ + {# Page Footer #} + + + {% if debug is not empty %} +
+

Debugging Information

+ {{ debug|raw }} +
+ {% endif %} + + diff --git a/twig/controlPanel/menu.html.twig b/twig/controlPanel/menu.html.twig new file mode 100644 index 0000000..8f3f775 --- /dev/null +++ b/twig/controlPanel/menu.html.twig @@ -0,0 +1,9 @@ +
+ +
diff --git a/twig/footer.html.twig b/twig/footer.html.twig index 4cbe189..e8a3bc6 100644 --- a/twig/footer.html.twig +++ b/twig/footer.html.twig @@ -1,3 +1 @@ - \ No newline at end of file + \ No newline at end of file