Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2010 01:44:11 PM (15 years ago)
Author:
apeatling
Message:

Fixing component dependencies within the default theme.

File:
1 edited

Legend:

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

    r2429 r2474  
    4949                </li>
    5050
    51                 <?php if ( 'blog' == bp_dtheme_show_on_frontpage() ) : ?>
    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>
    55                 <?php else : ?>
    56                     <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) || bp_is_blog_page() && !is_front_page() && !is_page() ) : ?> class="selected"<?php endif; ?>>
    57                         <a href="<?php echo site_url() ?>/<?php echo BP_HOME_BLOG_SLUG ?>/" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a>
    58                     </li>
     51                <?php if ( !bp_is_deactivated('bp-activity.php') ) : ?>
     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; ?>
    5961                <?php endif; ?>
    6062
Note: See TracChangeset for help on using the changeset viewer.