Skip to:
Content

BuddyPress.org

Changeset 4009


Ignore:
Timestamp:
02/02/2011 07:35:08 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Graceful degradation of groups home component when various components are deactivated on a live site.

Location:
trunk/bp-themes/bp-default
Files:
3 edited

Legend:

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

    r3901 r4009  
    3939                <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ); ?></th>
    4040
    41                 <?php if ( !bp_is_group_forum() ) : ?>
     41                <?php if ( bp_is_directory() ) : ?>
    4242
    43                     <th id="th-group"><?php _e( 'In Group', 'buddypress' ); ?></th>
     43                    <th id="th-group"><?php _e( 'Forum', 'buddypress' ); ?></th>
    4444
    4545                <?php endif; ?>
     
    6767                </td>
    6868
    69                 <?php if ( !bp_is_group_forum() ) : ?>
     69                <?php if ( bp_is_directory() ) : ?>
    7070
    7171                    <td class="td-group">
  • trunk/bp-themes/bp-default/forums/index.php

    r3933 r4009  
    2121            <form action="" method="post" id="forums-search-form" class="dir-form">
    2222
    23                 <h3><?php _e( 'Group Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button show-hide-new" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3>
     23                <h3><?php _e( 'Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button show-hide-new" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3>
    2424
    2525                <div id="forums-dir-search" class="dir-search" role="search">
  • trunk/bp-themes/bp-default/groups/single/home.php

    r3912 r4009  
    4848                    locate_template( array( 'groups/single/activity.php' ), true );
    4949
     50                elseif ( bp_group_is_visible() && bp_is_active( 'forums' ) ) :
     51                    locate_template( array( 'groups/single/forum.php' ), true );
     52
     53                elseif ( bp_group_is_visible() ) :
     54                    locate_template( array( 'groups/single/members.php' ), true );
     55
    5056                elseif ( !bp_group_is_visible() ) :
    5157                    // The group is not visible, show the status message
Note: See TracChangeset for help on using the changeset viewer.