header.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Theme_Compat
  5. * @deprecated 3.0.0
  6. *
  7. * This file is here for backward compatibility with old themes and will be removed in a future version.
  8. */
  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. );
  17. ?>
  18. <!DOCTYPE html>
  19. <html <?php language_attributes(); ?>>
  20. <head>
  21. <link rel="profile" href="https://gmpg.org/xfn/11" />
  22. <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
  23. <title><?php echo wp_get_document_title(); ?></title>
  24. <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
  25. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  26. <?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
  27. <style type="text/css" media="screen">
  28. <?php
  29. // Checks to see whether it needs a sidebar.
  30. if ( empty( $withcomments ) && ! is_single() ) {
  31. ?>
  32. #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbg-<?php bloginfo( 'text_direction' ); ?>.jpg") repeat-y top; border: none; }
  33. <?php } else { // No sidebar. ?>
  34. #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
  35. <?php } ?>
  36. </style>
  37. <?php } ?>
  38. <?php
  39. if ( is_singular() ) {
  40. wp_enqueue_script( 'comment-reply' );}
  41. ?>
  42. <?php wp_head(); ?>
  43. </head>
  44. <body <?php body_class(); ?>>
  45. <div id="page">
  46. <div id="header" role="banner">
  47. <div id="headerimg">
  48. <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo( 'name' ); ?></a></h1>
  49. <div class="description"><?php bloginfo( 'description' ); ?></div>
  50. </div>
  51. </div>
  52. <hr />