mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-27 21:48:40 -04:00
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
This commit is contained in:
1 parent
f98a092566
commit
b7fd6d2d94
28 files changed
+65
-41
No files matched your search
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -797,7 +797,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #ababab;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -797,7 +797,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #ababab;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -1226,7 +1226,7 @@ form th {
|
||||
.flux .website .favicon {
|
||||
padding: 5px;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: rgba(54, 51, 48, 0.5);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -1227,7 +1227,7 @@ form th {
|
||||
.flux .website .favicon {
|
||||
padding: 5px;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: rgba(54, 51, 48, 0.5);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -933,7 +933,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -941,7 +941,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -810,7 +810,7 @@ a.btn {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -810,7 +810,7 @@ a.btn {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -829,7 +829,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -829,7 +829,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -1234,7 +1234,7 @@ form th {
|
||||
.flux .website .favicon {
|
||||
padding: 5px;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: rgba(48, 49, 54, 0.5);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -1235,7 +1235,7 @@ form th {
|
||||
.flux .website .favicon {
|
||||
padding: 5px;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: rgba(48, 49, 54, 0.5);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
@@ -862,7 +862,7 @@ a.btn,
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -862,7 +862,7 @@ a.btn,
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -847,7 +847,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -847,7 +847,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -823,7 +823,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -823,7 +823,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -924,7 +924,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -932,7 +932,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #666;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -753,7 +753,7 @@ form th {
|
||||
.flux.not_read:not(.current):hover .item.title {
|
||||
background: #fff3ed;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #969696;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -753,7 +753,7 @@ form th {
|
||||
.flux.not_read:not(.current):hover .item.title {
|
||||
background: #fff3ed;
|
||||
}
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
color: #969696;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -653,7 +653,7 @@ a.btn {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.flux .date {
|
||||
.flux .item.date {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
|
||||
@@ -781,6 +781,14 @@ input[type="search"] {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.subtitle > div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.subtitle > div:not(:first-of-type)::before {
|
||||
content: ' · ';
|
||||
}
|
||||
|
||||
br {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
@@ -719,7 +719,7 @@ input[type="search"] {
|
||||
}
|
||||
|
||||
.flux .item.title .author {
|
||||
padding-right: 1rem;
|
||||
padding-left: 1rem;
|
||||
color: #555;
|
||||
font-size: .9rem;
|
||||
font-weight: normal;
|
||||
@@ -781,6 +781,14 @@ input[type="search"] {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.subtitle > div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.subtitle > div:not(:first-of-type)::before {
|
||||
content: ' · ';
|
||||
}
|
||||
|
||||
br {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user