Commit 1bd7886e73609b7b5e29ac5f0513e5cdcb7cc56b

Authored by Eugeny Galkovskiy
2 parents ecdad8e9 70c9a713

Merge remote-tracking branch 'origin/master'

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
frontend/views/layouts/main.php
@@ -187,13 +187,15 @@ @@ -187,13 +187,15 @@
187 187
188 foreach ($pageCategories as $pageCategory){ 188 foreach ($pageCategories as $pageCategory){
189 foreach ($pageCategory->pages as $page){ 189 foreach ($pageCategory->pages as $page){
190 - $items[] = [ 190 + $position = $page->sort -1;
  191 + $toInsert = [[
191 'label' => $page->lang->title, 192 'label' => $page->lang->title,
192 'url' => [ 193 'url' => [
193 'page/view', 194 'page/view',
194 'alias' => $page->lang->alias 195 'alias' => $page->lang->alias
195 ] 196 ]
196 - ]; 197 + ]];
  198 + array_splice( $items, $position, 0, $toInsert );
197 } 199 }
198 } 200 }
199 201