sbrajesh

Brajesh Singh

Apr 29th, 2010
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.23 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.  
  33.         <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  34.  
  35.         <?php wp_head(); ?>
  36.        
  37.  
  38.     </head>
  39.  
  40.     <body <?php body_class() ?> id="bp-default">
  41.  
  42.         <?php do_action( 'bp_before_header' ) ?>
  43.  
  44.         <div id="header">
  45.             <div id="home-header-left">
  46.                     <a href="http://www.sofastop.com"></a>
  47.  
  48.             </div><!-- Home Header Left -->
  49.        
  50.             <ul id="nav">
  51.            
  52.         <?php   if(is_user_logged_in()):?>
  53.                      <li<?php if ( bp_is_home()) : ?> class="selected"<?php endif; ?>>
  54.                                            
  55.                        <a href="<?php echo bp_loggedin_user_domain() ?>">My Profile</a>
  56.                     </li>
  57.         <?php endif;?>
  58.    
  59.             <li<?php if ( !is_user_logged_in() ) : ?>>
  60. <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
  61. <?php endif; ?></li>               
  62.  
  63.                 <li<?php if (( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() )&&!bp_is_home()) : ?> class="selected"<?php endif; ?>>
  64.                     <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
  65.                 </li>
  66.  
  67.                 <?php if ( bp_is_active( 'groups' ) ) : ?>
  68.                     <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
  69.                         <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
  70.                     </li>
  71.  
  72.                     <?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() ) : ?>
  73.                         <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
  74.                             <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
  75.                         </li>
  76.                     <?php endif; ?>
  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.             <?php do_action( 'bp_header' ) ?>
  85.  
  86.         </div><!-- #header -->
  87.  
  88.         <?php do_action( 'bp_after_header' ) ?>
  89.         <?php do_action( 'bp_before_container' ) ?>
  90.        
  91.    
  92.  
  93.         <div id="container">
Add Comment
Please, Sign In to add comment