Guest User

sidebar-menu

a guest
Jan 27th, 2015
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <?php
  2. /**
  3. * Oxygen WordPress Theme
  4. *
  5. * Laborator.co
  6. * www.laborator.co
  7. */
  8.  
  9. ?>
  10. <!-- Sidebar Menu -->
  11. <div class="main-sidebar<?php echo get_data('header_menu_search') ? ' has-search' : ''; ?>">
  12.  
  13. <div class="sidebar-inner">
  14.  
  15. <?php get_template_part('tpls/logo'); ?>
  16.  
  17. <div class="sidebar-menu<?php echo get_data('sidebar_menu_links_display') == 'Collapsed' ? ' collapsed-subs' : ''; ?>">
  18. <?php
  19. $args = array(
  20. 'theme_location' => 'main-menu',
  21. 'container' => '',
  22. 'menu_class' => 'nav',
  23. 'walker' => new Main_Menu_Walker()
  24. );
  25.  
  26. wp_nav_menu($args);
  27. ?>
  28. </div>
  29.  
  30. </div><!-- /sidebar-inner -->
  31.  
  32.  
  33. <?php if(get_data('header_menu_search')): ?>
  34.  
  35. <form action="<?php echo home_url(); ?>" method="get" class="search" enctype="application/x-www-form-urlencoded">
  36. <input type="text" class="search_input" name="s" alt="" placeholder="<?php _e('Search...', TD); ?>" value="<?php echo esc_attr(get('s')); ?>" />
  37. <span class="glyphicon glyphicon-search float_right"></span>
  38. </form>
  39. <?php endif; ?>
  40.  
  41. </div><!-- /sidebar -->
  42. <?php echo do_shortcode('[lab_social_networks]'); ?>
Advertisement
Add Comment
Please, Sign In to add comment