Advertisement
Guest User

sundance searchbar

a guest
Oct 16th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Header for our theme.
  4. *
  5. * Displays all of the <head> section and everything up till <div id="main">
  6. *
  7. * @package Sundance
  8. * @since Sundance 1.0
  9. */
  10. ?><!DOCTYPE html>
  11. <!--[if IE 8]>
  12. <html id="ie8" <?php language_attributes(); ?>>
  13. <![endif]-->
  14. <!--[if !(IE 8) ]><!-->
  15. <html <?php language_attributes(); ?>>
  16. <!--<![endif]-->
  17. <head>
  18. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  20. <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
  21. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  22. <title><?php
  23. /*
  24. * Print the <title> tag based on what is being viewed.
  25. */
  26. global $page, $paged;
  27.  
  28. wp_title( '|', true, 'right' );
  29.  
  30. // Add the blog name.
  31. bloginfo( 'name' );
  32.  
  33. // Add the blog description for the home/front page.
  34. $site_description = get_bloginfo( 'description', 'display' );
  35. if ( $site_description && ( is_home() || is_front_page() ) )
  36. echo " | $site_description";
  37.  
  38. // Add a page number if necessary:
  39. if ( $paged >= 2 || $page >= 2 )
  40. echo ' | ' . sprintf( __( 'Page %s', 'sundance' ), max( $paged, $page ) );
  41.  
  42. ?></title>
  43. <link rel="profile" href="http://gmpg.org/xfn/11" />
  44. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  45. <!--[if lt IE 9]>
  46. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  47. <![endif]-->
  48. <?php wp_head(); ?>
  49. </head>
  50.  
  51. <body <?php body_class(); ?>>
  52. <div id="page" class="hfeed site">
  53. <?php do_action( 'before' ); ?>
  54. <header id="masthead" class="site-header" role="banner">
  55. <div class="masthead-inner clear-fix">
  56. <hgroup>
  57. <h1 class="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo bloginfo('stylesheet_directory');?>/images/palanca_logo_wider.png" alt="<?php bloginfo( 'name' ); ?>" width="984" height="242"/></a></span></h1>
  58. <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
  59. </hgroup>
  60.  
  61. <?php $header_image = get_header_image();
  62. if ( ! empty( $header_image ) ) { ?>
  63. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home" class="clear header-image-link">
  64. <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  65. </a>
  66. <?php } // if ( ! empty( $header_image ) ) ?>
  67.  
  68. <nav role="navigation" class="site-navigation main-navigation">
  69. <h1 class="assistive-text"><?php _e( 'Menu', 'sundance' ); ?></h1>
  70. <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'sundance' ); ?>"><?php _e( 'Skip to content', 'sundance' ); ?></a></div>
  71.  
  72. <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  73. </nav>
  74. <div id="newsearch"><?php get_search_form(); ?></div>
  75. </header><!-- #masthead .site-header -->
  76.  
  77. <div id="main" class="clear-fix">
  78. <?php if ( is_front_page() && ! is_paged() )
  79. get_template_part( 'featured' );
  80. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement