Advertisement
aknath

Untitled

Sep 13th, 2015
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.68 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Header for our theme.
  4.  *
  5.  * Displays all of the <head> section and everything up till <div id="content">
  6.  *
  7.  * @package CoursePress
  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, initial-scale=1">
  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.  
  18.         <?php wp_head(); ?>
  19.         <?php include( get_template_directory() . '/inc/custom-colors.php' ); ?>
  20.     </head>
  21.  
  22.     <body <?php body_class('cp-wrap'); ?>>
  23.         <div id="page" class="hfeed site">
  24.             <?php do_action('before'); ?>
  25.             <header id="masthead" class="site-header" role="banner">
  26.                 <div class='wrap'>
  27.                     <div class="site-branding">
  28.                         <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><img id="coursepress_logo" src='YOUR_IMAGE_URL' alt='<?php bloginfo('name'); ?>' border='0' /></a></h1>
  29.                     </div>
  30.  
  31.                     <nav id="site-navigation" class="main-navigation" role="navigation">
  32.  
  33.                         <?php
  34.                         $theme_location = 'primary';
  35.                         if ( !has_nav_menu($theme_location) ) {
  36.                             $theme_locations = get_nav_menu_locations();
  37.                             foreach ( ( array ) $theme_locations as $key => $location ) {
  38.                                 $theme_location = $key;
  39.                                 break;
  40.                             }
  41.                         }
  42.  
  43.                         if ( has_nav_menu('primary') ) {
  44.                             wp_nav_menu(array(
  45.                                 'theme_location' => 'primary',
  46.                                 'menu_class' => 'mobile_menu',
  47.                                 'menu_id' => 'mobile_menu',
  48.                                 //'items_wrap' => '<select id="drop-mobile-nav"><option value="">' . __( 'Select a page...', 'coursepress' ) . '</option>%3$s</select>',
  49.                                 'walker' => new Walker_Nav_Menu_Dropdown() ));
  50.                         }
  51.                         ?>
  52.  
  53.                         <a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'cp'); ?></a>
  54. <?php wp_nav_menu(array( 'theme_location' => 'primary' )); ?>
  55.                     </nav><!-- #site-navigation -->
  56.                 </div>
  57.             </header><!-- #masthead -->
  58.  
  59.             <div id="content" class="site-content">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement