Advertisement
Guest User

header.php

a guest
Sep 18th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html <?php language_attributes(); ?>>
  4. <head>
  5.  
  6. <title>
  7. <?php
  8. $title = (is_home() ? get_bloginfo('description') : wp_title('', false));
  9. $title = (!empty($title) ? " &mdash; $title" : '');
  10. echo get_bloginfo('name') . $title;
  11. ?>
  12. </title>
  13.  
  14. <!-- Meta-Tags -->
  15. <meta charset="<?php bloginfo('charset'); ?>" />
  16. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  17.  
  18. <!-- Main Stylesheet -->
  19. <link rel="stylesheet" href="<?php echo get_bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
  20.  
  21. <!-- Favicon -->
  22. <?php
  23. if($favicon = get_theme_mod('favicon')) {
  24. echo '<link rel="shortcut icon" href="'.$favicon.'" />';
  25. }
  26. ?>
  27.  
  28. <!-- XFN 1.1 Relationships Meta Data Profile -->
  29. <link rel="profile" href="http://gmpg.org/xfn/11" />
  30.  
  31. <!-- RSS and Trackbacks -->
  32. <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php bloginfo('name'); ?> RSS2 Feed" />
  33. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  34.  
  35. <!-- IE Fixes -->
  36. <!--[if lte IE 8]>
  37. <script src="<?php echo get_template_directory_uri(); ?>/js/ie.html5.js"></script>
  38. <![endif]-->
  39.  
  40. <?php wp_head(); ?>
  41.  
  42. <!-- Custom CSS Code -->
  43. <style type="text/css" media="all">
  44. <?php echo get_theme_mod('custom_css_code'); ?>
  45. </style>
  46.  
  47. <!-- Custom Header Code -->
  48. <?php echo get_theme_mod('custom_header_code'); ?>
  49.  
  50. </head>
  51.  
  52. <body <?php body_class('no-js'); ?>>
  53.  
  54. <!-- BEGIN #container -->
  55. <div id="container">
  56.  
  57. <!-- BEGIN #header -->
  58. <header id="header">
  59.  
  60. <?php if($logo = get_theme_mod('logo')): ?>
  61.  
  62. <?php
  63. $tagline = get_bloginfo('description');
  64. $tagline = (!empty($tagline) ? ' &mdash; '.$tagline : '');
  65. ?>
  66. <h1>
  67. <a href="/" style="text-decoration:none">
  68. <img id="logo" src="<?php echo $logo; ?>" alt="<?php echo get_bloginfo('name').$tagline; ?>" />
  69. </a>
  70. </h1>
  71. <?php else: ?>
  72.  
  73. <h1 id="page-title"><?php bloginfo('name'); ?></h1>
  74. <?php if($tagline = get_bloginfo('description')): ?>
  75. <h2 id="page-tagline"><?php echo $tagline; ?></h2>
  76. <?php endif; ?>
  77.  
  78. <?php endif; ?>
  79.  
  80. <div id="ajax-spinner">0</div>
  81.  
  82. </header>
  83. <!-- END #header -->
  84.  
  85. <!-- BEGIN #main -->
  86. <section id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement