2013-06-19 16:32:58 +03:00
|
|
|
|
{**
|
|
|
|
|
* Страница с формой поиска
|
2014-12-05 13:49:29 +02:00
|
|
|
|
*
|
|
|
|
|
* @param array resultItems
|
|
|
|
|
* @param array paging
|
|
|
|
|
* @param array searchType
|
|
|
|
|
* @param array query
|
|
|
|
|
* @param array typeCounts
|
2013-06-19 16:32:58 +03:00
|
|
|
|
*}
|
|
|
|
|
|
2014-07-28 19:55:18 +03:00
|
|
|
|
{extends 'layouts/layout.base.tpl'}
|
2011-04-01 10:49:36 +03:00
|
|
|
|
|
2014-07-28 19:55:18 +03:00
|
|
|
|
{block 'layout_page_title'}
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{$aLang.search.search}
|
2014-04-28 13:34:54 +03:00
|
|
|
|
{/block}
|
2012-03-07 18:48:14 +02:00
|
|
|
|
|
2014-07-28 19:55:18 +03:00
|
|
|
|
{block 'layout_content'}
|
2015-01-30 13:57:52 +02:00
|
|
|
|
{component 'search' template='main' searchType=$searchType}
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{include 'navs/nav.search.tpl'}
|
2013-07-04 10:26:10 +03:00
|
|
|
|
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{if $resultItems}
|
|
|
|
|
{if $searchType == 'topics'}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'topic' template='list' topics=$resultItems paging=$paging}
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{elseif $searchType == 'comments'}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'comment' template='list' comments=$resultItems paging=$paging}
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{else}
|
|
|
|
|
{hook run='search_result' type=$searchType}
|
|
|
|
|
{/if}
|
|
|
|
|
{elseif $_aRequest.q}
|
2015-01-03 10:19:49 +02:00
|
|
|
|
{component 'alert' text=$aLang.search.alerts.empty mods='empty'}
|
2014-12-05 13:49:29 +02:00
|
|
|
|
{/if}
|
2013-06-08 10:05:37 +03:00
|
|
|
|
{/block}
|