From 997498cef1d62338cbb23b182a4b21f68891af88 Mon Sep 17 00:00:00 2001 From: JayWll Date: Sat, 16 May 2020 15:08:54 -0600 Subject: [PATCH] Refactoring theme to avoid use of partials, since their content cannot be updated through AJAX requests. --- .../jason-williamsca/layouts/default.htm | 50 +++++++++++++---- .../jason-williamsca/partials/footer.htm | 24 -------- .../jason-williamsca/partials/header.htm | 56 ------------------- .../jason-williamsca/partials/mainmenu.htm | 36 ++++++++++++ 4 files changed, 75 insertions(+), 91 deletions(-) delete mode 100644 www/themes/jason-williamsca/partials/footer.htm delete mode 100644 www/themes/jason-williamsca/partials/header.htm create mode 100644 www/themes/jason-williamsca/partials/mainmenu.htm diff --git a/www/themes/jason-williamsca/layouts/default.htm b/www/themes/jason-williamsca/layouts/default.htm index c5aff9d..7a42c52 100644 --- a/www/themes/jason-williamsca/layouts/default.htm +++ b/www/themes/jason-williamsca/layouts/default.htm @@ -1,4 +1,6 @@ description = "Default Layout" + +[CurrentInfo] == @@ -16,21 +18,47 @@ description = "Default Layout"
- {% partial 'header' %} +
+ +
-
-
- {% page %} -
-
+
+
+ {% page %} +
+
- - {% partial 'footer' %} - - - + + + + {% framework extras %} + {% scripts %} \ No newline at end of file diff --git a/www/themes/jason-williamsca/partials/footer.htm b/www/themes/jason-williamsca/partials/footer.htm deleted file mode 100644 index f456979..0000000 --- a/www/themes/jason-williamsca/partials/footer.htm +++ /dev/null @@ -1,24 +0,0 @@ -description = "Site Footer" -== - \ No newline at end of file diff --git a/www/themes/jason-williamsca/partials/header.htm b/www/themes/jason-williamsca/partials/header.htm deleted file mode 100644 index 53822d6..0000000 --- a/www/themes/jason-williamsca/partials/header.htm +++ /dev/null @@ -1,56 +0,0 @@ -description = "Site Header" -== - -== -
- -
\ No newline at end of file diff --git a/www/themes/jason-williamsca/partials/mainmenu.htm b/www/themes/jason-williamsca/partials/mainmenu.htm new file mode 100644 index 0000000..c8a2f56 --- /dev/null +++ b/www/themes/jason-williamsca/partials/mainmenu.htm @@ -0,0 +1,36 @@ +description = "Main Site Menu" +== + + + + \ No newline at end of file