From 20f13312d15a1408365b859b14621364009990cd Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:40:54 +0200 Subject: Reading view: action icons position (#6297) * add configs in reading * implementation into the reading view * CSS * i18n * Credits to joshka * Update article.phtml * fix * fix *
* Update app/i18n/fr/conf.php Co-authored-by: Alexandre Alapetite * Update app/i18n/en/conf.php Co-authored-by: Alexandre Alapetite * fix French * show_articleicons => show_article_icons * Update app/i18n/en/conf.php Co-authored-by: Alexandre Alapetite * Update app/i18n/en-us/conf.php Co-authored-by: Alexandre Alapetite --------- Co-authored-by: Alexandre Alapetite --- app/views/configure/reading.phtml | 9 ++++ app/views/helpers/index/article.phtml | 83 ++++++++++++++++++++++++----------- 2 files changed, 66 insertions(+), 26 deletions(-) (limited to 'app/views') diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml index e475b220c..8df461ef8 100644 --- a/app/views/configure/reading.phtml +++ b/app/views/configure/reading.phtml @@ -136,6 +136,15 @@ +
+ +
+ +
+
diff --git a/app/views/helpers/index/article.phtml b/app/views/helpers/index/article.phtml index bfdfdb8d1..bdc108f1e 100644 --- a/app/views/helpers/index/article.phtml +++ b/app/views/helpers/index/article.phtml @@ -1,4 +1,5 @@ entry; @@ -17,16 +18,32 @@ $readUrl['params']['is_read'] = '0'; } ?> -
+
- isRead() ? 'read' : 'unread') ?> - isFavorite() ? 'starred' : 'non-starred') ?> + topline_read && FreshRSS_Context::userConf()->show_article_icons == 't') { ?> + + + topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 't') { ?> + + - show_feed_name === 't') { ?> - - show_favicons): ?> - ✇name() ?> +
+ show_feed_name === 't') { ?> + + show_favicons): ?> + ✇name() ?> + +
+ topline_link && FreshRSS_Context::userConf()->show_article_icons == 't') { ?> +
@@ -35,24 +52,31 @@ $this->renderHelper('index/tags'); } ?> -

title() ?>

- show_author_date === 'h' || FreshRSS_Context::userConf()->show_author_date === 'b') { ?> -
- show_feed_name === 'a') { ?> -
- + show_author_date, ['h','b'], true)) { ?> +
+ + topline_read && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + + + topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + + + +
+ show_feed_name === 'a') { ?> + show_favicons): ?> ✇name() ?> - -
- authors(); - if (!empty($authors) && is_array($authors)) { - ?> -
+ endif; ?>name() ?> + authors(); + if (!empty($authors) && is_array($authors)) { ?> +
-
- -
+
+ +
+
+ topline_link && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + +
-- cgit v1.2.3