ADD: Ссылку на страницу поиска

This commit is contained in:
Evg 2022-07-02 12:15:21 +03:00
parent eef531d7c2
commit dd5cab7bc7
4 changed files with 9 additions and 4 deletions

View file

@ -18,7 +18,7 @@ class Access
redirect('/');
}
// TODO: Изменим поля в DB, чтобы использовать limitContent для messages и invites:
// TODO: Изменим поля в DB, чтобы использовать limitContent для messages и invitation:
if (in_array($type, ['post', 'amswer', 'comment', 'item', 'team'])) {
if (self::limitContent($type) === false) {
Msg::add(__('msg.limit_day'), 'error');

View file

@ -34,10 +34,10 @@ class Parser
$jevix->cfgSetTagShort(['img', 'hr']);
// Преформатированные теги. (в них все будет заменятся на HTML сущности)
$jevix->cfgSetTagPreformatted(['pre', 'code']);
// $jevix->cfgSetTagPreformatted(['pre', 'code']);
// Теги, которые необходимо вырезать из текста вместе с контентом.
$jevix->cfgSetTagCutWithContent(['script3', 'style', 'br']);
$jevix->cfgSetTagCutWithContent(['script', 'style', 'br']);
$jevix->cfgSetTagIsEmpty(['a', 'iframe']);

View file

@ -45,6 +45,11 @@ return [
'title' => __('app.catalog'),
'icon' => 'link',
'id' => 'catalog',
], [
'url' => url('search'),
'title' => __('app.search'),
'icon' => 'search',
'id' => 'search',
], [
'hr' => true,
], [

View file

@ -7,5 +7,5 @@
<a class="mb20" href="/">
<svg class="icons">
<use xlink:href="/assets/svg/icons.svg#home"></use>
</svg> <?= __('search.to_website'); ?>
</svg> <?= __('search.on_website'); ?>
</a>...