/bp-themes/bp-default/header.php

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 
  4. <head profile="http://gmpg.org/xfn/11"> 
  5. <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> 
  6. <?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php endif; ?> 
  7. <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title> 
  8. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 
  9.  
  10. <?php bp_head(); ?> 
  11. <?php wp_head(); ?> 
  12.  
  13. </head> 
  14.  
  15. <body <?php body_class(); ?> id="bp-default"> 
  16.  
  17. <?php do_action( 'bp_before_header' ); ?> 
  18.  
  19. <div id="header"> 
  20. <div id="search-bar" role="search"> 
  21. <div class="padder"> 
  22. <h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr_x( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1> 
  23.  
  24. <form action="<?php echo bp_search_form_action(); ?>" method="post" id="search-form"> 
  25. <label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label> 
  26. <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" /> 
  27.  
  28. <?php echo bp_search_form_type_select(); ?> 
  29.  
  30. <input type="submit" name="search-submit" id="search-submit" value="<?php esc_attr_e( 'Search', 'buddypress' ); ?>" /> 
  31.  
  32. <?php wp_nonce_field( 'bp_search_form' ); ?> 
  33.  
  34. </form><!-- #search-form --> 
  35.  
  36. <?php do_action( 'bp_search_login_bar' ); ?> 
  37.  
  38. </div><!-- .padder --> 
  39. </div><!-- #search-bar --> 
  40.  
  41. <div id="navigation" role="navigation"> 
  42. <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?> 
  43. </div> 
  44.  
  45. <?php do_action( 'bp_header' ); ?> 
  46.  
  47. </div><!-- #header --> 
  48.  
  49. <?php do_action( 'bp_after_header' ); ?> 
  50. <?php do_action( 'bp_before_container' ); ?> 
  51.  
  52. <div id="container"> 
.