Advertisement
rdusnr

Untitled

Jul 19th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.16 KB | None | 0 0
  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.  
  24. <link rel="profile" href="http://gmpg.org/xfn/11"/>
  25. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"/>
  26.  
  27. <!--[if IE 7]>
  28. <link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/assets/styles/font-awesome-ie7.min.css">
  29. <script src="<?php echo get_template_directory_uri();?>/assets/scripts/ie6/warning.js"></script>
  30. <![endif]-->
  31.  
  32. <!--Favicons-->
  33. <?php if ( sq_option( 'favicon' ) ) { ?>
  34. <link rel="shortcut icon" href="<?php echo sq_option( 'favicon' ); ?>">
  35. <?php } ?>
  36. <?php if ( sq_option( 'apple57' ) ) { ?>
  37. <link rel="apple-touch-icon" href="<?php echo sq_option( 'apple57' ); ?>">
  38. <?php } ?>
  39. <?php if ( sq_option( 'apple57' ) ) { ?>
  40. <link rel="apple-touch-icon" sizes="57x57" href="<?php echo sq_option( 'apple57' ); ?>">
  41. <?php } ?>
  42. <?php if ( sq_option( 'apple72' ) ) { ?>
  43. <link rel="apple-touch-icon" sizes="72x72" href="<?php echo sq_option( 'apple72' ); ?>">
  44. <?php } ?>
  45. <?php if ( sq_option( 'apple114' ) ) { ?>
  46. <link rel="apple-touch-icon" sizes="114x114" href="<?php echo sq_option( 'apple114' ); ?>">
  47. <?php } ?>
  48. <?php if ( sq_option( 'apple144' ) ) { ?>
  49. <link rel="apple-touch-icon" sizes="144x144" href="<?php echo sq_option( 'apple144' ); ?>">
  50. <?php } ?>
  51.  
  52. <?php if ( function_exists( 'bp_is_active' ) ) {
  53. bp_head();
  54. } ?>
  55.  
  56. <?php wp_head(); ?>
  57. </head>
  58.  
  59. <body <?php body_class(); ?>>
  60.  
  61. <?php do_action( 'kleo_after_body' ); ?>
  62.  
  63. <!-- Page
  64. ================================================ -->
  65. <!--Attributes-->
  66. <!--class = kleo-page wide-style / boxed-style-->
  67. <div class="kleo-page <?php echo sq_option( 'site_style', 'wide-style' ); ?>">
  68.  
  69. <!-- HEADER SECTION
  70. ================================================ -->
  71. <header>
  72. <div class="header-bg clearfix">
  73.  
  74. <?php if ( sq_option( 'social_top' ) == 1 ) : ?>
  75. <!--Top links-->
  76. <div class="top-links">
  77. <div class="row">
  78. <ul class="no-bullet">
  79. <li class="nine columns">
  80. <?php do_action( 'kleo_before_top_links' ); ?>
  81.  
  82. <?php if ( sq_option( 'phone_on_top' ) ): ?>
  83. <?php if ( sq_option( 'owner_phone' ) ): ?>
  84. <a class="phone-top" href="tel:<?php echo sq_option( 'owner_phone' ); ?>"><i
  85. class="icon-phone"></i> &nbsp; <?php echo sq_option( 'owner_phone' ); ?>
  86. </a>
  87. &nbsp;&nbsp;
  88. <?php endif; ?>
  89. <?php endif; ?>
  90.  
  91. <?php if ( sq_option( 'owner_email' ) ): ?>
  92. <a class="mail-top" href="mailto:<?php echo sq_option( 'owner_email' ); ?>"><i
  93. class="icon-envelope"></i> &nbsp; <?php echo sq_option( 'owner_email' ); ?>
  94. </a>
  95. <?php endif; ?>
  96.  
  97. </li>
  98.  
  99. <li class="three columns hide-for-small">
  100. <?php _e( "Find us on", 'kleo_framework' ); ?>: &nbsp;
  101. <?php if ( sq_option( 'twitter' ) ): ?>
  102. <a href="<?php echo sq_option( 'twitter' ); ?>" class="has-tip tip-bottom"
  103. data-width="210" target="_blank"
  104. title="<?php _e( "Follow us on", 'kleo_framework' ); ?> Twitter"><i
  105. class="icon-twitter icon-large"></i></a>
  106. <?php endif; ?>
  107. <?php if ( sq_option( 'facebook' ) ): ?>
  108. <a href="<?php echo sq_option( 'facebook' ); ?>" class="has-tip tip-bottom"
  109. data-width="210" target="_blank"
  110. title="<?php _e( "Find us on", 'kleo_framework' ); ?> Facebook"><i
  111. class="icon-facebook icon-large"></i></a>
  112. <?php endif; ?>
  113. <?php if ( sq_option( 'instagram' ) ): ?>
  114. <a href="<?php echo sq_option( 'instagram' ); ?>" class="has-tip tip-bottom"
  115. data-width="210" target="_blank"
  116. title="<?php _e( "Follow us on", 'kleo_framework' ); ?> Instagram"><i
  117. class="icon-instagram icon-large"></i></a>
  118. <?php endif; ?>
  119. <?php if ( sq_option( 'youtube' ) ): ?>
  120. <a href="<?php echo sq_option( 'youtube' ); ?>" class="has-tip tip-bottom"
  121. data-width="210" target="_blank"
  122. title="<?php _e( "Follow us on", 'kleo_framework' ); ?> Youtube"><i
  123. class="icon-youtube icon-large"></i></a>
  124. <?php endif; ?>
  125. <?php if ( sq_option( 'googleplus' ) ): ?>
  126. <a href="<?php echo sq_option( 'googleplus' ); ?>" class="has-tip tip-bottom"
  127. data-width="210" target="_blank"
  128. title="<?php _e( "Find us on", 'kleo_framework' ); ?> Google+"><i
  129. class="icon-google-plus icon-large"></i></a>
  130. <?php endif; ?>
  131. <?php if ( sq_option( 'pinterest' ) ): ?>
  132. <a href="<?php echo sq_option( 'pinterest' ); ?>" class="has-tip tip-bottom"
  133. data-width="210" target="_blank"
  134. title="<?php _e( "Pin us on", 'kleo_framework' ); ?> Pinterest"><i
  135. class="icon-pinterest icon-large"></i></a>
  136. <?php endif; ?>
  137. <?php if ( sq_option( 'linkedin' ) ): ?>
  138. <a href="<?php echo sq_option( 'linkedin' ); ?>" class="has-tip tip-bottom"
  139. data-width="210" target="_blank"
  140. title="<?php _e( "Find us on", 'kleo_framework' ); ?> LinkedIn"><i
  141. class="icon-linkedin icon-large"></i></a>
  142. <?php endif; ?>
  143.  
  144. <?php do_action( 'kleo_extra_social_icons' ); ?>
  145. </li>
  146. </ul>
  147. </div>
  148. </div>
  149. <!--end top-links-->
  150. <?php endif; ?>
  151.  
  152. <div id="header">
  153. <div class="row">
  154.  
  155. <!-- Logo -->
  156. <div class="four columns">
  157. <h1 id="logo"><?php bloginfo( 'name' ); ?>
  158. <a href="<?php echo get_home_url(); ?>"><img id="logo_img"
  159. src="<?php echo sq_option( 'logo', get_template_directory_uri() . '/assets/images/logo.png' ); ?>"
  160. width="294" height="108"
  161. alt="<?php bloginfo( 'name' ); ?>"></a>
  162. </h1>
  163. </div>
  164. <!--end logo-->
  165.  
  166. <!-- Login/Register/Forgot username/password Modal forms
  167. - Hidden by default to be opened through modal
  168. - For faster loading we put all forms at the bottom of page -->
  169.  
  170. <!--Login buttons-->
  171. <div class="eight columns login-buttons">
  172. <ul class="button-group radius right">
  173. <?php if ( is_user_logged_in() ): ?>
  174.  
  175. <?php if ( function_exists( 'bp_is_active' ) ): ?>
  176. <?php
  177. $profile_menu = array();
  178. if ( bp_is_active( 'activity' ) ) {
  179. $profile_menu['activity'] = '<li><a href="' . bp_loggedin_user_domain() . 'activity/">' . __( "Activity", "buddypress" ) . '</a></li>';
  180. }
  181.  
  182. if ( bp_is_active( 'messages' ) ) {
  183. $profile_menu['messages'] = '<li><a href="' . bp_loggedin_user_domain() . 'messages/">' . __( "Messages", "buddypress" ) . ' <small class="label">' . messages_get_unread_count() . '</small></a></li>';
  184. }
  185.  
  186. if ( bp_is_active( 'friends' ) ) {
  187. $profile_menu['friends'] = '<li><a href="' . bp_loggedin_user_domain() . 'friends/requests">' . __( "Friend requests", 'kleo_framework' ) . ' <small class="label">' . bp_friend_get_total_requests_count() . '</small></a></li>';
  188. }
  189.  
  190. if ( bp_is_active( 'groups' ) ) {
  191. $profile_menu['groups'] = '<li><a href="' . bp_loggedin_user_domain() . 'groups/">' . __( "Groups", "buddypress" ) . '</a></li>';
  192. }
  193.  
  194. if ( bp_is_active( 'settings' ) ) {
  195. $profile_menu['settings'] = '<li><a href="' . bp_loggedin_user_domain() . 'settings/">' . __( "Settings", "buddypress" ) . '</a></li>';
  196. }
  197.  
  198. $profile_menu = apply_filters( 'header_profile_dropdown', $profile_menu );
  199. ?>
  200.  
  201. <li class="relative btn-profile">
  202.  
  203. <?php if ( ! empty( $profile_menu ) ) { ?>
  204. <div href="#" class="tiny secondary button split dropdown"
  205. data-options="is_hover:true">
  206. <?php } ?>
  207.  
  208. <a href="<?php bp_loggedin_user_link(); ?>"
  209. class="tiny secondary button radius"><i
  210. class="icon-user hide-for-medium-down"></i> <?php _e( "PROFILE", 'kleo_framework' ); ?>
  211. </a><span></span>
  212. <div
  213. class="kleo-notifications"><?php if ( bp_is_active( 'messages' ) && messages_get_unread_count() > 0 ) { ?>
  214. <a href="<?php echo bp_loggedin_user_domain() . 'messages/'; ?>"
  215. data-width="210"
  216. title="<?php _e( "New messages", 'kleo_framework' ); ?>"
  217. 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 ): ?>
  218. <a
  219. href="<?php echo bp_loggedin_user_domain() . 'friends/requests'; ?>"
  220. data-width="210"
  221. title="<?php _e( "Friend requests", 'kleo_framework' ); ?>"
  222. class="kleo-friends-req has-tip tip-right"><?php echo bp_friend_get_total_requests_count(); ?></a><?php endif; ?>
  223. </div>
  224. <ul>
  225. <?php
  226. if ( ! empty( $profile_menu ) ) {
  227. foreach ( $profile_menu as $prm ):
  228. echo $prm;
  229. endforeach;
  230. }
  231. ?>
  232. </ul>
  233.  
  234. <?php if ( ! empty( $profile_menu ) ) { ?>
  235. </div>
  236. <?php } ?>
  237.  
  238. </li>
  239. <?php endif; ?>
  240.  
  241. <li><a href="<?php echo wp_logout_url( get_bloginfo( 'url' ) ); ?> "
  242. class="tiny button radius btn-logout"><i
  243. class="icon-off hide-for-medium-down"></i> <?php _e( "LOG OUT", 'kleo_framework' ); ?>
  244. </a></li>
  245.  
  246. <?php else: ?>
  247.  
  248. <li class="header-login-button"><a href="#" data-reveal-id="login_panel"
  249. class="tiny secondary button radius"><i
  250. class="icon-user hide-for-medium-down"></i> <?php _e( "LOG IN", 'kleo_framework' ); ?>
  251. </a></li>
  252.  
  253. <?php if ( get_option( 'users_can_register' ) ) { ?>
  254. <li class="header-register-button"><a href="/membership-account/membership-levels/"
  255. class="tiny button radius"><i
  256. class="icon-group hide-for-medium-down"></i> <?php _e( "SIGN UP", 'kleo_framework' ); ?>
  257. </a></li>
  258. <?php } ?>
  259.  
  260. <?php endif; ?>
  261. </ul>
  262. </div>
  263. <!--end login buttons-->
  264.  
  265.  
  266. <!-- Main Navigation -->
  267. <div class="eight columns">
  268. <div class="contain-to-grid<?php if ( sq_option( 'sticky_menu', 1 ) == 1 ) {
  269. echo ' sticky';
  270. } ?>">
  271. <nav class="top-bar">
  272. <a href="<?php echo get_home_url(); ?>" class="small-logo"><img
  273. src="<?php echo sq_option( 'small_logo', get_template_directory_uri() . '/assets/images/small_logo.png' ); ?>"
  274. height="43" alt="<?php bloginfo( 'name' ); ?>"></a>
  275. <ul>
  276. <!-- Toggle Button Mobile -->
  277. <li class="name">
  278. <h1><a href="#"><?php _e( "Please select your page", 'kleo_framework' ); ?></a>
  279. </h1>
  280. </li>
  281. <li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li>
  282. <!-- End Toggle Button Mobile -->
  283. </ul>
  284.  
  285. <section><!-- Nav Section -->
  286. <?php wp_nav_menu( array( 'container' => false,
  287. 'menu_class' => 'left',
  288. 'theme_location' => 'primary',
  289. 'fallback_cb' => 'sweetdate_main_nav',
  290. 'walker' => new sweetdate_walker_nav_menu
  291. ) ); ?>
  292. </section><!-- End Nav Section -->
  293.  
  294. </nav>
  295. </div><!--end contain-to-grid sticky-->
  296. </div>
  297. <!-- end Main Navigation -->
  298. </div><!--end row-->
  299.  
  300. <?php if ( sq_option( 'home_rev', 0 ) == 1 && function_exists( 'putRevSlider' ) ) : /*Fix for Safari on MacOs */ ?>
  301.  
  302. </div><!--end #header-->
  303.  
  304. <?php endif; ?>
  305.  
  306. <div class="row just-after-header">
  307. <?php
  308. /**
  309. * after_header_content
  310. *
  311. * @hooked render_user_search - only if is Front-page Template
  312. */
  313. do_action( 'after_header_content' );
  314. ?>
  315. </div>
  316.  
  317. <?php if ( sq_option( 'home_rev', 0 ) == 0 ) : /*Fix for Safari on MacOs */ ?>
  318.  
  319. </div><!--end #header-->
  320.  
  321. <?php endif; ?>
  322.  
  323. <?php
  324. /**
  325. * kleo_after_header
  326. *
  327. */
  328. do_action( 'kleo_after_header' );
  329. ?>
  330. </div><!--end header-bg-->
  331. </header>
  332. <!--END HEADER SECTION-->
  333.  
  334. <?php
  335. /**
  336. * kleo_before_page
  337. *
  338. * @hooked kleo_show_breadcrumb - 9
  339. */
  340. do_action( 'kleo_before_page' );
  341. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement