Changeset 4648 for trunk/bp-groups/bp-groups-template.php
- Timestamp:
- 07/12/2011 02:39:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r4646 r4648 654 654 global $groups_template, $bp; 655 655 656 $action = $bp->displayed_user->domain . $bp->groups->slug. '/my-groups/search/';656 $action = $bp->displayed_user->domain . bp_get_groups_slug() . '/my-groups/search/'; 657 657 $label = __('Filter Groups', 'buddypress'); 658 658 $name = 'group-filter-box'; … … 679 679 function bp_group_is_activity_permalink() { 680 680 681 if ( !bp_is_single_item() || !bp_is_ current_component( 'groups') || !bp_is_current_action( bp_get_activity_slug() ) )681 if ( !bp_is_single_item() || !bp_is_groups_component() || !bp_is_current_action( bp_get_activity_slug() ) ) 682 682 return false; 683 683 … … 1377 1377 $group =& $groups_template->group; 1378 1378 1379 return apply_filters( 'bp_get_group_accept_invite_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug. '/invites/accept/' . $group->id, 'groups_accept_invite' ) );1379 return apply_filters( 'bp_get_group_accept_invite_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_groups_slug() . '/invites/accept/' . $group->id, 'groups_accept_invite' ) ); 1380 1380 } 1381 1381 … … 1389 1389 $group =& $groups_template->group; 1390 1390 1391 return apply_filters( 'bp_get_group_reject_invite_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug. '/invites/reject/' . $group->id, 'groups_reject_invite' ) );1391 return apply_filters( 'bp_get_group_reject_invite_link', wp_nonce_url( $bp->loggedin_user->domain . bp_get_groups_slug() . '/invites/reject/' . $group->id, 'groups_reject_invite' ) ); 1392 1392 } 1393 1393 … … 1996 1996 1997 1997 /* Make sure we are in the groups component */ 1998 if ( !bp_is_ current_component( 'groups' ) ||!bp_is_current_action( 'create' ) )1998 if ( !bp_is_groups_component() || !bp_is_current_action( 'create' ) ) 1999 1999 return false; 2000 2000 … … 2152 2152 } 2153 2153 2154 return apply_filters( 'bp_get_group_creation_previous_link', $bp->loggedin_user->domain . $bp->groups->slug. '/create/step/' . array_pop( $previous_steps ) );2154 return apply_filters( 'bp_get_group_creation_previous_link', $bp->loggedin_user->domain . bp_get_groups_slug() . '/create/step/' . array_pop( $previous_steps ) ); 2155 2155 } 2156 2156 … … 2235 2235 global $bp, $create_group_step, $completed_to_step; 2236 2236 ?> 2237 <li<?php if ( !isset($bp->action_variables[0]) || 'recently-active' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/recently-active"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li>2238 <li<?php if ( 'recently-joined' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/recently-joined"><?php _e( 'Recently Joined', 'buddypress' ) ?></a></li>2239 <li<?php if ( 'most-popular' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/most-popular"><?php _e( 'Most Popular', 'buddypress' ) ?></a></li>2240 <li<?php if ( 'admin-of' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/admin-of"><?php _e( 'Administrator Of', 'buddypress' ) ?></a></li>2241 <li<?php if ( 'mod-of' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/mod-of"><?php _e( 'Moderator Of', 'buddypress' ) ?></a></li>2242 <li<?php if ( 'alphabetically' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->groups->slug?>/my-groups/alphabetically"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li>2237 <li<?php if ( !isset($bp->action_variables[0]) || 'recently-active' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/recently-active"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li> 2238 <li<?php if ( 'recently-joined' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/recently-joined"><?php _e( 'Recently Joined', 'buddypress' ) ?></a></li> 2239 <li<?php if ( 'most-popular' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/most-popular"><?php _e( 'Most Popular', 'buddypress' ) ?></a></li> 2240 <li<?php if ( 'admin-of' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/admin-of"><?php _e( 'Administrator Of', 'buddypress' ) ?></a></li> 2241 <li<?php if ( 'mod-of' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/mod-of"><?php _e( 'Moderator Of', 'buddypress' ) ?></a></li> 2242 <li<?php if ( 'alphabetically' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . bp_get_groups_slug() ?>/my-groups/alphabetically"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li> 2243 2243 <?php 2244 2244 do_action( 'groups_header_tabs' ); … … 2276 2276 global $bp; 2277 2277 2278 if ( !bp_is_ current_component( 'groups') || !bp_is_current_action( 'admin' ) )2278 if ( !bp_is_groups_component() || !bp_is_current_action( 'admin' ) ) 2279 2279 return false; 2280 2280
Note: See TracChangeset
for help on using the changeset viewer.