wp/wp-includes/theme-compat/header.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * @package WordPress
     3  * @package WordPress
     4  * @subpackage Theme_Compat
     4  * @subpackage Theme_Compat
     5  * @deprecated 3.0
     5  * @deprecated 3.0.0
     6  *
     6  *
     7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
     7  * This file is here for backward compatibility with old themes and will be removed in a future version.
     8  *
       
     9  */
     8  */
    10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
     9 _deprecated_file(
       
    10 	/* translators: %s: template name */
       
    11 	sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
       
    12 	'3.0.0',
       
    13 	null,
       
    14 	/* translators: %s: template name */
       
    15 	sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
       
    16 );
    11 ?>
    17 ?>
    12 <!DOCTYPE html>
    18 <!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    19 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    14 <head>
    20 <head>
    15 <link rel="profile" href="http://gmpg.org/xfn/11" />
    21 <link rel="profile" href="http://gmpg.org/xfn/11" />
    16 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    22 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    17 
    23 
    18 <title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    24 <title><?php echo wp_get_document_title(); ?></title>
    19 
    25 
    20 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    26 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    21 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    27 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    22 
    28 
       
    29 <?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
    23 <style type="text/css" media="screen">
    30 <style type="text/css" media="screen">
    24 
    31 
    25 <?php
    32 <?php
    26 // Checks to see whether it needs a sidebar
    33 // Checks to see whether it needs a sidebar
    27 if ( empty($withcomments) && !is_single() ) {
    34 if ( empty($withcomments) && !is_single() ) {
    30 <?php } else { // No sidebar ?>
    37 <?php } else { // No sidebar ?>
    31 	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    38 	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    32 <?php } ?>
    39 <?php } ?>
    33 
    40 
    34 </style>
    41 </style>
       
    42 <?php } ?>
    35 
    43 
    36 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    44 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    37 
    45 
    38 <?php wp_head(); ?>
    46 <?php wp_head(); ?>
    39 </head>
    47 </head>