<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class="catalog_sort">
	<div class="sort_container sort_selector">
		<button class="i-sort">Сортировка: 
			<?= $arParams['SORT'] === "" || $arParams['SORT'] === null || $arParams['SORT'] === "name" ? "По названию" : ""; ?>
			<?= $arParams['SORT'] === "low" ? "По минимальной цене" : ""; ?>
			<?= $arParams['SORT'] === "high" ? "По максимальной цене" : ""; ?>
		</button>
		<ul data-position="left">
			<li class="sort_option <?= $arParams['SORT'] === "" || $arParams['SORT'] === null || $arParams['SORT'] === "name" ? "active" : ""; ?>" data-value="name">По названию</li>
			<li class="sort_option <?= $arParams['SORT'] === "low" ? "active" : ""; ?>" data-value="low">По минимальной цене</li>
			<li class="sort_option <?= $arParams['SORT'] === "high" ? "active" : ""; ?>" data-value="high">По максимальной цене</li>
		</ul>
	</div>
	<? if($arParams['FILTER']): ?>
		<div class="sort_container filter_selector">
			<button class="i-filter">Фильтр</button>
		</div>
	<? endif; ?>
</div>
