Guest User

Header - Moss Bank Community

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