Changeset 2740
- Timestamp:
- 02/18/2010 04:46:00 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
bp-core/bp-core-templatetags.php (modified) (1 diff)
-
bp-themes/bp-default/groups/single/home.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2728 r2740 1591 1591 } 1592 1592 1593 function bp_is_group_activity() { 1594 global $bp; 1595 1596 if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'activity' == $bp->current_action ) 1597 return true; 1598 1599 return false; 1600 } 1601 1593 1602 function bp_is_group_forum_topic() { 1594 1603 global $bp; -
trunk/bp-themes/bp-default/groups/single/home.php
r2353 r2740 39 39 <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?> 40 40 41 <?php elseif ( bp_group_is_visible() ) : ?>41 <?php elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) : ?> 42 42 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?> 43 43 44 <?php else : ?>44 <?php elseif ( !bp_group_is_visible() ) : ?> 45 45 <?php /* The group is not visible, show the status message */ ?> 46 46 … … 52 52 53 53 <?php do_action( 'bp_after_group_status_message' ) ?> 54 55 <?php else : ?> 56 <?php 57 /* If nothing sticks, just load a group front template if one exists. */ 58 locate_template( array( 'groups/single/front.php' ), true ); 59 ?> 54 60 <?php endif; ?> 55 61
Note: See TracChangeset
for help on using the changeset viewer.