Changeset 4648 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 07/12/2011 02:39:11 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r4618 r4648 1180 1180 if ( $this->visibility == 'public' || ( $this->visibility != 'public' && $bp->groups->current_group->user_has_access ) ) { 1181 1181 if ( $this->enable_nav_item ) { 1182 if ( bp_is_ current_component( 'groups') && $bp->is_single_item ) {1182 if ( bp_is_groups_component() && $bp->is_single_item ) { 1183 1183 bp_core_new_subnav_item( array( 'name' => ( !$this->nav_item_name ) ? $this->name : $this->nav_item_name, 'slug' => $this->slug, 'parent_slug' => $bp->groups->current_group->slug, 'parent_url' => bp_get_group_permalink( $bp->groups->current_group ), 'position' => $this->nav_item_position, 'item_css_id' => 'nav-' . $this->slug, 'screen_function' => array( &$this, '_display_hook' ), 'user_has_access' => $this->enable_nav_item ) ); 1184 1184 } 1185 1185 1186 1186 // When we are viewing the extension display page, set the title and options title 1187 if ( bp_is_ current_component( 'groups') && $bp->is_single_item && $bp->current_action == $this->slug ) {1187 if ( bp_is_groups_component() && $bp->is_single_item && $bp->current_action == $this->slug ) { 1188 1188 add_action( 'bp_template_content_header', create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) ); 1189 1189 add_action( 'bp_template_title', create_function( '', 'echo "' . esc_attr( $this->name ) . '";' ) ); … … 1192 1192 1193 1193 // Hook the group home widget 1194 if ( bp_is_ current_component( 'groups') && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) )1194 if ( bp_is_groups_component() && $bp->is_single_item && ( !$bp->current_action || 'home' == $bp->current_action ) ) 1195 1195 add_action( $this->display_hook, array( &$this, 'widget_display' ) ); 1196 1196 } … … 1201 1201 1202 1202 // Catch the edit screen and forward it to the plugin template 1203 if ( bp_is_ current_component( 'groups') && bp_is_current_action( 'admin' ) && !empty( $bp->action_variables[0] ) && $this->slug == $bp->action_variables[0] ) {1203 if ( bp_is_groups_component() && bp_is_current_action( 'admin' ) && !empty( $bp->action_variables[0] ) && $this->slug == $bp->action_variables[0] ) { 1204 1204 // Check whether the user is saving changes 1205 1205 $this->edit_screen_save();
Note: See TracChangeset
for help on using the changeset viewer.