last change
All checks were successful
Deploy / deploy (push) Successful in 56s

This commit is contained in:
2026-08-07 23:43:36 +02:00
parent c9b1839460
commit a102b2aa0c
15 changed files with 486 additions and 1 deletions

View File

@@ -176,6 +176,7 @@ final class AccountPages
$profileSettings = $pdo ? new ProfileSettings($pdo) : null;
$systemSettings = $pdo ? new SystemSettings($pdo) : null;
$listingCatalog = $pdo ? new ListingCatalog($pdo) : null;
$calendarSync = $pdo ? new CalendarSync($app) : null;
$section = (string)($_GET['section'] ?? 'profile');
$canManageSystemSettings = $communityAccess ? $communityAccess->canManageApplications($userId) : false;
$allowedSections = ['profile', 'children', 'events', 'places', 'community', 'settings'];
@@ -189,6 +190,9 @@ final class AccountPages
if ($listingCatalog) {
$listingCatalog->ensureSchema();
}
if ($calendarSync) {
$calendarSync->ensureSchema();
}
if ($pdo) {
self::ensureLegacyEventSchema($pdo);
}
@@ -785,6 +789,13 @@ final class AccountPages
$section = 'profile';
}
$avatarBuilder = AvatarManager::builderStyles($profile);
$calendarExportUrl = null;
$calendarFeedUrl = null;
if ($calendarSync) {
$calendarToken = $calendarSync->getOrCreateFeedToken($userId);
$calendarExportUrl = CalendarSync::buildAbsoluteUrl('/calendar/export');
$calendarFeedUrl = CalendarSync::buildAbsoluteUrl('/calendar/feed?token=' . rawurlencode($calendarToken));
}
return compact(
'flash',
@@ -813,6 +824,8 @@ final class AccountPages
'systemSettingsValues',
'listingCatalogStatus',
'avatarBuilder',
'calendarExportUrl',
'calendarFeedUrl',
'section',
'allowedSections'
);