aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/normal.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-07-13 15:46:50 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-13 15:46:50 +0200
commitb7fd6d2d941e40e99ad9ac0cb5572a529cf9cb64 (patch)
tree06d88d26a6162f903690c854bfb00bff06f36400 /app/views/index/normal.phtml
parentf98a092566c39e10936869f0b83ae0f77ea1672f (diff)
Show feed name inside the article (#3081)
* Show feed name inside the article #fix https://github.com/FreshRSS/FreshRSS/issues/3079 * Normal view add date in subtitle #fix https://github.com/FreshRSS/FreshRSS/issues/3079#issuecomment-650109551
Diffstat (limited to 'app/views/index/normal.phtml')
-rw-r--r--app/views/index/normal.phtml35
1 files changed, 22 insertions, 13 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index e56e99561..88b194a65 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -72,20 +72,29 @@ $today = @strtotime('today');
?><div class="flux_content" dir="auto">
<div class="content <?= $content_width ?>">
<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a></h1>
- <div class="author"><?php
- $authors = $this->entry->authors();
- if (is_array($authors)):
- $first = true;
- foreach ($authors as $author):
- echo $first ? _t('gen.short.by_author') . ' ' : '· ';
- $first = false;
- ?>
-<em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em>
- <?php endforeach; ?>
- </div><?php
- endif;
+ <div class="subtitle">
+ <div class="website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>">
+ <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
+ <span><?= $this->feed->name() ?></span></a>
+ </div>
+ <div class="date"><?= $this->entry->date() ?></div>
+ <?php
+ $authors = $this->entry->authors();
+ if (!empty($authors) && is_array($authors)):
+ $first = true;
+ ?>
+ <div class="author"><?php
+ foreach ($authors as $author):
+ echo $first ? _t('gen.short.by_author') . ' ' : '· ';
+ $first = false;
+ ?>
+ <em><a href="<?= _url('index', 'index', 'search', 'author:' . str_replace(' ', '+', htmlspecialchars_decode($author, ENT_QUOTES))) ?>"><?= $author ?></a></em>
+ <?php endforeach; ?>
+ </div><?php endif; ?>
+ </div>
+ <div class="text"><?php
echo $lazyload && $hidePosts ? lazyimg($this->entry->content()) : $this->entry->content();
- ?>
+ ?></div>
</div><?php
$this->renderHelper('index/normal/entry_bottom');