Commit a097b6f9bb3b699329d24d059057a783a732e6db
1 parent
d45d5682
Menu fix
Showing
1 changed file
with
20 additions
and
18 deletions
Show diff stats
frontend/views/layouts/_category_menu.php
... | ... | @@ -28,25 +28,27 @@ |
28 | 28 | 'tabindex' => -1, |
29 | 29 | ] |
30 | 30 | ); |
31 | - if ( !empty( $category->categories ) ) { | |
31 | + if (!empty( $category->categories )) { | |
32 | + ?> | |
33 | + <ul class="dropdown-menu"> | |
34 | + <?php | |
35 | + foreach ($category->categories as $childCategory) { | |
36 | + echo Html::tag( | |
37 | + 'li', | |
38 | + Html::a( | |
39 | + $childCategory->lang->title, | |
40 | + [ | |
41 | + 'category/view', | |
42 | + 'id' => $childCategory->id, | |
43 | + ] | |
44 | + ) | |
45 | + ); | |
46 | + } | |
47 | + ?> | |
48 | + </ul> | |
49 | + <?php | |
50 | + } | |
32 | 51 | ?> |
33 | - <ul class="dropdown-menu"> | |
34 | - <?php | |
35 | - foreach ($category->categories as $childCategory) { | |
36 | - echo Html::tag( | |
37 | - 'li', | |
38 | - Html::a( | |
39 | - $childCategory->lang->title, | |
40 | - [ | |
41 | - 'category/view', | |
42 | - 'id' => $childCategory->id, | |
43 | - ] | |
44 | - ) | |
45 | - ); | |
46 | - } | |
47 | - } | |
48 | - ?> | |
49 | - </ul> | |
50 | 52 | </li> |
51 | 53 | <?php |
52 | 54 | } | ... | ... |