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-friends.php

    r2933 r3069  
    143143        global $current_user; ?>
    144144        <table class="notification-settings" id="friends-notification-settings">
    145                 <tr>
    146                         <th class="icon"></th>
    147                         <th class="title"><?php _e( 'Friends', 'buddypress' ) ?></th>
    148                         <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    149                         <th class="no"><?php _e( 'No', 'buddypress' )?></th>
    150                 </tr>
    151                 <tr>
    152                         <td></td>
    153                         <td><?php _e( 'A member sends you a friendship request', 'buddypress' ) ?></td>
    154                         <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" value="yes" <?php if ( !get_usermeta( $current_user->id,'notification_friends_friendship_request') || 'yes' == get_usermeta( $current_user->id,'notification_friends_friendship_request') ) { ?>checked="checked" <?php } ?>/></td>
    155                         <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" value="no" <?php if ( get_usermeta( $current_user->id,'notification_friends_friendship_request') == 'no' ) { ?>checked="checked" <?php } ?>/></td>
    156                 </tr>
    157                 <tr>
    158                         <td></td>
    159                         <td><?php _e( 'A member accepts your friendship request', 'buddypress' ) ?></td>
    160                         <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="yes" <?php if ( !get_usermeta( $current_user->id,'notification_friends_friendship_accepted') || 'yes' == get_usermeta( $current_user->id,'notification_friends_friendship_accepted') ) { ?>checked="checked" <?php } ?>/></td>
    161                         <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id,'notification_friends_friendship_accepted') ) { ?>checked="checked" <?php } ?>/></td>
    162                 </tr>
    163 
    164                 <?php do_action( 'friends_screen_notification_settings' ); ?>
     145                <thead>
     146                        <tr>
     147                                <th class="icon"></th>
     148                                <th class="title"><?php _e( 'Friends', 'buddypress' ) ?></th>
     149                                <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
     150                                <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     151                        </tr>
     152                </thead>
     153
     154                <tbody>
     155                        <tr>
     156                                <td></td>
     157                                <td><?php _e( 'A member sends you a friendship request', 'buddypress' ) ?></td>
     158                                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" value="yes" <?php if ( !get_usermeta( $current_user->id,'notification_friends_friendship_request') || 'yes' == get_usermeta( $current_user->id,'notification_friends_friendship_request') ) { ?>checked="checked" <?php } ?>/></td>
     159                                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" value="no" <?php if ( get_usermeta( $current_user->id,'notification_friends_friendship_request') == 'no' ) { ?>checked="checked" <?php } ?>/></td>
     160                        </tr>
     161                        <tr>
     162                                <td></td>
     163                                <td><?php _e( 'A member accepts your friendship request', 'buddypress' ) ?></td>
     164                                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="yes" <?php if ( !get_usermeta( $current_user->id,'notification_friends_friendship_accepted') || 'yes' == get_usermeta( $current_user->id,'notification_friends_friendship_accepted') ) { ?>checked="checked" <?php } ?>/></td>
     165                                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php if ( 'no' == get_usermeta( $current_user->id,'notification_friends_friendship_accepted') ) { ?>checked="checked" <?php } ?>/></td>
     166                        </tr>
     167
     168                        <?php do_action( 'friends_screen_notification_settings' ); ?>
     169                </tbody>
    165170        </table>
    166171<?php
Note: See TracChangeset for help on using the changeset viewer.