aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2025-09-10 15:53:08 -0400
committerGravatar GitHub <noreply@github.com> 2025-09-10 21:53:08 +0200
commitc2009b50903e9d74c05833b20ee555cdc413ea0f (patch)
tree60d53e591358353213da95f8ea3ad5c764ef72f1 /app
parentc6c2e1bc55a5bf081e6537385ddbedb0648d0d65 (diff)
Rewrite PHP opening tags (#7939)
This allows to remove the use of `echo` and be consistent through out the file. Some empty PHP tags where removed as well.
Diffstat (limited to 'app')
-rw-r--r--app/views/index/normal.phtml25
1 files changed, 11 insertions, 14 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index a5e973e1b..cc800c3fe 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -61,26 +61,23 @@ $today = @strtotime('today');
$this->entry->feed() ?? FreshRSS_Feed::default();
if ($display_today && $this->entry->isDay(FreshRSS_Days::TODAY, $today)) {
- ?><div class="day" id="day_today"><?php
- echo _t('index.feed.received.today');
- ?><span class="date"> — <?= timestamptodate(time(), false) ?></span><?php
- ?><span class="name"><?= FreshRSS_Context::$name ?></span><?php
- ?></div><?php
+ ?><div class="day" id="day_today"><?= _t('index.feed.received.today') ?>
+ <span class="date"> — <?= timestamptodate(time(), false) ?></span>
+ <span class="name"><?= FreshRSS_Context::$name ?></span>
+ </div><?php
$display_today = false;
}
if ($display_yesterday && $this->entry->isDay(FreshRSS_Days::YESTERDAY, $today)) {
- ?><div class="day" id="day_yesterday"><?php
- echo _t('index.feed.received.yesterday');
- ?><span class="date"> — <?= timestamptodate(time() - 86400, false) ?></span><?php
- ?><span class="name"><?= FreshRSS_Context::$name ?></span><?php
- ?></div><?php
+ ?><div class="day" id="day_yesterday"><?= _t('index.feed.received.yesterday') ?>
+ <span class="date"> — <?= timestamptodate(time() - 86400, false) ?></span>
+ <span class="name"><?= FreshRSS_Context::$name ?></span>
+ </div><?php
$display_yesterday = false;
}
if ($display_others && $this->entry->isDay(FreshRSS_Days::BEFORE_YESTERDAY, $today)) {
- ?><div class="day" id="day_before_yesterday"><?php
- echo _t('index.feed.received.before_yesterday');
- ?><span class="name"><?= FreshRSS_Context::$name ?></span><?php
- ?></div><?php
+ ?><div class="day" id="day_before_yesterday"><?= _t('index.feed.received.before_yesterday') ?>
+ <span class="name"><?= FreshRSS_Context::$name ?></span>
+ </div><?php
$display_others = false;
}
?><div class="flux<?= !$this->entry->isRead() ? ' not_read' : ''