summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/minileven/theme/pub/minileven/header.php')
-rw-r--r--plugins/jetpack/modules/minileven/theme/pub/minileven/header.php27
1 files changed, 23 insertions, 4 deletions
diff --git a/plugins/jetpack/modules/minileven/theme/pub/minileven/header.php b/plugins/jetpack/modules/minileven/theme/pub/minileven/header.php
index 1b7cad92..4273be0a 100644
--- a/plugins/jetpack/modules/minileven/theme/pub/minileven/header.php
+++ b/plugins/jetpack/modules/minileven/theme/pub/minileven/header.php
@@ -15,6 +15,7 @@
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
+</head>
<body <?php body_class(); ?>>
<div id="wrapper">
@@ -26,10 +27,11 @@
<h3 class="menu-toggle"><?php _e( 'Menu', 'jetpack' ); ?></h3>
<?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
- <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'jetpack' ); ?>"><?php _e( 'Skip to primary content', 'minileven' , 'jetpack'); ?></a></div>
+ <div class="skip-link"><a class="assistive-text" href="#content"><?php _e( 'Skip to primary content', 'jetpack' ); ?></a></div>
<?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. */
if ( false !== $location ) :
- $menu_id = array_shift( array_values( $location ) ); // acccess the ID of the menu assigned to that location. Using only the first menu ID returned in the array.
+ $location_values = array_values( $location );
+ $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.
wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => '', 'menu_class' => 'nav-menu', 'menu' => $menu_id ) );
else: // if the $location variable is false, wp_page_menu() is shown instead.
wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => '', 'menu_class' => 'nav-menu' ) );
@@ -41,7 +43,24 @@
</div><!-- .search-form-->
</div><!-- .menu-search-->
- <?php minileven_header(); ?>
+ <?php
+ /**
+ * Fires before Minileven header.
+ *
+ * @since 3.4.0
+ */
+ do_action( 'jetpack_mobile_header_before' );
+
+ if ( function_exists( 'minileven_header' ) )
+ minileven_header();
+
+ /**
+ * Fires after Minileven header.
+ *
+ * @since 3.4.0
+ */
+ do_action( 'jetpack_mobile_header_after' );
+ ?>
<div id="page" class="hfeed">
- <div id="main"> \ No newline at end of file
+ <div id="main">