Changeset 3633 for trunk/bp-messages.php
- Timestamp:
- 12/31/2010 06:05:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-messages.php
r3620 r3633 168 168 169 169 function messages_screen_notification_settings() { 170 global $bp; 171 172 ?> 173 170 global $bp; 171 172 $new_messages = get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ); 173 if ( !$new_messages ) 174 $new_messages = 'yes'; 175 176 $new_notices = get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ); 177 if ( !$new_notices ) 178 $new_notices = 'yes'; 179 ?> 174 180 <table class="notification-settings zebra" id="messages-notification-settings"> 175 181 <thead> … … 186 192 <td></td> 187 193 <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td> 188 <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php }?>/></td>189 <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_message', true ) ) { ?>checked="checked" <?php }?>/></td>194 <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php checked( $new_messages, 'yes', true ) ?>/></td> 195 <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php checked( $new_messages, 'no', true ) ?>/></td> 190 196 </tr> 191 197 <tr id="messages-notification-settings-new-site-notice"> 192 198 <td></td> 193 199 <td><?php _e( 'A new site notice is posted', 'buddypress' ) ?></td> 194 <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php if ( !get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) || 'yes' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php }?>/></td>195 <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( 'no' == get_user_meta( $bp->displayed_user->id, 'notification_messages_new_notice', true ) ) { ?>checked="checked" <?php }?>/></td>200 <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php checked( $new_notices, 'yes', true ) ?>/></td> 201 <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php checked( $new_notices, 'no', true ) ?>/></td> 196 202 </tr> 197 203
Note: See TracChangeset
for help on using the changeset viewer.