Advertisement
Royal

header.php

Nov 27th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <title><?php
  6. /*
  7. * Print the <title> tag based on what is being viewed.
  8. */
  9. global $page, $paged;
  10.  
  11. wp_title( '|', true, 'right' );
  12.  
  13. // Add the blog name.
  14. bloginfo( 'name' );
  15.  
  16. // Add the blog description for the home/front page.
  17. $site_description = get_bloginfo( 'description', 'display' );
  18. if ( $site_description && ( is_home() || is_front_page() ) )
  19. echo " | $site_description";
  20.  
  21. // Add a page number if necessary:
  22. if ( $paged >= 2 || $page >= 2 )
  23. echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
  24.  
  25. ?></title>
  26. <link rel="profile" href="http://gmpg.org/xfn/11" />
  27. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  28. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  29.  
  30. <?php
  31. if ( is_singular() && get_option( 'thread_comments' ) )
  32. wp_enqueue_script( 'comment-reply' );
  33. wp_head();
  34. ?>
  35.  
  36. </head>
  37.  
  38. <body <?php body_class(); ?>>
  39. <div id="fillerdown"><div id="wrapper" class="hfeed">
  40.  
  41. <?php if(is_page(92)) { ?>
  42. <div id="header" style="padding-top:0; text-align:center;">
  43. <img src="http://www.derekroyal.com/wp-content/themes/mazeld/blogheader.jpg" alt="" />
  44. </div><!-- #header -->
  45. <?php } else { ?>
  46. <div id="header">
  47. <div id="masthead">
  48. <div id="branding" role="banner">
  49. <div id="randompic">
  50. <?php echo yellow_get_random_photo(); ?>
  51. </div>
  52. <h1 id="head"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
  53. <div id="site-description"><?php bloginfo( 'description' ); ?></div>
  54. <br style="clear:both;" />
  55. </div><!-- #branding -->
  56. <div id="access" role="navigation">
  57. <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>
  58. <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
  59. </div><!-- #access -->
  60. </div><!-- #masthead -->
  61. </div><!-- #header -->
  62. <?php } ?>
  63.  
  64.  
  65. <div id="main">
  66.  
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement