Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/27/2010 12:29:31 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Fixes #2465

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-messages.php

    r2794 r3069  
    237237        global $current_user; ?>
    238238        <table class="notification-settings" id="messages-notification-settings">
    239                 <tr>
    240                         <th class="icon"></th>
    241                         <th class="title"><?php _e( 'Messages', 'buddypress' ) ?></th>
    242                         <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    243                         <th class="no"><?php _e( 'No', 'buddypress' )?></th>
    244                 </tr>
    245                 <tr>
    246                         <td></td>
    247                         <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td>
    248                         <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php if ( !get_usermeta( $current_user->id, 'notification_messages_new_message' ) || 'yes' == get_usermeta( $current_user->id, 'notification_messages_new_message' ) ) { ?>checked="checked" <?php } ?>/></td>
    249                         <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id, 'notification_messages_new_message' ) ) { ?>checked="checked" <?php } ?>/></td>
    250                 </tr>
    251                 <tr>
    252                         <td></td>
    253                         <td><?php _e( 'A new site notice is posted', 'buddypress' ) ?></td>
    254                         <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php if ( !get_usermeta( $current_user->id, 'notification_messages_new_notice' ) || 'yes' == get_usermeta( $current_user->id, 'notification_messages_new_notice' ) ) { ?>checked="checked" <?php } ?>/></td>
    255                         <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id, 'notification_messages_new_notice' ) ) { ?>checked="checked" <?php } ?>/></td>
    256                 </tr>
    257 
    258                 <?php do_action( 'messages_screen_notification_settings' ) ?>
     239                <thead>
     240                        <tr>
     241                                <th class="icon"></th>
     242                                <th class="title"><?php _e( 'Messages', 'buddypress' ) ?></th>
     243                                <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
     244                                <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     245                        </tr>
     246                </thead>
     247
     248                <tbody>
     249                        <tr>
     250                                <td></td>
     251                                <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td>
     252                                <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" value="yes" <?php if ( !get_usermeta( $current_user->id, 'notification_messages_new_message' ) || 'yes' == get_usermeta( $current_user->id, 'notification_messages_new_message' ) ) { ?>checked="checked" <?php } ?>/></td>
     253                                <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id, 'notification_messages_new_message' ) ) { ?>checked="checked" <?php } ?>/></td>
     254                        </tr>
     255                        <tr>
     256                                <td></td>
     257                                <td><?php _e( 'A new site notice is posted', 'buddypress' ) ?></td>
     258                                <td class="yes"><input type="radio" name="notifications[notification_messages_new_notice]" value="yes" <?php if ( !get_usermeta( $current_user->id, 'notification_messages_new_notice' ) || 'yes' == get_usermeta( $current_user->id, 'notification_messages_new_notice' ) ) { ?>checked="checked" <?php } ?>/></td>
     259                                <td class="no"><input type="radio" name="notifications[notification_messages_new_notice]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id, 'notification_messages_new_notice' ) ) { ?>checked="checked" <?php } ?>/></td>
     260                        </tr>
     261
     262                        <?php do_action( 'messages_screen_notification_settings' ) ?>
     263                </tbody>
    259264        </table>
    260265<?php
Note: See TracChangeset for help on using the changeset viewer.