Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/07/2010 12:22:22 AM (15 years ago)
Author:
apeatling
Message:

Removing theme options and moving the option to show the activity stream on the front page to the normal WordPress Settings > Reading menu. This stops problems caused when choosing a static WordPress page as the front page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/header.php

    r2610 r2612  
    4545
    4646            <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; ?>>
    4848                    <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
    4949                </li>
    5050
    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>
    6155                <?php endif; ?>
    6256
    63                 <li<?php if (  bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
     57                <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
    6458                    <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
    6559                </li>
     
    8377                <?php endif; ?>
    8478
    85                 <?php wp_list_pages( 'title_li=&depth=1' ); ?>
     79                <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
    8680
    8781                <?php do_action( 'bp_nav_items' ); ?>
Note: See TracChangeset for help on using the changeset viewer.