Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

help

By: a guest on Sep 7th, 2012  |  syntax: None  |  size: 7.15 KB  |  views: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The header template
  4.  *
  5.  * @package wplook
  6.  * @subpackage BlogoLife
  7.  * @since BlogoLife 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 charset="<?php bloginfo( 'charset' ); ?>" />
  21. <title><?php global $page, $paged;
  22.         wp_title( '', true, 'right' );
  23.         // Add the blog description for the home/front page.
  24.         $site_name = get_bloginfo( 'name', 'display' );
  25.         if ( $site_name && ( is_home() || is_front_page() ) )
  26.                 echo " $site_name";
  27.         // Add a page number if necessary:
  28.         if ( $paged >= 2 || $page >= 2 )
  29.                 echo ' | ' . sprintf( __( 'Page %s', 'wplook' ), max( $paged, $page ) );
  30.         ?></title>
  31. <?php wplook_meta_description();?>
  32.  
  33. <meta name="keywords" content="<?php echo $wpl_meta_keywords; ?>" />
  34. <link rel="shortcut icon" href="<?php echo $wpl_favicon_url; ?>" />
  35. <link rel="apple-touch-icon" href="<?php echo get_template_directory_uri() ?>/images/apple-touch-icon.png" />
  36. <?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
  37. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  38. <?php echo stripslashes($wpl_ga_code); ?>
  39. <?php wp_head(); ?>
  40.         </head>
  41. <body <?php body_class('two-column right-sidebar'); ?>>
  42. <div id="page"<?php if (is_single() || is_page() ) { $sidebar = get_post_meta($post->ID,'wpl_enable_sidebar',true);  if($sidebar=="false") echo ' class="template-full-widch"'; } ?>>
  43.         <header id="branding">
  44. <hgroup class="fleft">
  45.         <h1 id="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> - <?php bloginfo('description'); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
  46.         <h2 id="site-description"><?php bloginfo('description'); ?></h2>
  47. </hgroup>
  48. <div class="header-desc fright"><p><?php echo stripslashes($wpl_header_desc); ?></p></div>
  49. <div class="clear"></div>
  50. <div class="social-icons fright">
  51.  
  52. <?php if ($wpl_twitter != '') { ?>
  53. <a href="<?php echo $wpl_twitter; ?>" target="_blank" title="<?php _e('Twitter', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/twitter.png" width="22" height="22" /></a>
  54. <?php } ?>
  55. <?php if ($wpl_google_plus != '') { ?>
  56. <a href="<?php echo $wpl_google_plus; ?>" target="_blank" title="<?php _e('Google +', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/google-plus.png" width="22" height="22" /></a>
  57. <?php } ?>
  58. <?php if ($wpl_facebook != '') { ?>
  59. <a href="<?php echo $wpl_facebook; ?>" target="_blank" title="<?php _e('FaceBook', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/facebook.png" width="22" height="22" /></a>
  60. <?php } ?>
  61. <?php if ($wpl_linkedin != '') { ?>
  62. <a href="<?php echo $wpl_linkedin; ?>" target="_blank" title="<?php _e('Linkedin', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/icons/linkedin.png" width="22" height="22" /></a>
  63. <?php } ?>
  64. <?php if ($wpl_tumblr != '') {  ?>
  65. <a href="<?php echo $wpl_tumblr; ?>" target="_blank" title="<?php _e('Tumblr', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/tumblr.png" width="22" height="22" /></a>
  66. <?php } ?>
  67. <?php if ($wpl_delicious != '') {       ?>
  68. <a href="<?php echo $wpl_delicious; ?>" target="_blank" target="_blank" title="<?php _e('Delicious', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/delicious.png" width="22" height="22" /></a>
  69. <?php } ?>
  70. <?php if ($wpl_digg != '') {    ?>
  71. <a href="<?php echo $wpl_digg; ?>" target="_blank" title="<?php _e('Digg', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/digg.png" width="22" height="22" /></a>
  72. <?php } ?>     
  73. <?php if ($wpl_stumbleupon != '') {     ?>
  74. <a href="<?php echo $wpl_stumbleupon; ?>" target="_blank" title="<?php _e('Stumbleupon', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/stumbleupon.png" width="22" height="22" /></a>
  75. <?php } ?>
  76. <?php if ($wpl_flickr != '') {  ?>
  77. <a href="<?php echo $wpl_flickr; ?>" target="_blank"  title="<?php _e('Flickr', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/flickr.png" width="22" height="22" /></a>
  78. <?php } ?>
  79. <?php if ($wpl_picasa != '') {  ?>
  80. <a href="<?php echo $wpl_picasa; ?>" target="_blank" title="<?php _e('Picasa', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/picasa.png" width="22" height="22" /></a>
  81. <?php } ?>     
  82. <?php if ($wpl_youtube != '') { ?>
  83. <a href="<?php echo $wpl_youtube; ?>" target="_blank" title="<?php _e('YouTube', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/youtube.png" width="22" height="22" /></a>
  84. <?php } ?>
  85. <?php if ($wpl_dribbble != '') {        ?>
  86. <a href="<?php echo $wpl_dribbble; ?>" target="_blank" title="<?php _e('Dribble', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/dribbble.png" width="22" height="22" /></a>
  87. <?php } ?>
  88. <?php if ($wpl_rss != '') { ?>
  89. <a href="<?php echo $wpl_rss; ?>" target="_blank" title="<?php _e('Subscribe to RSS', 'wplook'); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/icons/rss.png" width="22" height="22" /></a>
  90. <?php } ?>
  91. </div><div class="clear"></div>
  92. </header>
  93.  
  94. <?php if ($wpl_menu == '' || $wpl_menu == 'Display') { ?>
  95. <nav>
  96.         <?php wp_nav_menu( array('depth' => '3', 'theme_location' => 'primary' )); ?>
  97.         <div class="left-corner"></div>
  98.         <div class="right-corner"></div>
  99. </nav>
  100. <?php } ?>
  101. <div id="header-image">
  102. <?php
  103.                                 //Code from 2011 theme by wordpress theme team
  104.                                 //Check to see if the header image has been removed
  105.                                 $header_image = get_header_image();
  106.                                 if ( ! empty( $header_image ) ) :       ?>
  107. <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  108.                                 <?php
  109.                                         // The header image
  110.                                         // Check if this is a post or page, if it has a thumbnail, and if it's a big one
  111.                                         if ( is_singular() &&
  112.                                                         has_post_thumbnail( $post->ID ) &&
  113.                                                         ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
  114.                                                         $image[1] >= HEADER_IMAGE_WIDTH ) :
  115.                                                 // Houston, we have a new header image!
  116.                                                 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
  117.                                         else : ?>
  118. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  119.                                 <?php endif; // end check for featured image or standard header ?>
  120.                         </a>
  121.                         <?php endif; // end check for removed header image ?>
  122.                         <?php // Has the text been hidden?
  123.                                 if ( 'blank' == get_header_textcolor() ) :
  124.                         ?>
  125.  
  126. <link rel="shortcut icon" href="http://myhousesforsaleindetroit.com/wp-content/uploads/2012/09/favicon.ico" type="image/vnd.microsoft.icon"/>
  127. <link rel="icon" href="http://myhousesforsaleindetroit.com/wp-content/uploads/2012/09/favicon.ico" type="image/x-ico"/>
  128.  
  129.  
  130. <?php endif; ?>
  131. </div>
  132. <div id="main">
clone this paste RAW Paste Data