mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-28 20:45:00 +03:00
шаблон поиска
This commit is contained in:
parent
6a6a317efd
commit
2b1dec5e7d
11
templates/skin/new/actions/ActionSearch/index.tpl
Normal file
11
templates/skin/new/actions/ActionSearch/index.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{include file='header.tpl' showWhiteBack=true}
|
||||
|
||||
<h1>Поиск</h1>
|
||||
<form action="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_SEARCH}/topics/" method="GET">
|
||||
<p>
|
||||
<input type="text" value="" name="q" class="w300">
|
||||
<input type="submit" value="Найти">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
{include file='footer.tpl'}
|
18
templates/skin/new/actions/ActionSearch/opensearch.tpl
Normal file
18
templates/skin/new/actions/ActionSearch/opensearch.tpl
Normal file
|
@ -0,0 +1,18 @@
|
|||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<ShortName>{$SITE_NAME}</ShortName>
|
||||
<Description>{$sHtmlTitle}</Description>
|
||||
<Contact>{$sAdminMail}</Contact>
|
||||
<Url type="text/html" template="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_SEARCH}/topics/?q={literal}{searchTerms}{/literal}" />
|
||||
<LongName>{$sHtmlDescription}</LongName>
|
||||
<Image height="64" width="64" type="image/png">{$DIR_STATIC_SKIN}/img/logo.gif</Image>
|
||||
<Image height="16" width="16" type="image/vnd.microsoft.icon">{$DIR_STATIC_SKIN}/img/favicon.ico</Image>
|
||||
<Developer>{$SITE_NAME} ({$DIR_WEB_ROOT})</Developer>
|
||||
<Attribution>
|
||||
© «{$SITE_NAME}»
|
||||
</Attribution>
|
||||
<SyndicationRight>open</SyndicationRight>
|
||||
<AdultContent>false</AdultContent>
|
||||
<Language>ru-ru</Language>
|
||||
<OutputEncoding>UTF-8</OutputEncoding>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
</OpenSearchDescription>
|
32
templates/skin/new/actions/ActionSearch/results.tpl
Normal file
32
templates/skin/new/actions/ActionSearch/results.tpl
Normal file
|
@ -0,0 +1,32 @@
|
|||
{include file='header.tpl' showWhiteBack=true}
|
||||
|
||||
<h1>Результаты поиска: <span>{$aReq.q|escape:'html'}</span></h1>
|
||||
<ul class="block-nav">
|
||||
{foreach from=$aRes.aCounts item=iCount key=sType name="sTypes"}
|
||||
<li {if $aReq.sType == $sType}class="active"{/if}>
|
||||
{if $smarty.foreach.sTypes.first}<strong></strong>{/if}
|
||||
<a href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_SEARCH}/{$sType}/?q={$aReq.q|escape:'html'}">
|
||||
{$iCount}
|
||||
{if $sType=="topics"}
|
||||
топиков
|
||||
{elseif $sType=="comments"}
|
||||
комментариев
|
||||
{/if}
|
||||
</a>
|
||||
{if $smarty.foreach.sTypes.last}<em></em>{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
<br />
|
||||
|
||||
{if $bIsResults}
|
||||
{if $aReq.sType == 'topics'}
|
||||
{include file='topic_list.tpl'}
|
||||
{elseif $aReq.sType == 'comments'}
|
||||
{include file='comment_list.tpl'}
|
||||
{/if}
|
||||
{else}
|
||||
<h2>Удивительно, но поиск не дал результатов</h2>
|
||||
{/if}
|
||||
|
||||
{include file='footer.tpl'}
|
|
@ -737,7 +737,7 @@ a.button.small em { background: url(../images/button-small.gif) no-repeat right
|
|||
.table-blog-users tbody tr.even td { background: #f5f5f5; }
|
||||
|
||||
|
||||
|
||||
.searched-item { background: #fffacd; }
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="{$DIR_STATIC_SKIN}/css/Autocompleter.css" />
|
||||
|
||||
<link href="{$DIR_STATIC_SKIN}/images/favicon.ico" rel="shortcut icon" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="{$DIR_WEB_ROOT}/search/opensearch/" title="{$SITE_NAME}" />
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="{$DIR_WEB_ROOT}/{$ROUTE_PAGE_SEARCH}/opensearch/" title="{$SITE_NAME}" />
|
||||
</head>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue