Advertisement
Mikeytrooper

On Demand Header

Apr 3rd, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. <?php
  2. // Press75.com
  3. ?>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
  6.  
  7. <!--
  8. **********************************************************************************************
  9.  
  10. Designed and Built by Jason Schuller - theSevenFive.com, Press75.com
  11.  
  12. CSS, XHTML and Design Files are all Copyright 2007-2010 Circa75 Media, LLC
  13.  
  14. Be inspired, but please don't steal...
  15.  
  16. **********************************************************************************************
  17. -->
  18.  
  19.  
  20. <head profile="http://gmpg.org/xfn/11">
  21. <!-- page titles -->
  22. <title>
  23. <?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
  24. <?php if ( is_search() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Search Results<?php } ?>
  25. <?php if ( is_author() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Author Archives<?php } ?>
  26. <?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
  27. <?php if ( is_page() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php wp_title(''); ?><?php } ?>
  28. <?php if ( is_category() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php
  29. single_cat_title(); ?><?php } ?>
  30. <?php if ( is_month() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php the_time('F'); ?><?php } ?>
  31. <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Tag Archive&nbsp;|&nbsp;<?php single_tag_title("", true); } } ?>
  32. </title>
  33.  
  34. <!-- meta tags -->
  35. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  36. <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  37. <meta name="description" content="<?php the_excerpt_rss(); ?>" />
  38. <?php endwhile; endif; elseif(is_home()) : ?>
  39. <meta name="description" content="<?php bloginfo('description'); ?>" />
  40. <?php endif; ?>
  41.  
  42. <!-- import required theme styles -->
  43. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  44. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css3.css" type="text/css" media="screen" />
  45.  
  46. <!--[if IE 7]>
  47. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style-ie7.css" type="text/css" media="screen" />
  48. <![endif]-->
  49.  
  50. <!--[if IE 8]>
  51. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style-ie8.css" type="text/css" media="screen" />
  52. <![endif]-->
  53.  
  54. <!-- custom theme styles -->
  55. <?php include (TEMPLATEPATH . '/style-custom.php'); ?>
  56.  
  57. <!-- pingback url -->
  58. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  59.  
  60. <!-- custom favicon -->
  61. <?php $favicon_link = get_option(THEME_PREFIX.'favicon'); if ( !$favicon_link ) $favicon_link = get_bloginfo('template_url') . '/images/favicon.ico'; ?>
  62. <link rel="shortcut icon" href="<?php echo $favicon_link; ?>" type="image/x-icon" />
  63.  
  64. <?php if (is_singular() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); ?>
  65.  
  66. <?php wp_head(); ?>
  67. </head>
  68.  
  69. <body>
  70. <div id="header">
  71. <div id="header-inside">
  72. <?php if (get_option(THEME_PREFIX . "header_ad")) { ?>
  73. <div id="full-width-ad">
  74. <?php echo ($header_ad = get_option(THEME_PREFIX . 'header_ad')); ?>
  75. </div>
  76. <?php } ?>
  77.  
  78. <div id="header-left">
  79. <?php if (get_option(THEME_PREFIX . "logo_txt")) : ?>
  80. <h1><a href="<?php echo get_option('home'); ?>/" title="Home" ><?php echo get_option(THEME_PREFIX . "logo_txt"); ?></a></h1>
  81. <?php else : ?>
  82. <a href="<?php echo get_option('home'); ?>/" title="Home" ><img class="fade" src="<?php echo ($logo = get_option(THEME_PREFIX . 'logo_img')) ? $logo : get_bloginfo("template_url") . "/images/logo.png"; ?>" alt="<?php bloginfo('name'); ?>" /></a>
  83. <?php endif; ?>
  84. </div> <!-- header-left -->
  85.  
  86. <div id="header-right">
  87. <div id="site-search">
  88. <?php include('searchform.php'); ?>
  89. </div>
  90. </div> <!-- header-right -->
  91. </div> <!-- header-inside -->
  92. </div> <!-- header -->
  93.  
  94. <div id="navigation">
  95. <div class="navigation-inside<?php if (is_home()){echo ' navigation-video';}?><?php if (get_post_meta($post->ID, "_videoembed", true) || get_post_meta($post->ID, "_videoembed_manual", true)){echo ' navigation-video';}?><?php if (is_category()){echo ' navigation-category';}?><?php if (get_option(THEME_PREFIX . "disable_carousel")) { ?> navigation-category<?php } ?>">
  96. <?php if (get_option(THEME_PREFIX . "menu_management")) : ?>
  97. <?php wp_nav_menu(array('sort_column' => 'menu_order', 'container_class' => 'menu-header')); ?>
  98. <?php else : ?>
  99. <ul class="menu">
  100. <li <?php if (is_home()) { echo 'class=""'; } ?>><a href="<?php echo get_option('home'); ?>/" title="Home">Home</a></li>
  101.  
  102. <?php wp_list_categories('title_li='); ?>
  103.  
  104. <?php wp_list_pages('title_li='); ?>
  105.  
  106. <li class="subscribe"><a href="<?php bloginfo('rss2_url'); ?>" title="Subscribe via RSS">Subscribe</a></li>
  107.  
  108. <?php if (get_option(THEME_PREFIX . "twitter_link")) { ?>
  109. <li class="twitter"><a href="http://twitter.com/<?php echo get_option(THEME_PREFIX . "twitter_link"); ?>" title="Twitter.com">Twitter</a></li>
  110. <?php } ?>
  111. </ul>
  112. <?php endif; ?>
  113. </div> <!-- navigation-inside -->
  114. </div> <!-- navigation -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement