PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/header.php

https://bitbucket.org/ansleyf/yoffielife
PHP | 156 lines | 136 code | 11 blank | 9 comment | 28 complexity | 0228cde8b29b3622adc36e60b084139c MD5 | raw file
  1. <?php
  2. /**
  3. * The Header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="main">
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Thirteen
  9. * @since Twenty Thirteen 1.0
  10. */
  11. ?>
  12. <!DOCTYPE html>
  13. <!--[if IE 7]>
  14. <html class="ie ie7" <?php language_attributes(); ?>>
  15. <![endif]-->
  16. <!--[if IE 8]>
  17. <html class="ie ie8" <?php language_attributes(); ?>>
  18. <![endif]-->
  19. <!--[if !(IE 7) | !(IE 8) ]><!-->
  20. <html <?php language_attributes(); ?>>
  21. <!--<![endif]-->
  22. <head>
  23. <meta charset="<?php bloginfo('charset'); ?>">
  24. <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
  25. <title><?php wp_title('|', true, 'right'); ?></title>
  26. <link rel="profile" href="http://gmpg.org/xfn/11">
  27. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
  28. <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico"/>
  29. <!--[if lt IE 9]>
  30. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
  31. <![endif]-->
  32. <!-- SLIDER -->
  33. <link href="<?php echo get_stylesheet_directory_uri(); ?>/slider/css/zozo.tabs.min.css" rel="stylesheet"/>
  34. <script src="<?php echo get_stylesheet_directory_uri(); ?>/slider/js/jquery.min.js"></script>
  35. <script src="<?php echo get_stylesheet_directory_uri(); ?>/slider/js/jquery.easing.min.js"></script>
  36. <script src="<?php echo get_stylesheet_directory_uri(); ?>/slider/js/zozo.tabs.min.js"></script>
  37. <!-- end SLIDER -->
  38. <!-- Pushy -->
  39. <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/pushy/css/pushy.css">
  40. <script src="<?php echo get_stylesheet_directory_uri(); ?>/pushy/js/modernizr.custom.71422.js"></script>
  41. <!-- end Pushy -->
  42. <!-- A73DBA4B-25F6-4A62-ABF4-23959B7B7FFD -->
  43. <link href="<?php echo get_stylesheet_directory_uri(); ?>/community.css" rel="stylesheet"/>
  44. <link href="<?php echo get_stylesheet_directory_uri(); ?>/newsletter.css" rel="stylesheet"/>
  45. <link href="<?php echo get_stylesheet_directory_uri(); ?>/css/font-awesome.min.css" rel="stylesheet"/>
  46. <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/cookie.js"></script>
  47. <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/cBoard.js"></script>
  48. <script src="<?php echo get_stylesheet_directory_uri(); ?>/js/modal.js"></script>
  49. <script src="<?php echo get_stylesheet_directory_uri(); ?>/pushy/js/pushy.min.js"></script>
  50. <meta name="p:domain_verify" content="f04133fe4ed6251cf191c7026642a6c7"/>
  51. <?php wp_head(); ?>
  52. <script>
  53. $('#tabbed-nav').hide(0);
  54. </script>
  55. <link href="<?php echo get_stylesheet_directory_uri(); ?>/mobile.css?v=2" rel="stylesheet"/>
  56. </head>
  57. <body <?php body_class(); ?>>
  58. <div id="page" class="hfeed site">
  59. <div id="fade"></div>
  60. <?php if (!is_user_logged_in()) get_template_part("loginpopup"); ?>
  61. <div>
  62. <header id="masthead" class="site-header" role="banner">
  63. <div id="inner-header">
  64. <div class="store-search">
  65. <div id="top-social-wrap"><?php if (!is_user_logged_in()) { ?><a href="/join" class="join-button">Join!</a><?php } ?>
  66. <a href="https://www.facebook.com/YoffieLife" class="top-social"><img
  67. src="<?php echo get_stylesheet_directory_uri(); ?>/images/social/facebook-small.png"></a><a
  68. href="https://twitter.com/YoffieLife" class="top-social"><img
  69. src="<?php echo get_stylesheet_directory_uri(); ?>/images/social/twitter-small.png"></a><a
  70. href="http://www.pinterest.com/yoffielife/" class="top-social"><img
  71. src="<?php echo get_stylesheet_directory_uri(); ?>/images/social/pinterest-small.png"></a><a
  72. href="http://instagram.com/yoffielife" class="top-social"><img
  73. src="<?php echo get_stylesheet_directory_uri(); ?>/images/social/instagram-small.png"></a>
  74. </div>
  75. <div><?php get_search_form(); ?></div>
  76. <div id="store-search-menu"><?php if (is_user_logged_in()) { ?><a
  77. href="<?php echo wp_logout_url('$index.php'); ?>">Logout</a><?php } else { ?><a
  78. id="logintrigger" href="#">Login</a><?php } ?> | <a href="/store">Store</a></div>
  79. </div>
  80. <!-- store search -->
  81. <a class="home-link" href="<?php echo esc_url(home_url('/')); ?>"
  82. title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home">
  83. <img class="logo" src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png">
  84. </a>
  85. </div>
  86. <!-- inner-header -->
  87. <div id="navbar" class="navbar">
  88. <div class="sidr-links">
  89. <a href="#sidr-left" class="sidr-link" id="sidr-left-link"><img
  90. src="<?php echo get_stylesheet_directory_uri(); ?>/images/icons/mobile-menu.png">
  91. Challenge Categories</a>
  92. <a href="#sidr-right" class="sidr-link" id="sidr-right-link">Menu <img
  93. src="<?php echo get_stylesheet_directory_uri(); ?>/images/icons/mobile-menu.png"></a>
  94. </div>
  95. <nav id="site-navigation" class="navigation main-navigation" role="navigation">
  96. <h3 class="menu-toggle"><?php _e('Menu', 'twentythirteen'); ?></h3>
  97. <a class="screen-reader-text skip-link" href="#content"
  98. title="<?php esc_attr_e('Skip to content', 'twentythirteen'); ?>"><?php _e('Skip to content', 'twentythirteen'); ?></a>
  99. <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav-menu')); ?>
  100. </nav>
  101. <!-- #site-navigation -->
  102. </div>
  103. <!-- #navbar -->
  104. </header>
  105. <!-- #masthead -->
  106. <?php if (is_front_page()) {
  107. echo "<div class='category-header'><a href='/'><img src='/wp-content/themes/twentythirteen-child/images/homepage-banner.png'></a></div>";
  108. } elseif (is_page(1011)) {
  109. echo "<div class='category-header'><a href='/challenge-board'><img src='/wp-content/themes/twentythirteen-child/images/challenge-board.png'></a></div>";
  110. } elseif ((is_page(891))) {
  111. echo "<div class='category-header'><a href='/services'><img src='/wp-content/themes/twentythirteen-child/images/services-header.png'></a></div>";
  112. } elseif ((is_single && in_category('soul')) || is_page(888) || is_category('soul')) {
  113. echo "<div class='category-header'><a href='/soul'><img src='/wp-content/themes/twentythirteen-child/images/soul-header.png'></a></div>";
  114. } elseif ((is_single && in_category('spark')) || is_page(890) || is_category('spark')) {
  115. echo "<div class='category-header'><a href='/spark'><img src='/wp-content/themes/twentythirteen-child/images/spark-header.png'></a></div>";
  116. } elseif ((is_single && in_category('simplify')) || is_page(887) || is_category('simplify')) {
  117. echo "<div class='category-header'><a href='/simplify'><img src='/wp-content/themes/twentythirteen-child/images/simplify-header.png'></a></div>";
  118. } elseif ((is_single && in_category('simmer')) || is_page(886) || is_category('simmer')) {
  119. echo "<div class='category-header'><a href='/simmer'><img src='/wp-content/themes/twentythirteen-child/images/simmer-header.png'></a></div>";
  120. } elseif ((is_single && in_category('sweat')) || is_page(889) || is_page(1284) || is_category('sweat')) {
  121. echo "<div class='category-header'><a href='/sweat'><img src='/wp-content/themes/twentythirteen-child/images/sweat-header.png'></a></div>";
  122. } elseif ((is_single && in_category('satisfy')) || is_page(885) || is_category('satisfy')) {
  123. echo "<div class='category-header'><a href='/satisfy'><img src='/wp-content/themes/twentythirteen-child/images/satisfy-header.png'></a></div>";
  124. } else {
  125. echo "";
  126. } ?>
  127. <div id="submenu">
  128. <ul class="submenu-menu">
  129. <li><a href="<?php if (!is_user_logged_in()) {
  130. echo "/join";
  131. } else {
  132. echo "/already-member";
  133. } ?>">Join</a></li>
  134. <li><?php echo do_shortcode('[itroclickpopup id="2"]' . 'Newsletter' . '[/itroclickpopup]'); ?></li>
  135. <li><a href="/this-weeks-challenges">Challenges</a></li>
  136. <li><a href="/community">Community</a></li>
  137. <li><a href="/meet-the-experts/">Experts</a></li>
  138. <li><a href="/challenge-board">Challenge Board</a></li>
  139. </ul>
  140. </div>
  141. </div>
  142. <?php if (!is_user_logged_in()) { ?><a href="/join" class="mobile-join-button">Join!</a><?php } ?>
  143. <!-- Site Overlay -->
  144. <div class="site-overlay"></div>
  145. <div id="main" class="site-main">