web/wp-content/themes/default/header.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
     1 <?php
     1 <?php 
     2 /**
     2 /** 
     3  * @package WordPress
     3  * @package WordPress 
     4  * @subpackage Default_Theme
     4  * @subpackage Default_Theme 
     5  */
     5  */ 
     6 ?>
     6 ?> 
     7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     8 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     8 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     9 
     9 
    10 <head profile="http://gmpg.org/xfn/11">
    10 <head profile="http://gmpg.org/xfn/11">
    11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    11 	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
       
    12 	<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    12 
    13 
    13 <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    14 	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
       
    15 	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
       
    16 	
       
    17 	<style type="text/css" media="screen">
       
    18 		<?php // Controle si la sidebar est présente ou pas.
       
    19 		if ( empty($withcomments) && !is_single() ) : ?>
       
    20 			#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; } 
       
    21 		<?php else : // Pas de sidebar ?>
       
    22 			#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } 
       
    23 		<?php endif; ?>
       
    24 	</style>
    14 
    25 
    15 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    26 	<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
    16 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
       
    17 
    27 
    18 <style type="text/css" media="screen">
    28 	<?php wp_head(); ?>
       
    29 </head>
    19 
    30 
    20 <?php
       
    21 // Checks to see whether it needs a sidebar or not
       
    22 if ( empty($withcomments) && !is_single() ) {
       
    23 ?>
       
    24 	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
       
    25 <?php } else { // No sidebar ?>
       
    26 	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
       
    27 <?php } ?>
       
    28 
       
    29 </style>
       
    30 
       
    31 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 
       
    32 
       
    33 <?php wp_head(); ?>
       
    34 </head>
       
    35 <body <?php body_class(); ?>>
    31 <body <?php body_class(); ?>>
    36 <div id="page">
    32 	<div id="page">
    37 
    33 		<div id="header" role="banner">
    38 
    34 			<div id="headerimg">
    39 <div id="header" role="banner">
    35 				<h1><a href="<?php bloginfo('home'); ?>"><?php bloginfo('name'); ?></a></h1>
    40 	<div id="headerimg">
    36 				<div class="description"><?php bloginfo('description'); ?></div>
    41 		<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    37 			</div>
    42 		<div class="description"><?php bloginfo('description'); ?></div>
    38 		</div>
    43 	</div>
    39 		<hr />
    44 </div>
       
    45 <hr />