Advertisement
Guest User

Home page

a guest
Jul 2nd, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 9.52 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. <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
  55. global $kleo_sweetdate;
  56. //HOME PAGE IMAGE
  57. if(is_page_template('page-templates/front-page.php'))
  58. {
  59.     $kleo_sweetdate->add_css('#header { background-image: url("'.sq_option('home_pic_background_image').'"); background-position: '.sq_option('home_pic_background_image_horizontal').' '.sq_option('home_pic_background_image_vertical').'; background-repeat: '.sq_option('home_pic_background_image_repeat').'; }');
  60. }
  61. ?>
  62.  
  63. <?php wp_head(); ?>
  64. </head>
  65.  
  66. <body <?php // body_class(); ?>>
  67.    
  68. <?php do_action('kameleo_after_body');?>
  69.  
  70. <!-- Page
  71. ================================================ -->
  72. <!--Attributes-->
  73. <!--class = page wide-style / boxed-style-->
  74. <div class="page <?php echo sq_option('site_style','wide-style'); ?>">
  75.  
  76. <!-- HEADER SECTION
  77. ================================================ -->
  78. <header>
  79. <div class="header-bg">
  80.    
  81.  <?php if(sq_option('social_top') == 1) :?>
  82. <!--Top links-->
  83. <div class="top-links">
  84.     <div class="row">
  85.         <ul class="no-bullet">
  86.             <li class="nine columns">
  87.                 <?php if(defined('ICL_LANGUAGE_CODE')) do_action('icl_language_selector'); ?>
  88.                 <?php if(sq_option('owner_email')): ?>
  89.                 <a class="mail-top" href="mailto:<?php echo sq_option('owner_email'); ?>"><i class="icon-envelope"></i> &nbsp; <?php echo sq_option('owner_email'); ?></a>
  90.                 <?php endif; ?>
  91.             </li>
  92.  
  93.             <li class="three columns hide-for-small">
  94.                 <?php _e("Find us on", 'kleo_framework'); ?>: &nbsp;
  95.                 <?php if (sq_option('twitter')): ?>
  96.                 <a href="<?php echo sq_option('twitter');?>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Follow us on", 'kleo_framework');?> Twitter"><i class="icon-twitter icon-large"></i></a>
  97.                 <?php endif;?>
  98.                 <?php if (sq_option('facebook')): ?>
  99.                 <a href="<?php echo sq_option('facebook');?>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> Facebook"><i class="icon-facebook icon-large"></i></a>
  100.                 <?php endif;?>
  101.                 <?php if (sq_option('googleplus')): ?>
  102.                 <a href="<?php echo sq_option('googleplus');?>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> Google+"><i class="icon-google-plus icon-large"></i></a>
  103.                 <?php endif; ?>
  104.                 <?php if (sq_option('pinterest')): ?>
  105.                 <a href="<?php echo sq_option('pinterest');?>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Pin us on", 'kleo_framework');?> Pinterest"><i class="icon-pinterest icon-large"></i></a>
  106.                 <?php endif; ?>
  107.                 <?php if (sq_option('linkedin')): ?>
  108.                 <a href="<?php echo sq_option('linkedin');?>" class="has-tip tip-bottom" data-width="210" title="<?php _e("Find us on", 'kleo_framework');?> LinkedIn"><i class="icon-linkedin icon-large"></i></a>
  109.                 <?php endif; ?>
  110.             </li>
  111.         </ul>
  112.   </div>
  113. </div>
  114. <!--end top-links-->
  115. <?php endif; ?>
  116.  
  117. <div id="header">
  118.     <div class="row">
  119.        
  120.     <!-- Logo -->
  121.     <div class="four columns">
  122.       <h1 id="logo"><?php bloginfo('name'); ?>
  123.           <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>
  124.       </h1>
  125.     </div>
  126.     <!--end logo-->
  127.    
  128.     <!-- Login/Register/Forgot username/password Modal forms
  129.         -  Hidded by default to be opened through modal
  130.       -  For faster loading we put all forms at the bottom of page -->
  131.      
  132.     <!--Login buttons-->  
  133.     <div class="eight columns login-buttons">
  134.       <ul class="button-group radius right">
  135.         <?php if (is_user_logged_in()): ?>
  136.           <?php /* Only show if Buddypress is installed */ ?>
  137.             <?php if (function_exists('bp_is_active')): ?>
  138.             <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>
  139.             <?php endif; ?>
  140.         <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>
  141.         <?php else: ?>
  142.         <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>
  143.         <?php if(get_option('users_can_register')) { ?>
  144.             <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>
  145.         <?php } ?>
  146.         <?php endif; ?>
  147.       </ul>
  148.     </div>
  149.     <!--end login buttons-->
  150.        
  151.        
  152.     <!-- Main Navigation -->
  153.     <div class="eight columns">
  154.       <nav class="top-bar">
  155.         <ul>
  156.           <!-- Toggle Button Mobile -->
  157.           <li class="name">
  158.             <h1><a href="#"><?php _e("Please select your page", 'kleo_framework'); ?></a></h1>
  159.           </li>
  160.           <li class="toggle-topbar"><a href="#"><i class="icon-reorder"></i></a></li>
  161.           <!-- End Toggle Button Mobile -->
  162.         </ul>
  163.      
  164.         <section><!-- Nav Section -->
  165.             <?php wp_nav_menu( array( 'container' => false, 'menu_class' => 'left', 'theme_location' => 'primary', 'fallback_cb' => 'sweetdate_main_nav', 'walker'        => new sweetdate_walker_nav_menu) ); ?>
  166.         </section><!-- End Nav Section -->
  167.          
  168.       </nav>
  169.     </div>
  170.     <!-- end Main Navigation -->
  171.    
  172.     <div style="min-height:600px"></div>
  173.     <?php
  174.     /**
  175.      * If we are on the home page here it will render the search form
  176.      */
  177.     if(is_page_template('page-templates/front-page.php'))
  178.     {
  179.        //render_user_search();
  180.     }
  181.     ?>
  182.    
  183.   </div><!--end row-->
  184. </div><!--end #header-->
  185. </div><!--end header-bg-->
  186. </header>
  187. <!--END HEADER SECTION-->
  188.  
  189. <?php
  190. if (sq_option('breadcrumb_status') == 1)
  191. {
  192.     if(!is_page_template('page-templates/front-page.php')) { ?>
  193.     <!-- BREADCRUMBS SECTION
  194.     ================================================ -->
  195.     <section>
  196.       <div id="breadcrumbs-wrapp">
  197.         <div class="row">
  198.           <div class="nine columns">
  199.                 <?php kleo_breadcrumb(array('container_class' => 'breadcrumbs hide-for-small')); ?>
  200.           </div>
  201.  
  202.         <?php do_action('kleo_after_breadcrumb'); ?>
  203.  
  204.         </div><!--end row-->
  205.       </div><!--end breadcrumbs-wrapp-->
  206.     </section>
  207.     <!--END BREADCRUMBS SECTION-->
  208.     <?php
  209.     }
  210. }
  211. ?>
  212.  
  213. <?php do_action( 'kleo_before_main' ) ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement