Files
FreshRSS/app/layout/aside_stats.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

13 lines
613 B
PHTML

<ul class="nav nav-list aside">
<li class="nav-header"><?= _t('admin.stats') ?></li>
<li class="item<?= Minz_Request::actionName() == 'index' ? ' active' : '' ?>">
<a href="<?= _url('stats', 'index') ?>"><?= _t('admin.stats.menu.main') ?></a>
</li>
<li class="item<?= Minz_Request::actionName() == 'idle' ? ' active' : '' ?>">
<a href="<?= _url('stats', 'idle') ?>"><?= _t('admin.stats.menu.idle') ?></a>
</li>
<li class="item<?= Minz_Request::actionName() == 'repartition' ? ' active' : '' ?>">
<a href="<?= _url('stats', 'repartition') ?>"><?= _t('admin.stats.menu.repartition') ?></a>
</li>
</ul>