|
1 | 1 | <?php |
2 | | -if ( ! \defined( 'ABSPATH' ) ) { |
| 2 | + |
| 3 | +use WPEssential\Theme\Templates\HeaderTemplates; |
| 4 | + |
| 5 | +if ( ! \defined( 'ABSPATH' ) ) |
| 6 | +{ |
3 | 7 | exit; // Exit if accessed directly. |
4 | 8 | } |
5 | | - |
6 | | -wp_nav_menu( |
7 | | - [ |
8 | | - 'theme_location' => 'primary_menu', |
9 | | - 'container' => false, |
10 | | - 'container_class' => '', |
11 | | - 'container_id' => '', |
12 | | - 'menu_class' => 'menu wpe-menu-header', |
13 | | - 'menu_id' => '', |
14 | | - 'fallback_cb' => 'wp_page_menu', |
15 | | - 'before' => '', |
16 | | - 'after' => '', |
17 | | - 'link_before' => '', |
18 | | - 'link_after' => '', |
19 | | - 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', |
20 | | - 'item_spacing' => 'preserve', |
21 | | - 'depth' => 0, |
22 | | - 'walker' => '', |
23 | | - ] |
24 | | -); |
| 9 | +?> |
| 10 | +<div class="wpe-menu-wrapper"> |
| 11 | + <div class="navigation-wrapper"> |
| 12 | + <div class="cross-btn wpe-mrg-b-px-30 wpe-display-no"> |
| 13 | + <a href="javascript:void(0);"><i class="fa-solid fa-xmark"></i></a> |
| 14 | + </div> |
| 15 | + <?php |
| 16 | + add_filter( 'wpe_logo_classes', function ( $classes ) |
| 17 | + { |
| 18 | + $classes .= 'wpe-mrg-b-px-20 wpe-display-no'; |
| 19 | + return $classes; |
| 20 | + } ); |
| 21 | + HeaderTemplates::logo(); |
| 22 | + wp_nav_menu( apply_filters( 'wpe_header_menu_args', [ |
| 23 | + 'theme_location' => 'primary_menu', |
| 24 | + 'container' => 'nav', |
| 25 | + 'container_class' => '', |
| 26 | + 'container_id' => '', |
| 27 | + 'menu_class' => 'menu wpe-header-menu', |
| 28 | + 'menu_id' => '', |
| 29 | + 'fallback_cb' => 'wp_page_menu', |
| 30 | + 'before' => '', |
| 31 | + 'after' => '', |
| 32 | + 'link_before' => '', |
| 33 | + 'link_after' => '', |
| 34 | + 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', |
| 35 | + 'item_spacing' => 'preserve', |
| 36 | + 'depth' => 0, |
| 37 | + 'walker' => '', |
| 38 | + ] ) ); |
| 39 | + ?> |
| 40 | + </div> |
| 41 | +</div> |
0 commit comments