Advertisement
Guest User

Untitled

a guest
Sep 27th, 2015
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.13 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html class="no-js" <?php language_attributes(); ?>>
  4.  
  5.     <head profile="http://gmpg.org/xfn/11">
  6.        
  7.         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  8.         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
  9.          
  10.         <?php wp_head(); ?>
  11.    
  12.     </head>
  13.    
  14.     <body <?php body_class(); ?>>
  15.        
  16.         <div class="header-wrapper">
  17.        
  18.             <div class="header section bg-white small-padding">
  19.            
  20.                 <div class="section-inner">
  21.                    
  22.                     <?php if ( get_theme_mod( 'lovecraft_logo' ) ) : ?>
  23.                
  24.                         <a class="blog-logo" href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> &mdash; <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>' rel='home'>
  25.                             <img src='<?php echo esc_url( get_theme_mod( 'lovecraft_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'title' ) ); ?>'>
  26.                         </a>
  27.                
  28.                     <?php elseif ( get_bloginfo( 'description' ) || get_bloginfo( 'title' ) ) : ?>
  29.                
  30.                         <h2 class="blog-title">
  31.                             <a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'title' ) ); ?> &mdash; <?php echo esc_attr( get_bloginfo( 'description' ) ); ?>" rel="home"><?php echo esc_attr( get_bloginfo( 'title' ) ); ?></a>
  32.                         </h2>
  33.                        
  34.                         <?php if ( get_bloginfo( 'description' ) ) : ?>
  35.                        
  36.                             <h4 class="blog-tagline">
  37.                                 <?php bloginfo('description'); ?>
  38.                             </h4>
  39.                            
  40.                         <?php endif; ?>
  41.                        
  42.                     <?php endif; ?>
  43.                                
  44.                     <div class="clear"></div>
  45.                
  46.                 </div> <!-- /section-inner -->
  47.                        
  48.             </div> <!-- /header -->
  49.            
  50.             <div class="toggles">
  51.                        
  52.                 <div class="nav-toggle toggle">
  53.                    
  54.                     <div class="bar"></div>
  55.                     <div class="bar"></div>
  56.                     <div class="bar"></div>
  57.                    
  58.                 </div>
  59.                
  60.                 <div class="search-toggle toggle">
  61.                    
  62.                     <div class="genericon genericon-search"></div>
  63.                    
  64.                 </div>
  65.                
  66.                 <div class="clear"></div>
  67.                
  68.             </div> <!-- /toggles -->
  69.        
  70.         </div> <!-- /header-wrapper -->
  71.        
  72.         <div class="navigation bg-white no-padding">
  73.            
  74.             <div class="section-inner">
  75.                
  76.                 <ul class="mobile-menu">
  77.                
  78.                     <?php if ( has_nav_menu( 'primary' ) ) {
  79.                                                                        
  80.                         wp_nav_menu( array(
  81.                        
  82.                             'container' => '',
  83.                             'items_wrap' => '%3$s',
  84.                             'theme_location' => 'primary'
  85.                                                        
  86.                         ) ); } else {
  87.                    
  88.                         wp_list_pages( array(
  89.                        
  90.                             'container' => '',
  91.                             'title_li' => ''
  92.                        
  93.                         ));
  94.                        
  95.                     } ?>
  96.                    
  97.                 </ul>
  98.                
  99.                 <div class="mobile-search">
  100.                
  101.                     <?php get_search_form(); ?>
  102.                
  103.                 </div>
  104.                
  105.                 <ul class="main-menu">
  106.                
  107.                     <?php if ( has_nav_menu( 'primary' ) ) {
  108.                                                                    
  109.                         wp_nav_menu( array(
  110.                        
  111.                             'container' => '',
  112.                             'items_wrap' => '%3$s',
  113.                             'theme_location' => 'primary'
  114.                                                        
  115.                         ) ); } else {
  116.                    
  117.                         wp_list_pages( array(
  118.                        
  119.                             'container' => '',
  120.                             'title_li' => ''
  121.                        
  122.                         ));
  123.                        
  124.                     } ?>
  125.                    
  126.                 </ul>
  127.                
  128.                 <div class="clear"></div>
  129.                
  130.             </div> <!-- /section-inner -->
  131.            
  132.         </div> <!-- /navigation -->
  133.        
  134.         <?php if ( is_singular() && has_post_thumbnail() ) : ?>
  135.        
  136.             <?php
  137.                 $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'post-image-cover' );
  138.                 $post_image = $thumb['0'];
  139.             ?>
  140.        
  141.             <div class="header-image bg-image" style="background-image: url(<?php echo esc_url( $post_image ); ?>)">
  142.                
  143.                 <?php the_post_thumbnail('post-image'); ?>
  144.                
  145.             </div>
  146.        
  147.         <?php else : ?>
  148.        
  149.             <div class="header-image bg-image" style="background-image: url(<?php if (get_header_image() != '') { header_image(); echo ')'; } else { echo   get_template_directory_uri() . "/images/header.jpg)"; } ?>">
  150.                
  151.                 <?php
  152.                     if (get_header_image() != '') {
  153.                         echo '<img src="'; header_image(); echo '">';
  154.                     } else {
  155.                         echo '<img src="' . get_template_directory_uri() . '/images/header.jpg">';
  156.                     }
  157.                 ?>
  158.                
  159.             </div>
  160.        
  161.         <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement