Advertisement
Guest User

Header.php Adding Slider Without Other Header Modifications

a guest
Mar 3rd, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 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="main">
  6. */
  7. ?><!DOCTYPE html>
  8. <!--[if IE 7]>
  9. <html class="ie ie7" <?php language_attributes(); ?>>
  10. <![endif]-->
  11. <!--[if IE 8]>
  12. <html class="ie ie8" <?php language_attributes(); ?>>
  13. <![endif]-->
  14. <!--[if !(IE 7) | !(IE 8) ]><!-->
  15. <html <?php language_attributes(); ?>>
  16. <!--<![endif]-->
  17. <head>
  18. <meta charset="<?php bloginfo( 'charset' ); ?>">
  19. <meta name="viewport" content="width=device-width">
  20. <title><?php wp_title( '|', true, 'right' ); ?></title>
  21. <link rel="profile" href="http://gmpg.org/xfn/11">
  22. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  23. <!--[if lt IE 9]>
  24. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
  25. <![endif]-->
  26. <?php wp_head(); ?>
  27. </head>
  28.  
  29. <body <?php body_class(); ?>>
  30. <div id="page" class="hfeed site">
  31. <?php if ( get_header_image() ) : ?>
  32. <div id="site-header">
  33. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
  34. <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
  35. </a>
  36. </div>
  37. <?php endif; ?>
  38.  
  39. <?php if ( wp_is_mobile() ) : ?>
  40.  
  41. <header id="masthead" class="site-header" role="banner">
  42. <div class="header-main">
  43. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img id="site-logo" src="<?php echo get_stylesheet_directory_uri(); ?>/images/site-logo.png" alt="Backpackers Journal" /></a></h1>
  44. <?php
  45. $description = get_bloginfo( 'description', 'display' );
  46. if ( ! empty ( $description ) ) :
  47. ?>
  48. <h2 class="topbar-description"><?php echo esc_html( $description ); ?></h2>
  49. <?php endif; ?>
  50. </div>
  51. <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
  52. <a id="menu-toggle" class="second" title="<?php _e( 'Click To Show Sidebar', 'awesome_2014' ); ?>" href="#slideout"><span class="genericon genericon-menu"></span></a>
  53. </header><!-- #masthead -->
  54.  
  55. <?php else: ?>
  56.  
  57. <header id="masthead" class="site-header" role="banner">
  58. <div class="header-main">
  59. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><img id="site-logo" src="<?php echo get_stylesheet_directory_uri(); ?>/images/site-logo.png" alt="Backpackers Journal" /></a></h1>
  60.  
  61. <div class="search-toggle">
  62. <a href="#search-container" class="screen-reader-text"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
  63. </div>
  64.  
  65. <nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
  66. <h1 class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>
  67. <a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
  68. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
  69. </nav>
  70. </div>
  71.  
  72. <div id="search-container" class="search-box-wrapper hide">
  73. <div class="search-box">
  74. <?php get_search_form(); ?>
  75. </div>
  76. </div>
  77.  
  78. </header><!-- #masthead -->
  79.  
  80. <?php endif; ?>
  81.  
  82. <div id="main" class="site-main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement