@@ -12,9 +12,9 @@ |
||
| 12 | 12 | <div class ="category-materials"> |
| 13 | 13 | <div class ="row"> |
| 14 | 14 | <?php |
| 15 | - $i = 0; |
|
| 16 | - foreach ($materials as $material) { |
|
| 17 | - ?> |
|
| 15 | + $i = 0; |
|
| 16 | + foreach ($materials as $material) { |
|
| 17 | + ?> |
|
| 18 | 18 | <div class = "col-sm-6 category-material"> |
| 19 | 19 | <a class="category-material-name" href ="<?= $material->getHref(); ?>"><h3><?= $material->name; ?></h3></a> |
| 20 | 20 | <div class="category-material-preview"><?= $material->preview; ?></div> |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | <div class="row"> |
| 3 | 3 | <div class="col-md-3"> |
| 4 | 4 | <?php |
| 5 | - $category = $material->category; |
|
| 6 | - $this->widget('Materials\categoryTree', ['category' => $category]); |
|
| 7 | - ?> |
|
| 5 | + $category = $material->category; |
|
| 6 | + $this->widget('Materials\categoryTree', ['category' => $category]); |
|
| 7 | + ?> |
|
| 8 | 8 | </div> |
| 9 | 9 | <div class="col-md-9"> |
| 10 | 10 | <div class="content"> |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | 'file' => 'index.html', |
| 6 | 6 | 'css' => ['style.css'], |
| 7 | 7 | 'libs' => [ |
| 8 | - 'JqueryUi', 'PaperTheme','FancyBox' |
|
| 8 | + 'JqueryUi', 'PaperTheme','FancyBox' |
|
| 9 | 9 | ] |
| 10 | 10 | ]; |
@@ -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 () { |