]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-includes/theme-compat/header.php
WordPress 4.4
[autoinstalls/wordpress.git] / wp-includes / theme-compat / header.php
1 <?php
2 /**
3  * @package WordPress
4  * @subpackage Theme_Compat
5  * @deprecated 3.0
6  *
7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
8  *
9  */
10 _deprecated_file(
11         /* translators: %s: template name */
12         sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
13         '3.0',
14         null,
15         /* translators: %s: template name */
16         sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
17 );
18 ?>
19 <!DOCTYPE html>
20 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
21 <head>
22 <link rel="profile" href="http://gmpg.org/xfn/11" />
23 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
24
25 <title><?php echo wp_get_document_title(); ?></title>
26
27 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
28 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
29
30 <?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
31 <style type="text/css" media="screen">
32
33 <?php
34 // Checks to see whether it needs a sidebar
35 if ( empty($withcomments) && !is_single() ) {
36 ?>
37         #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
38 <?php } else { // No sidebar ?>
39         #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
40 <?php } ?>
41
42 </style>
43 <?php } ?>
44
45 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
46
47 <?php wp_head(); ?>
48 </head>
49 <body <?php body_class(); ?>>
50 <div id="page">
51
52 <div id="header" role="banner">
53         <div id="headerimg">
54                 <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h1>
55                 <div class="description"><?php bloginfo('description'); ?></div>
56         </div>
57 </div>
58 <hr />