Refactor code structure for improved readability and maintainability
This commit is contained in:
+3
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user