sbrajesh

Brajesh Singh

Apr 29th, 2010
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.27 KB | None | 0 0
  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 bp_page_title() ?></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_sitewide_activity_feed_link' ) ) : ?>
  18.             <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
  19.         <?php endif; ?>
  20.  
  21.         <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
  22.             <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
  23.         <?php endif; ?>
  24.  
  25.         <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
  26.             <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() ?>" />
  27.         <?php endif; ?>
  28.  
  29.         <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
  30.         <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
  31.  
  32.         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  33.  
  34.         <?php wp_head(); ?>
  35.  
  36.     </head>
  37.  
  38.     <body <?php body_class() ?> id="bp-default">
  39.  
  40.         <?php do_action( 'bp_before_header' ) ?>
  41.  
  42.         <div id="header">
  43.  
  44.             <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
  45.  
  46.             <ul id="nav">
  47.                 <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>
  48.                     <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
  49.                 </li>
  50.  
  51.                 <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
  52.                     <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>>
  53.                         <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
  54.                     </li>
  55.                 <?php endif; ?>
  56.  
  57.                 <li<?php if ( (bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member())&&!bp_is_home() ) : ?> class="selected"<?php endif; ?>>
  58.                     <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
  59.                 </li>
  60.  
  61.                 <?php if ( bp_is_active( 'groups' ) ) : ?>
  62.                     <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
  63.                         <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
  64.                     </li>
  65.  
  66.                     <?php if ( bp_is_active( 'forums' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>
  67.                         <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
  68.                             <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
  69.                         </li>
  70.                     <?php endif; ?>
  71.                 <?php endif; ?>
  72.  
  73.                 <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
  74.                     <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
  75.                         <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
  76.                     </li>
  77.                 <?php endif; ?>
  78.  
  79.                 <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
  80.  
  81.                 <?php do_action( 'bp_nav_items' ); ?>
  82.             </ul><!-- #nav -->
  83.  
  84.             <div id="search-bar">
  85.                 <div class="padder">
  86.  
  87.                 <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
  88.                     <input type="text" id="search-terms" name="search-terms" value="" />
  89.                     <?php echo bp_search_form_type_select() ?>
  90.  
  91.                     <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
  92.                     <?php wp_nonce_field( 'bp_search_form' ) ?>
  93.                 </form><!-- #search-form -->
  94.  
  95.                 <?php do_action( 'bp_search_login_bar' ) ?>
  96.  
  97.                 </div><!-- .padder -->
  98.             </div><!-- #search-bar -->
  99.  
  100.             <?php do_action( 'bp_header' ) ?>
  101.  
  102.         </div><!-- #header -->
  103.  
  104.         <?php do_action( 'bp_after_header' ) ?>
  105.         <?php do_action( 'bp_before_container' ) ?>
  106.  
  107.         <div id="container">
Add Comment
Please, Sign In to add comment