Advertisement
marutim

header.php

Nov 7th, 2012
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.94 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Header for our theme.
  4.  *
  5.  * @package BTP_Flare_Theme
  6.  */
  7. ?><!DOCTYPE html>
  8. <!--[if IE 6]>
  9. <html class="no-js" id="ie6" <?php language_attributes(); ?>>
  10. <![endif]-->
  11. <!--[if IE 7]>
  12. <html class="no-js" id="ie7" <?php language_attributes(); ?>>
  13. <![endif]-->
  14. <!--[if IE 8]>
  15. <html class="no-js" id="ie8" <?php language_attributes(); ?>>
  16. <![endif]-->
  17. <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
  18. <html class="no-js" <?php language_attributes(); ?>>
  19. <!--<![endif]-->
  20. <head>
  21.     <meta charset="<?php bloginfo( 'charset' ); ?>" />
  22.     <meta name="viewport" content="initial-scale=1.0, width=device-width" />
  23.    
  24.     <title>
  25.     <?php
  26.     $title = wp_title( '', false, 'right' );
  27.     echo $title ? $title : get_bloginfo('name').' - '.get_bloginfo('description');
  28.     ?>
  29.     </title>
  30.    
  31.     <link rel="profile" href="http://gmpg.org/xfn/11" />
  32.     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  33.    
  34.     <!--[if lt IE 9]>
  35.     <script src="<?php echo get_template_directory_uri().'/js/tools/html5.js'; ?>"></script>
  36.     <![endif]-->
  37.    
  38.     <?php
  39.     if ( is_singular() && get_option( 'thread_comments' ) ) {
  40.     wp_enqueue_script( 'comment-reply' );
  41.     }  
  42.     wp_head();
  43.     ?>
  44.    
  45.     <script type="text/javascript" src="<?php echo get_template_directory_uri() ?>/js/respond/respond.src.js"></script>
  46.     <?php
  47.     wp_register_script('image-loader', content_url() . '/themes/flare-child-theme/js/image-loader.js', 'jquery', time());
  48.     wp_enqueue_script('image-loader');
  49.     ?>
  50. </head>
  51.  
  52. <body <?php body_class(); ?>>
  53.  
  54. <div id="page">
  55.     <div id="page-inner">      
  56.     <header id="header" role="banner" class="<?php echo btp_header_get_class(); ?>">
  57.         <div id="header-inner">    
  58.         <div id="primary-bar">
  59.             <div id="primary-bar-inner">
  60.             <?php btp_site_id_render(); ?> 
  61.             <nav id="primary-nav">
  62.                 <p id="primary-nav-tip" class="assistive-text"><?php _e('Go to:', 'btp_theme' ); ?></p>
  63.                 <?php
  64.                 if ( has_nav_menu( 'primary_nav' ) ) {
  65.                 wp_nav_menu( array(
  66.                     'theme_location'    => 'primary_nav',
  67.                     'container'     => '',
  68.                     'menu_id'       => 'primary-nav-menu',
  69.                     'menu_class'        => 'dd-menu',
  70.                     'depth'         => 0                               
  71.                 ));                                
  72.                 } else {               
  73.                 btp_helpmode_render(
  74.                     __( 'Empty Primary Navigation', 'btp_theme' ),
  75.                     '<p>' . sprintf( __( 'You should <a href="%s">assign a menu to the Primary Navigation Theme Location</a>', 'btp_theme' ), network_admin_url( 'nav-menus.php' ) ) . '</p>'
  76.                 );
  77.                 }  
  78.                 ?>                 
  79.             </nav><!-- #primary-nav -->                    
  80.             </div><!-- #primary-bar-inner -->
  81.             <div class="background">
  82.             <div class="pattern"></div>
  83.             <div class="flare">
  84.                 <div></div>
  85.                 <div></div>
  86.             </div>
  87.             </div>
  88.         </div><!-- #primary-bar -->
  89.            
  90.         <div id="secondary-bar">
  91.             <div id="secondary-bar-inner">
  92.             <?php do_action( 'icl_language_selector' ); ?>             
  93.             <?php if ( has_nav_menu( 'secondary_nav' ) ): ?>
  94.             <nav id="secondary-nav">
  95.                 <?php
  96.                 wp_nav_menu( array(
  97.                 'theme_location'    => 'secondary_nav',
  98.                 'container'     => '',
  99.                 'menu_id'       => 'secondary-nav-menu',
  100.                 'menu_class'        => 'simple-menu meta',
  101.                 'depth'         => 0                               
  102.                 ));
  103.                 ?>                 
  104.             </nav><!-- #secondary-nav -->
  105.             <?php endif; ?>
  106.            
  107.             <?php
  108.             if ( 'none' !== btp_theme_get_option_value('style_header_searchform' ) && !is_404() ) {
  109.                 get_search_form();
  110.             }  
  111.             ?>
  112.            
  113.             <?php if ( 'none' !== btp_theme_get_option_value('style_header_feeds' ) ): ?>
  114.             <?php
  115.             get_currentuserinfo();
  116.             global $user_level;
  117.             if ( $user_level > 0 ) { ?>
  118.                 <div class="front-end-logout">
  119.                 <?php wp_loginout(); ?>
  120.                 </div>
  121.             <?php
  122.             }
  123.             else { ?>
  124.             <div class="front-end-login">
  125.                 <form name="loginform" id="loginform" action="wp-login.php" method="post">
  126.                 <label class=login-user for="username"><?php _e('Username'); ?></label>
  127.                 <input type="text" name="log" id="user-login" class="text input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" />
  128.                 <label class="login-password" for="password"><?php _e('Password'); ?></label>
  129.                 <input type="password" name="pwd" id="user-pass" class="text input" value="" size="20" tabindex="20" /><?php do_action('login_form'); ?>
  130.                 <input name="rememberme" type="hidden" id="rememberme" value="forever" tabindex="90" />
  131.                 <input type="submit" name="wp-submit" id="wp-submit" class="submit" value="<?php _e('Login'); ?>" tabindex="100" />
  132.                 </form>
  133.             </div>
  134.             <?php } ?>
  135.             <!--<div id="feeds-nav">
  136.                 <?php echo do_shortcode('[feeds template="list-horizontal" hide="label, caption"]'); ?>
  137.             </div>-->  
  138.             <?php endif; ?>
  139.             </div><!-- #secondary-bar-inner -->
  140.         </div><!-- #secondary-bar -->      
  141.         </div><!-- #header-inner -->
  142.         <div class="background"><div></div></div>
  143.     </header><!-- #header -->
  144.     <div class="content">
  145.     <article class="post-listing post">
  146.     <div class="post-inner">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement