From 1d10b3697d5fa04415d36059d5e04ad71aae0b78 Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Thu, 26 Dec 2024 19:05:18 +0100 Subject: new: reader view: footer has manage icons (#7133) * add footer * rename content thin medium large class * rework css * footer improved --- app/views/feed/contentSelectorPreview.phtml | 2 +- app/views/helpers/index/article.phtml | 227 ++++++++++++++++------------ app/views/index/normal.phtml | 2 +- 3 files changed, 131 insertions(+), 100 deletions(-) (limited to 'app/views') diff --git a/app/views/feed/contentSelectorPreview.phtml b/app/views/feed/contentSelectorPreview.phtml index 75e9bc5b6..0fc22c8ed 100644 --- a/app/views/feed/contentSelectorPreview.phtml +++ b/app/views/feed/contentSelectorPreview.phtml @@ -40,7 +40,7 @@ -
+
htmlContent ?>
diff --git a/app/views/helpers/index/article.phtml b/app/views/helpers/index/article.phtml index 54a8cbf56..535f10dda 100644 --- a/app/views/helpers/index/article.phtml +++ b/app/views/helpers/index/article.phtml @@ -8,129 +8,160 @@ return; } ?> -
-
-
- 'entry', 'a' => 'bookmark', 'params' => ['id' => $entry->id()]]; - if ($entry->isFavorite()) { - $favoriteUrl['params']['is_favorite'] = '0'; - } - $readUrl = ['c' => 'entry', 'a' => 'read', 'params' => ['id' => $entry->id()]]; - if ($entry->isRead()) { - $readUrl['params']['is_read'] = '0'; - } - ?> -
- - 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() ?> - -
+
+
+
topline_link && FreshRSS_Context::userConf()->show_article_icons == 't') { ?> - - -
- - show_tags, ['b', 'h'], true)) { - $this->renderHelper('index/tags'); - } - ?> -

title() ?>

- show_author_date, ['h','b'], true)) { ?> -
+ $favoriteUrl = ['c' => 'entry', 'a' => 'bookmark', 'params' => ['id' => $entry->id()]]; + if ($entry->isFavorite()) { + $favoriteUrl['params']['is_favorite'] = '0'; + } + $readUrl = ['c' => 'entry', 'a' => 'read', 'params' => ['id' => $entry->id()]]; + if ($entry->isRead()) { + $readUrl['params']['is_read'] = '0'; + } + ?> +
- topline_read && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + topline_read && FreshRSS_Context::userConf()->show_article_icons == 't') { ?> - topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + topline_favorite && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
- show_feed_name === 'a') { ?> - + show_feed_name === 't') { ?> + show_favicons): ?> ✇name() ?> - authors())) { - $this->renderHelper('index/authors'); - if ($this->feed === null || $this->entry === null) { - throw new Exception('Unexpected side effect!'); // Should never occur. Only for PHPStan - } - } - ?> -
-
- + endif; ?>name() ?> +
topline_link && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + if (FreshRSS_Context::userConf()->topline_link && FreshRSS_Context::userConf()->show_article_icons == 't') { ?>
- -
- -
- content(true) ?> -
- show_author_date, ['b', 'f'], true); - $display_tags = in_array(FreshRSS_Context::userConf()->show_tags, ['b', 'f'], true); - if ($display_authors_date || $display_tags) { - ?> -
- -
- show_feed_name === 'a') { ?> - - renderHelper('index/authors'); - ?> -
+ show_tags, ['b', 'h'], true)) { + $this->renderHelper('index/tags'); + } + ?> +

title() ?>

+ 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())) { + $this->renderHelper('index/authors'); + if ($this->feed === null || $this->entry === null) { + throw new Exception('Unexpected side effect!'); // Should never occur. Only for PHPStan + } + } + ?> +
+
+ topline_link && FreshRSS_Context::userConf()->show_article_icons == 'a') { ?> + +
- + - if ($display_tags) { - $this->renderHelper('index/tags'); - } - ?> -
+
+ content(true) ?> +
-
+ $display_authors_date = in_array(FreshRSS_Context::userConf()->show_author_date, ['b', 'f'], true); + $display_tags = in_array(FreshRSS_Context::userConf()->show_tags, ['b', 'f'], true); + + if ($display_authors_date || $display_tags) { + ?> +
+ +
+ show_feed_name === 'a') { ?> + + renderHelper('index/authors'); + ?> +
+ +
+
+ renderHelper('index/tags'); + } + ?> +
+ +
+ + diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index fc242ae0f..38ce30276 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -96,7 +96,7 @@ $today = @strtotime('today'); throw new Exception('Unexpected side effect!'); // Should never occur. Only for PHPStan } ?>
-
+
show_feed_name === 't') { ?>