|
|
@@ -11,11 +11,13 @@
|
|
|
<?= _i('tag') ?><ul class="list-tags">
|
|
|
<?php if (Minz_Request::controllerName() === 'index'): ?>
|
|
|
<?php foreach ($firstTags as $tag): ?>
|
|
|
- <li class="item tag"><a class="link-tag" href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
+ <li class="item tag"><a class="link-tag" href="<?= _url('index', 'index', 'search', '#' .
|
|
|
+ FreshRSS_tag_Controller::escapeForSearch($tag)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
<?php endforeach; ?>
|
|
|
<?php else: // API public access ?>
|
|
|
<?php foreach ($firstTags as $tag): ?>
|
|
|
- <li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=%23' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
+ <li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=' .
|
|
|
+ urlencode('#' . FreshRSS_tag_Controller::escapeForSearch($tag)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
<?php endforeach; ?>
|
|
|
<?php endif; ?>
|
|
|
|
|
|
@@ -29,11 +31,13 @@
|
|
|
<li class="dropdown-header"><?= _t('index.tag.related') ?></li>
|
|
|
<?php if (Minz_Request::controllerName() === 'index'): ?>
|
|
|
<?php foreach ($remainingTags as $tag): ?>
|
|
|
- <li class="item"><a href="<?= _url('index', 'index', 'search', '#' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES))) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
+ <li class="item"><a href="<?= _url('index', 'index', 'search', '#' .
|
|
|
+ FreshRSS_tag_Controller::escapeForSearch($tag)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
<?php endforeach; ?>
|
|
|
- <?php else: ?>
|
|
|
+ <?php else: // API public access ?>
|
|
|
<?php foreach ($remainingTags as $tag): ?>
|
|
|
- <li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=%23' . str_replace(' ', '+', htmlspecialchars_decode($tag, ENT_QUOTES)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
+ <li class="item tag"><a class="link-tag" href="<?= $this->html_url . '&search=' .
|
|
|
+ urlencode('#' . FreshRSS_tag_Controller::escapeForSearch($tag)) ?>" title="<?= _t('gen.action.filter') ?>">#<?= $tag ?></a></li>
|
|
|
<?php endforeach; ?>
|
|
|
<?php endif; ?>
|
|
|
</ul>
|