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