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 elegant_titles(); ?></title>
  6. <?php elegant_description(); ?>
  7. <?php elegant_keywords(); ?>
  8. <?php elegant_canonical(); ?>
  9.  
  10. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  11. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  12. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  13. <!--[if IE 7]>
  14. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/iestyle.css" />
  15. <![endif]-->
  16. <!--[if IE 8]>
  17. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/ie8style.css" />
  18. <![endif]-->
  19. <!--[if lt IE 7]>
  20. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/ie6style.css" />
  21. <![endif]-->
  22.  
  23. <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  24. <?php wp_head(); ?>
  25. <script type="text/javascript">
  26.  
  27. var _gaq = _gaq || [];
  28. _gaq.push(['_setAccount', 'UA-17140793-1']);
  29. _gaq.push(['_trackPageview']);
  30.  
  31. (function() {
  32. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  33. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  34. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  35. })();
  36.  
  37. </script>
  38. </head>
  39. <body <?php body_class(); ?>>
  40. <!--This controls pages navigation bar-->
  41. <div id="pages">
  42. <div id="pages-inside">
  43. <div id="pages-inside-2">
  44. <?php $menuClass = 'nav superfish';
  45. $menuID = 'nav2';
  46. $primaryNav = '';
  47. if (function_exists('wp_nav_menu')) {
  48. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => $menuID, 'echo' => false ) );
  49. };
  50. if ($primaryNav == '') { ?>
  51. <ul id="<?php echo $menuID; ?>" class="<?php echo $menuClass; ?>">
  52. <?php if (get_option('puretype_home_link') == 'on') { ?>
  53. <li class="page_item"><a href="<?php bloginfo('url'); ?>" class="title" title="home again woohoo"><?php esc_html_e('Home','PureType') ?></a></li>
  54. <?php }; ?>
  55.  
  56. <?php show_page_menu($menuClass,false,false); ?>
  57. </ul> <!-- end ul#nav -->
  58. <?php }
  59. else echo($primaryNav); ?>
  60.  
  61. <div class="search_bg">
  62. <form method="get" id="searchform" action="<?php echo home_url(); ?>/">
  63. <div>
  64. <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
  65. <input type="submit" id="searchsubmit" value="<?php esc_attr_e('Search','PureType') ?>" />
  66. </div>
  67. </form>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div style="clear: both;"></div>
  73. <!--End pages navigation-->
  74. <div id="wrapper2" <?php global $fullwidth; if (is_page_template('page-full.php') || $fullwidth) echo (' class="no_sidebar"'); ?>>
  75. <div class="logo"> <span class="bluetitle"><a href="<?php echo home_url(); ?>"><?php echo esc_html(get_option('puretype_title_red')); ?></a></span><span class="redtitle"><a href="<?php echo home_url(); ?>"><?php echo esc_attr(get_option('puretype_title_blue')); ?></a></span> </div>
  76. <div class="slogan">
  77. <?php bloginfo('description'); ?>
  78. </div>
  79. <!--This controls the categories navigation bar-->
  80. <div id="categories">
  81. <?php $menuClass = 'nav superfish';
  82. $secondaryNav = '';
  83. if (function_exists('wp_nav_menu')) {
  84. $secondaryNav = wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  85. };
  86. if ($secondaryNav == '') { ?>
  87. <ul class="<?php echo $menuClass; ?>">
  88. <?php show_categories_menu($menuClass,false); ?>
  89. </ul> <!-- end ul.nav -->
  90. <?php }
  91. else echo($secondaryNav); ?>
  92. </div>
  93. <!--End category navigation-->