|
33 | 33 | $navClass = ['nav', 'astroid-nav', 'justify-content-center', 'd-flex', 'align-items-center']; |
34 | 34 | $navClassLeft = ['nav', 'astroid-nav', 'justify-content-left', 'd-flex', 'align-items-left']; |
35 | 35 | $navClassDivided = ['nav', 'astroid-nav']; |
| 36 | +$navWrapperClass = ['align-self-center', 'px-2','d-none', 'd-lg-block', 'w-100']; |
36 | 37 | ?> |
37 | 38 | <header id="astroid-header" class="<?php echo implode(' ', $class); ?>"> |
38 | 39 | <div class="d-flex"> |
|
66 | 67 | echo '</div>'; |
67 | 68 | // header nav starts --> |
68 | 69 | echo '<div class="w-100 d-none d-lg-flex justify-content-center py-3">'; |
69 | | - AstroidMenu::getMenu($header_menu, array_merge($navClass), null, 'left', 'stacked'); |
| 70 | + AstroidMenu::getMenu($header_menu, array_merge($navClass), null, 'left', 'stacked', $navWrapperClass); |
70 | 71 | echo '</div>'; |
71 | 72 | // header nav ends |
72 | 73 | // header block starts |
|
108 | 109 | echo '<div class="d-lg-none">'; |
109 | 110 | $template->loadLayout('logo'); |
110 | 111 | echo '</div>'; |
111 | | - AstroidMenu::getMenu($header_menu, $navClass, true, $odd_menu_items, 'stacked'); |
| 112 | + AstroidMenu::getMenu($header_menu, $navClass, true, $odd_menu_items, 'stacked', $navWrapperClass); |
112 | 113 | echo '</div>'; |
113 | 114 | if ($enable_offcanvas) { |
114 | 115 | ?> |
|
185 | 186 | // header nav starts --> |
186 | 187 | echo '<div class="w-100 d-none d-lg-flex">'; |
187 | 188 | echo '<div class="d-flex justify-content-start py-3 flex-grow-1">'; |
188 | | - AstroidMenu::getMenu($header_menu, $navClassLeft, null, 'left', 'stacked'); |
| 189 | + AstroidMenu::getMenu($header_menu, $navClassLeft, null, 'left', 'stacked', $navWrapperClass); |
189 | 190 | echo '</div>'; |
190 | 191 | // header nav ends |
191 | 192 | // header block starts |
|
0 commit comments