From 7a2aad550137ab5ea9d401b059b2a2069ed0801b Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 20 Oct 2014 17:24:42 +0200 Subject: add keyboard shortcuts --- templates/index.php | 1 + templates/part.content.firstrun.php | 7 +++++ templates/part.content.php | 9 ++---- templates/part.content.shortcuts.php | 58 ++++++++++++++++++++++++++++++++++++ templates/part.settings.php | 6 +++- 5 files changed, 73 insertions(+), 8 deletions(-) create mode 100644 templates/part.content.firstrun.php create mode 100644 templates/part.content.shortcuts.php (limited to 'templates') diff --git a/templates/index.php b/templates/index.php index 69a158843..a2aee6a79 100644 --- a/templates/index.php +++ b/templates/index.php @@ -41,6 +41,7 @@ script('news', [ +
+
+

t('Add a feed')) ?>

+

t('There are no feeds yet. Go ahead and add some')) ?> :)

+

t('Import feeds and articles')) ?>

+
+
\ No newline at end of file diff --git a/templates/part.content.php b/templates/part.content.php index 2b19b93f6..0c758f99a 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -1,12 +1,7 @@ -
-
-

t('Add a feed')) ?>

-

t('There are no feeds yet. Go ahead and add some')) ?> :)

-

t('Import feeds and articles')) ?>

-
-
+inc('part.content.firstrun')) ?>
diff --git a/templates/part.content.shortcuts.php b/templates/part.content.shortcuts.php new file mode 100644 index 000000000..2874a8607 --- /dev/null +++ b/templates/part.content.shortcuts.php @@ -0,0 +1,58 @@ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
t('Keyboard shortcut')); ?>t('Description')); ?>
n / j / t('right')); ?>t('Jump to next article')); ?>
p / k / t('left')); ?>t('Jump to previous article')); ?>
s / lt('Toggle star article')); ?>
ht('Star article and jump to next one')); ?>
ut('Toggle keep current article unread')); ?>
ot('Open article in new tab')); ?>
et('Expand article in compact view')); ?>
rt('Refresh')); ?>
ft('Load next feed')); ?>
dt('Load previous feed')); ?>
ct('Load next folder')); ?>
vt('Load previous folder')); ?>
+
+
\ No newline at end of file diff --git a/templates/part.settings.php b/templates/part.settings.php index 9f7f2be50..890eb0d2b 100644 --- a/templates/part.settings.php +++ b/templates/part.settings.php @@ -7,6 +7,10 @@

t('Settings')); ?>

+

+ t('Keyboard shortcuts')); ?> +

+

-

t('Subscriptions (OPML)')); ?>

@@ -100,5 +103,6 @@

t('Error when importing: file does not contain valid JSON')); ?>

+
\ No newline at end of file -- cgit v1.2.3