Server IP : 172.67.158.161 / Your IP : 18.116.65.204 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/sieuthiweb.com.vn/wp-content/themes/flatsome/inc/integrations/ubermenu/ |
Upload File : |
<?php /** * Ubermenu plugin integration */ /** * Adds a extra separate full width menu header bar with Ubermenu. * Renders: Main menu for desktop and mobile menu (if set) on tablet/mobile. */ function flatsome_uber_menu() { if ( ! get_theme_mod( 'flatsome_uber_menu', 1 ) ) { return; } $has_mobile_menu = has_nav_menu( 'primary_mobile' ); $hide_for_medium = $has_mobile_menu ? 'hide-for-medium' : ''; ?> <div id="flatsome-uber-menu" class="header-ubermenu-nav relative <?php echo $hide_for_medium; ?>" style="z-index: 9"> <div class="full-width"> <?php ubermenu( 'main', array( 'theme_location' => 'primary' ) ); ?> </div> </div> <?php if ( $has_mobile_menu ) : ?> <div id="flatsome-uber-menu" class="header-ubermenu-nav relative show-for-medium" style="z-index: 9"> <div class="full-width"> <?php ubermenu( 'main', array( 'theme_location' => 'primary_mobile' ) ); ?> </div> </div> <?php endif; ?> <?php } add_action( 'flatsome_after_header_bottom', 'flatsome_uber_menu', 10 );