Advertisement
srikat

Untitled

May 11th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.18 KB | None | 0 0
  1. <div id="wrapper">
  2.  
  3.     <div id="top">
  4.            
  5.         <div id="header">
  6.         <div class="col-full">
  7.        
  8.             <div id="logo" class="fl">
  9.                 <?php if ( 'true' != get_option( 'woo_texttitle' ) ) { ?><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'description' ) ); ?>"><img class="title" src="<?php echo esc_url( $logo_url ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a><?php } ?>
  10.                 <?php if( is_single() || is_page() ) : ?>
  11.                     <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></span>
  12.                 <?php else: ?>
  13.                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
  14.                 <?php endif; ?>
  15.                
  16.                     <span class="site-description"><?php bloginfo( 'description' ); ?></span>
  17.                
  18.             </div><!-- /#logo -->
  19.             <?php
  20.             if ( function_exists( 'has_nav_menu' ) && has_nav_menu( 'primary-menu' ) ) {
  21.                 wp_nav_menu( array( 'depth' => 4, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'nav', 'menu_class' => 'fr', 'theme_location' => 'primary-menu' ) );
  22.             } else {
  23.             ?>  
  24.             <ul id="nav" class="fr">
  25.            
  26.             <?php
  27.             if ( 'true' == get_option( 'woo_custom_nav_menu' ) ) {
  28.                 if ( function_exists( 'woo_custom_navigation_output' ) )
  29.                     woo_custom_navigation_output( 'depth=4' );
  30.  
  31.             } else { ?>
  32.  
  33.                 <?php if ( is_page() || is_archive() || is_single() || is_tag() ) { $highlight = 'page_item'; } else { $highlight = 'page_item current_page_item'; } ?>
  34.                 <li class="<?php echo esc_attr( $highlight ); ?> home_link"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Home', 'woothemes' ); ?></a></li>
  35.                 <?php  wp_list_pages( 'sort_column=menu_order&depth=4&title_li=' ); ?>
  36.                
  37.             <?php } ?>
  38.                
  39.             </ul><!-- /#nav -->
  40.             <?php } ?>              
  41.         </div><!-- /.col-full -->
  42.         </div><!-- /#header -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement