sbrajesh

Brajesh Singh

Apr 29th, 2010
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.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.  
  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
  53.             add_action("bp_nav_items","show_user_link");
  54.             function show_user_link(){
  55.             if(!is_user_logged_in())
  56.             return;
  57.             ?>
  58. <li<?php if ( bp_is_home()) : ?> class="selected"<?php endif; ?>>
  59.                                            
  60. <a href="<?php echo bp_loggedin_user_domain() ?>">My Profile</a>
  61. </li>
  62. <?php
  63.  
  64. }
  65. ?>
  66.            
  67.             <li<?php if ( !is_user_logged_in() ) : ?>>
  68. <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
  69. <?php endif; ?></li>               
  70.  
  71.                 <li<?php if (( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ))&&!bp_is_home()) : ?> class="selected"<?php endif; ?>>
  72.                     <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
  73.                 </li>
  74.  
  75.                 <?php if ( bp_is_active( 'groups' ) ) : ?>
  76.                     <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
  77.                         <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
  78.                     </li>
  79.  
  80.                     <?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() ) : ?>
  81.                         <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
  82.                             <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
  83.                         </li>
  84.                     <?php endif; ?>
  85.                 <?php endif; ?>
  86.  
  87.                 <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
  88.  
  89.                 <?php do_action( 'bp_nav_items' ); ?>
  90.             </ul><!-- #nav -->
  91.  
  92.             <?php do_action( 'bp_header' ) ?>
  93.  
  94.         </div><!-- #header -->
  95.  
  96.         <?php do_action( 'bp_after_header' ) ?>
  97.         <?php do_action( 'bp_before_container' ) ?>
  98.        
  99.    
  100.  
  101.         <div id="container">
Add Comment
Please, Sign In to add comment