@@ -20,25 +20,25 @@ |
||
| 20 | 20 | <span class="caption">Вид:</span> |
| 21 | 21 | <span class="group"> |
| 22 | 22 | <?php |
| 23 | - for ($i = 2; $i < 5; $i++) { |
|
| 24 | - $curLimit = $limit * $i; |
|
| 25 | - $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 26 | - echo " <a href='{$path}?{$curQuery}'>"; |
|
| 27 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 28 | - echo $curLimit; |
|
| 29 | - echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 30 | - echo "</a> "; |
|
| 31 | - } |
|
| 32 | - if (!empty(App::$cur->ecommerce->config['list_all'])) { |
|
| 33 | - $curLimit = 'all'; |
|
| 34 | - $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 35 | - echo " <a href='{$path}?{$curQuery}'>"; |
|
| 36 | - echo !empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 37 | - echo 'Все'; |
|
| 38 | - echo !empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 39 | - echo "</a> "; |
|
| 40 | - } |
|
| 41 | - ?> |
|
| 23 | + for ($i = 2; $i < 5; $i++) { |
|
| 24 | + $curLimit = $limit * $i; |
|
| 25 | + $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 26 | + echo " <a href='{$path}?{$curQuery}'>"; |
|
| 27 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 28 | + echo $curLimit; |
|
| 29 | + echo!empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 30 | + echo "</a> "; |
|
| 31 | + } |
|
| 32 | + if (!empty(App::$cur->ecommerce->config['list_all'])) { |
|
| 33 | + $curLimit = 'all'; |
|
| 34 | + $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 35 | + echo " <a href='{$path}?{$curQuery}'>"; |
|
| 36 | + echo !empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '<b>' : ''; |
|
| 37 | + echo 'Все'; |
|
| 38 | + echo !empty($_GET['limit']) && $_GET['limit'] == $curLimit ? '</b>' : ''; |
|
| 39 | + echo "</a> "; |
|
| 40 | + } |
|
| 41 | + ?> |
|
| 42 | 42 | </span> |
| 43 | 43 | <span class="group"> |
| 44 | 44 | <a href ='#' onclick="inji.onLoad(function () { |