Commit c32f9e9b33303c54a74dd49e2f3216c760bbd90e
1 parent
df6f8b4d
test commit 2
Showing
1 changed file
with
20 additions
and
32 deletions
Show diff stats
frontend/views/layouts/main-menu.php
| ... | ... | @@ -31,26 +31,26 @@ $models = Category::find()->all(); |
| 31 | 31 | </ul> |
| 32 | 32 | </td> |
| 33 | 33 | <td class="hide-cat-sub sub-cat_ col-md-8 col-lg-8"> |
| 34 | - <?php | |
| 35 | - foreach($models as $model):?> | |
| 36 | - <ul class="row"> | |
| 37 | - <?php foreach($model->getTaxGroupsForMenu() as $group): ?> | |
| 38 | - <li class="list_cat_sub col-md-3 col-lg-3"> | |
| 39 | - <a href="<?= Url::to(['catalog/category','category' => $model['alias'],'filters' => [$group['alias'] => [$group['option_alias']]]]) ?>"> | |
| 40 | - <div> | |
| 41 | - <table cellpadding="0" cellspacing="0" border="0"> | |
| 42 | - <tr> | |
| 43 | - <td> | |
| 44 | - <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias(!empty($group['image']) ? '@imagesUrl/tax_option/'. $group['image'] : '/storage/no_photo.png'), 'option_menu'))?> | |
| 45 | - </td> | |
| 46 | - </tr> | |
| 47 | - </table> | |
| 48 | - <span><?=$group['value']?></span> | |
| 49 | - </div> | |
| 50 | - </a> | |
| 51 | - </li> | |
| 52 | - <?php endforeach;?> | |
| 53 | - </ul> | |
| 34 | + <?php | |
| 35 | + foreach($models as $model):?> | |
| 36 | + <ul class="row"> | |
| 37 | + <?php foreach($model->getTaxGroupsForMenu() as $group): ?> | |
| 38 | + <li class="list_cat_sub col-md-3 col-lg-3"> | |
| 39 | + <a href="<?= Url::to(['catalog/category','category' => $model['alias'],'filters' => [$group['alias'] => [$group['option_alias']]]]) ?>"> | |
| 40 | + <div> | |
| 41 | + <table cellpadding="0" cellspacing="0" border="0"> | |
| 42 | + <tr> | |
| 43 | + <td> | |
| 44 | + <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias(!empty($group['image']) ? '@imagesUrl/tax_option/'. $group['image'] : '/storage/no_photo.png'), 'option_menu'))?> | |
| 45 | + </td> | |
| 46 | + </tr> | |
| 47 | + </table> | |
| 48 | + <span><?=$group['value']?></span> | |
| 49 | + </div> | |
| 50 | + </a> | |
| 51 | + </li> | |
| 52 | + <?php endforeach;?> | |
| 53 | + </ul> | |
| 54 | 54 | <?php endforeach; ?> |
| 55 | 55 | </td> |
| 56 | 56 | </tr> |
| ... | ... | @@ -58,9 +58,6 @@ $models = Category::find()->all(); |
| 58 | 58 | </div> |
| 59 | 59 | </li> |
| 60 | 60 | |
| 61 | - | |
| 62 | - | |
| 63 | - | |
| 64 | 61 | <li> |
| 65 | 62 | <?php |
| 66 | 63 | echo Html::a('Акции', Url::to('/event/main')) |
| ... | ... | @@ -79,15 +76,6 @@ $models = Category::find()->all(); |
| 79 | 76 | ?> |
| 80 | 77 | </li> |
| 81 | 78 | |
| 82 | - | |
| 83 | - | |
| 84 | - | |
| 85 | - | |
| 86 | - | |
| 87 | - | |
| 88 | - | |
| 89 | - | |
| 90 | - | |
| 91 | 79 | </ul> |
| 92 | 80 | </div> |
| 93 | 81 | </div> |
| 94 | 82 | \ No newline at end of file | ... | ... |