From d56016f8cc5398cfec52da431ceb23c5a7e07693 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Sat, 29 Jun 2024 11:52:40 -0500 Subject: [PATCH] Update community page --- app/templates/community/footer.htm | 32 --------- app/templates/community/header.htm | 67 ------------------- .../community/{login.htm => login.php} | 0 .../community/{register.htm => register.php} | 0 .../community/{verify.htm => verify.php} | 0 public/community/index.php | 36 ++++------ 6 files changed, 12 insertions(+), 123 deletions(-) delete mode 100755 app/templates/community/footer.htm delete mode 100755 app/templates/community/header.htm rename app/templates/community/{login.htm => login.php} (100%) rename app/templates/community/{register.htm => register.php} (100%) rename app/templates/community/{verify.htm => verify.php} (100%) diff --git a/app/templates/community/footer.htm b/app/templates/community/footer.htm deleted file mode 100755 index 5c1ff7b..0000000 --- a/app/templates/community/footer.htm +++ /dev/null @@ -1,32 +0,0 @@ - - - diff --git a/app/templates/community/header.htm b/app/templates/community/header.htm deleted file mode 100755 index 38f9e6a..0000000 --- a/app/templates/community/header.htm +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - The Community | Mad Splash! - - - - - - - - - - - - - - - - - - - -
- - - -
diff --git a/app/templates/community/login.htm b/app/templates/community/login.php similarity index 100% rename from app/templates/community/login.htm rename to app/templates/community/login.php diff --git a/app/templates/community/register.htm b/app/templates/community/register.php similarity index 100% rename from app/templates/community/register.htm rename to app/templates/community/register.php diff --git a/app/templates/community/verify.htm b/app/templates/community/verify.php similarity index 100% rename from app/templates/community/verify.htm rename to app/templates/community/verify.php diff --git a/public/community/index.php b/public/community/index.php index 38cd004..93b5c5c 100755 --- a/public/community/index.php +++ b/public/community/index.php @@ -1,25 +1,13 @@ \ No newline at end of file + +require '../app/bootstrap.php'; + +const PAGES = ['login', 'verify', 'register']; + +echo render('header'); + +$page = !empty($_GET['page']) && in_array($_GET['page'], PAGES) ? $_GET['page'] : 'home'; + +echo render("community/$page"); + +echo render('footer');