Advertisement
Guest User

2uh photos

a guest
Jan 19th, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. <header id="branding" role="banner">
  2. <hgroup>
  3. <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>
  4. <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  5. </hgroup>
  6.  
  7. <?php
  8. // Check to see if the header image has been removed - added the is_page condition
  9. if( !is_page('photos' ) :
  10. $header_image = get_header_image();
  11. if ( !empty( $header_image ) ) :
  12. ?>
  13. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  14.  
  15.  
  16. // The header image
  17. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  18. if ( is_singular() &&
  19. has_post_thumbnail( $post->ID ) &&
  20. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
  21. $image[1] >= HEADER_IMAGE_WIDTH ) :
  22. // Houston, we have a new header image!
  23. echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
  24. else : ?>
  25. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  26. <?php endif; // end check for featured image or standard header ?>
  27. </a>
  28.  
  29. <?php
  30. // Has the text been hidden?
  31. if ( 'blank' == get_header_textcolor() ) :
  32. ?>
  33. <div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
  34. <?php get_search_form(); ?>
  35. </div>
  36. <?php
  37. else :
  38. ?>
  39.  
  40. <?php get_search_form(); ?>
  41. <?php endif; ?>
  42.  
  43. <nav id="access" role="navigation">
  44. <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
  45. <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
  46. <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>
  47. <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>
  48. <?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. */ ?>
  49. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  50. </nav><!-- #access -->
  51. </header>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement