diff --git a/controllers/config.php b/controllers/config.php index 89089e5..0388323 100644 --- a/controllers/config.php +++ b/controllers/config.php @@ -74,7 +74,7 @@ Router\get_action('auto-update', function() { Router\get_action('generate-tokens', function() { Model\Config\new_tokens(); - Response\redirect('?action=config'); + Response\redirect('?action=api'); }); // Optimize the database manually @@ -145,3 +145,34 @@ Router\post_action('config', function() { 'title' => t('Preferences') ))); }); + +// Display help page +Router\get_action('help', function() { + + Response\html(Template\layout('help', array( + 'config' => Model\Config\get_all(), + 'menu' => 'config', + 'title' => t('Help') + ))); +}); + +// Display about page +Router\get_action('about', function() { + + Response\html(Template\layout('about', array( + 'config' => Model\Config\get_all(), + 'db_size' => filesize(\Model\Database\get_path()), + 'menu' => 'config', + 'title' => t('About') + ))); +}); + +// Display API page +Router\get_action('api', function() { + + Response\html(Template\layout('api', array( + 'config' => Model\Config\get_all(), + 'menu' => 'config', + 'title' => t('API') + ))); +}); diff --git a/locales/cs_CZ/translations.php b/locales/cs_CZ/translations.php index c2d034c..ecc32f3 100644 --- a/locales/cs_CZ/translations.php +++ b/locales/cs_CZ/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/locales/de_DE/translations.php b/locales/de_DE/translations.php index b5ed73c..126c1b3 100644 --- a/locales/de_DE/translations.php +++ b/locales/de_DE/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/locales/es_ES/translations.php b/locales/es_ES/translations.php index 2d6ef9f..0ba9b63 100644 --- a/locales/es_ES/translations.php +++ b/locales/es_ES/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 15f9c03..5e3df14 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -225,4 +225,23 @@ return array( 'Username:' => 'Utilisateur :', 'Password:' => 'Mot de passe :', 'All' => 'Tout', + 'Advanced' => 'Avancé', + 'Documentation' => 'Documentation', + 'Installation instructions' => 'Installation', + 'Upgrade to a new version' => 'Mise à jour', + 'Cronjob' => 'Mise à jour des flux en arrière plan', + 'Advanced configuration' => 'Configuration avancée', + 'Full article download' => 'Téléchargement des contenus complet', + 'Multiple users' => 'Utilisateurs multiples', + 'Themes' => 'Thèmes', + 'Json-RPC API' => 'API Json-RPC', + 'Fever API' => 'Fever', + 'Translations' => 'Traductions', + 'Run Miniflux with Docker' => 'Exécuter Miniflux avec Docker', + 'FAQ' => 'Questions fréquentes', + 'settings' => 'préférences', + 'help' => 'aide', + 'api' => 'api', + 'about' => 'a propos', + 'Link:' => 'Lien :', ); diff --git a/locales/it_IT/translations.php b/locales/it_IT/translations.php index 964ddc1..7ddf02d 100644 --- a/locales/it_IT/translations.php +++ b/locales/it_IT/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/locales/pt_BR/translations.php b/locales/pt_BR/translations.php index 062967d..38c3f23 100644 --- a/locales/pt_BR/translations.php +++ b/locales/pt_BR/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/locales/zh_CN/translations.php b/locales/zh_CN/translations.php index 66cd4f4..aae0213 100644 --- a/locales/zh_CN/translations.php +++ b/locales/zh_CN/translations.php @@ -225,4 +225,23 @@ return array( // 'Username:' => '', // 'Password:' => '', // 'All' => '', + // 'Advanced' => '', + // 'Documentation' => '', + // 'Installation instructions' => '', + // 'Upgrade to a new version' => '', + // 'Cronjob' => '', + // 'Advanced configuration' => '', + // 'Full article download' => '', + // 'Multiple users' => '', + // 'Themes' => '', + // 'Json-RPC API' => '', + // 'Fever API' => '', + // 'Translations' => '', + // 'Run Miniflux with Docker' => '', + // 'FAQ' => '', + // 'settings' => '', + // 'help' => '', + // 'api' => '', + // 'about' => '', + // 'Link:' => '', ); diff --git a/templates/about.php b/templates/about.php new file mode 100644 index 0000000..f82b5a2 --- /dev/null +++ b/templates/about.php @@ -0,0 +1,42 @@ + +
+
+

+ +
+
+

+ +
+
+

+ +
+
\ No newline at end of file diff --git a/templates/api.php b/templates/api.php new file mode 100644 index 0000000..8443b0e --- /dev/null +++ b/templates/api.php @@ -0,0 +1,27 @@ + +
+
+

+ +
+
+

+ +
+
diff --git a/templates/config.php b/templates/config.php index 6e4f68b..ca39bdb 100644 --- a/templates/config.php +++ b/templates/config.php @@ -1,5 +1,10 @@
@@ -67,63 +72,15 @@
+
-

+

-
-
-

- -
-
-

- -
-
-

- -
-
-

- -
- -
-

- -
+
+
+ \ No newline at end of file diff --git a/templates/help.php b/templates/help.php new file mode 100644 index 0000000..fcd8493 --- /dev/null +++ b/templates/help.php @@ -0,0 +1,30 @@ + +
+ +
+
+

+
+
+ +
\ No newline at end of file