From 4e253add8c78bb185911ffdffbb50ef318386a3c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 21 Feb 2019 16:21:16 +0300 Subject: UI: add some more info links to relevant wiki pages; minor layout updates --- classes/backend.php | 102 +++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 73 insertions(+), 29 deletions(-) (limited to 'classes/backend.php') diff --git a/classes/backend.php b/classes/backend.php index 29b2d5048..bd6b1ff19 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -27,10 +27,6 @@ class Backend extends Handler { array_push($omap[$action], $sequence); } - print_notice("". - __("Other interface tips are available in the Tiny Tiny RSS wiki.") . - ""); - print ""; + + } function help() { - $topic = basename(clean($_REQUEST["topic"])); - - switch ($topic) { - case "main": - $this->display_main_help(); - break; - case "prefs": - //$this->display_prefs_help(); - break; - default: - print "

".__("Help topic not found.")."

"; + $topic = basename(clean($_REQUEST["topic"])); // only one for now + + if ($topic == "main") { + $info = get_hotkeys_info(); + $imap = get_hotkeys_map(); + $omap = array(); + + foreach ($imap[1] as $sequence => $action) { + if (!isset($omap[$action])) $omap[$action] = array(); + + array_push($omap[$action], $sequence); + } + + print ""; } - print "
"; - print ""; - print "
"; + print "
"; + print ""; - /* if (file_exists("help/$topic.php")) { - include("help/$topic.php"); - } else { - print "

".__("Help topic not found.")."

"; - } */ - /* print "
-
"; */ + print ""; + print "
"; } -} \ No newline at end of file +} -- cgit v1.2.3-54-g00ecf