jtsacupunk

header.php

May 1st, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head profile="http://gmpg.org/xfn/11">
  4.  
  5. <title><?php woo_title(); ?></title>
  6. <?php woo_meta(); ?>
  7.  
  8. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  9. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
  10. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  11.  
  12. <!--[if IE 6]>
  13. <!--<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/pngfix.js"></script>-->
  14. <!--<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/includes/js/menu.js"></script>-->
  15. <![endif]-->
  16.  
  17. <?php if ( is_single() ) wp_enqueue_script( 'comment-reply' ); ?>
  18. <?php wp_head(); ?>
  19.  
  20. </head>
  21.  
  22. <body <?php body_class('custom'); ?>>
  23. <div id="fb-root"></div>
  24. <script>(function(d, s, id) {
  25. var js, fjs = d.getElementsByTagName(s)[0];
  26. if (d.getElementById(id)) return;
  27. js = d.createElement(s); js.id = id;
  28. js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=265154230174661";
  29. fjs.parentNode.insertBefore(js, fjs);
  30. }(document, 'script', 'facebook-jssdk'));</script>
  31.  
  32. <div id="wrap">
  33. <div id="top">
  34.  
  35. <div id="top-meta">
  36.  
  37. <div class="date"><?php echo date( get_option( 'date_format' ) ); ?> </div>
  38. |<a href="http://1565today.com/?page_id=30">&nbsp;About&nbsp;</a>
  39. |<a href="http://1565today.com/?page_id=36">&nbsp;Advertise&nbsp; with Us</a>
  40. |<a href="http://1565today.com/?page_id=33">&nbsp;Contact&nbsp;</a>
  41. |<a href="http://1565today.com/?page_id=16&loggedout=true">&nbsp;Login&nbsp;</a>
  42.  
  43. <div class="search">
  44.  
  45. <form id="topSearch" method="get" action="<?php bloginfo('url'); ?>">
  46.  
  47. <input type="text" value="<?php _e('Search', 'woothemes'); ?>" name="s" id="s" onfocus="if (this.value == '<?php _e('Search', 'woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search', 'woothemes'); ?>';}" />
  48. <button class="replace" type="submit" name="submit"></button>
  49.  
  50. </form>
  51.  
  52. </div>
  53. </div>
  54.  
  55. <!-- <?php if(get_option('woo_contact_page_id') != "") { ?>
  56. <div class="contact-link">
  57. <a href="<?php echo get_page_link(get_option('woo_contact_page_id')) ?>"><?php _e('Contact us', 'woothemes'); ?></a></div>-->
  58. </div>
  59. <?php } ?>
  60.  
  61. <div id="header">
  62.  
  63. <div class="logo">
  64.  
  65. <a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><img src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo'); } else { ?><?php bloginfo('template_directory'); ?>/<?php woo_style_path(); ?>/logo.png<?php } ?>" alt="" /></a>
  66.  
  67. </div>
  68.  
  69. <div class="whazzup2">
  70. <img src="http://1565today.com/wp-content/uploads/2012/01/1565today-banner-writer.png" alt="Advertisement"><!--<a href="http://1565today.com/?page_id=240"></a>-->
  71. </div>
  72.  
  73. <div class="whazzup">
  74. <div id="wtitle"><img src="http://1565today.com/wp-content/uploads/2012/01/in-town-today3.jpg" alt="Advertisement" /></div>
  75. <a href="http://1565today.com/?page_id=240"><img src="http://1565today.com/wp-content/uploads/2012/01/events1565.png" alt="Events Calendar" /></a>
  76. <a href="http://1565today.com/?page_id=9254"><img src="http://1565today.com/wp-content/uploads/2012/01/places1565.png" alt="Events Calendar" /></a>
  77. </div>
  78.  
  79. <?php
  80. $ad_yes = get_option('woo_ad_header');
  81. $ad_code = get_option('woo_ad_header_code');
  82. $ad_image = get_option('woo_ad_header_image');
  83. $ad_url = get_option('woo_ad_header_url');
  84.  
  85. if($ad_yes == 'true'){
  86. ?>
  87. <div id="header-banner-ad">
  88. <?php
  89. if($ad_code != ''){ echo stripcslashes($ad_code); }
  90. else {
  91. ?>
  92. <a href="<?php echo $ad_url; ?>" title="<?php _e('Advert', 'woothemes'); ?>"><img class="title" src="<?php echo $ad_image; ?>" alt="" /></a>
  93.  
  94. <?php
  95. }
  96. ?>
  97.  
  98. <?php }
  99.  
  100. else {
  101. include (TEMPLATEPATH . '/insert-recent-entries.php');
  102.  
  103. } ?>
  104.  
  105. </div>
  106.  
  107. <!-- Page Nav Starts -->
  108. <div id="top-nav" class="wrap">
  109. <?php
  110. if ( function_exists('has_nav_menu') && has_nav_menu('primary-menu') ) {
  111. wp_nav_menu( array( 'depth' => 5, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'nav', 'theme_location' => 'primary-menu' ) );
  112. } else {
  113. ?>
  114. <ul id="nav">
  115. <?php
  116. if ( get_option('woo_custom_nav_menu') == 'true' ) {
  117. if ( function_exists('woo_custom_navigation_output') )
  118. woo_custom_navigation_output('depth=3');
  119.  
  120. } else { ?>
  121.  
  122. <?php if (is_home()) $highlight = "current_page_item"; ?>
  123. <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>"><?php _e('Home', 'woothemes'); ?></a></li>
  124. <?php
  125. if (get_option('woo_cat_menu') == 'true')
  126. wp_list_categories('sort_column=menu_order&depth=3&title_li=&exclude='.get_option('woo_nav_exclude'));
  127. else
  128. wp_list_pages('sort_column=menu_order&depth=3&title_li=&exclude='.get_option('woo_nav_exclude'));
  129. ?>
  130. <?php } ?>
  131. </ul>
  132. <?php } ?>
  133. <!-- </div>
  134. </div>-->
  135.  
  136. </div>
  137. <!-- Page Nav Ends -->
  138.  
  139.  
  140. </div><!-- wrap-->
Advertisement
Add Comment
Please, Sign In to add comment