Advertisement
alchymyth

headers

Jul 21st, 2011
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.80 KB | None | 0 0
  1. <?php global $swift_opt;?>
  2. <!DOCTYPE html>
  3. <html <?php language_attributes(); ?>>
  4. <head profile="http://gmpg.org/xfn/11">
  5. <title>
  6.  
  7.  
  8. <?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
  9. <?php if ( is_search() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Search Results<?php } ?>
  10. <?php if ( is_author() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Author Archives<?php } ?>
  11. <?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
  12. <?php if ( is_page() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
  13. <?php if ( is_category() ) { ?>Archive&nbsp;|&nbsp;<?php single_cat_title(); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
  14. <?php if ( is_month() ) { ?>Archive&nbsp;|&nbsp;<?php the_time(get_option('date_format')); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
  15.  
  16.  
  17.  
  18.  
  19. <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Tag Archive&nbsp;|&nbsp;<?php single_tag_title("", true); } } ?>
  20.  
  21. </title>
  22. <?php if(isset($swift_opt['swift_favicon'])&&!$temp=$swift_opt['swift_favicon'])$temp=get_template_directory_uri().'/images/favicon.ico';?>
  23. <link rel="shortcut icon" href="<?php echo $temp;?>" />
  24. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  25. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  26. <link rel="stylesheet" type="text/css" href="<?php echo U_URL.'/swift_custom';?>/custom-style.css" media="screen" />
  27.  
  28. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( $swift_opt['swift_feedburnerid'] ) { echo "http://feeds.feedburner.com/".$swift_opt['swift_feedburnerid']; } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
  29. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  30. <?php
  31. wp_enqueue_script('jquery');
  32. wp_enqueue_script('jquery-ui-core');
  33. wp_enqueue_script('jquery-ui-tabs');
  34. ?>
  35. <?php if ( is_single() ) wp_enqueue_script( 'comment-reply' ); ?>
  36.  
  37.  
  38. <?php wp_head();
  39. if(function_exists('bp_head')) do_action( 'bp_head' );
  40. ?>
  41.  
  42. <script language="javascript" type="text/javascript" src="<?php echo U_URL.'/swift_custom';?>/swift-js-functions.js"></script>
  43.  
  44.  
  45. <?php if (isset($swift_opt['swift_header_scripts'])&&$header_scripts=$swift_opt['swift_header_scripts']) { echo stripslashes($header_scripts);}?>
  46. </head>
  47.  
  48.  
  49.  
  50. <body <?php body_class(); ?>>
  51.  
  52. <div id="top"></div>
  53.  
  54.  
  55. <div id="nav1-container" class="clearfix">
  56. <div id="nav1" class="grid_960">
  57. <?php wp_nav_menu( array('container'=>'',
  58. 'menu_class' => 'navigation top',
  59. 'menu_id' => '',
  60. 'fallback_cb'=>'wp_page_menu',
  61. 'theme_location'=>'top-nav')); ?>
  62. <?php if(isset($swift_opt['swift_rsslinks_enable'])&&$swift_opt['swift_rsslinks_enable']==true) include (INCLUDES . '/rss-links.php');?>
  63. </div>
  64. </div><!--/nav1-container-->
  65.  
  66.  
  67.  
  68.  
  69. <div id="header-container">
  70. <div id="header" class="grid_960 clearfix">
  71.  
  72.  
  73. <div class="grid_16">
  74.  
  75.  
  76. <?php if(isset($swift_opt['swift_logo'])&&$swift_opt['swift_logo']): ?>
  77. <center>
  78. <?php
  79. if (is_category('kickn-it')){
  80. echo '<img src="http://oi52.tinypic.com/14jx101.jpg">';
  81. }
  82. elseif(is_category('Travels')){
  83. echo '<img src="travels.jpg">';
  84. }
  85. elseif(is_category('Musings')){
  86. echo '<img src="musings.jpg">';
  87. }
  88. elseif(is_category('Lunch')){
  89. echo '<img src="lunch.jpg">';
  90. }
  91. else { ?>
  92. <?php if(function_exists('show_media_header')){ show_media_header(); } ?>
  93. <?php } ?>
  94. </center>
  95.  
  96.  
  97.  
  98.  
  99.  
  100. <?php else:?>
  101. <div id="blogname" class="alignleft">
  102. <?php if(is_home()):?>
  103. <h1 class="blogname"><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h1>
  104. <?php else:?>
  105. <h2 class="blogname"><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h2>
  106. <?php endif?>
  107. <h2 class="blog-title"><?php bloginfo('description'); ?></h2>
  108. </div>
  109. <?php endif;?>
  110.  
  111. <?php //Inserts the header ad code ?>
  112. <?php if ( isset($swift_opt['swift_header_ad_enable'])&&$swift_opt['swift_header_ad_enable'] ==true && $headerad=$swift_opt['swift_header_adcode'] ){ ?>
  113. <div id="header-ad" class="alignright">
  114. <?php echo stripslashes($headerad);?>
  115. </div><!--/header-ad"-->
  116.  
  117. <?php }//End of if ?>
  118.  
  119.  
  120. <div class="clear"></div>
  121.  
  122.  
  123. </div>
  124. </div><!--/header-->
  125.  
  126. </div><!--/header-container-->
  127.  
  128.  
  129.  
  130.  
  131. <div id="nav2-container" class="clearfix">
  132. <div id="nav2" class="grid_960">
  133. <?php wp_nav_menu( array('container'=>'',
  134. 'menu_class' => 'navigation bottom',
  135. 'menu_id' => '',
  136. 'fallback_cb'=>'wp_cat_menu',
  137. 'theme_location'=>'bottom-nav')); ?>
  138. <?php if(isset($swift_opt['swift_searchbox_enable'])&&$swift_opt['swift_searchbox_enable']==true) locate_template(array('searchform-nav.php'), true, false );?>
  139. </div>
  140. </div><!--/nav1-container-->
  141.  
  142.  
  143.  
  144. <?php //Inserts adcode below navigation
  145. if (isset($swift_opt['swift_nav_adsense_enable'])&&$swift_opt['swift_nav_adsense_enable'] ==true && $adcode=$swift_opt['swift_nav_adcode']){ ?>
  146. <div id="nav-ad-container" class="clearfix">
  147. <div id="nav-ad" class="grid_960">
  148. <div class="grid_16">
  149. <?php echo stripslashes($adcode); ?>
  150. </div>
  151. </div>
  152. </div>
  153. <?php }//end of if ?>
  154.  
  155. <!--Contains content area and sidebar, closing div in footer.php-->
  156. <div id="main-container" class="grid_960 clearfix">
  157. <div id="right-container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement