Guest User

header.php

a guest
Feb 13th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 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', 'minecraft' ), 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. <!--[if IE]>
  30. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  31. <![endif]-->
  32. <?php
  33. /* We add some JavaScript to pages with the comment form
  34. * to support sites with threaded comments (when in use).
  35. */
  36. if ( is_singular() && get_option( 'thread_comments' ) )
  37. wp_enqueue_script( 'comment-reply' );
  38.  
  39. /* Always have wp_head() just before the closing </head>
  40. * tag of your theme, or you will break many plugins, which
  41. * generally use this hook to add elements to <head> such
  42. * as styles, scripts, and meta tags.
  43. */
  44. wp_head();
  45. ?>
  46. </head>
  47.  
  48. <body <?php body_class(); ?>>
  49. <!--[if lte IE 7]>
  50. <div class="ieDepass"><p>Vous utilisez un navigateur web (Internet Explorer) qui n'est plus mis à jour depuis plusieurs années.<br />
  51. Pour visiter ce site, vous devez faire la mise à jour vers Internet Explorer en version 9, ou opter pour un autre navigateur plus performant et plus respectueux des standards du web. <br />
  52. <a href="http://www.mozilla-europe.org/fr/firefox/">Firefox</a> - <a href="http://www.google.ch/chrome">Google Chrome</a> -
  53. <a href="http://www.apple.com/fr/safari/">Safari</a> - <a href="http://www.opera.com/">Opera</a><br />
  54. Choisissez, et admirez la différence !
  55. </p></div><br />
  56. <![endif]-->
  57.  
  58. <div id="global">
  59.  
  60. <header>
  61. <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'h1'; ?>
  62. <<?php echo $heading_tag; ?> id="site-title">
  63. <span>
  64. <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
  65. </span>
  66. </<?php echo $heading_tag; ?>>
  67.  
  68. <?php
  69. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  70. if ( is_singular() &&
  71. has_post_thumbnail( $post->ID ) &&
  72. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
  73. $image[1] >= HEADER_IMAGE_WIDTH ) :
  74. // Houston, we have a new header image!
  75. echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
  76. else : ?>
  77. <a href="<?php echo home_url( '/' ); ?>"><img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="Voxran.fr - Lien Accueil" /></a>
  78. <?php endif; ?>
  79. <div id="description-serveur"><?php bloginfo( 'description' ); ?></div>
  80. </header>
  81.  
  82.  
  83. <div id="headerLinksRight"></div>
  84. <div class="clear"></div>
  85.  
  86. <nav>
  87. <?php wp_nav_menu( array( 'menu' => 'Menu Left', 'container_class' => '', 'container' => '', 'menu_class' => '' ) ); ?>
  88. </nav>
  89.  
  90. <div id="conteneur">
Advertisement
Add Comment
Please, Sign In to add comment