@@ -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"> |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 | <span class="caption">Вид:</span> |
| 15 | 15 | <span class="group"> |
| 16 | 16 | <?php |
| 17 | - for ($i = 2; $i < 5; $i++) { |
|
| 18 | - $curLimit = $limit * $i; |
|
| 19 | - $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 20 | - echo " <a href='{$path}?{$curQuery}'>{$curLimit}</a> "; |
|
| 21 | - } |
|
| 22 | - ?> |
|
| 17 | + for ($i = 2; $i < 5; $i++) { |
|
| 18 | + $curLimit = $limit * $i; |
|
| 19 | + $curQuery = http_build_query(array_merge($query, ['limit' => $curLimit])); |
|
| 20 | + echo " <a href='{$path}?{$curQuery}'>{$curLimit}</a> "; |
|
| 21 | + } |
|
| 22 | + ?> |
|
| 23 | 23 | </span> |
| 24 | 24 | <span class="group"> |
| 25 | 25 | <a href ='#' onclick="inji.onLoad(function () { |
@@ -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 | ]; |