From 82eef074d2baed3822721d8f2ab2bb96518c6d75 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 7 Jun 2020 20:53:13 -0600 Subject: [PATCH] Switch order of events and components on public tracking page --- public/index.php | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/public/index.php b/public/index.php index c8191db..08735dc 100644 --- a/public/index.php +++ b/public/index.php @@ -246,6 +246,28 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_ getEvents(); + + if (count($history) > 0) { + ?> +
+
Events:
+
+ \n"; + echo "" . $h->getName() . " on " . date($SETTINGS["datetime_format"], strtotime($h->getDate())) . "
\n"; + if (!empty($h->getPublicNotes())) { + echo "
Notes:
" . htmlspecialchars($h->getPublicNotes()) . "
"; + } + echo "\n
\n"; + } + ?> +
+ + getComponents(); if (count($components) > 0) { @@ -309,29 +331,6 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_ getEvents(); - - if (count($history) > 0) { - ?> -
-
Events:
-
- \n"; - echo "" . $h->getName() . " on " . date($SETTINGS["datetime_format"], strtotime($h->getDate())) . "
\n"; - if (!empty($h->getPublicNotes())) { - echo "
Notes:
" . htmlspecialchars($h->getPublicNotes()) . "
"; - } - echo "\n
\n"; - } - ?> -
- -