diff options
| author | 2020-07-13 15:46:50 +0200 | |
|---|---|---|
| committer | 2020-07-13 15:46:50 +0200 | |
| commit | b7fd6d2d941e40e99ad9ac0cb5572a529cf9cb64 (patch) | |
| tree | 06d88d26a6162f903690c854bfb00bff06f36400 /app | |
| parent | f98a092566c39e10936869f0b83ae0f77ea1672f (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')
| -rw-r--r-- | app/views/index/normal.phtml | 35 | ||||
| -rw-r--r-- | app/views/index/reader.phtml | 5 |
2 files changed, 24 insertions, 16 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'); diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index c21fdb7f3..644cd09c6 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -63,10 +63,9 @@ $content_width = FreshRSS_Context::$user_conf->content_width; echo ' — '; endif; echo $item->date(); - ?></div> - + ?></div><div class="text"> <?= $item->content() ?> - </div> + </div></div> </div> </div><?php endforeach; |
