/themes/bp-groupblog/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.  
  5. <head profile="http://gmpg.org/xfn/11"> 
  6.  
  7. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 
  8.  
  9. <title><?php wp_title() ?> | <?php bloginfo('name'); ?></title> 
  10.  
  11. <?php do_action( 'bp_head' ) ?> 
  12.  
  13. <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> 
  14.  
  15. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> 
  16.  
  17. <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?> 
  18. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" /> 
  19. <?php endif; ?> 
  20.  
  21. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" /> 
  22. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" /> 
  23.  
  24. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
  25.  
  26. <?php wp_head(); ?> 
  27.  
  28. </head> 
  29.  
  30. <body <?php body_class() ?> id="bp-default"> 
  31.  
  32. <?php do_action( 'bp_before_header' ) ?> 
  33.  
  34. <div id="header"> 
  35.  
  36. <h1 id="logo"><a href="<?php site_url() ?>"><?php bp_site_name() ?></a></h1> 
  37.  
  38. <ul id="nav"> 
  39. <li> 
  40. <a href="<?php bp_root_domain() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> 
  41. </li> 
  42.  
  43. <li> 
  44. <a href="<?php bp_root_domain() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a> 
  45. </li> 
  46.  
  47. <li> 
  48. <a href="<?php bp_root_domain() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a> 
  49. </li> 
  50.  
  51. <?php if ( bp_is_active( 'groups' ) ) : ?> 
  52. <li class="selected"> 
  53. <a href="<?php bp_root_domain() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a> 
  54. </li> 
  55.  
  56. <?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?> 
  57. <li> 
  58. <a href="<?php bp_root_domain() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a> 
  59. </li> 
  60. <?php endif; ?> 
  61. <?php endif; ?> 
  62.  
  63. <?php if ( bp_is_active( 'blogs' ) && is_multisite() ) : ?> 
  64. <li> 
  65. <a href="<?php bp_root_domain() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a> 
  66. </li> 
  67. <?php endif; ?> 
  68.  
  69. <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?> 
  70.  
  71. <?php do_action( 'bp_nav_items' ); ?> 
  72. </ul><!-- #nav --> 
  73.  
  74. <div id="search-bar"> 
  75. <div class="padder"> 
  76.  
  77. <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form"> 
  78. <input type="text" id="search-terms" name="search-terms" value="" /> 
  79. <?php echo bp_search_form_type_select() ?> 
  80.  
  81. <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 
  82. <?php wp_nonce_field( 'bp_search_form' ) ?> 
  83. </form><!-- #search-form --> 
  84.  
  85. <?php do_action( 'bp_search_login_bar' ) ?> 
  86.  
  87. </div><!-- .padder --> 
  88. </div><!-- #search-bar --> 
  89.  
  90. <?php do_action( 'bp_header' ) ?> 
  91.  
  92. </div><!-- #header --> 
  93.  
  94. <?php do_action( 'bp_after_header' ) ?> 
  95. <?php do_action( 'bp_before_container' ) ?> 
  96.  
  97. <div id="container"> 
.