Guest User

Untitled

a guest
Nov 19th, 2018
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Navigation Section -->
  2. <?php $elitepress_lite_options=theme_data_setup();
  3. $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options ); ?>
  4. <div class="menu-section">
  5. <nav role="navigation" class="navbar navbar-default">
  6. <div class="container-fluid">
  7. <!-- Brand and toggle get grouped for better mobile display -->
  8. <div class="navbar-header">
  9.  
  10. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  11. <span class="sr-only">Toggle navigation</span>
  12. <span class="icon-bar"></span>
  13. <span class="icon-bar"></span>
  14. <span class="icon-bar"></span>
  15. </button>
  16. </div>
  17.  
  18. <!-- Collect the nav links, forms, and other content for toggling -->
  19. <div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse">
  20.  
  21. <?php
  22. if($current_options['header_search_bar_enabled'] == false):
  23. $menu_class = 'nav navbar-nav navbar-nav-active';
  24. else:
  25. $menu_class='nav navbar-nav';
  26. endif;
  27. wp_nav_menu( array(
  28. 'theme_location' => 'primary',
  29. 'container' => 'nav-collapse collapse navbar-inverse-collapse',
  30. 'menu_class' => $menu_class,
  31. 'fallback_cb' => 'webriti_fallback_page_menu',
  32. 'walker' => new webriti_nav_walker()
  33. )
  34. );
  35. ?>
  36.  
  37. <?php if($current_options['header_search_bar_enabled']==true) { ?>
  38. <form class="menu-box" id="top-menu-search" class="navbar-form navbar-left" action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
  39. <input type="text" placeholder="<?php _e('Search','elitepress');?>" name="s">
  40. </form>
  41. <?php } ?>
  42. </div><!-- /.navbar-collapse -->
  43. </div><!-- /.container-fluid -->
  44. </nav>
  45. </div>
  46. <!-- /Navigation Section -->
RAW Paste Data