2014-03-04 10:34:05 +02:00
|
|
|
{**
|
|
|
|
* Блок сортировки
|
|
|
|
*
|
|
|
|
* @param string $sSortName
|
|
|
|
* @param array $aSortList
|
|
|
|
* @param string $sSortOrder
|
|
|
|
* @param string $sSortOrderWay
|
|
|
|
* @param string $sSortLabel
|
|
|
|
* @param boolean $bSortShowLabel
|
|
|
|
*
|
|
|
|
* @styles assets/css/sort.css
|
|
|
|
*}
|
|
|
|
|
|
|
|
<div class="sort js-search-sort {$sSortClasses}">
|
|
|
|
{if $bSortShowLabel|default:true}
|
|
|
|
<div class="sort-label">{if $sSortLabel}{$sSortLabel}{else}{$aLang.sort.label}{/if}</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div class="dropdown dropdown-toggle js-dropdown-default" data-dropdown-target="js-dropdown-sort-{$sSortName}" data-dropdown-selectable="true">...</div>
|
|
|
|
|
2014-04-28 13:12:44 +03:00
|
|
|
<ul class="nav nav--stacked nav--dropdown dropdown-menu js-search-sort-menu" id="js-dropdown-sort-{$sSortName}">
|
2014-03-04 10:34:05 +02:00
|
|
|
{foreach $aSortList as $aSortItem}
|
2014-04-28 13:12:44 +03:00
|
|
|
<li class="nav-item sort-item {if $aSortItem@index == 0}active{/if}" data-search-type="{$sSortSearchType}" data-name="sort_by" data-value="{$aSortItem['name']}" data-order="{if $aSortItem['order']}{$aSortItem['order']}{else}desc{/if}">
|
2014-03-04 10:34:05 +02:00
|
|
|
<a href="#">
|
|
|
|
{$aSortItem['text']}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
</div>
|