Advertisement
Guest User

header.php

a guest
Nov 15th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.07 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head profile="http://gmpg.org/xfn/11">
  4. <?php global $woo_options; ?>
  5.  
  6. <title><?php woo_title(); ?></title>
  7. <?php woo_meta(); ?>
  8.    
  9. <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen, projection" />
  10. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $GLOBALS['feedurl'] = $woo_options['woo_feed_url']; if ( ! empty( $feedurl ) ) { echo $feedurl; } else { echo get_bloginfo_rss( 'rss2_url' ); } ?>" />
  11. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  12.    
  13. <!--[if lt IE 7]>
  14.     <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/ie.css" type="text/css" media="screen, projection">
  15. <![endif]-->
  16.    
  17. <?php if ( is_singular() ) { wp_enqueue_script('comment-reply'); } ?>
  18.    
  19. <?php wp_head(); ?>
  20.  
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24.  
  25.     <div class="container">
  26.    
  27.         <div id="header" class="column span-14">
  28.        
  29.             <div id="logo" class="column first">
  30.  
  31.                
  32.             <?php if ($woo_options['woo_logo']) { $logo = $woo_options['woo_logo'];
  33.                     if ( ! empty( $logo ) ) { ?>
  34.                 <a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo( 'description' ); ?>">
  35.                     <img src="<?php echo $logo; ?>" alt="<?php bloginfo( 'name' ); ?>" />
  36.                 </a>
  37.                
  38.             <?php }        
  39.                 }  ?>
  40.            
  41.            
  42.                    
  43.             </div>
  44.            
  45.             <div id="search_menu" class="column span-6 border_left last push-0">
  46.            
  47.                 <div id="search" class="column first">
  48.                     <h3 class="mast4"><?php _e( 'Search', 'woothemes' ); ?></h3>
  49.                    
  50.                     <div id="search-form">                  
  51.                         <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
  52.                            
  53.                         <div><label for="s" class="none"><?php _e( 'Search for','woothemes' ); ?>:</label>
  54.                         <input type="text" name="s" id="s" class="search_input" value="<?php the_search_query(); ?>" />
  55.                        
  56.                         <label for="searchsubmit" class="none"><?php _e( 'Go','woothemes' ); ?></label>
  57.                         <input type="submit" id="searchsubmit" class="submit_input" value="Search" /></div>
  58.                            
  59.                         </form>
  60.                     </div>
  61.                 </div>
  62.                
  63.                 <ul id="menu">
  64.                
  65.                     <?php
  66.                    
  67.                     $links = array( 'home', 'about', 'archives', 'subscribe', 'contact' );
  68.                    
  69.                     foreach ( $links as $curlink ) {
  70.                    
  71.                         $link = trim( $woo_options['woo_nav_'.$curlink] );
  72.                        
  73.                         if ( ( $link != '' ) && ( $link != '#' ) ) {
  74.                        
  75.                             echo '<li><span class="' . $curlink . '"><a href="' . $woo_options['woo_nav_'.$curlink] . '">'.__( ucfirst($curlink ),'woothemes' ) . '</a></span></li>'."\n";
  76.                        
  77.                         }
  78.                    
  79.                     }
  80.                    
  81.                     ?>
  82.                
  83.                 </ul>
  84.            
  85.             </div>
  86.        
  87.         </div>
  88.         <div class="clear"></div>
  89.        
  90.         <?php // Only supports WordPress Menus
  91.         if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) { ?>
  92.             <div id="navigation" class="col-full">
  93.                 <?php
  94.                 wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav fl', 'theme_location' => 'primary-menu' ) );
  95.                 ?>
  96.                 <ul class="rss fr">
  97.                     <?php $email = $woo_options['woo_subscribe_email']; if ( $email ) { ?>
  98.                     <li class="sub-email"><a href="<?php echo $email; ?>" target="_blank"><?php _e('Subscribe by Email', 'woothemes') ?></a></li>
  99.                     <?php } ?>
  100.                     <li class="sub-rss"><a href="<?php if ( $GLOBALS['feedurl'] ) { echo $GLOBALS['feedurl']; } else { echo get_bloginfo_rss( 'rss2_url' ); } ?>"><?php _e( 'Subscribe to RSS', 'woothemes' ); ?></a></li>
  101.                 </ul>
  102.  
  103.             </div><!-- /#navigation -->
  104.         <?php
  105.         }
  106.         ?>
  107.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement