erica34

Evolution Theme Header

Feb 9th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6. <title><?php elegant_titles(); ?></title>
  7. <?php elegant_description(); ?>
  8. <?php elegant_keywords(); ?>
  9. <?php elegant_canonical(); ?>
  10.  
  11. <link href='http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel='stylesheet' type='text/css'/>
  12. <link href='http://fonts.googleapis.com/css?family=Goudy+Bookletter+1911' rel='stylesheet' type='text/css' />
  13.  
  14. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  15. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  16.  
  17. <!--[if lt IE 7]>
  18. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/ie6style.css" />
  19. <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script>
  20. <script type="text/javascript">DD_belatedPNG.fix('img#logo, span.overlay, a.zoom-icon, a.more-icon, #menu, #menu-right, #menu-content, ul#top-menu ul, #menu-bar, .footer-widget ul li, span.post-overlay, #content-area, .avatar-overlay, .comment-arrow, .testimonials-item-bottom, #quote, #bottom-shadow, #quote .container');</script>
  21. <![endif]-->
  22. <!--[if IE 7]>
  23. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/ie7style.css" />
  24. <![endif]-->
  25. <!--[if IE 8]>
  26. <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/ie8style.css" />
  27. <![endif]-->
  28. <!--[if lt IE 9]>
  29. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  30. <![endif]-->
  31.  
  32. <script type="text/javascript">
  33. document.documentElement.className = 'js';
  34. </script>
  35.  
  36. <?php wp_head(); ?>
  37. </head>
  38. <body <?php body_class(); ?>>
  39. <div id="page-wrap">
  40. <header id="main">
  41. <div class="container top-info">
  42. <a href="<?php echo esc_url( home_url() ); ?>">
  43. <?php $logo = (get_option('evolution_logo') <> '') ? esc_attr(get_option('evolution_logo')) : get_template_directory_uri() . '/images/logo.png'; ?>
  44. <img src="<?php echo $logo; ?>" alt="<?php echo esc_attr(get_bloginfo('name')); ?>" id="logo"/>
  45. </a>
  46. <?php do_action('et_header_top'); ?>
  47. </div> <!-- end .container -->
  48. <div id="navigation">
  49. <div class="container clearfix">
  50. <nav id="top-menu">
  51. <?php
  52. $menuClass = 'nav';
  53. if ( get_option('evolution_disable_toptier') == 'on' ) $menuClass .= ' et_disable_top_tier';
  54. $primaryNav = '';
  55. if (function_exists('wp_nav_menu')) {
  56. $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
  57. }
  58. if ($primaryNav == '') { ?>
  59. <ul class="<?php echo $menuClass; ?>">
  60. <?php if (get_option('evolution_home_link') == 'on') { ?>
  61. <li <?php if (is_home()) echo('class="current_page_item"') ?>><a href="<?php echo home_url(); ?>"><?php esc_html_e('Home','Evolution') ?></a></li>
  62. <?php }; ?>
  63.  
  64. <?php show_page_menu($menuClass,false,false); ?>
  65. <?php show_categories_menu($menuClass,false); ?>
  66. </ul>
  67. <?php }
  68. else echo($primaryNav);
  69. ?>
  70. </nav>
  71. <a href="#" id="mobile_nav" class="closed"><?php esc_html_e( 'Navigation', 'Evolution' ); ?><span></span></a>
  72.  
  73. <div id="search-form">
  74. <form method="get" id="searchform" action="<?php echo esc_url( home_url() ); ?>/">
  75. <input type="text" value="<?php esc_attr_e('Search this site...', 'Evolution'); ?>" name="s" id="searchinput" />
  76. <?php
  77. global $default_colorscheme;
  78. $colorSchemePath = '';
  79. $colorScheme = get_option( 'evolution_color_scheme' );
  80. if ( $colorScheme <> $default_colorscheme ) $colorSchemePath = strtolower( $colorScheme ) . '/';
  81. ?>
  82. <input type="image" src="<?php echo esc_url( get_template_directory_uri() . '/images/' . $colorSchemePath . 'search_btn.png' ); ?>" id="searchsubmit" />
  83. </form>
  84. </div> <!-- end #search-form -->
  85. <div id="top-menu-shadow"></div>
  86. <div id="bottom-menu-shadow"></div>
  87. </div> <!-- end .container -->
  88. </div> <!-- end #navigation -->
  89. </header> <!-- end #main -->
  90.  
  91. <div id="main-area">
  92. <div class="container">
Advertisement
Add Comment
Please, Sign In to add comment