Guest User

Untitled

a guest
Sep 9th, 2014
387
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 Moesia
  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. <?php if ( get_theme_mod('site_favicon') ) : ?>
  18.     <link rel="shortcut icon" href="<?php echo esc_url(get_theme_mod('site_favicon')); ?>" />
  19. <?php endif; ?>
  20.  
  21. <?php if ( get_theme_mod('apple_touch_144') ) : ?>
  22.     <link rel="apple-touch-icon" sizes="144x144" href="<?php echo esc_url(get_theme_mod('apple_touch_144')); ?>" />
  23. <?php endif; ?>
  24. <?php if ( get_theme_mod('apple_touch_114') ) : ?>
  25.     <link rel="apple-touch-icon" sizes="114x114" href="<?php echo esc_url(get_theme_mod('apple_touch_114')); ?>" />
  26. <?php endif; ?>
  27. <?php if ( get_theme_mod('apple_touch_72') ) : ?>
  28.     <link rel="apple-touch-icon" sizes="72x72" href="<?php echo esc_url(get_theme_mod('apple_touch_72')); ?>" />
  29. <?php endif; ?>
  30. <?php if ( get_theme_mod('apple_touch_57') ) : ?>
  31.     <link rel="apple-touch-icon" href="<?php echo esc_url(get_theme_mod('apple_touch_57')); ?>" />
  32. <?php endif; ?>
  33.  
  34. <?php wp_head(); ?>
  35. </head>
  36.  
  37. <body <?php body_class(); ?>>
  38. <div id="page" class="hfeed site">
  39.     <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'moesia' ); ?></a>
  40.  
  41.     <?php if ( get_header_image() ) : ?>
  42.         <?php if ( get_theme_mod('moesia_banner') == 1 && !is_front_page() ) : ?>
  43.             <header id="masthead" class="site-header" role="banner">
  44.         <?php else : ?>
  45.             <header id="masthead" class="site-header has-banner" role="banner">
  46.         <?php endif; ?>
  47.         <?php if ( (get_theme_mod('moesia_banner') == 1 && is_front_page()) ||  (get_theme_mod('moesia_banner') != 1)) : ?>
  48.             <?php if ( get_theme_mod('header_overlay') != 1 ) : ?>
  49.                 <div class="overlay"></div>
  50.             <?php endif; ?>
  51.             <?php if ( get_theme_mod('header_title') ) : ?>
  52.                 <div class="welcome-title"><?php echo esc_attr(get_theme_mod('header_title')); ?></div>
  53.             <?php endif; ?>
  54.             <?php if ( get_theme_mod('header_desc') ) : ?>
  55.                 <div class="welcome-desc"><?php echo esc_html(get_theme_mod('header_desc')); ?></div>
  56.             <?php endif; ?>
  57.             <?php if (get_theme_mod('header_btn_text') && get_theme_mod('header_btn_link')) : ?>
  58.                 <a href="<?php echo esc_url(get_theme_mod('header_btn_link')); ?>" class="welcome-button"><?php echo esc_html(get_theme_mod('header_btn_text')); ?></a>
  59.             <?php endif; ?>
  60.         <?php endif; ?>
  61.         <div class="top-bar">
  62.             <div class="container">
  63.                 <div class="site-branding col-md-4">
  64.                     <?php if ( get_theme_mod('site_logo') ) : ?>
  65.                         <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
  66.                     <?php else : ?>
  67.                         <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  68.                         <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  69.                     <?php endif; ?>
  70.                 </div>
  71.                 <nav id="site-navigation" class="main-navigation col-md-8" role="navigation">
  72.                     <button class="menu-toggle btn"><i class="fa fa-bars"></i></button>
  73.                     <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  74.                 </nav><!-- #site-navigation -->
  75.             </div>
  76.         </div>     
  77.         </header><!-- #masthead -->        
  78.     <?php else : ?>
  79.         <header id="masthead" class="site-header top-bar" role="banner">
  80.         <div class="container">
  81.             <div class="site-branding col-md-4">
  82.                 <?php if ( get_theme_mod('site_logo') ) : ?>
  83.                     <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo('name'); ?>"><img class="site-logo" src="<?php echo esc_url(get_theme_mod('site_logo')); ?>" alt="<?php bloginfo('name'); ?>" /></a>
  84.                 <?php else : ?>
  85.                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  86.                     <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  87.                 <?php endif; ?>
  88.             </div>
  89.  
  90.             <nav id="site-navigation" class="main-navigation col-md-8" role="navigation">
  91.                 <button class="menu-toggle btn"><i class="fa fa-bars"></i></button>
  92.                 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  93.             </nav><!-- #site-navigation -->
  94.         </div> 
  95.     </header><!-- #masthead -->
  96.     <?php endif; ?>
  97.  
  98.     <?php if (!is_front_page() || ( 'posts' == get_option( 'show_on_front' ) ) ) : ?>
  99.         <?php $container = "container"; ?>
  100.     <?php else : ?>
  101.         <?php $container = ""; ?>
  102.     <?php endif; ?>
  103.     <div id="content" class="site-content clearfix <?php echo $container; ?>">
RAW Paste Data