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.
This commit is contained in:
Alexis Degrugillier
2025-09-10 15:53:08 -04:00
committed by GitHub
parent c6c2e1bc55
commit c2009b5090

View File

@@ -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' : ''