Changeset 11828 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 01/27/2018 01:53:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r11805 r11828 5019 5019 'user_id' => bp_loggedin_user_id(), 5020 5020 'group_id' => false, 5021 'separator' => 'li' 5021 'before' => '', 5022 'separator' => 'li', 5023 'after' => '', 5022 5024 ), 'group_invite_friend_list' ); 5023 5025 … … 5033 5035 $items = array(); 5034 5036 5037 // Build list markup parent elements. 5038 $before = ''; 5039 if ( ! empty( $r['before'] ) ) { 5040 $before = $r['before']; 5041 } 5042 5043 $after = ''; 5044 if ( ! empty( $r['after'] ) ) { 5045 $after = $r['after']; 5046 } 5047 5035 5048 // Get user's friends who are not in this group already. 5036 5049 $friends = friends_get_friends_invite_list( $r['user_id'], $r['group_id'] ); … … 5059 5072 5060 5073 if ( ! empty( $invitable_friends ) && is_array( $invitable_friends ) ) { 5061 $retval = implode( "\n", $invitable_friends );5074 $retval = $before . implode( "\n", $invitable_friends ) . $after; 5062 5075 } else { 5063 5076 $retval = false;
Note: See TracChangeset
for help on using the changeset viewer.