Changeset 13808 for trunk/src/bp-groups/bp-groups-notifications.php
- Timestamp:
- 04/26/2024 05:44:26 AM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-notifications.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-notifications.php
r13503 r13808 1161 1161 function groups_screen_notification_settings() { 1162 1162 1163 if ( ! $group_invite = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_invite', true ) )1163 if ( ! $group_invite = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_invite', true ) ) { 1164 1164 $group_invite = 'yes'; 1165 1166 if ( !$group_update = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_group_updated', true ) ) 1165 } 1166 1167 if ( ! $group_update = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_group_updated', true ) ) { 1167 1168 $group_update = 'yes'; 1168 1169 if ( !$group_promo = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_admin_promotion', true ) ) 1169 } 1170 1171 if ( ! $group_promo = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_admin_promotion', true ) ) { 1170 1172 $group_promo = 'yes'; 1171 1172 if ( !$group_request = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_membership_request', true ) ) 1173 } 1174 1175 if ( ! $group_request = bp_get_user_meta( bp_displayed_user_id(), 'notification_groups_membership_request', true ) ) { 1173 1176 $group_request = 'yes'; 1177 } 1174 1178 1175 1179 if ( ! $group_request_completed = bp_get_user_meta( bp_displayed_user_id(), 'notification_membership_request_completed', true ) ) { … … 1182 1186 <tr> 1183 1187 <th class="icon"></th> 1184 <th class="title"><?php _ex( 'Groups', 'Group settings on notification settings page', 'buddypress' ) ?></th>1185 <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>1186 <th class="no"><?php _e( 'No', 'buddypress' )?></th>1188 <th class="title"><?php echo esc_html_x( 'Groups', 'Group settings on notification settings page', 'buddypress' ) ?></th> 1189 <th class="yes"><?php esc_html_e( 'Yes', 'buddypress' ) ?></th> 1190 <th class="no"><?php esc_html_e( 'No', 'buddypress' )?></th> 1187 1191 </tr> 1188 1192 </thead> … … 1191 1195 <tr id="groups-notification-settings-invitation"> 1192 1196 <td></td> 1193 <td><?php _ex( 'A member invites you to join a group', 'group settings on notification settings page','buddypress' ) ?></td>1197 <td><?php echo esc_html_x( 'A member invites you to join a group', 'group settings on notification settings page','buddypress' ) ?></td> 1194 1198 <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-yes" value="yes" <?php checked( $group_invite, 'yes', true ) ?>/><label for="notification-groups-invite-yes" class="bp-screen-reader-text"><?php 1195 1199 /* translators: accessibility text */ 1196 _e( 'Yes, send email', 'buddypress' );1200 esc_html_e( 'Yes, send email', 'buddypress' ); 1197 1201 ?></label></td> 1198 1202 <td class="no"><input type="radio" name="notifications[notification_groups_invite]" id="notification-groups-invite-no" value="no" <?php checked( $group_invite, 'no', true ) ?>/><label for="notification-groups-invite-no" class="bp-screen-reader-text"><?php 1199 1203 /* translators: accessibility text */ 1200 _e( 'No, do not send email', 'buddypress' );1204 esc_html_e( 'No, do not send email', 'buddypress' ); 1201 1205 ?></label></td> 1202 1206 </tr> 1203 1207 <tr id="groups-notification-settings-info-updated"> 1204 1208 <td></td> 1205 <td><?php _ex( 'Group information is updated', 'group settings on notification settings page', 'buddypress' ) ?></td>1209 <td><?php echo esc_html_x( 'Group information is updated', 'group settings on notification settings page', 'buddypress' ) ?></td> 1206 1210 <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-yes" value="yes" <?php checked( $group_update, 'yes', true ) ?>/><label for="notification-groups-group-updated-yes" class="bp-screen-reader-text"><?php 1207 1211 /* translators: accessibility text */ 1208 _e( 'Yes, send email', 'buddypress' );1212 esc_html_e( 'Yes, send email', 'buddypress' ); 1209 1213 ?></label></td> 1210 1214 <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" id="notification-groups-group-updated-no" value="no" <?php checked( $group_update, 'no', true ) ?>/><label for="notification-groups-group-updated-no" class="bp-screen-reader-text"><?php 1211 1215 /* translators: accessibility text */ 1212 _e( 'No, do not send email', 'buddypress' );1216 esc_html_e( 'No, do not send email', 'buddypress' ); 1213 1217 ?></label></td> 1214 1218 </tr> 1215 1219 <tr id="groups-notification-settings-promoted"> 1216 1220 <td></td> 1217 <td><?php _ex( 'You are promoted to a group administrator or moderator', 'group settings on notification settings page', 'buddypress' ) ?></td>1221 <td><?php echo esc_html_x( 'You are promoted to a group administrator or moderator', 'group settings on notification settings page', 'buddypress' ) ?></td> 1218 1222 <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-yes" value="yes" <?php checked( $group_promo, 'yes', true ) ?>/><label for="notification-groups-admin-promotion-yes" class="bp-screen-reader-text"><?php 1219 1223 /* translators: accessibility text */ 1220 _e( 'Yes, send email', 'buddypress' );1224 esc_html_e( 'Yes, send email', 'buddypress' ); 1221 1225 ?></label></td> 1222 1226 <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" id="notification-groups-admin-promotion-no" value="no" <?php checked( $group_promo, 'no', true ) ?>/><label for="notification-groups-admin-promotion-no" class="bp-screen-reader-text"><?php 1223 1227 /* translators: accessibility text */ 1224 _e( 'No, do not send email', 'buddypress' );1228 esc_html_e( 'No, do not send email', 'buddypress' ); 1225 1229 ?></label></td> 1226 1230 </tr> 1227 1231 <tr id="groups-notification-settings-request"> 1228 1232 <td></td> 1229 <td><?php _ex( 'A member requests to join a private group for which you are an admin', 'group settings on notification settings page', 'buddypress' ) ?></td>1233 <td><?php echo esc_html_x( 'A member requests to join a private group for which you are an admin', 'group settings on notification settings page', 'buddypress' ) ?></td> 1230 1234 <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-yes" value="yes" <?php checked( $group_request, 'yes', true ) ?>/><label for="notification-groups-membership-request-yes" class="bp-screen-reader-text"><?php 1231 1235 /* translators: accessibility text */ 1232 _e( 'Yes, send email', 'buddypress' );1236 esc_html_e( 'Yes, send email', 'buddypress' ); 1233 1237 ?></label></td> 1234 1238 <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" id="notification-groups-membership-request-no" value="no" <?php checked( $group_request, 'no', true ) ?>/><label for="notification-groups-membership-request-no" class="bp-screen-reader-text"><?php 1235 1239 /* translators: accessibility text */ 1236 _e( 'No, do not send email', 'buddypress' );1240 esc_html_e( 'No, do not send email', 'buddypress' ); 1237 1241 ?></label></td> 1238 1242 </tr> 1239 1243 <tr id="groups-notification-settings-request-completed"> 1240 1244 <td></td> 1241 <td><?php _ex( 'Your request to join a group has been approved or denied', 'group settings on notification settings page', 'buddypress' ) ?></td>1245 <td><?php echo esc_html_x( 'Your request to join a group has been approved or denied', 'group settings on notification settings page', 'buddypress' ) ?></td> 1242 1246 <td class="yes"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-yes" value="yes" <?php checked( $group_request_completed, 'yes', true ) ?>/><label for="notification-groups-membership-request-completed-yes" class="bp-screen-reader-text"><?php 1243 1247 /* translators: accessibility text */ 1244 _e( 'Yes, send email', 'buddypress' );1248 esc_html_e( 'Yes, send email', 'buddypress' ); 1245 1249 ?></label></td> 1246 1250 <td class="no"><input type="radio" name="notifications[notification_membership_request_completed]" id="notification-groups-membership-request-completed-no" value="no" <?php checked( $group_request_completed, 'no', true ) ?>/><label for="notification-groups-membership-request-completed-no" class="bp-screen-reader-text"><?php 1247 1251 /* translators: accessibility text */ 1248 _e( 'No, do not send email', 'buddypress' );1252 esc_html_e( 'No, do not send email', 'buddypress' ); 1249 1253 ?></label></td> 1250 1254 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)