Advertisement
Guest User

Untitled

a guest
Apr 1st, 2012
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 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_Eleven
  9. * @since Twenty Eleven 1.0
  10. */
  11. ?><!DOCTYPE html>
  12. <!--[if IE 6]>
  13. <html id="ie6" <?php language_attributes(); ?>>
  14. <![endif]-->
  15. <!--[if IE 7]>
  16. <html id="ie7" <?php language_attributes(); ?>>
  17. <![endif]-->
  18. <!--[if IE 8]>
  19. <html id="ie8" <?php language_attributes(); ?>>
  20. <![endif]-->
  21. <!--[if !(IE 6) | !(IE 7) | !(IE 8) ]><!-->
  22. <html <?php language_attributes(); ?>>
  23. <!--<![endif]-->
  24. <head>
  25. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  26. <meta name="viewport" content="width=device-width" />
  27.  
  28. <title><?php
  29. /*
  30. * Print the <title> tag based on what is being viewed.
  31. */
  32. global $page, $paged;
  33.  
  34. wp_title( '|', true, 'right' );
  35.  
  36. // Add the blog name.
  37. bloginfo( 'name' );
  38.  
  39. // Add the blog description for the home/front page.
  40. $site_description = get_bloginfo( 'description', 'display' );
  41. if ( $site_description && ( is_home() || is_front_page() ) )
  42. echo " | $site_description";
  43.  
  44. // Add a page number if necessary:
  45. if ( $paged >= 2 || $page >= 2 )
  46. echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
  47.  
  48. ?></title>
  49. <link rel="profile" href="http://gmpg.org/xfn/11" />
  50. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  51.  
  52. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  53. <!--[if lt IE 9]>
  54. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  55. <![endif]-->
  56.  
  57.  
  58. <?php wp_head(); ?>
  59.  
  60. </head>
  61.  
  62. <script type="text/javascript">
  63. jQuery(document).ready(function(){
  64. jQuery('#slipSlap').slipSlap({
  65. // all of these options are... optional
  66. speedOver: 100, // speed of the mouseover effect
  67. speedOut: 100, // speed of the mouseout effect
  68. opacity: '1', // opacity of the menu
  69. spanWidth: '136', // button width
  70. spanHeight: '48', // button height
  71. SlipAmount: '12', // how far down a button slips
  72. easeHover: 'swing', // animation ease on hover
  73. easeOut: 'swing' // animation ease on out
  74. });
  75. });
  76. </script>
  77.  
  78.  
  79.  
  80. <script type="text/javascript">
  81. $(document).ready(function () {
  82.  
  83. $('#simple-slider ul a').click(function () {
  84.  
  85. //reset all the items
  86. $('#simple-slider ul a').removeClass('active');
  87.  
  88. //set current item as active
  89. $(this).addClass('active');
  90.  
  91. //scroll it to the right position
  92. $('.mask').scrollTo($(this).attr('rel'), 300);
  93.  
  94. //disable click event
  95. return false;
  96.  
  97. });
  98.  
  99. });
  100. </script>
  101.  
  102.  
  103.  
  104. <div id="fb-root"></div>
  105. <script>(function(d, s, id) {
  106. var js, fjs = d.getElementsByTagName(s)[0];
  107. if (d.getElementById(id)) return;
  108. js = d.createElement(s); js.id = id;
  109. js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
  110. fjs.parentNode.insertBefore(js, fjs);
  111. }(document, 'script', 'facebook-jssdk'));
  112. </script>
  113.  
  114. <div id="headerwrap">
  115. <header id="branding" role="banner">
  116.  
  117.  
  118. <hgroup>
  119. <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
  120. <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  121. </hgroup>
  122.  
  123. <?php
  124. // Check to see if the header image has been removed
  125. $header_image = get_header_image();
  126. if ( ! empty( $header_image ) ) :
  127. ?>
  128. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  129. <?php
  130. // The header image
  131. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  132. if ( is_singular() &&
  133. has_post_thumbnail( $post->ID ) &&
  134. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
  135. $image[1] >= HEADER_IMAGE_WIDTH ) :
  136. // Houston, we have a new header image!
  137. echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
  138. else : ?>
  139. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  140. <?php endif; // end check for featured image or standard header ?>
  141. </a>
  142. <?php endif; // end check for removed header image ?>
  143.  
  144.  
  145. <div class="logo">
  146. <h4 id="logo"><a href="http://www.gotodesigns.co.uk">
  147. <img src="http://www.gotodesigns.co.uk/wp-content/themes/twentyeleven-child/images/gotodesigns-logo-2.png"
  148. alt="gotodesigns-logo" height=76px width=630px /></a></h4>
  149.  
  150. </div>
  151.  
  152.  
  153. <?php
  154. // Has the text been hidden?
  155. if ( 'blank' == get_header_textcolor() ) :
  156. ?>
  157.  
  158. <?php endif; ?>
  159.  
  160. <nav id="access" role="navigation">
  161. <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
  162. <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
  163. <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
  164. <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
  165. <?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. */ ?>
  166. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  167. </nav><!-- #access -->
  168. </header><!-- #branding -->
  169. </div>
  170.  
  171.  
  172. <body <?php body_class(); ?>>
  173.  
  174. <div id="page" class="hfeed">
  175.  
  176.  
  177.  
  178. <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement