authors.phtml 529 B

1234567891011121314151617
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. if ($this->entry === null) {
  5. return;
  6. }
  7. ?>
  8. <div class="author"><?= _t('gen.short.by_author') ?>
  9. <?php
  10. $first = true;
  11. foreach ($this->entry->authors() as $author) {
  12. $href = Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:"' . htmlspecialchars_decode($author, ENT_QUOTES) . '"']));
  13. ?><?= $first ? ' ' : ' · ' ?><a href="<?= $href ?>" title="<?= _t('gen.action.filter') ?>"><?= $author ?></a><?php
  14. $first = false;
  15. }
  16. ?>
  17. </div>