diff --git a/modules/help-center/i18n/default_de.json b/modules/help-center/i18n/default_de.json index 6eb4c65..5ae8e9c 100644 --- a/modules/help-center/i18n/default_de.json +++ b/modules/help-center/i18n/default_de.json @@ -1,16 +1,6 @@ { "Help": "Hilfe", "Documentation": "Dokumentation", - "Keyboard shortcuts": "Tastenkuerzel", - "Action": "Aktion", - "Shortcut": "Kuerzel", - "About": "Info", - "Application": "Anwendung", - "CoreCore Admin": "CoreCore Admin", - "Open search": "Suche oeffnen", - "Save in edit pages": "Speichern auf Bearbeitungsseiten", - "Toggle sidebar": "Seitenleiste umschalten", - "Switch sidebar section": "Seitenleisten-Bereich wechseln", - "Back": "Zurueck", - "Forward": "Vorwaerts" + "System": "System", + "System info": "Systeminfo" } diff --git a/modules/help-center/i18n/default_en.json b/modules/help-center/i18n/default_en.json index 3a82f52..40923fd 100644 --- a/modules/help-center/i18n/default_en.json +++ b/modules/help-center/i18n/default_en.json @@ -1,16 +1,6 @@ { "Help": "Help", "Documentation": "Documentation", - "Keyboard shortcuts": "Keyboard shortcuts", - "Action": "Action", - "Shortcut": "Shortcut", - "About": "About", - "Application": "Application", - "CoreCore Admin": "CoreCore Admin", - "Open search": "Open search", - "Save in edit pages": "Save in edit pages", - "Toggle sidebar": "Toggle sidebar", - "Switch sidebar section": "Switch sidebar section", - "Back": "Back", - "Forward": "Forward" + "System": "System", + "System info": "System info" } diff --git a/modules/help-center/module.php b/modules/help-center/module.php index b9e70be..e68a3c5 100644 --- a/modules/help-center/module.php +++ b/modules/help-center/module.php @@ -3,8 +3,8 @@ /** * Help Center module manifest. * - * Adds a help icon to the sidebar with documentation links, - * keyboard shortcuts reference, and system information. + * Adds a help icon to the sidebar with navigation links + * to documentation, API docs, and system information. */ return [ 'id' => 'help-center', @@ -31,13 +31,6 @@ return [ 'order' => 900, ], ], - 'layout.head_style' => [ - [ - 'key' => 'help-center-style', - 'path' => 'modules/help-center/css/components/app-help-panel.css', - 'order' => 200, - ], - ], ], 'authorization_policies' => [], diff --git a/modules/help-center/templates/aside-help-panel.phtml b/modules/help-center/templates/aside-help-panel.phtml index af4a7f1..1910c20 100644 --- a/modules/help-center/templates/aside-help-panel.phtml +++ b/modules/help-center/templates/aside-help-panel.phtml @@ -1,65 +1,77 @@ 'help-documentation', + 'label' => t('Documentation'), + 'icon' => 'bi-book', + 'items' => [ + [ + 'label' => t('Documentation'), + 'path' => $docsDefaultSlug !== '' ? 'admin/docs/' . $docsDefaultSlug : '', + 'active' => navActive('admin/docs', true), + 'visible' => $canViewDocs && $docsDefaultSlug !== '', + ], + [ + 'label' => t('API docs'), + 'path' => 'admin/api-docs', + 'active' => navActive('admin/api-docs', true), + 'visible' => $canViewApiDocs, + ], + ], + ], + [ + 'key' => 'help-system', + 'label' => t('System'), + 'icon' => 'bi-info-circle', + 'items' => [ + [ + 'label' => t('System info'), + 'path' => 'admin/system-info', + 'active' => navActive('admin/system-info', true), + 'visible' => $canViewSystemInfo, + ], + ], + ], +]; ?> -