- Timestamp:
- 04/29/2021 08:31:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-invitations-list-table.php
r12927 r12930 67 67 68 68 $args = array( 69 'invite_sent' => 'all',70 'accepted' => 'all',71 'search_terms' => $search,72 'order_by' => 'date_modified',73 'sort_order' => 'DESC',74 'page' => $paged,75 'per_page' => $per_page,69 'invite_sent' => 'all', 70 'accepted' => 'all', 71 'search_terms' => $search, 72 'order_by' => 'date_modified', 73 'sort_order' => 'DESC', 74 'page' => $paged, 75 'per_page' => $per_page, 76 76 ); 77 77 … … 123 123 ?> 124 124 125 <h2 class="screen-reader-text"><?php 125 <h2 class="screen-reader-text"> 126 <?php 126 127 /* translators: accessibility text */ 127 128 esc_html_e( 'Filter invitations list', 'buddypress' ); 128 ?></h2> 129 ?> 130 </h2> 129 131 <ul class="subsubsub"> 130 132 <li class="all"> … … 199 201 * @param array $value Array of columns to display. 200 202 */ 201 return apply_filters( 'bp_members_invitations_list_columns', array( 202 'cb' => '<input type="checkbox" />', 203 'invitee_email' => __( 'Invitee', 'buddypress' ), 204 'username' => __( 'Inviter', 'buddypress' ), 205 'inviter_registered_date' => __( 'Inviter Registered', 'buddypress' ), 206 'invitation_date_modified' => __( 'Date Modified', 'buddypress' ), 207 'invitation_sent' => __( 'Email Sent', 'buddypress' ), 208 'invitation_accepted' => __( 'Accepted', 'buddypress' ) 209 ) ); 203 return apply_filters( 204 'bp_members_invitations_list_columns', 205 array( 206 'cb' => '<input type="checkbox" />', 207 'invitee_email' => __( 'Invitee', 'buddypress' ), 208 'username' => __( 'Inviter', 'buddypress' ), 209 'inviter_registered_date' => __( 'Inviter Registered', 'buddypress' ), 210 'invitation_date_modified' => __( 'Date Modified', 'buddypress' ), 211 'invitation_sent' => __( 'Email Sent', 'buddypress' ), 212 'invitation_accepted' => __( 'Accepted', 'buddypress' ) 213 ) 214 ); 210 215 } 211 216 … … 239 244 esc_html_e( 'No invitations found.', 'buddypress' ); 240 245 } else { 241 $link = sprintf( '<a href="%1$s">%2$s</a>', esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), 'admin.php' ) ) ), esc_html__( 'Edit settings', 'buddypress' ) ); 246 $link = sprintf( 247 '<a href="%1$s">%2$s</a>', 248 esc_url( bp_get_admin_url( add_query_arg( array( 'page' => 'bp-settings' ), 'admin.php' ) ) ), 249 esc_html__( 'Edit settings', 'buddypress' ) 250 ); 242 251 243 252 /* translators: %s: url to site settings */ … … 302 311 */ 303 312 public function column_cb( $invite = null ) { 304 ?> 305 <label class="screen-reader-text" for="invitation_<?php echo intval( $invite->id ); ?>"><?php 306 /* translators: accessibility text */ 307 printf( esc_html__( 'Select invitation: %s', 'buddypress' ), $invite->id ); 308 ?></label> 313 ?> 314 <label class="screen-reader-text" for="invitation_<?php echo intval( $invite->id ); ?>"> 315 <?php 316 /* translators: accessibility text */ 317 printf( esc_html__( 'Select invitation: %s', 'buddypress' ), $invite->id ); 318 ?> 319 </label> 309 320 <input type="checkbox" id="invitation_<?php echo intval( $invite->id ) ?>" name="invite_ids[]" value="<?php echo esc_attr( $invite->id ) ?>" /> 310 321 <?php
Note: See TracChangeset
for help on using the changeset viewer.