Changeset 2612 for trunk/bp-themes/bp-default/header.php
- Timestamp:
- 02/07/2010 12:22:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/header.php
r2610 r2612 45 45 46 46 <ul id="nav"> 47 <li<?php if ( bp_is_page( 'home' ) && !is_page() ) : ?> class="selected"<?php endif; ?>>47 <li<?php if ( is_front_page() || !bp_current_component() ) : ?> class="selected"<?php endif; ?>> 48 48 <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> 49 49 </li> 50 50 51 <?php if ( bp_is_active( 'activity' ) ) : ?> 52 <?php if ( 'blog' == bp_dtheme_show_on_frontpage() ) : ?> 53 <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>> 54 <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a> 55 </li> 56 <?php else : ?> 57 <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) || bp_is_blog_page() && !is_front_page() && !is_page() ) : ?> class="selected"<?php endif; ?>> 58 <a href="<?php echo site_url() ?>/<?php echo BP_HOME_BLOG_SLUG ?>/" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a> 59 </li> 60 <?php endif; ?> 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> 61 55 <?php endif; ?> 62 56 63 <li<?php if ( 57 <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>> 64 58 <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a> 65 59 </li> … … 83 77 <?php endif; ?> 84 78 85 <?php wp_list_pages( 'title_li=&depth=1 '); ?>79 <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?> 86 80 87 81 <?php do_action( 'bp_nav_items' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.