Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. /**
  3. * The Header for our theme.
  4. *
  5. * @package WordPress
  6. * @subpackage Sweetdate
  7. * @author SeventhQueen <themesupport@seventhqueen.com>
  8. * @since Sweetdate 1.0
  9. */
  10. ?><!DOCTYPE html>
  11.  
  12. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
  13. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
  14. <!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
  15. <!--[if gt IE 8]><!-->
  16.  
  17. <html class="no-js" <?php language_attributes(); ?>>
  18. <!--<![endif]-->
  19.  
  20. <head>
  21. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  22. <meta name="viewport" content="width=device-width" />
  23. <title><?php wp_title( '|', true, 'right' ); ?></title>
  24.  
  25. <link rel="profile" href="http://gmpg.org/xfn/11" />
  26. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  27.  
  28. <!--[if IE 7]>
  29. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome-ie7.min.css">
  30. <script src="<?php echo get_template_directory_uri();?>/assets/scripts/ie6/warning.js"></script>
  31. <script>window.onload=function(){e("<?php echo get_template_directory_uri();?>/assets/scripts/ie6/")}</script>
  32. <![endif]-->
  33.  
  34. <!--Favicons-->
  35. <?php if (sq_option('favicon')) { ?>
  36. <link rel="shortcut icon" href="<?php echo sq_option('favicon'); ?>">
  37. <?php } ?>
  38. <?php if (sq_option('apple57')) { ?>
  39. <link rel="apple-touch-icon" href="<?php echo sq_option('apple57'); ?>">
  40. <?php } ?>
  41. <?php if (sq_option('apple57')) { ?>
  42. <link rel="apple-touch-icon" sizes="57x57" href="<?php echo sq_option('apple57'); ?>">
  43. <?php } ?>
  44. <?php if (sq_option('apple72')) { ?>
  45. <link rel="apple-touch-icon" sizes="72x72" href="<?php echo sq_option('apple72'); ?>">
  46. <?php } ?>
  47. <?php if (sq_option('apple114')) { ?>
  48. <link rel="apple-touch-icon" sizes="114x114" href="<?php echo sq_option('apple114'); ?>">
  49. <?php } ?>
  50. <?php if (sq_option('apple144')) { ?>
  51. <link rel="apple-touch-icon" sizes="144x144" href="<?php echo sq_option('apple144'); ?>">
  52. <?php } ?>
  53.  
  54. <?php wp_head(); ?>
  55. </head>
  56.  
  57. <body <?php body_class(); ?>>
  58.  
  59. <?php do_action('kleo_after_body');?>
  60.  
  61. <!-- Page
  62. ================================================ -->
  63. <!--Attributes-->
  64. <!--class = kleo-page wide-style / boxed-style-->
  65. <div class="kleo-page <?php echo sq_option('site_style','wide-style'); ?>">
  66.  
  67. <!-- HEADER SECTION
  68. ================================================ -->
  69. <header>
  70. <div class="header-bg">
  71.  
  72. <?php if(sq_option('social_top') == 1) :?>
  73. <!--Top links-->
  74. <div class="top-links" >
  75. <div class="row">
  76. <p></p>
  77.  
  78. <!-- Logo -->
  79. <div class="four columns">
  80. <a href="<?php echo get_home_url(); ?>"><img id="logo_img" src="<?php echo sq_option('logo',get_template_directory_uri().'/assets/images/logo.png'); ?>" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
  81. </div>
  82. <!--end logo-->
  83.  
  84. <!-- Login/Register/Forgot username/password Modal forms
  85. - Hidden by default to be opened through modal
  86. - For faster loading we put all forms at the bottom of page -->
  87.  
  88. <!--Login buttons-->
  89. <div class="eight columns login-buttons">
  90. <ul class="button-group radius right">
  91. <?php if (is_user_logged_in()): ?>
  92. <?php /* Only show if Buddypress is installed */ ?>
  93. <?php if (function_exists('bp_is_active')): ?>
  94. <li class="relative"><a href="<?php bp_loggedin_user_link(); ?>" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("PROFILE", 'kleo_framework'); ?></a><div class="kleo-notifications"><?php if( bp_is_active('messages') && messages_get_unread_count() > 0 ) { ?><a href="<? echo bp_loggedin_user_domain().'messages/'; ?>" data-width="210" title="<?php _e("New messages", 'kleo_framework');?>" class="kleo-message-count has-tip tip-left"><?php echo messages_get_unread_count(); ?></a><?php } ?><?php if (bp_is_active('friends') && bp_friend_get_total_requests_count() > 0): ?> <a href="<? echo bp_loggedin_user_domain().'friends/requests'; ?>" data-width="210" title="<?php _e("Friend requests", 'kleo_framework');?>" class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?> </div></li>
  95. <?php endif; ?>
  96. <li><a href="<?php echo wp_logout_url(get_bloginfo('url')); ?> " class="tiny button radius"><i class="icon-off hide-for-medium-down"></i> <?php _e("LOG OUT", 'kleo_framework'); ?></a></li>
  97. <?php else: ?>
  98. <li><a href="#" data-reveal-id="login_panel" class="tiny secondary button radius"><i class="icon-user hide-for-medium-down"></i> <?php _e("LOG IN", 'kleo_framework'); ?></a></li>
  99. <?php if(get_option('users_can_register')) { ?>
  100. <li><a href="#" data-reveal-id="register_panel" class="tiny button radius"><i class="icon-group hide-for-medium-down"></i> <?php _e("SIGN UP", 'kleo_framework'); ?></a></li>
  101. <?php } ?>
  102. <?php endif; ?>
  103. </ul>
  104. </div>
  105. <!--end login buttons-->
  106.  
  107.  
  108. <!-- Main Navigation -->
  109. <div class="eight columns">
  110. <div class="contain-to-grid<?php if (sq_option('sticky_menu', 1) == 1) echo ' sticky'; ?>">
  111. <nav class="top-bar">
  112. <a href="<?php echo get_home_url(); ?>" class="small-logo"><img src="<?php echo sq_option('small_logo',get_template_directory_uri().'/assets/images/small_logo.png'); ?>" height="43" alt="<?php bloginfo('name'); ?>"></a>
  113. <ul>
  114. <!-- Toggle Button Mobile -->
  115. <li class="name">
  116. <h1><a href="#"><?php _e("Menu Selection &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;", 'kleo_framework'); ?></a></h1>
  117. </li>
  118. <li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li>
  119. <!-- End Toggle Button Mobile -->
  120. </ul>
  121.  
  122. <section><!-- Nav Section -->
  123. <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left', 'theme_location' => 'primary', 'fallback_cb' => 'sweetdate_main_nav', 'walker' => new sweetdate_walker_nav_menu) ); ?>
  124. </section><!-- End Nav Section -->
  125.  
  126. </nav>
  127. </div><!--end contain-to-grid sticky-->
  128. </div>
  129. <!-- end Main Navigation -->
  130. </div>
  131. </div>
  132. <!--end top-links-->
  133. <?php endif; ?>
  134.  
  135.  
  136. <?php
  137. /**
  138. * after_header_content
  139. *
  140. * @hooked render_user_search - only if is Front-page Template
  141. */
  142. do_action('after_header_content');
  143. ?>
  144.  
  145. </header>
  146. <!--END HEADER SECTION-->
  147.  
  148. <?php
  149. /**
  150. * kleo_before_page
  151. *
  152. * @hooked kleo_show_breadcrumb - 9
  153. */
  154. do_action( 'kleo_before_page' );
  155. ?>