Advertisement
Guest User

Untitled

a guest
Aug 11th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 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. * @package aThemes
  8. */
  9. ?>
  10. <!DOCTYPE html>
  11. <html <?php language_attributes(); ?>>
  12. <head>
  13. <title><?php wp_title( '-', true, 'right' ); ?></title>
  14.  
  15. <meta charset="<?php bloginfo( 'charset' ); ?>">
  16. <meta name="viewport" content="width=device-width">
  17.  
  18. <link rel="profile" href="http://gmpg.org/xfn/11">
  19. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  20. <?php if ( get_theme_mod('site_favicon') ) : ?>
  21. <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
  22. <?php endif; ?>
  23.  
  24. <?php if ( get_theme_mod('apple_touch_144') ) : ?>
  25. <link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url(get_theme_mod('apple_touch_144')); ?>" />
  26. <?php endif; ?>
  27. <?php if ( get_theme_mod('apple_touch_114') ) : ?>
  28. <link rel="apple-touch-icon" sizes="114x114" href="<?php echo esc_url(get_theme_mod('apple_touch_114')); ?>" />
  29. <?php endif; ?>
  30. <?php if ( get_theme_mod('apple_touch_72') ) : ?>
  31. <link rel="apple-touch-icon" sizes="72x72" href="<?php echo esc_url(get_theme_mod('apple_touch_72')); ?>" />
  32. <?php endif; ?>
  33. <?php if ( get_theme_mod('apple_touch_57') ) : ?>
  34. <link rel="apple-touch-icon" href="<?php echo esc_url(get_theme_mod('apple_touch_57')); ?>" />
  35. <?php endif; ?>
  36.  
  37. <?php wp_head(); ?>
  38. </head>
  39.  
  40. <body <?php body_class(); ?>>
  41.  
  42. <header id="masthead" class="site-header" role="banner">
  43. <div class="clearfix container">
  44. <div class="site-branding">
  45. <?php if ( get_theme_mod('site_logo') ) : ?>
  46. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
  47. <?php else : ?>
  48. <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
  49. <<?php echo $heading_tag; ?> class="site-title">
  50. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  51. <?php bloginfo( 'name' ); ?>
  52. </a>
  53. </<?php echo $heading_tag; ?>>
  54. <div class="site-description"><?php bloginfo( 'description' ); ?></div>
  55. <?php endif; ?>
  56. <!-- .site-branding --></div>
  57.  
  58. <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
  59. <?php endif; ?>
  60.  
  61. <div class="headersearch"><?php get_search_form(); ?> </div>
  62.  
  63. <nav id="main-navigation" class="main-navigation" role="navigation">
  64. <a href="#main-navigation" class="nav-open">Menu</a>
  65. <a href="#" class="nav-close">Close</a>
  66. <?php wp_nav_menu( array( 'container_class' => 'clearfix sf-menu', 'theme_location' => 'main' ) ); ?>
  67. <!-- #main-navigation --></nav>
  68. </div>
  69. <!-- #masthead --></header>
  70.  
  71. <div id="main" class="site-main">
  72. <div class="clearfix container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement