|
@@ -26,10 +26,23 @@
|
|
|
<?php
|
|
<?php
|
|
|
foreach ($feedsInPeriod as $feedInPeriod) {
|
|
foreach ($feedsInPeriod as $feedInPeriod) {
|
|
|
$feed = $this->feeds[$feedInPeriod['id']] ?? null;
|
|
$feed = $this->feeds[$feedInPeriod['id']] ?? null;
|
|
|
- $error = $feed == null || $feed->inError() ? ' error' : '';
|
|
|
|
|
- $empty = $feed != null && $feed->nbEntries() == 0 ? ' empty' : '';
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $error_class = '';
|
|
|
|
|
+ $error_title = '';
|
|
|
|
|
+ if ($feed == null || $feed->inError()) {
|
|
|
|
|
+ $error_class = ' error';
|
|
|
|
|
+ $error_title = _t('sub.feed.error');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $empty_class = '';
|
|
|
|
|
+ $empty_title = '';
|
|
|
|
|
+ if ($feed != null && $feed->nbEntries() == 0) {
|
|
|
|
|
+ $empty_class = ' empty';
|
|
|
|
|
+ $empty_title = _t('sub.feed.empty');
|
|
|
|
|
+ }
|
|
|
|
|
+ $mute_class = $feed->mute() ? ' mute' : '';
|
|
|
?>
|
|
?>
|
|
|
- <li class="item feed<?= $error, $empty, $feed->mute() ? ' mute' : '' ?>">
|
|
|
|
|
|
|
+ <li class="item feed<?= $error_class, $empty_class, $mute_class ?>" title="<?= $error_title, $empty_title ?>">
|
|
|
<a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feedInPeriod['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a>
|
|
<a class="configure open-slider" href="<?= _url('stats', 'feed', 'id', $feedInPeriod['id'], 'sub', 'idle') ?>" title="<?= _t('gen.action.manage') ?>"><?= _i('configure') ?></a>
|
|
|
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feedInPeriod['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?>
|
|
<?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $feedInPeriod['favicon'] ?>" alt="✇" loading="lazy" /><?php endif; ?>
|
|
|
<span title="<?= timestamptodate($feedInPeriod['last_date'], false) ?>"><?= $feedInPeriod['name'] ?>
|
|
<span title="<?= timestamptodate($feedInPeriod['last_date'], false) ?>"><?= $feedInPeriod['name'] ?>
|