Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
- <head profile="http://gmpg.org/xfn/11">
- <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
- <title><?php bp_page_title() ?></title>
- <?php do_action( 'bp_head' ) ?>
- <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
- <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
- <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>
- <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() ?>" />
- <?php endif; ?>
- <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>
- <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() ?>" />
- <?php endif; ?>
- <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>
- <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() ?>" />
- <?php endif; ?>
- <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />
- <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />
- <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
- <?php wp_head(); ?>
- </head>
- <body <?php body_class() ?> id="bp-default">
- <?php do_action( 'bp_before_header' ) ?>
- <div id="header">
- <div id="home-header-left">
- <a href="http://www.sofastop.com"></a>
- </div><!-- Home Header Left -->
- <ul id="nav">
- <?php
- add_action("bp_nav_items","show_user_link");
- function show_user_link(){
- if(!is_user_logged_in())
- return;
- ?>
- <li<?php if ( bp_is_home()) : ?> class="selected"<?php endif; ?>>
- <a href="<?php echo bp_loggedin_user_domain() ?>">My Profile</a>
- </li>
- <?php
- }
- ?>
- <li<?php if ( !is_user_logged_in() ) : ?>>
- <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
- <?php endif; ?></li>
- <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
- <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
- </li>
- <?php if ( bp_is_active( 'groups' ) ) : ?>
- <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
- <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
- </li>
- <?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() ) : ?>
- <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
- <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
- </li>
- <?php endif; ?>
- <?php endif; ?>
- <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
- <?php do_action( 'bp_nav_items' ); ?>
- </ul><!-- #nav -->
- <?php do_action( 'bp_header' ) ?>
- </div><!-- #header -->
- <?php do_action( 'bp_after_header' ) ?>
- <?php do_action( 'bp_before_container' ) ?>
- <div id="container">
Add Comment
Please, Sign In to add comment