Advertisement
wolverinept

header

Feb 18th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 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. <title><?php wp_title('', true); ?> </title>
  14. <?php if (strlen($wpzoom_misc_favicon) > 1 ) { ?><link rel="shortcut icon" href="<?php echo "$wpzoom_misc_favicon";?>" type="image/x-icon" /><?php } ?>
  15. <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  16. <meta name="description" content="<?php the_excerpt_rss(); ?>" />
  17. <?php meta_post_keywords(); ?>
  18. <?php endwhile; endif; elseif(is_home()) : ?>
  19. <meta name="description" content="<?php if (strlen($wpzoom_meta_desc) < 1) { bloginfo('description');} else {echo"$wpzoom_meta_desc";}?>" />
  20. <?php meta_home_keywords(); ?>
  21. <?php endif; ?>
  22. <?php if ($wpzoom_featured_posts_show == 'Yes') { ?>
  23. <?php wpzoom_index(); ?>
  24. <?php wpzoom_canonical(); ?>
  25.  
  26. <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style.css" />
  27. <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/dropdown.css" type="text/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 wp_enqueue_script('jquery'); ?>
  32. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  33. <?php wp_head(); ?>
  34. <script src="<?php bloginfo('stylesheet_directory'); ?>/js/dropdown.js" type="text/javascript"></script>
  35. <?php if (is_home()) { ?>
  36.  
  37. <script src="<?php bloginfo('stylesheet_directory'); ?>/js/jcarousel.js" type="text/javascript"></script>
  38. <?php } ?>
  39. <?php } ?>
  40. </head>
  41.  
  42. <body>
  43.  
  44. <div id="container">
  45. <div id="header">
  46.  
  47. <div class="wrapper">
  48. <?php if ($wpzoom_ad_head_select == 'Yes') {?>
  49. <div id="bannerHead"><?php echo stripslashes($wpzoom_ad_head_code); ?></div>
  50. <?php } ?>
  51. <div class="cleaner">&nbsp;</div>
  52. </div><!-- end .wrapper -->
  53. </div><!-- end #header -->
  54. <?php if (function_exists('dfrads')) { echo dfrads('9039577'); } ?>
  55. <div class="wrapper">
  56. <div id="navigation">
  57. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/men_crn_left.png" width="3" height="34" alt="" class="alignleft" />
  58. <img src="<?php bloginfo('stylesheet_directory'); ?>/images/men_crn_right.png" width="3" height="34" alt="" class="alignright" />
  59.  
  60. <div id="menu" class="dropdown">
  61. <?php $homeLink = '<a href="' . get_option('home') . '"rel="nofollow"><img src="' . get_bloginfo('stylesheet_directory') .'/images/men_icon_home.png" width="37" height="34" alt="" /></a>';
  62. $menu = wp_nav_menu(array('container' => '',
  63. 'container_class' => '',
  64. 'menu_class' => 'home',
  65. 'menu_id' => 'nav',
  66. 'echo' => false,
  67. 'sort_column' =>'menu_order',
  68. 'theme_location' =>'primary',
  69. 'items_wrap'=>'<ul id="%s"><li class="%s">'.$homeLink.'</li>%s<li class="cleaner">&nbsp;</li></ul>'));
  70. print $menu;
  71. ?>
  72. </div>
  73.  
  74. </div><!-- end #navigation -->
  75. <div id="navigation2">
  76.  
  77. <?php if ($wpzoom_soc_show == 'Yes') { ?>
  78. <div id="menuSocial">
  79. <ul>
  80. <?php if (strlen($wpzoom_soc_twitter) > 1) { ?><li><a href="<?php echo $wpzoom_soc_twitter; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_twitter.png" width="16" height="16" alt="" /></a></li><?php } ?>
  81. <?php if (strlen($wpzoom_soc_facebook) > 1) { ?><li><a href="<?php echo $wpzoom_soc_facebook; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_facebook.png" width="16" height="16" alt="" /></a></li><?php } ?>
  82. <?php if (strlen($wpzoom_soc_linkedin) > 1) { ?><li><a href="<?php echo $wpzoom_soc_linkedin; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_linkedin.png" width="16" height="16" alt="" /></a></li><?php } ?>
  83. <?php if (strlen($wpzoom_soc_flickr) > 1) { ?><li><a href="<?php echo $wpzoom_soc_flickr; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_flickr.png" width="16" height="16" alt="" /></a></li><?php } ?>
  84. <?php if (strlen($wpzoom_soc_picasa) > 1) { ?><li><a href="<?php echo $wpzoom_soc_picasa; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_picasa.png" width="16" height="16" alt="" /></a></li><?php } ?>
  85. <?php if (strlen($wpzoom_soc_skype) > 1) { ?><li><a href="<?php echo $wpzoom_soc_skype; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_skype.png" width="16" height="16" alt="" /></a></li><?php } ?>
  86. <?php if (strlen($wpzoom_soc_vimeo) > 1) { ?><li><a href="<?php echo $wpzoom_soc_vimeo; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_vimeo.png" width="16" height="16" alt="" /></a></li><?php } ?>
  87. <?php if (strlen($wpzoom_soc_youtube) > 1) { ?><li><a href="<?php echo $wpzoom_soc_youtube; ?>" rel="external,nofollow"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_youtube.png" width="16" height="16" alt="" /></a></li><?php } ?>
  88. <li><a href="<?php if (strlen($wpzoom_misc_feedburner) < 10) { bloginfo('rss2_url');} else {echo"$wpzoom_misc_feedburner";} ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/icons/soc_rss.png" width="16" height="16" alt="" /></a></li>
  89. </ul>
  90. </div><!-- end #menuSocial -->
  91. <?php } ?>
  92. <?php wp_nav_menu( array('container' => '', 'container_class' => '', 'menu_class' => 'menu', 'menu_id' => 'nav2', 'sort_column' => 'menu_order', 'depth' => '1', 'theme_location' => 'secondary' ) ); ?>
  93.  
  94. </div><!-- end #navigation -->
  95. </div><!-- end .wrapper -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement