</span>
<?php
$sort = array_key_exists('sort', $_REQUEST) ? ToUpper($_REQUEST['sort']) : 'SORT';
$type = array_key_exists('type', $_REQUEST) ? ToUpper($_REQUEST['type']) : 'DESC';
$curSortCode = (false !== $sort && $type !== false ? "{$sort}_{$type}" : "SORT_DESC");
$arSort = array(
'PRICE_ASC' => array(
'TITLE' => '$<span>↑</span>',
'TYPE' => 'ASC',
'FIELD' => 'PRICE',
'URL' => $APPLICATION->GetCurPageParam('sort=price&type=asc', array('sort','type')
)
),
'PRICE_DESC' => array(
'TITLE' => '$<span>↓</span>',
'TYPE' => 'DESC',
'FIELD' => 'PRICE',
'URL' => $APPLICATION->GetCurPageParam('sort=price&type=desc', array('sort','type')
)
));
?>
<a class="arrovsort" href="<?=$arSort['SORT_ASC']['URL']?>">
<div class="money-sort1 <?=$curSortCode == 'SORT_ASC' ? 'active' : ''?>"></div>
</a>
<a class="arrovsort" href="<?=$arSort['SORT_DESC']['URL']?>">
<div class="money-sort2 <?=$curSortCode == 'SORT_DESC' ? 'active' : ''?>"></div>
</a>
</div>
Можете подсказать куда копать?
Лень вникать
Обсуждают сегодня