/modules/minileven/theme/pub/minileven/header.php

  1. <?php 
  2. /** 
  3. * The Header for our theme. 
  4. * 
  5. * Displays all of the <head> section and everything up till <div id="main"> 
  6. * 
  7. * @package Minileven 
  8. */ 
  9. ?><!DOCTYPE html> 
  10. <html <?php language_attributes(); ?>> 
  11. <head> 
  12. <meta charset="<?php bloginfo( 'charset' ); ?>" /> 
  13. <meta name="viewport" content="width=device-width" /> 
  14. <title><?php wp_title( '|', true, 'right' ); ?></title> 
  15. <link rel="profile" href="http://gmpg.org/xfn/11" /> 
  16. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 
  17. <?php wp_head(); ?> 
  18. </head> 
  19.  
  20. <body <?php body_class(); ?>> 
  21. <div id="wrapper"> 
  22. <?php 
  23. $location = minileven_get_menu_location(); // get the menu locations from the current theme in use 
  24. ?> 
  25. <div class="menu-search"> 
  26. <nav id="access" class="site-navigation main-navigation" role="navigation"> 
  27. <h3 class="menu-toggle"><?php _e( 'Menu', 'jetpack' ); ?></h3> 
  28.  
  29. <?php /** Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?> 
  30. <div class="skip-link"><a class="assistive-text" href="#content"><?php _e( 'Skip to primary content', 'jetpack' ); ?></a></div> 
  31. <?php /** Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ 
  32. if ( false !== $location ) : 
  33. $location_values = array_values( $location ); 
  34. $menu_id = array_shift( $location_values ); // acccess the ID of the menu assigned to that location. Using only the first menu ID returned in the array. 
  35. wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => '', 'menu_class' => 'nav-menu', 'menu' => $menu_id ) ); 
  36. else: // if the $location variable is false, wp_page_menu() is shown instead. 
  37. wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => '', 'menu_class' => 'nav-menu' ) ); 
  38. endif; 
  39. ?> 
  40. </nav><!-- #access --> 
  41. <div class="search-form"> 
  42. <?php get_search_form(); ?> 
  43. </div><!-- .search-form--> 
  44. </div><!-- .menu-search--> 
  45.  
  46. <?php 
  47. /** 
  48. * Fires before Minileven header. 
  49. * 
  50. * @since 3.4.0 
  51. */ 
  52. do_action( 'jetpack_mobile_header_before' ); 
  53.  
  54. if ( function_exists( 'minileven_header' ) ) 
  55. minileven_header(); 
  56.  
  57. /** 
  58. * Fires after Minileven header. 
  59. * 
  60. * @since 3.4.0 
  61. */ 
  62. do_action( 'jetpack_mobile_header_after' ); 
  63. ?> 
  64.  
  65. <div id="page" class="hfeed"> 
  66. <div id="main"> 
.