Advertisement
Guest User

Untitled

a guest
Sep 6th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. <?php
  2. /**
  3. * The header template
  4. *
  5. * @package wplook
  6. * @subpackage DailyPost
  7. * @since DailyPost 1.0
  8. */
  9. ?>
  10. <?php global $options;
  11. foreach ($options as $value) {
  12. if (isset($value['id']) && get_option( $value['id'] ) === FALSE && isset($value['std'])) {
  13. $$value['id'] = $value['std'];
  14. }
  15. elseif (isset($value['id'])) { $$value['id'] = get_option( $value['id'] ); }
  16. }?>
  17. <!DOCTYPE html>
  18. <html <?php language_attributes(); ?>>
  19. <head>
  20. <meta name="viewport" content="width=device-width" />
  21. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  22. <title><?php global $page, $paged;
  23. wp_title( '', true, 'right' );
  24. // Add the blog description for the home/front page.
  25. $site_name = get_bloginfo( 'name', 'display' );
  26. if ( $site_name && ( is_home() || is_front_page() ) )
  27. echo " $site_name";
  28. // Add a page number if necessary:
  29. if ( $paged >= 2 || $page >= 2 )
  30. echo ' | ' . sprintf( __( 'Page %s', 'wplook' ), max( $paged, $page ) );
  31. ?></title>
  32. <?php wplook_meta_description();?>
  33. <?php if ($wpl_meta_keywords != ''){ ?>
  34. <meta name="keywords" content="<?php echo $wpl_meta_keywords; ?>" />
  35. <?php } if ($wpl_favicon_url != ''){ ?>
  36. <link rel="shortcut icon" href="<?php echo $wpl_favicon_url; ?>" />
  37. <?php }
  38. if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
  39. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  40. <?php echo stripslashes($wpl_ga_code); ?>
  41. <?php wp_head(); ?>
  42. </head>
  43.  
  44. <body <?php body_class(''); ?>>
  45. <div id="page">
  46. <div id="primary">
  47. <div id="contentcolumn">
  48. <hgroup id="mobile-version">
  49. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>"><?php bloginfo('name'); ?></a></h1>
  50. <h2 class="site-description"><?php bloginfo('description'); ?></h2>
  51. </hgroup>
  52. <?php
  53. //Code from 2011 theme by wordpress theme team
  54. //Check to see if the header image has been removed
  55. $header_image = get_header_image();
  56. if ( ! empty( $header_image ) ) : ?>
  57. <div id="header-image">
  58. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  59. <?php
  60. // The header image
  61. // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  62. if ( is_singular() &&
  63. has_post_thumbnail( $post->ID ) &&
  64. ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
  65. $image[1] >= HEADER_IMAGE_WIDTH ) :
  66. // Houston, we have a new header image!
  67. echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
  68. else : ?>
  69. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  70. <?php endif; // end check for featured image or standard header ?>
  71. </a></div>
  72. <?php endif; // end check for removed header image ?>
  73.  
  74. <?php
  75. // Has the text been hidden?
  76. if ( 'blank' == get_header_textcolor() ) :
  77. ?>
  78.  
  79. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement