Advertisement
grappler

header.php wo/ logo

Feb 11th, 2013
5,320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.58 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Header Template
  8.  *
  9.  *
  10.  * @file           header.php
  11.  * @package        Responsive
  12.  * @author         Emil Uzelac
  13.  * @copyright      2003 - 2013 ThemeID
  14.  * @license        license.txt
  15.  * @version        Release: 1.3
  16.  * @filesource     wp-content/themes/responsive/header.php
  17.  * @link           http://codex.wordpress.org/Theme_Development#Document_Head_.28header.php.29
  18.  * @since          available since Release 1.0
  19.  */
  20. ?>
  21. <!doctype html>
  22. <!--[if !IE]>      <html class="no-js non-ie" <?php language_attributes(); ?>> <![endif]-->
  23. <!--[if IE 7 ]>    <html class="no-js ie7" <?php language_attributes(); ?>> <![endif]-->
  24. <!--[if IE 8 ]>    <html class="no-js ie8" <?php language_attributes(); ?>> <![endif]-->
  25. <!--[if IE 9 ]>    <html class="no-js ie9" <?php language_attributes(); ?>> <![endif]-->
  26. <!--[if gt IE 9]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
  27. <head>
  28.  
  29. <meta charset="<?php bloginfo('charset'); ?>" />
  30. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  31.  
  32. <title>
  33. <?php
  34. if ( defined( 'WPSEO_VERSION' ) ) {
  35.     // WordPress SEO is activated
  36.         wp_title();
  37.  
  38. } else {
  39.    
  40.     // WordPress SEO is not activated
  41.     wp_title( '&#124;', true, 'right' );
  42. }
  43. ?>
  44. </title>
  45.  
  46. <link rel="profile" href="http://gmpg.org/xfn/11" />
  47. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  48.  
  49. <?php wp_enqueue_style('responsive-style', get_stylesheet_uri(), false, '1.8.9');?>
  50.  
  51. <?php wp_head(); ?>
  52. </head>
  53.  
  54. <body <?php body_class(); ?>>
  55.                  
  56. <?php responsive_container(); // before container hook ?>
  57. <div id="container" class="hfeed">
  58.          
  59.     <?php responsive_header(); // before header hook ?>
  60.     <div id="header">
  61.    
  62.         <?php if (has_nav_menu('top-menu', 'responsive')) { ?>
  63.             <?php wp_nav_menu(array(
  64.                     'container'       => '',
  65.                     'fallback_cb'     =>  false,
  66.                     'menu_class'      => 'top-menu',
  67.                     'theme_location'  => 'top-menu')
  68.                     );
  69.                 ?>
  70.         <?php } ?>
  71.        
  72.     <?php responsive_in_header(); // header hook ?>
  73.    
  74.     <?php if ( get_header_image() != '' ) : ?>
  75.                
  76.         <div id="logo">
  77.             <a href="<?php echo home_url('/'); ?>"></a>
  78.         </div><!-- end of #logo -->
  79.        
  80.     <?php endif; // header image was removed ?>
  81.  
  82.     <?php if ( !get_header_image() ) : ?>
  83.                
  84.         <div id="logo">
  85.             <span class="site-name"><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home"><?php bloginfo('name'); ?></a></span>
  86.             <span class="site-description"><?php bloginfo('description'); ?></span>
  87.         </div><!-- end of #logo -->  
  88.  
  89.     <?php endif; // header image was removed (again) ?>
  90.    
  91.     <?php get_sidebar('top'); ?>
  92.                
  93.                 <?php wp_nav_menu(array(
  94.                     'container'       => '',
  95.                     'theme_location'  => 'header-menu')
  96.                     );
  97.                 ?>
  98.                
  99.             <?php if (has_nav_menu('sub-header-menu', 'responsive')) { ?>
  100.                 <?php wp_nav_menu(array(
  101.                     'container'       => '',
  102.                     'menu_class'      => 'sub-header-menu',
  103.                     'theme_location'  => 'sub-header-menu')
  104.                     );
  105.                 ?>
  106.             <?php } ?>
  107.  
  108.     </div><!-- end of #header -->
  109.     <?php responsive_header_end(); // after header hook ?>
  110.    
  111.     <?php responsive_wrapper(); // before wrapper ?>
  112.     <div id="wrapper" class="clearfix">
  113.     <?php responsive_in_wrapper(); // wrapper hook ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement