Changeset 1486 for trunk/bp-groups/bp-groups-ajax.php
- Timestamp:
- 05/15/2009 08:32:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-ajax.php
r1473 r1486 22 22 23 23 echo '<li id="uid-' . $user->id . '">'; 24 echo $user->avatar_thumb;25 echo '<h4>' . $user->user_link. '</h4>';26 echo '<span class="activity">' . $user->last_active. '</span>';24 echo attribute_escape( $user->avatar_thumb ); 25 echo '<h4>' . attribute_escape( $user->user_link ) . '</h4>'; 26 echo '<span class="activity">' . attribute_escape( $user->last_active ) . '</span>'; 27 27 echo '<div class="action"> 28 <a class="remove" href="' . wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug . '/' . $_POST['group_id'] . '/invites/remove/' . $user->id, 'groups_invite_uninvite_user' ) . '" id="uid-' . $user->id. '">' . __( 'Remove Invite', 'buddypress' ) . '</a>28 <a class="remove" href="' . wp_nonce_url( $bp->loggedin_user->domain . $bp->groups->slug . '/' . $_POST['group_id'] . '/invites/remove/' . $user->id, 'groups_invite_uninvite_user' ) . '" id="uid-' . attribute_escape( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a> 29 29 </div>'; 30 30 echo '</li>'; … … 89 89 <li> 90 90 <div class="item-avatar"> 91 < img src="<?php echo $group->avatar_thumb ?>" class="avatar" alt="<?php echo $group->name ?> Avatar" />91 <?php echo bp_get_group_avatar_thumb( $group ) ?> 92 92 </div> 93 93 94 94 <div class="item"> 95 <div class="item-title"><a href="<?php echo bp_get_group_permalink( $group ) ?>" title="<?php echo $group->name ?>"><?php echo $group->name?></a></div>95 <div class="item-title"><a href="<?php echo bp_get_group_permalink( $group ) ?>" title="<?php echo bp_get_group_name( $group ) ?>"><?php echo bp_get_group_name( $group ) ?></a></div> 96 96 <div class="item-meta"> 97 97 <span class="activity"> … … 238 238 _e( 'Error joining group', 'buddypress' ); 239 239 } else { 240 echo '<a id="group-' . $group->id. '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';240 echo '<a id="group-' . attribute_escape( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 241 241 } 242 242 … … 248 248 _e( 'Error requesting membership', 'buddypress' ); 249 249 } else { 250 echo '<a id="group-' . $group->id. '" class="membership-requested" rel="membership-requested" title="' . __( 'Membership Requested', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Membership Requested', 'buddypress' ) . '</a>';250 echo '<a id="group-' . attribute_escape( $group->id ) . '" class="membership-requested" rel="membership-requested" title="' . __( 'Membership Requested', 'buddypress' ) . '" href="' . bp_get_group_permalink( $group ) . '">' . __( 'Membership Requested', 'buddypress' ) . '</a>'; 251 251 } 252 252 } … … 260 260 } else { 261 261 if ( 'public' == $group->status ) { 262 echo '<a id="group-' . $group->id. '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';262 echo '<a id="group-' . attribute_escape( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>'; 263 263 } else if ( 'private' == $group->status ) { 264 echo '<a id="group-' . $group->id. '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/request-membership', 'groups_send_membership_request' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';264 echo '<a id="group-' . attribute_escape( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . '/request-membership', 'groups_send_membership_request' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>'; 265 265 } 266 266 }
Note: See TracChangeset
for help on using the changeset viewer.