Advertisement
Guest User

Untitled

a guest
Nov 18th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 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 Perth
  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. <link rel="profile" href="http://gmpg.org/xfn/11">
  15. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  16. <?php if ( get_theme_mod('site_favicon') ) : ?>
  17. <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
  18. <?php endif; ?>
  19.  
  20. <?php wp_head(); ?>
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24. <div class="preloader">
  25. <div class="preload-inner">
  26. <div class="box1 preloader-box"></div>
  27. <div class="box2 preloader-box"></div>
  28. <div class="box3 preloader-box"></div>
  29. <div class="box4 preloader-box"></div>
  30. </div>
  31. </div>
  32.  
  33. <div id="page" class="hfeed site">
  34. <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'perth' ); ?></a>
  35.  
  36. <?php //Header type
  37. $front_header = get_theme_mod('front_header_type' ,'image');
  38. $site_header = get_theme_mod('site_header_type', 'image');
  39. ?>
  40. <?php if ( get_header_image() && ( $front_header == 'image' && is_front_page() || $site_header == 'image' && !is_front_page() ) ) : ?>
  41. <div class="header-image">
  42. <div class="header-overlay"></div>
  43. <?php perth_header_text(); ?>
  44. </div>
  45. <?php elseif ( ($front_header == 'crelly' && is_front_page()) || ($site_header == 'crelly' && !is_front_page()) ) : ?>
  46. <?php
  47. $alias = get_theme_mod('rev_alias');
  48. if ($alias && function_exists('crellySlider')) {
  49. crellySlider($alias);
  50. }
  51. ?>
  52. <?php endif; ?>
  53.  
  54. <header id="masthead" class="site-header clearfix" role="banner">
  55. <div class="container">
  56. <?php if ( display_header_text() ) : ?>
  57. <div class="site-branding col-md-4 col-sm-6 col-xs-12">
  58. <?php perth_branding(); ?>
  59. </div>
  60. <?php endif; ?>
  61. <nav id="site-navigation" class="main-navigation col-md-8" role="navigation">
  62. <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?>
  63. </nav><!-- #site-navigation -->
  64. <nav class="mobile-nav"></nav>
  65. </div>
  66. </header><!-- #masthead -->
  67. <div class="header-clone"></div>
  68. <?php perth_contact_info(); ?>
  69.  
  70. <?php if ( is_active_sidebar( 'sidebar-header' ) && get_theme_mod('activate_bh_widgets') && (!is_front_page() || ( is_front_page() && get_theme_mod('hide_bh_widgets') != 1 ) ) ) : ?>
  71. <div id="header-widgets" class="header-widgets">
  72. <div class="container">
  73. <?php dynamic_sidebar( 'sidebar-header' ); ?>
  74. </div>
  75. </div>
  76. <?php endif; ?>
  77.  
  78. <div id="content" class="site-content">
  79. <div id="content-wrapper" class="container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement