Advertisement
Guest User

Untitled

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