1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/skin/developer/actions/ActionSearch/index.tpl

32 lines
921 B
Smarty
Raw Normal View History

{**
* Страница с формой поиска
*
* @param array resultItems
* @param array paging
* @param array searchType
* @param array query
* @param array typeCounts
*}
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'}
{$aLang.search.search}
2014-04-28 13:34:54 +03:00
{/block}
2014-07-28 19:55:18 +03:00
{block 'layout_content'}
{component 'search' template='main' searchType=$searchType}
{include 'navs/nav.search.tpl'}
{if $resultItems}
{if $searchType == 'topics'}
{component 'topic' template='list' topics=$resultItems paging=$paging}
{elseif $searchType == 'comments'}
{component 'comment' template='list' comments=$resultItems paging=$paging}
{else}
{hook run='search_result' type=$searchType}
{/if}
{elseif $_aRequest.q}
{component 'alert' text=$aLang.search.alerts.empty mods='empty'}
{/if}
{/block}