Advertisement
Guest User

Untitled

a guest
Mar 11th, 2012
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Header Code:
  2.  
  3. <div id="header" class="container">
  4. <div class="margin clearfix">
  5. <h2 id="logo">
  6.  
  7.  
  8.  
  9. <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
  10. <?php
  11. $sitelogo = prima_get_option( 'newsitelogo' );
  12. if (!$sitelogo) {
  13. $oldsitelogo = prima_get_option( 'sitelogo' );
  14. if ( $oldsitelogo && $oldsitelogo['url'] !== '' ) $sitelogo = $oldsitelogo['url'];
  15. }
  16. if ($sitelogo) echo '<img src="'.$sitelogo.'" alt="'.get_bloginfo( 'name' ).'" />';
  17. else echo get_bloginfo( 'name' );
  18. ?>
  19. </a>
  20. </h2>
  21. <div id="topnav" role="navigation">
  22. <?php if ( has_nav_menu( 'primary' ) ) : ?>
  23. <?php wp_nav_menu( array( 'menu_class' => 'superfish', 'theme_location' => 'primary' ) ); ?>
  24.  
  25.  
  26.  
  27. <?php if ( is_user_logged_in() ) : ?>
  28. <?php do_action( 'bp_profile_menu' ) ?>
  29. <?php endif; ?>
  30.  
  31.  
  32.  
  33.  
  34.  
  35. <?php else : ?>
  36. <ul class="superfish">
  37. <li><a href="<?php echo get_option('home'); ?>/"><?php _e('Home',PRIMA_DOMAIN); ?></a></li>
  38. <?php
  39. $exclude = ( (get_option('show_on_front') == 'page') && get_option('page_on_front') ) ? '&exclude='.get_option('page_on_front') : '';
  40. wp_list_pages('title_li=&sort_column=menu_order'.$exclude); ?>
  41.  
  42.  
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. </div>
Advertisement
RAW Paste Data Copied
Advertisement