auth(); $authUser = $auth->user(); $service = dashboards(); $ownerKey = auth_user_key(); $groups = auth_groups(); $selectedDashboardId = (int) ($_GET['board'] ?? 0); $currentDashboard = $service->available() ? $service->resolveHomeDashboard($ownerKey !== '' ? $ownerKey : null, $groups, $authUser !== null, $selectedDashboardId) : null; $dashboardItems = $currentDashboard !== null ? $service->listItems((int) ($currentDashboard['id'] ?? 0)) : []; $accessibleApps = ($authUser !== null && $service->available()) ? $service->listApps($ownerKey, true) : []; $appsById = []; foreach ($accessibleApps as $appEntry) { $appsById[(int) ($appEntry['id'] ?? 0)] = $appEntry; } $widgetTemplates = ($authUser !== null && $service->available()) ? $service->listWidgetTemplates($ownerKey, true) : []; $widgetTemplatesById = []; foreach ($widgetTemplates as $template) { $widgetTemplatesById[(int) ($template['id'] ?? 0)] = $template; } $GLOBALS['layout_header_base_title'] = 'Nexus'; $GLOBALS['layout_header_title'] = 'Nexus'; $GLOBALS['layout_header_context'] = $currentDashboard !== null ? (string) ($currentDashboard['title'] ?? 'Dashboard') : 'Dashboard'; $GLOBALS['layout_header_text'] = $currentDashboard !== null ? (string) ($currentDashboard['description'] ?? '') : 'Kein öffentliches oder persönliches Home-Dashboard verfügbar.'; $renderBookmarks = static function (array $config): array { $items = []; $raw = trim((string) ($config['bookmarks'] ?? '')); if ($raw === '') { return []; } foreach (preg_split('/\r\n|\r|\n/', $raw) ?: [] as $line) { $line = trim($line); if ($line === '') { continue; } [$label, $url] = array_pad(array_map('trim', explode('|', $line, 2)), 2, ''); if ($label !== '' && $url !== '') { $items[] = ['label' => $label, 'url' => $url]; } } return $items; }; ?>

Kein Home-Dashboard verfügbar

Lege als Administrator ein öffentliches Dashboard fest oder richte dein persönliches Dashboard ein.

Zum Dashboard

Dieses Dashboard enthält noch keine Elemente.

Dashboard bearbeiten
getPageModule((int) $config['page_module_id'], $ownerKey, $groups); $targetUrl = trim((string) ($pageModule['target_url'] ?? $targetUrl)); } $appEntry = null; if ($itemType === 'app' && !empty($config['app_id'])) { $appEntry = $appsById[(int) $config['app_id']] ?? null; $targetUrl = trim((string) ($appEntry['app_url'] ?? $targetUrl)); } $bookmarks = $itemType === 'bookmark_group' ? $renderBookmarks($config) : []; ?>