Files
FreshRSS/app/views/subscription/feed.phtml
Alexandre Alapetite 7a5236de3f Take advantage of PHP 5.4+ short echo (#2585)
* Take advantage of PHP 5.4+ short echo

https://php.net/migration54.new-features thanks to
https://github.com/FreshRSS/FreshRSS/pull/2495

Use `<?=  ?>` instead of `<?php echo; ?>`
10kB of code saved :-)

Done with regular expression:
```
<\?php echo (.+?);? *\?>
<?= \1 ?>
```

* Try Travis fix

https://github.com/squizlabs/PHP_CodeSniffer/issues/2045#issuecomment-395238272
2019-10-23 11:18:20 +02:00

16 lines
305 B
PHTML

<?php
if (!Minz_Request::param('ajax')) {
$this->partial('aside_subscription');
}
if ($this->feed) {
$this->renderHelper('feed/update');
} else {
?>
<div class="alert alert-warn">
<span class="alert-head"><?= _t('sub.feed.no_selected') ?></span>
<?= _t('sub.feed.think_to_add') ?>
</div>
<?php } ?>