Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-09-09 20:54:42 +02:00
parent 963342f858
commit eaee4d5f1c
6 changed files with 1843 additions and 12 deletions
+3 -2
View File
@@ -11,6 +11,7 @@ if ($isAjaxRequest) {
require_once __DIR__ . '/includes/auth.php';
$currentUser = require_auth(true);
} else {
$pageTitle = 'Fociz — Planning & Structuur';
require_once __DIR__ . '/includes/header.php';
}
@@ -329,7 +330,7 @@ for ($h = $startHour; $h <= $endHour; $h++) {
<?php endif; ?>
</div>
<h1 class="text-2xl sm:text-3xl font-black tracking-tight text-slate-900 dark:text-white">
Dagplanning & Structuur
Planning & Structuur
</h1>
</div>
@@ -957,7 +958,7 @@ if ($isAjaxRequest) {
'syncHash' => $initialSyncHash,
'focusGoal' => $dailyPlan['focus_goal'] ?? '',
'dailyNotes' => $dailyPlan['notes'] ?? '',
'title' => 'Fociz — Dagplanning (' . $formattedSelectedDate . ')',
'title' => 'Fociz — Planning (' . $formattedSelectedDate . ')',
'html' => $contentHtml,
]);
exit;