Advertisement
srikat

Untitled

May 11th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <div id="my-header">
  2.  
  3.     <div id="header" class="col-full">
  4.  
  5.         <div id="filagree"><img src="<?php echo $filagree; ?>" alt="filagree" /></div>
  6.  
  7.         <div id="logo">
  8.  
  9.             <span class="site-description"><?php bloginfo( 'description' ); ?></span>
  10.  
  11.         <?php if ( isset( $woo_options['woo_texttitle'] ) && $woo_options['woo_texttitle'] != 'true' ) { $logo = $woo_options['woo_logo']; ?>
  12.             <a href="<?php echo home_url( '/' ); ?>" title="<?php bloginfo( 'description' ); ?>">
  13.                 <img src="<?php if ( $logo ) { echo $logo; } else { echo get_template_directory_uri(); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo( 'name' ); ?>" />
  14.             </a>
  15.         <?php } ?>
  16.  
  17.         <?php if( is_singular() && !is_front_page() ) { ?>
  18.             <span class="site-title"><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></span>
  19.         <?php } else { ?>
  20.             <h1 class="site-title"><a href="<?php echo home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
  21.         <?php } ?>
  22.  
  23.         </div><!-- /#logo -->
  24.  
  25.     </div><!-- /#header -->
  26.  
  27.     <div id="navigation" class="col-full">
  28.         <?php
  29.         if ( function_exists( 'has_nav_menu') && has_nav_menu( 'primary-menu') ) {
  30.             wp_nav_menu( array( 'depth' => 6, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'main-nav', 'menu_class' => 'nav', 'theme_location' => 'primary-menu' ) );
  31.         } else {
  32.         ?>
  33.         <ul id="main-nav" class="nav">
  34.             <?php
  35.             if ( isset($woo_options[ 'woo_custom_nav_menu' ]) AND $woo_options[ 'woo_custom_nav_menu' ] == 'true' ) {
  36.                 if ( function_exists( 'woo_custom_navigation_output') )
  37.                     woo_custom_navigation_output();
  38.             } else { ?>
  39.                 <?php if ( is_page() ) $highlight = "page_item"; else $highlight = "page_item current_page_item"; ?>
  40.                 <li class="<?php echo $highlight; ?>"><a href="<?php echo home_url( '/' ); ?>"><?php _e( 'Home', 'woothemes' ) ?></a></li>
  41.                 <?php
  42.                     wp_list_pages( 'sort_column=menu_order&depth=6&title_li=&exclude=' );
  43.             }
  44.             ?>
  45.         </ul><!-- /#nav -->
  46.         <?php } ?>
  47.  
  48.     </div><!-- /#navigation -->
  49.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement