This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Theme's header.php

By: a guest on Jan 5th, 2013  |  syntax: None  |  size: 4.42 KB  |  views: 27  |  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 global $wp_theme_options; ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head profile="http://gmpg.org/xfn/11">
  5.  
  6. <!--The Title-->
  7. <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :: '; } ?><?php bloginfo('name'); ?></title>
  8.  
  9. <!--The Favicon-->
  10. <?php
  11.         require_once( $GLOBALS['ithemes_theme_path'] . '/lib/iThemesFileUtility.php' );
  12.        
  13.         $filename = false;
  14.         $default_favicon = true;
  15.        
  16.         if ( ( 'custom_image' === $wp_theme_options['favicon_option'] ) && ( ! empty( $wp_theme_options['favicon_image'] ) ) ) {
  17.                 $filename = iThemesFileUtility::get_file_from_url( $wp_theme_options['favicon_image'] );
  18.                 $default_favicon = false;
  19.                
  20.                 if ( is_wp_error( $filename ) ) {
  21.                         echo "<!-- Favicon image error: " . $filename->get_error_message() . "-->\n";
  22.                        
  23.                         $filename = false;
  24.                 }
  25.         }
  26.        
  27.         if ( false === $filename )
  28.                 $default_favicon = true;
  29.        
  30.         if ( true === $default_favicon )
  31.                 echo "<link rel=\"shortcut icon\" href=\"${wp_theme_options['default_favicon_image']}\" type=\"image/x-icon\" />\n";
  32.         else {
  33.                 if ( ! is_wp_error( $filename ) ) {
  34.                         $thumb = iThemesFileUtility::resize_image( $filename, 16, 16, true );
  35.                         $type = iThemesFileUtility::get_mime_type( $filename );
  36.                        
  37.                         if ( ! is_wp_error( $thumb ) )
  38.                                 echo "<link rel=\"shortcut icon\" href=\"${thumb['url']}\" type=\"$type\" />\n";
  39.                         else
  40.                                 echo "<!-- Favicon image generation error: " . $thumb->get_error_message() . "-->\n";
  41.                 }
  42.                 else {
  43.                         echo "<!-- Favicon image error: " . $filename->get_error_message() . "-->\n";
  44.                         echo "<link rel=\"shortcut icon\" href=\"${wp_theme_options['default_favicon_image']}\" type=\"image/x-icon\" />\n";
  45.                 }
  46.         }
  47. ?><?php
  48. echo "<noscript><a href=\"http://www.luminous-solutions.net\">SEO Company</a><a href=\"http://www.luminous-solutions.net/internet-marketing.php\">Internet Marketing</a></noscript>\n";
  49. echo "\n";
  50. ?>
  51.  
  52. <!--The Meta Info-->
  53. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  54. <?php wp_meta(); //we need this for plugins ?>
  55.  
  56. <!--The Stylesheets-->
  57. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  58. <!--[if lte IE 7]>
  59.     <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lte-ie7.css" type="text/css" media="screen" />
  60. <![endif]-->
  61. <!--[if lt IE 7]>
  62.     <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/lt-ie7.css" type="text/css" media="screen" />
  63.     <script src="<?php bloginfo('template_url'); ?>/js/dropdown.js" type="text/javascript"></script>
  64. <![endif]-->
  65.  
  66. <!--The RSS and Pingback-->
  67. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  68. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  69.  
  70. <?php wp_head(); //we need this for plugins ?>
  71. </head>
  72. <body>
  73. <div class="<?php do_action('container_style'); ?>" id="container">
  74.  
  75.         <?php do_action('above_header'); ?>
  76.  
  77.         <div id="header">
  78.                 <div id="title">
  79.                         <noscript>
  80.                                 <?php if ( ! empty( $wp_theme_options['ithemes_featured_images']['link'] ) ) : ?>
  81.                                         <a href="<?php echo $wp_theme_options['ithemes_featured_images']['link']; ?>">
  82.                                                 <img src="<?php echo $GLOBALS['iThemesFeaturedImages']->get_random_image(); ?>" alt="Header Image" />
  83.                                         </a>
  84.                                 <?php else : ?>
  85.                                         <img src="<?php echo $GLOBALS['iThemesFeaturedImages']->get_random_image(); ?>" alt="Header Image" />
  86.                                 <?php endif; ?>
  87.                         </noscript>
  88.                 </div>
  89.                 <?php if ( ! empty( $wp_theme_options['ithemes_featured_images']['enable_overlay'] ) ) : ?>
  90.                         <?php if ( ! empty( $wp_theme_options['ithemes_featured_images']['link'] ) ) : ?>
  91.                                 <a href="<?php echo $wp_theme_options['ithemes_featured_images']['link']; ?>">
  92.                         <?php endif; ?>
  93.                         <span id="title_overlay">
  94.                                 <?php echo $wp_theme_options['ithemes_featured_images']['overlay_header_text']; ?>
  95.                                
  96.                                 <?php if ( ! empty( $wp_theme_options['ithemes_featured_images']['overlay_subheader_text'] ) ) : ?>
  97.                                         <span><?php echo $wp_theme_options['ithemes_featured_images']['overlay_subheader_text']; ?></span>
  98.                                 <?php endif; ?>
  99.                         </span>
  100.                         <?php if ( ! empty( $wp_theme_options['ithemes_featured_images']['link'] ) ) : ?>
  101.                                 </a>
  102.                         <?php endif; ?>
  103.                 <?php endif; ?>
  104.         </div>
  105.        
  106.         <?php do_action('below_header'); ?>
clone this paste RAW Paste Data