Advertisement
Guest User

headerphp

a guest
Dec 14th, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. <?php
  2. global $options;
  3. foreach ($options as $value) {
  4. if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  5. }
  6. ?>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  9.  
  10. <head profile="http://gmpg.org/xfn/11">
  11. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  12.  
  13. <?php if (strlen($wpzoom_misc_favicon) > 1 ) { ?><link rel="shortcut icon" href="<?php echo "$wpzoom_misc_favicon";?>" type="image/x-icon" /><?php } ?>
  14. <title><?php if ($wpzoom_seo_enable == 'Enable') { wpzoom_titles(); } else { wp_title('-'); echo ' | '; bloginfo('name'); } ?></title>
  15. <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  16. <?php if ($wpzoom_seo_enable == 'Enable') {
  17. if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  18. <meta name="description" content="<?php echo strip_tags(get_the_excerpt()); ?>" />
  19. <?php meta_post_keywords(); ?>
  20. <?php endwhile; endif; elseif(is_home()) : ?>
  21. <meta name="description" content="<?php if (strlen($wpzoom_meta_desc) < 1) { bloginfo('description');} else {echo"$wpzoom_meta_desc";}?>" />
  22. <?php meta_home_keywords(); ?>
  23. <?php endif; ?>
  24. <?php wpzoom_index(); ?>
  25. <?php wpzoom_canonical(); } ?>
  26. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
  27. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/custom.css" media="screen" />
  28. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php if (strlen($wpzoom_misc_feedburner) < 10) { bloginfo('rss2_url');} else {echo"$wpzoom_misc_feedburner";} ?>" />
  29. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  30. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  31. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  32. <?php wp_enqueue_script('jquery'); ?>
  33. <?php wp_head(); ?>
  34. <script type='text/javascript'>
  35. jQuery(document).ready(function() {
  36. jQuery("#menuhead ul").css({display: "none"}); // Opera Fix
  37. jQuery("#menuhead li").hover(function(){
  38. jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268);
  39. },function(){
  40. jQuery(this).find('ul:first').css({visibility: "hidden"});
  41. });
  42. });
  43. </script>
  44. <script src="<?php bloginfo('template_directory'); ?>/js/jquery.slider.js" type="text/javascript"></script>
  45. <script src="<?php bloginfo('template_directory'); ?>/js/tabs.js" type="text/javascript"></script>
  46. </head>
  47.  
  48. <body <?php body_class(); ?>>
  49.  
  50. <div id="wrap">
  51.  
  52. <div id="preheader">
  53. <div class="wrap">
  54. <div id="social">
  55. <ul>
  56. <?php if (strlen($wpzoom_misc_twitter) > 1) { ?><li><a href="http://twitter.com/<?php echo $wpzoom_misc_twitter; ?>"><img src="<?php bloginfo('template_directory'); ?>/images/icon_twitter.png" alt="" /> Follow on Twitter</a></li><?php } ?>
  57. <li><a href="<?php bloginfo('rss2_url');?>" rel="nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icon_rss.png" alt="" />Subscribe by RSS</a></li>
  58. </ul>
  59. </div>
  60. <div id="nav1">
  61. <?php wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => '', 'depth' => '1', 'menu_id' => '', 'sort_column' => 'menu_order', 'theme_location' => 'helpful' ) ); ?>
  62. </div>
  63. <div class="clear">&nbsp;</div>
  64. </div><!-- end .wrap -->
  65. </div><!-- end #preheader -->
  66.  
  67.  
  68. <div id="header">
  69. <div class="wrap">
  70. <div id="logo"><a href="<?php echo get_option('home'); ?>"><?php if ($wpzoom_misc_logo_path) { ?><img src="<?php echo "$wpzoom_misc_logo_path";?>" alt="<?php bloginfo('name'); ?>" /><?php } else { ?><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" /><?php } ?></a></div>
  71. <?php if ($wpzoom_ad_head_select == 'Yes') {?><div id="bannerHead"><?php echo stripslashes($wpzoom_ad_head_code); ?></div><?php } ?>
  72. <div class="clear">&nbsp;</div>
  73. </div><!-- end .wrap -->
  74. </div><!-- end #header -->
  75.  
  76. <div id="mainNav">
  77. <div class="wrap">
  78.  
  79. <div id="search">
  80. <form method="get" action="<?php echo get_option('home'); ?>">
  81. <input type="text" name="s" id="setop" onblur="if (this.value == '') {this.value = '<?php _e('search','wpzoom');?>';}" onfocus="if (this.value == '<?php _e('search','wpzoom');?>') {this.value = '';}" value="<?php _e('search','wpzoom');?>" />
  82. <input type="image" src="<?php bloginfo('template_directory'); ?>/images/iconFormSearch.png" id="searchsubmittop" class="submit" />
  83. </form>
  84. </div><!-- end #search -->
  85.  
  86. <div id="nav">
  87. <?php wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => '', 'menu_id' => 'menuhead', 'sort_column' => 'menu_order', 'theme_location' => 'primary' ) ); ?>
  88. </div>
  89.  
  90. </div><!-- end .wrap -->
  91. </div><!-- end #mainNav -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement