@@ -31,25 +31,25 @@ |
||
| 31 | 31 | <span class="caption">Вид:</span> |
| 32 | 32 | <span class="group"> |
| 33 | 33 | <?php |
| 34 | - for ($i = 2; $i < 5; $i++) { |
|
| 35 | - $curLimit = $limit * $i; |
|
| 36 | - $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 37 | - echo " <a href='{$path}?{$curQuery}'>"; |
|
| 38 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 39 | - echo $curLimit; |
|
| 40 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 41 | - echo "</a> "; |
|
| 42 | - } |
|
| 43 | - if (!empty(App::$cur->ecommerce->config['list_all'])) { |
|
| 44 | - $curLimit = 'all'; |
|
| 45 | - $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 46 | - echo " <a href='{$path}?{$curQuery}'>"; |
|
| 47 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 48 | - echo 'Все'; |
|
| 49 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 50 | - echo "</a> "; |
|
| 51 | - } |
|
| 52 | - ?> |
|
| 34 | + for ($i = 2; $i < 5; $i++) { |
|
| 35 | + $curLimit = $limit * $i; |
|
| 36 | + $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 37 | + echo " <a href='{$path}?{$curQuery}'>"; |
|
| 38 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 39 | + echo $curLimit; |
|
| 40 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 41 | + echo "</a> "; |
|
| 42 | + } |
|
| 43 | + if (!empty(App::$cur->ecommerce->config['list_all'])) { |
|
| 44 | + $curLimit = 'all'; |
|
| 45 | + $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 46 | + echo " <a href='{$path}?{$curQuery}'>"; |
|
| 47 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 48 | + echo 'Все'; |
|
| 49 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 50 | + echo "</a> "; |
|
| 51 | + } |
|
| 52 | + ?> |
|
| 53 | 53 | </span> |
| 54 | 54 | <span class="group"> |
| 55 | 55 | <a href ='#' onclick="inji.onLoad(function () { |
@@ -17,12 +17,12 @@ |
||
| 17 | 17 | <div class="row"> |
| 18 | 18 | <div class="col-xs-6 ecommerce-showoptions-sort"> |
| 19 | 19 | <span class="caption">Сортировка:</span> |
| 20 | - <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price','asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a> |
|
| 21 | - <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales','desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a> |
|
| 20 | + <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['price' => sortToggler('price', 'asc')]])); ?>">По цене<?= sortDirectionIcon('price'); ?></a> |
|
| 21 | + <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['sales' => sortToggler('sales', 'desc')]])); ?>">По популярности<?= sortDirectionIcon('sales'); ?></a> |
|
| 22 | 22 | <?php |
| 23 | 23 | if (!empty(App::$cur->ecommerce->config['isset_sort'])) { |
| 24 | 24 | ?> |
| 25 | - <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset','desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a> |
|
| 25 | + <a href="<?= $path; ?>?<?= http_build_query(array_merge($query, ['sort' => ['isset' => sortToggler('isset', 'desc')]])); ?>">По наличию<?= sortDirectionIcon('isset'); ?></a> |
|
| 26 | 26 | <?php |
| 27 | 27 | } |
| 28 | 28 | ?> |