Server IP : 104.21.93.192 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/fyntric.com/wp-content/themes/smart-mag/partials/header/ |
Upload File : |
<?php /** * Partial: Header Navigation. */ $props = array_replace([ // 'main' or 'small' 'style' => 'main', 'hover_style' => 'a', 'location' => 'smartmag-main', 'menu' => '', 'depth' => 0, ], $props); // One of these is required. if (!$props['menu'] && !$props['location']) { return; } // Setup data variables to enable or disable sticky nav functionality. $attribs = ['class' => [ 'navigation', 'navigation-' . $props['style'], 'nav-hov-' . $props['hover_style'], (Bunyad::options()->nav_search ? 'has-search' : '') ]]; // Wrapper attributes required for sticky nav mainly - to contain nav and search. $wrap_attribs = ['class' => [ 'navigation-wrap cf', ]]; ?> <div class="nav-wrap"> <nav <?php Bunyad::markup()->attribs('navigation', $attribs); ?>> <?php wp_nav_menu([ 'menu' => $props['menu'], 'container' => false, 'theme_location' => $props['location'], 'fallback_cb' => '', 'walker' => (class_exists('Bunyad_Menus') ? 'Bunyad_MenuWalker' : ''), 'depth' => $props['depth'], ]); ?> </nav> </div>