Advertisement
Guest User

Untitled

a guest
Jun 12th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 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="main">
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Ten
  9. * @since Twenty Ten 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <html <?php language_attributes(); ?>>
  13. <head>
  14. <meta name="google-site-verification" content="96rkOxyjv9ZunevbBTr5tHYjeAKJFKeTJLj3JKBCJUI" />
  15. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  16.  
  17.  
  18. <title><?php
  19. /*
  20. * Print the <title> tag based on what is being viewed.
  21. */
  22. global $page, $paged;
  23.  
  24. wp_title( '', true, 'right' );
  25.  
  26. // Add the blog name.
  27. bloginfo( 'name' );
  28.  
  29. // Add the blog description for the home/front page.
  30. $site_description = get_bloginfo( 'description', 'display' );
  31. if ( $site_description && ( is_home() || is_front_page() ) )
  32. echo " | $site_description";
  33.  
  34.  
  35. // Add a page number if necessary:
  36. if ( $paged >= 2 || $page >= 2 )
  37. echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
  38.  
  39. ?></title>
  40.  
  41. <!-- <meta name="description" content="Learn Guitar with Ignite Guitar!" />
  42. <meta name="keywords" content="Ignite Guitar" />
  43. -->
  44.  
  45. <link rel="profile" href="http://gmpg.org/xfn/11" />
  46. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  47. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  48. <?php
  49. /* We add some JavaScript to pages with the comment form
  50. * to support sites with threaded comments (when in use).
  51. */
  52. if ( is_singular() && get_option( 'thread_comments' ) )
  53. wp_enqueue_script( 'comment-reply' );
  54.  
  55. /* Always have wp_head() just before the closing </head>
  56. * tag of your theme, or you will break many plugins, which
  57. * generally use this hook to add elements to <head> such
  58. * as styles, scripts, and meta tags.
  59. */
  60. wp_head();
  61. ?>
  62.  
  63. <!-- Google Analytics -->
  64. <script type="text/javascript">
  65.  
  66. var _gaq = _gaq || [];
  67. _gaq.push(['_setAccount', 'UA-31605326-1']);
  68. _gaq.push(['_trackPageview']);
  69.  
  70. (function() {
  71. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  72. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  73. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  74. })();
  75.  
  76. </script>
  77.  
  78. </head>
  79.  
  80. <body <?php body_class(); ?>>
  81. <div id="wrapper" class="hfeed">
  82. <div id="header">
  83. <div id="masthead">
  84. <div id="branding" role="banner">
  85. <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
  86. <<?php echo $heading_tag; ?> id="site-title">
  87. <span>
  88.  
  89. <a href="http://www.igniteguitar.com" target="_blank"><img src="http://www.blog.igniteguitar.com/wp-content/uploads/ignitelogo.png" title="Ignite Guitar Logo" /></a>
  90. </span>
  91. <!-- <div id="site-description"><?php bloginfo( 'description' ); ?></div> -->
  92.  
  93. <?php
  94. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  95. if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
  96. has_post_thumbnail( $post->ID ) &&
  97. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
  98. $image[1] >= HEADER_IMAGE_WIDTH ) :
  99. // Houston, we have a new header image!
  100. echo get_the_post_thumbnail( $post->ID );
  101. elseif ( get_header_image() ) : ?>
  102. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  103. <?php endif; ?>
  104. </div><!-- #branding -->
  105.  
  106. <div id="access" role="navigation">
  107. <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
  108. <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
  109. <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
  110. <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
  111. <a href="http://www.igniteguitar.com" style="font-family:arial, tahoma, san-serif; font-size:125%; float:right;" onmouseover="this.style.color = '#565656'" onmouseout="this.style.color = 'black'" target="_blank">Go to Ignite Guitar.com</a>
  112.  
  113. </div><!-- #access -->
  114. </div><!-- #masthead -->
  115. </div><!-- #header -->
  116.  
  117. <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement