summaryrefslogtreecommitdiff
path: root/includes/components
diff options
context:
space:
mode:
Diffstat (limited to 'includes/components')
-rw-r--r--includes/components/navigation.inc2
-rw-r--r--includes/components/planner.inc34
2 files changed, 21 insertions, 15 deletions
diff --git a/includes/components/navigation.inc b/includes/components/navigation.inc
index b82e247..478420d 100644
--- a/includes/components/navigation.inc
+++ b/includes/components/navigation.inc
@@ -117,7 +117,7 @@ $navigation_admin = [
"name" => $lang["navigation"]["apps"],
"minimal" => false,
"items" => [
- [
+ time() >= 1686787200 ? null : [
"name" => $pages["fronting"]["name"][$lang["_name"]],
"icon" => "/assets/icons/fronting.svg",
"invert" => true,
diff --git a/includes/components/planner.inc b/includes/components/planner.inc
index f005f52..b5fc7a5 100644
--- a/includes/components/planner.inc
+++ b/includes/components/planner.inc
@@ -482,23 +482,29 @@
</style>
<h2>Front planner</h2>
+
+ <div class="alert alert-warning">
+ <b>The fronting schedule will be removed on June 15<sup>th</sup>.</b> Due to internal discussion, we have decided to remove the fronting schedule as it is causing a lot of trouble inside the respective systems. Archives will be kept in the database.
+ </div>
+
<table id="planner">
<tbody>
<?php
- day("Yesterday", -1);
- day("Today", 0);
- day("Tomorrow", 1);
- day(date('l j', time() + 86400 * 2), 2);
- day(date('l j', time() + 86400 * 3), 3);
- day(date('l j', time() + 86400 * 4), 4);
- day(date('l j', time() + 86400 * 5), 5);
- day(date('l j', time() + 86400 * 6), 6);
- day(date('l j', time() + 86400 * 7), 7);
- day(date('l j', time() + 86400 * 8), 8);
- day(date('l j', time() + 86400 * 9), 9);
- day(date('l j', time() + 86400 * 10), 10);
- day(date('l j', time() + 86400 * 11), 11);
- day(date('l j', time() + 86400 * 12), 12);
+
+ if (time() - 86400 < 1686787200) day("Yesterday", -1);
+ if (time() < 1686787200) day("Today", 0);
+ if (time() + 86400 < 1686787200) day("Tomorrow", 1);
+ if (time() + 86400 * 2 < 1686787200) day(date('l j', time() + 86400 * 2), 2);
+ if (time() + 86400 * 3 < 1686787200) day(date('l j', time() + 86400 * 3), 3);
+ if (time() + 86400 * 4 < 1686787200) day(date('l j', time() + 86400 * 4), 4);
+ if (time() + 86400 * 5 < 1686787200) day(date('l j', time() + 86400 * 5), 5);
+ if (time() + 86400 * 6 < 1686787200) day(date('l j', time() + 86400 * 6), 6);
+ if (time() + 86400 * 7 < 1686787200) day(date('l j', time() + 86400 * 7), 7);
+ if (time() + 86400 * 8 < 1686787200) day(date('l j', time() + 86400 * 8), 8);
+ if (time() + 86400 * 9 < 1686787200) day(date('l j', time() + 86400 * 9), 9);
+ if (time() + 86400 * 10 < 1686787200) day(date('l j', time() + 86400 * 10), 10);
+ if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 11), 11);
+ if (time() + 86400 * 12 < 1686787200) day(date('l j', time() + 86400 * 12), 12);
?>
</tbody>