Advertisement
Guest User

flexi-header.php

a guest
Mar 8th, 2012
41
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. <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
  5. <?php
  6. $sitelogo = prima_get_option( 'newsitelogo' );
  7. if (!$sitelogo) {
  8. $oldsitelogo = prima_get_option( 'sitelogo' );
  9. if ( $oldsitelogo && $oldsitelogo['url'] !== '' ) $sitelogo = $oldsitelogo['url'];
  10. }
  11. if ($sitelogo) echo '<img src="'.$sitelogo.'" alt="'.get_bloginfo( 'name' ).'" />';
  12. else echo get_bloginfo( 'name' );
  13. ?>
  14. </a>
  15. </h2>
  16. <div id="topnav" role="navigation">
  17. <?php if ( has_nav_menu( 'primary' ) ) : ?>
  18. <?php wp_nav_menu( array( 'menu_class' => 'superfish', 'theme_location' => 'primary' ) ); ?>
  19. <?php else : ?>
  20. <ul class="superfish">
  21. <li><a href="<?php echo get_option('home'); ?>/"><?php _e('Home',PRIMA_DOMAIN); ?></a></li>
  22. <?php
  23. $exclude = ( (get_option('show_on_front') == 'page') && get_option('page_on_front') ) ? '&exclude='.get_option('page_on_front') : '';
  24. wp_list_pages('title_li=&sort_column=menu_order'.$exclude); ?>
  25. </ul>
  26. <?php endif; ?>
  27. </div>
  28. </div>
  29. </div>
Advertisement
RAW Paste Data Copied
Advertisement