public function navbar_search_form($items, $args) { if ($args->theme_location == 'primary' && dh_get_theme_option('ajaxsearch', 1)) { $search_form = dh_get_search_form(); $search_form = '<div class="search-form-wrap show-popup hide">' . $search_form . '</div>'; //$search_form = ''; $items .= '<li class="navbar-search"><a class="navbar-search-button" href="#"><i class="fa fa-search"></i></a>' . $search_form . '</li>'; } return $items; }
} else { echo '<ul class="nav navbar-nav primary-nav"><li><a href="' . home_url('/') . 'wp-admin/nav-menus.php">' . esc_html__('No menu assigned!', 'jakiro') . '</a></li></ul>'; } ?> </nav> </div> </div> </div> </div> </div> <div class="header-search-overlay hide"> <div class="<?php echo dh_container_class(); ?> "> <div class="header-search-overlay-wrap"> <?php echo dh_get_search_form(); ?> <button type="button" class="close"> <span aria-hidden="true" class="fa fa-times"></span><span class="sr-only"><?php echo esc_html__('Close', 'jakiro'); ?> </span> </button> </div> </div> </div> </div> </div> </header>
} ?> </div> </div> </div> </div> <div class="header-search-overlay hide"> <div class="<?php echo dh_container_class(); ?> "> <div class="header-search-overlay-wrap"> <?php echo dh_get_search_form(false); ?> <button type="button" class="close"> <span aria-hidden="true" class="fa fa-times"></span><span class="sr-only"><?php echo esc_html__('Close', 'jakiro'); ?> </span> </button> </div> </div> </div> </div> </div> </div> </div> </header>