Skip to:
Content

BuddyPress.org

Changeset 3592


Ignore:
Timestamp:
12/27/2010 10:57:31 PM (16 years ago)
Author:
djpaul
Message:

Removes trailing whitespace. Fixes #2965, props cnorris23

Location:
trunk
Files:
43 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r3580 r3592  
    509509 * @package BuddyPress Activity
    510510 * @since 1.3
    511  * 
     511 *
    512512 * @param $content The content of the activity, usually found in $activity->content
    513513 * @return array $usernames Array of the found usernames that match existing users
    … …  
    516516        $pattern = '/[@]+([A-Za-z0-9-_\.]+)/';
    517517        preg_match_all( $pattern, $content, $usernames );
    518        
     518
    519519        // Make sure there's only one instance of each username
    520520        if ( !$usernames = array_unique( $usernames[1] ) )
    521521                return false;
    522                
     522
    523523        return $usernames;
    524524}
    … …  
    531531 * @package BuddyPress Activity
    532532 * @since 1.3
    533  * 
     533 *
    534534 * @param $activity_id The unique id for the activity item
    535535 */
    536536function bp_activity_reduce_mention_count( $activity_id ) {
    537537        $activity = new BP_Activity_Activity( $activity_id );
    538        
    539         if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {     
     538
     539        if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {
    540540                include_once( ABSPATH . WPINC . '/registration.php' );
    541                
    542                 foreach( (array)$usernames as $username ) { 
     541
     542                foreach( (array)$usernames as $username ) {
    543543                        if ( !$user_id = username_exists( $username ) )
    544544                                continue;
    545        
     545
    546546                        // Decrease the number of new @ mentions for the user
    547547                        $new_mention_count = (int)get_user_meta( $user_id, 'bp_new_mention_count', true );
    … …  
    578578                        } else {
    579579                                $user_fullname = bp_core_get_user_displayname( $poster_user_id );
    580                                
     580
    581581                                return apply_filters( 'bp_activity_single_at_mentions_notification', '<a href="' . $at_mention_link . '" title="' . $at_mention_title . '">' . sprintf( __( '%1$s mentioned you in an activity update', 'buddypress' ), $user_fullname ) . '</a>', $at_mention_link, $total_items, $activity_id, $poster_user_id );
    582582                        }
    … …  
    999999
    10001000                        $image = '<img src="' . esc_attr( $src ) . '" width="' . $new_width . '" height="' . $new_height . '" alt="' . __( 'Thumbnail', 'buddypress' ) . '" class="align-left thumbnail" />';
    1001                        
     1001
    10021002                        if ( !empty( $link ) ) {
    10031003                                $image = '<a href="' . $link . '">' . $image . '</a>';
    … …  
    12241224/**
    12251225 * updates_register_activity_actions()
    1226  * 
     1226 *
    12271227 * Register the activity stream actions for updates
    1228  * 
     1228 *
    12291229 * @global array $bp
    12301230 */
  • trunk/bp-activity/bp-activity-filters.php

    r3494 r3592  
    110110 *
    111111 * @package BuddyPress Activity
    112  * 
     112 *
    113113 * @param string $content The activity content
    114114 */
  • trunk/bp-activity/bp-activity-notifications.php

    r3403 r3592  
    1515                if ( !$receiver_user_id = bp_core_get_userid( $username ) )
    1616                        continue;
    17                        
    18                 bp_core_add_notification( $activity_id, $receiver_user_id, 'activity', 'new_at_mention', $poster_user_id ); 
     17
     18                bp_core_add_notification( $activity_id, $receiver_user_id, 'activity', 'new_at_mention', $poster_user_id );
    1919
    2020                // Now email the user with the contents of the message (if they have enabled email notifications)
    … …  
    5454                }
    5555        }
    56        
     56
    5757        do_action( 'bp_activity_sent_mention_email', $usernames, $subject, $message, $content, $poster_user_id, $activity_id );
    5858}
    … …  
    9898
    9999                wp_mail( $to, $subject, $message );
    100                
     100
    101101                do_action( 'bp_activity_sent_reply_to_update_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params );
    102102        }
    … …  
    143143
    144144                wp_mail( $to, $subject, $message );
    145                
     145
    146146                do_action( 'bp_activity_sent_reply_to_reply_email', $original_activity->user_id, $subject, $message, $comment_id, $commenter_id, $params );
    147147        }
  • trunk/bp-activity/bp-activity-templatetags.php

    r3580 r3592  
    136136 * bp_has_activities()
    137137 *
    138  * Initializes the activity loop. 
     138 * Initializes the activity loop.
    139139 *
    140140 * Based on the $args passed, bp_has_activities() populates the $activities_template global.
    … …  
    174174                        $show_hidden = true;
    175175        }
    176        
     176
    177177        // The default scope should recognize custom slugs
    178178        if ( array_key_exists( $bp->current_action, (array)$bp->active_components ) ) {
    … …  
    959959}
    960960
    961 function bp_activity_can_favorite() {   
     961function bp_activity_can_favorite() {
    962962        $can_favorite = true;
    963        
     963
    964964        return apply_filters( 'bp_activity_can_favorite', $can_favorite );
    965965}
    … …  
    10481048        echo bp_get_member_activity_feed_link();
    10491049}
    1050 function bp_activities_member_rss_link() { 
    1051         echo bp_get_member_activity_feed_link(); 
     1050function bp_activities_member_rss_link() {
     1051        echo bp_get_member_activity_feed_link();
    10521052}
    10531053
  • trunk/bp-blogs/bp-blogs-classes.php

    r3578 r3592  
    112112                        $blog_ids[] = $blog->blog_id;
    113113                }
    114                
     114
    115115                $blog_ids = $wpdb->escape( join( ',', (array)$blog_ids ) );
    116116                $paged_blogs = BP_Blogs_Blog::get_blog_extras( &$paged_blogs, $blog_ids, $type );
  • trunk/bp-core.php

    r3566 r3592  
    483483
    484484                $wpdb->update( $wpdb->users, array( 'user_status' => $is_spam ), array( 'ID' => $bp->displayed_user->id ) );
    485                
     485
    486486                if ( $is_spam )
    487487                        bp_core_add_message( __( 'User marked as spammer. Spam users are visible only to site admins.', 'buddypress' ) );
    … …  
    492492                if ( $is_spam && function_exists( 'bp_activity_hide_user_activity' ) )
    493493                        bp_activity_hide_user_activity( $bp->displayed_user->id );
    494                
     494
    495495                // We need a special hook for is_spam so that components can delete data at spam time
    496496                if ( $is_spam )
    … …  
    20052005 * hook in to.
    20062006 */
    2007  
     2007
    20082008/**
    20092009 * bp_include()
  • trunk/bp-core/admin/bp-core-schema.php

    r3550 r3592  
    228228                            KEY is_required (is_required)
    229229                           ) {$charset_collate};";
    230                
     230
    231231        $sql[] = "CREATE TABLE {$wpdb->base_prefix}bp_xprofile_data (
    232232                            id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
  • trunk/bp-core/admin/bp-core-upgrade.php

    r3550 r3592  
    1010// Install site options on activation
    1111bp_core_activate_site_options( array( 'bp-disable-account-deletion' => 0, 'bp-disable-avatar-uploads' => 0, 'bp-disable-blogforum-comments' => 0,  'bp-disable-forum-directory' => 0,  'bp-disable-profile-sync' => 0 ) );
    12  
     12
    1313/**
    1414 * bp_core_activate_site_options()
    … …  
    5656                        if ( $this->current_version = get_option( 'bp-db-version' ) )
    5757                                $this->is_network_activate = true;
    58                
     58
    5959                $this->new_version = constant( 'BP_DB_VERSION' );
    6060                $this->setup_type = ( empty( $this->current_version ) && !(int)get_site_option( 'bp-core-db-version' ) ) ? 'new' : 'upgrade';
    … …  
    104104                } else {
    105105                        // Upgrade wizard steps
    106                        
     106
    107107                        if ( $this->is_network_activate )
    108108                                $steps[] = __( 'Multisite Upgrade', 'buddypress' );
    109                        
     109
    110110                        if ( $this->current_version < $this->new_version )
    111111                                $steps[] = __( 'Database Upgrade', 'buddypress' );
    … …  
    243243        <?php
    244244        }
    245        
     245
    246246        function step_ms_upgrade() {
    247247                if ( !current_user_can( 'activate_plugins' ) )
    … …  
    252252                else
    253253                        $blogs_slug = __( 'blogs', 'buddypress' );
    254                
     254
    255255                if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() )
    256256                        $existing_pages = get_blog_option( BP_ROOT_BLOG, 'bp-pages' );
    … …  
    262262                        <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    263263                </div>
    264                
     264
    265265                <p><?php printf( __( 'It looks like you have just activated WordPress Multisite mode, which allows members of your BuddyPress community to have their own WordPress blogs. You can enable or disable this feature at any time at <a href="%s">Network Options</a>.', 'buddypress' ), admin_url( 'ms-options.php' ) ); ?></p>
    266                
     266
    267267                <p><?php _e( "Please select the WordPress page you would like to use to display the blog directory. You can either choose an existing page or let BuddyPress auto-create a page for you. If you'd like to manually create pages, please go ahead and do that now, you can come back to this step once you are finished.", 'buddypress' ) ?></p>
    268268
    … …  
    281281                                </td>
    282282                        </tr>
    283                        
     283
    284284                </table>
    285                
     285
    286286                <p><?php _e( 'Would you like to enable blog tracking, which tracks blog activity across your network?', 'buddypress' ); ?></p>
    287                
     287
    288288                <div class="left-col">
    289                        
     289
    290290                        <div class="component">
    291291                                <h5><?php _e( "Blog Tracking", 'buddypress' ) ?></h5>
    … …  
    298298                                <img src="<?php echo plugins_url( 'buddypress/screenshot-7.gif' ) ?>" alt="Activity Streams" />
    299299                                        <p><?php _e( "Track new blogs, new posts and new comments across your entire blog network.", 'buddypress' ) ?></p>
    300                         </div>         
    301                 </div>
    302                
     300                        </div>
     301                </div>
     302
    303303                <div class="submit clear">
    304304                        <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    … …  
    308308                        <?php wp_nonce_field( 'bpwizard_ms_upgrade' ) ?>
    309309                </div>
    310                
     310
    311311                <script type="text/javascript">
    312312                        jQuery('select').click( function() {
    … …  
    838838                                if ( $current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )
    839839                                        switch_to_blog( BP_ROOT_BLOG );
    840        
     840
    841841                                $existing_pages = get_option( 'bp-pages' );
    842842
    843843                                $bp_pages = $this->setup_pages( (array)$_POST['bp_pages'] );
    844                                
     844
    845845                                $bp_pages = array_merge( (array)$existing_pages, (array)$bp_pages );
    846        
     846
    847847                                update_option( 'bp-pages', $bp_pages );
    848848
    849849                                if ( $current_blog->blog_id != BP_ROOT_BLOG )
    850850                                        restore_current_blog();
    851                        
     851
    852852                                unset( $disabled['bp-blogs.php'] );
    853                                
     853
    854854                                bp_core_install( $disabled );
    855855                        }
    856                        
     856
    857857                        update_site_option( 'bp-deactivated-components', $disabled );
    858858
    … …  
    10451045                return false;
    10461046        }
    1047        
     1047
    10481048        function setup_pages( $pages ) {
    10491049                foreach ( $pages as $key => $value ) {
    … …  
    10591059                        }
    10601060                }
    1061                
     1061
    10621062                return $bp_pages;
    10631063        }
  • trunk/bp-core/bp-core-avatars.php

    r3465 r3592  
    485485function bp_core_fetch_avatar_filter( $avatar, $user, $size, $default, $alt ) {
    486486        global $pagenow;
    487        
     487
    488488        // Do not filter if inside WordPress options page
    489489        if ( 'options-discussion.php' == $pagenow )
    490490                return $avatar;
    491        
     491
    492492        // If passed an object, assume $user->user_id
    493493        if ( is_object( $user ) )
  • trunk/bp-core/bp-core-catchuri.php

    r3583 r3592  
    6666        // Running off blog other than root
    6767        if ( defined( 'BP_ENABLE_MULTIBLOG' ) || 1 != BP_ROOT_BLOG ) {
    68  
     68
    6969                // Any subdirectory names must be removed from $bp_uri.
    7070                // This includes two cases: (1) when WP is installed in a subdirectory,
    … …  
    7474                        foreach( $chunks as $key => $chunk ) {
    7575                                $bkey = array_search( $chunk, $bp_uri );
    76  
     76
    7777                                if ( $bkey !== false )
    7878                                        unset( $bp_uri[$bkey] );
    79  
     79
    8080                                $bp_uri = array_values( $bp_uri );
    8181                        }
    … …  
    141141                unset( $uri_chunks );
    142142        }
    143        
     143
    144144        // Search doesn't have an associated page, so we check for it separately
    145145        if ( !empty( $bp_uri[0] ) && BP_SEARCH_SLUG == $bp_uri[0] )
    146146                $matches[] = 1;
    147                
     147
    148148        // This is not a BuddyPress page, so just return.
    149149        if ( !isset( $matches ) )
  • trunk/bp-core/bp-core-classes.php

    r3555 r3592  
    141141                if ( 'alphabetical' == $type )
    142142                        $sql['where_alpha'] = "AND pd.field_id = 1";
    143                
     143
    144144                if ( !empty( $exclude ) )
    145145                        $sql['where_exclude'] = "AND u.ID NOT IN ({$exclude})";
    … …  
    260260                $total_users_sql = apply_filters( 'bp_core_users_by_letter_count_sql', $wpdb->prepare( "SELECT COUNT(DISTINCT u.ID) FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id LEFT JOIN {$bp->profile->table_name_fields} pf ON pd.field_id = pf.id WHERE {$status_sql} AND pf.name = %s {$exclude_sql} AND pd.value LIKE '$letter%%'  ORDER BY pd.value ASC", BP_XPROFILE_FULLNAME_FIELD_NAME ), $letter );
    261261                $paged_users_sql = apply_filters( 'bp_core_users_by_letter_sql', $wpdb->prepare( "SELECT DISTINCT u.ID as id, u.user_registered, u.user_nicename, u.user_login, u.user_email FROM " . CUSTOM_USER_TABLE . " u LEFT JOIN {$bp->profile->table_name_data} pd ON u.ID = pd.user_id LEFT JOIN {$bp->profile->table_name_fields} pf ON pd.field_id = pf.id WHERE {$status_sql} AND pf.name = %s {$exclude_sql} AND pd.value LIKE '$letter%%' ORDER BY pd.value ASC{$pag_sql}", BP_XPROFILE_FULLNAME_FIELD_NAME ), $letter, $pag_sql );
    262                
     262
    263263                $total_users = $wpdb->get_var( $total_users_sql );
    264264                $paged_users = $wpdb->get_results( $paged_users_sql );
  • trunk/bp-core/bp-core-filters.php

    r3557 r3592  
    206206
    207207        wp_mail( $to, $subject, $message, $message_headers );
    208        
     208
    209209        do_action( 'bp_core_sent_blog_signup_email', $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
    210210
  • trunk/bp-core/bp-core-settings.php

    r3578 r3592  
    2424        if ( !is_super_admin() && empty( $bp->site_options['bp-disable-account-deletion'] ) )
    2525                bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_my_profile() ) );
    26        
     26
    2727        do_action( 'bp_core_settings_setup_nav' );
    2828}
    … …  
    4545
    4646                // Form has been submitted and nonce checks out, lets do it.
    47                
     47
    4848                // Validate the user again for the current password when making a big change
    4949                if ( !empty( $_POST['pwd'] ) && $_POST['pwd'] != '' && wp_check_password($_POST['pwd'], $current_user->user_pass, $current_user->ID) ) {
    50  
     50
    5151                        // Make sure changing an email address does not already exist
    5252                        if ( $_POST['email'] != '' ) {
    53  
     53
    5454                                // What is missing from the profile page vs signup - lets double check the goodies
    5555                                $user_email = sanitize_email( wp_specialchars( trim( $_POST['email'] ) ) );
    56  
     56
    5757                                if ( !is_email( $user_email ) )
    5858                                        $email_error = true;
    59  
     59
    6060                                $limited_email_domains = get_site_option( 'limited_email_domains', 'buddypress' );
    61  
     61
    6262                                if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) {
    6363                                        $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) );
    64  
     64
    6565                                        if ( in_array( $emaildomain, (array)$limited_email_domains ) == false ) {
    6666                                                $email_error = true;
    67                                                
     67
    6868                                        }
    6969                                }
    70  
     70
    7171                                if ( !$email_error && $current_user->user_email != $user_email  ) {
    72                                
     72
    7373                                        //we don't want email dups in the system
    7474                                        if ( email_exists( $user_email ) )
    7575                                                $email_error = true;
    76                                                
     76
    7777                                        if (!$email_error)
    7878                                                $current_user->user_email = $user_email;
    7979                                }
    8080                        }
    81  
     81
    8282                        if ( $_POST['pass1'] != '' && $_POST['pass2'] != '' ) {
    83                        
     83
    8484                                if ( $_POST['pass1'] == $_POST['pass2'] && !strpos( " " . $_POST['pass1'], "\\" ) )
    8585                                        $current_user->user_pass = $_POST['pass1'];
    8686                                else
    8787                                        $pass_error = true;
    88  
     88
    8989                        } else if ( empty( $_POST['pass1'] ) && !empty( $_POST['pass2'] ) || !empty( $_POST['pass1'] ) && empty( $_POST['pass2'] ) ) {
    9090                                $pass_error = true;
    … …  
    9292                                unset( $current_user->user_pass );
    9393                        }
    94  
     94
    9595                        if ( !$email_error && !$pass_error && wp_update_user( get_object_vars( $current_user ) ) )
    9696                                $bp_settings_updated = true;
    97                        
     97
    9898                } else {
    9999                        $pwd_error = true;
    100100                }
    101                
     101
    102102                do_action( 'bp_core_general_settings_after_save' );
    103103        }
    … …  
    127127                </div>
    128128        <?php } ?>
    129        
     129
    130130        <?php if ( $pwd_error && !$bp_settings_updated ) { ?>
    131131                <div id="message" class="error fade">
    … …  
    134134        <?php } ?>
    135135
    136         <?php 
     136        <?php
    137137        if ( $email_error && !$bp_settings_updated ) { ?>
    138138                <div id="message" class="error fade">
    … …  
    153153                <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'New Password', 'buddypress' ) ?><br />
    154154                <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small" /> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ) ?>
    155                
     155
    156156                <?php do_action( 'bp_core_general_settings_before_submit' ) ?>
    157157
    … …  
    159159                        <input type="submit" name="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="submit" class="auto" />
    160160                </div>
    161                
     161
    162162                <?php do_action( 'bp_core_general_settings_after_submit' ) ?>
    163163
    … …  
    184184
    185185                $bp_settings_updated = true;
    186                
     186
    187187                do_action( 'bp_core_notification_settings_after_save' );
    188188        }
    … …  
    217217
    218218                <?php do_action( 'bp_core_notification_settings_after_submit' ) ?>
    219                
     219
    220220                <?php wp_nonce_field('bp_settings_notifications') ?>
    221221
    … …  
    257257
    258258                <?php do_action( 'bp_core_delete_account_before_submit' ) ?>
    259                
     259
    260260                <div class="submit">
    261261                        <input type="submit" disabled="disabled" value="<?php _e( 'Delete My Account', 'buddypress' ) ?> &rarr;" id="delete-account-button" name="delete-account-button" />
    262262                </div>
    263                
     263
    264264                <?php do_action( 'bp_core_delete_account_after_submit' ) ?>
    265265
  • trunk/bp-core/bp-core-signup.php

    r3557 r3592  
    1616
    1717        $bp->is_directory = false;
    18        
     18
    1919        if ( bp_is_component_front_page( 'register' ) && ( is_user_logged_in() || !bp_get_signup_allowed() ) )
    2020                bp_core_redirect( $bp->root_domain . '/' . $bp->members->slug );
    … …  
    326326        if ( defined( 'BP_ACTIVATION_SLUG' ) )
    327327                $bp_component_slugs[] = BP_ACTIVATION_SLUG;
    328        
     328
    329329        // Add our slugs to the array and allow them to be filtered
    330330        $filtered_illegal_names = apply_filters( 'bp_core_illegal_usernames', array_merge( array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator' ), $bp_component_slugs ) );
    … …  
    635635
    636636        wp_mail( $to, $subject, $message, $message_headers );
    637        
     637
    638638        do_action( 'bp_core_sent_user_validation_email', $admin_email, $subject, $message, $user_id, $user_email, $key );
    639639}
  • trunk/bp-core/bp-core-templatetags.php

    r3564 r3592  
    705705        function bp_get_avatar_admin_step() {
    706706                global $bp;
    707                
     707
    708708                if ( isset( $bp->avatar_admin->step ) )
    709709                        $step = $bp->avatar_admin->step;
    … …  
    719719        function bp_get_avatar_to_crop() {
    720720                global $bp;
    721                
     721
    722722                if ( isset( $bp->avatar_admin->image->url ) )
    723723                        $url = $bp->avatar_admin->image->url;
    … …  
    10241024
    10251025        $options = array();
    1026        
     1026
    10271027        if ( bp_is_active( 'xprofile' ) )
    10281028                $options['members'] = __( 'Members', 'buddypress' );
    … …  
    15311531        else
    15321532                $path = $current_blog->path;
    1533                
     1533
    15341534        if ( 'page' != get_option( 'show_on_front' ) || !$component || empty( $bp->pages->{$component} ) || $_SERVER['REQUEST_URI'] != $path )
    15351535                return false;
  • trunk/bp-core/bp-core-widgets.php

    r3477 r3592  
    6464                                                                <?php
    6565                                                                        if ( 'newest' == $instance['member_default'] )
    66                                                                                 bp_member_registered();                                                         
     66                                                                                bp_member_registered();
    6767                                                                        if ( 'active' == $instance['member_default'] )
    6868                                                                                bp_member_last_active();
    … …  
    108108                );
    109109                $instance = wp_parse_args( (array) $instance, $defaults );
    110                
     110
    111111                $title = strip_tags( $instance['title'] );
    112112                $max_members = strip_tags( $instance['max_members'] );
    … …  
    117117
    118118                <p><label for="bp-core-widget-members-max"><?php _e('Max members to show:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_members' ); ?>" name="<?php echo $this->get_field_name( 'max_members' ); ?>" type="text" value="<?php echo esc_attr( $max_members ); ?>" style="width: 30%" /></label></p>
    119                                
     119
    120120                <p>
    121                         <label for="bp-core-widget-groups-default"><?php _e('Default members to show:', 'buddypress'); ?> 
     121                        <label for="bp-core-widget-groups-default"><?php _e('Default members to show:', 'buddypress'); ?>
    122122                        <select name="<?php echo $this->get_field_name( 'member_default' ) ?>">
    123123                                <option value="newest" <?php if ( $member_default == 'newest' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Newest', 'buddypress' ) ?></option>
    124124                                <option value="active" <?php if ( $member_default == 'active' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Active', 'buddypress' ) ?></option>
    125125                                <option value="popular"  <?php if ( $member_default == 'popular' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Popular', 'buddypress' ) ?></option>
    126                         </select>                       
     126                        </select>
    127127                        </label>
    128128                </p>
    129        
     129
    130130        <?php
    131131        }
    … …  
    184184                );
    185185                $instance = wp_parse_args( (array) $instance, $defaults );
    186                
     186
    187187                $title = strip_tags( $instance['title'] );
    188188                $max_members = strip_tags( $instance['max_members'] );
    … …  
    248248                );
    249249                $instance = wp_parse_args( (array) $instance, $defaults );
    250                
     250
    251251                $title = strip_tags( $instance['title'] );
    252252                $max_members = strip_tags( $instance['max_members'] );
    … …  
    299299                                                        <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
    300300                                                <?php elseif ( 'newest' == $type ) : ?>
    301                                                         <div class="item-meta"><span class="activity"><?php bp_member_registered() ?></span></div> 
     301                                                        <div class="item-meta"><span class="activity"><?php bp_member_registered() ?></span></div>
    302302                                                <?php elseif ( bp_is_active( 'friends' ) ) : ?>
    303303                                                        <div class="item-meta"><span class="activity"><?php bp_member_total_friend_count() ?></span></div>
  • trunk/bp-forums.php

    r3473 r3592  
    7373                                        else if ( empty( $_POST['topic_text'] ) )
    7474                                                $error_message = __( 'Forum posts cannot be empty. Please enter some text.', 'buddypress' );
    75                                        
     75
    7676                                        if ( $error_message ) {
    7777                                                bp_core_add_message( $error_message, 'error' );
    … …  
    8686                                                }
    8787                                        }
    88                                        
     88
    8989                                        bp_core_redirect( $redirect );
    90                                
     90
    9191                                } else {
    9292                                        bp_core_add_message( __( 'Please pick the group forum where you would like to post this topic.', 'buddypress' ), 'error' );
  • trunk/bp-forums/bp-forums-filters.php

    r3542 r3592  
    99add_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 );
    1010
    11 add_filter( 'bp_get_the_topic_title', 'force_balance_tags' ); 
     11add_filter( 'bp_get_the_topic_title', 'force_balance_tags' );
    1212add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' );
    1313add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' );
    … …  
    121121function bp_forums_strip_mentions_on_post_edit( $content ) {
    122122        global $bp;
    123        
     123
    124124        $content = htmlspecialchars_decode( $content );
    125        
     125
    126126        $pattern = "|<a href=&#039;" . $bp->root_domain . "/" . $bp->members->slug . "/[A-Za-z0-9-_\.]+/&#039; rel=&#039;nofollow&#039;>(@[A-Za-z0-9-_\.]+)</a>|";
    127        
     127
    128128        $content = preg_replace( $pattern, "$1", $content );
    129        
     129
    130130        return $content;
    131131}
  • trunk/bp-friends.php

    r3542 r3592  
    572572function friends_remove_data( $user_id ) {
    573573        global $bp;
    574        
     574
    575575        BP_Friends_Friendship::delete_all_for_user($user_id);
    576576
  • trunk/bp-friends/bp-friends-notifications.php

    r3362 r3592  
    4040
    4141        wp_mail( $to, $subject, $message );
    42        
     42
    4343        do_action( 'bp_friends_sent_request_email', $friend_id, $subject, $message, $friendship_id, $initiator_id );
    4444}
    … …  
    8080
    8181        wp_mail( $to, $subject, $message );
    82        
     82
    8383        do_action( 'bp_friends_sent_accepted_email', $initator_id, $subject, $message, $friendship_id, $friend_id );
    8484}
  • trunk/bp-groups.php

    r3581 r3592  
    500500                                else if ( empty( $_POST['topic_text'] ) )
    501501                                        $error_message = __( 'Forum posts cannot be empty. Please enter some text.', 'buddypress' );
    502                                
     502
    503503                                if ( isset( $error_message ) ) {
    504504                                        bp_core_add_message( $error_message, 'error' );
    … …  
    10451045                                bp_core_redirect( $bp->root_domain . '/' . $bp->groups->slug . '/create/step/' . $bp->groups->current_create_step . '/' );
    10461046                        }
    1047                        
     1047
    10481048                        $new_group_id = isset( $bp->groups->new_group_id ) ? $bp->groups->new_group_id : 0;
    10491049
    … …  
    13371337function groups_update_last_activity( $group_id = false ) {
    13381338        global $bp;
    1339        
     1339
    13401340        if ( !$group_id )
    13411341                $group_id = $bp->groups->current_group->id;
    1342                
     1342
    13431343        if ( !$group_id )
    13441344                return false;
    1345        
     1345
    13461346        groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    13471347}
  • trunk/bp-groups/bp-groups-classes.php

    r3555 r3592  
    289289                        $sql['include'] = " AND g.id IN ({$include})";
    290290                }
    291                
     291
    292292                if ( !empty( $exclude ) ) {
    293293                        $exclude = $wpdb->escape( $exclude );
    … …  
    358358                return array( 'groups' => $paged_groups, 'total' => $total_groups );
    359359        }
    360        
     360
    361361        function get_by_most_forum_topics( $limit = null, $page = null, $user_id = false, $search_terms = false, $populate_extras = true, $exclude = false ) {
    362362                global $wpdb, $bp, $bbdb;
    … …  
    376376                        $search_sql = " AND ( g.name LIKE '%%{$search_terms}%%' OR g.description LIKE '%%{$search_terms}%%' )";
    377377                }
    378                
     378
    379379                if ( !empty( $exclude ) ) {
    380380                        $exclude = $wpdb->escape( $exclude );
    … …  
    417417                        $search_sql = " AND ( g.name LIKE '%%{$search_terms}%%' OR g.description LIKE '%%{$search_terms}%%' )";
    418418                }
    419                
     419
    420420                if ( !empty( $exclude ) ) {
    421421                        $exclude = $wpdb->escape( $exclude );
    … …  
    494494                        $search_sql = " AND ( g.name LIKE '%%{$search_terms}%%' OR g.description LIKE '%%{$search_terms}%%' )";
    495495                }
    496                
     496
    497497                if ( !empty( $exclude ) ) {
    498498                        $exclude = $wpdb->escape( $exclude );
    … …  
    867867
    868868                $pag_sql = ( !empty( $limit ) && !empty( $page ) ) ? $wpdb->prepare( " LIMIT %d, %d", intval( ( $page - 1 ) * $limit), intval( $limit ) ) : '';
    869                
     869
    870870                $exclude_sql = !empty( $exclude ) ? $wpdb->prepare( " AND g.id NOT IN (%s)", $exclude ) : '';
    871871
  • trunk/bp-groups/bp-groups-notifications.php

    r3362 r3592  
    3939                unset( $message, $to );
    4040        }
    41        
     41
    4242        do_action( 'bp_groups_sent_updated_email', $user_ids, $subject, $message, $group_id );
    4343}
    … …  
    8787
    8888        wp_mail( $to, $subject, $message );
    89        
     89
    9090        do_action( 'bp_groups_sent_membership_request_email', $admin_id, $subject, $message, $requesting_user_id, $group_id, $membership_id );
    9191}
    … …  
    143143
    144144        wp_mail( $to, $subject, $message );
    145        
     145
    146146        do_action( 'bp_groups_sent_membership_approved_email', $requesting_user_id, $subject, $message, $group_id );
    147147}
    … …  
    191191
    192192        wp_mail( $to, $subject, $message );
    193        
     193
    194194        do_action( 'bp_groups_sent_promoted_email', $user_id, $subject, $message, $group_id );
    195195}
    … …  
    246246                wp_mail( $to, $subject, $message );
    247247        }
    248        
     248
    249249        do_action( 'bp_groups_sent_invited_email', $invited_user_id, $subject, $message, $group );
    250250}
    … …  
    307307                }
    308308        }
    309        
     309
    310310        do_action( 'bp_groups_sent_mention_email', $usernames, $subject, $message, $content, $poster_user_id, $group_id, $activity_id );
    311311}
  • trunk/bp-groups/bp-groups-templatetags.php

    r3555 r3592  
    17161716        function bp_get_new_group_id() {
    17171717                global $bp;
    1718                
     1718
    17191719                if ( isset( $bp->groups->new_group_id ) )
    17201720                        $new_group_id = $bp->groups->new_group_id;
    17211721                else
    17221722                        $new_group_id = 0;
    1723                
     1723
    17241724                return apply_filters( 'bp_get_new_group_id', $new_group_id );
    17251725        }
    … …  
    17301730        function bp_get_new_group_name() {
    17311731                global $bp;
    1732                
     1732
    17331733                if ( isset( $bp->groups->current_group->name ) )
    17341734                        $name = $bp->groups->current_group->name;
    17351735                else
    17361736                        $name = '';
    1737                
     1737
    17381738                return apply_filters( 'bp_get_new_group_name', $name );
    17391739        }
    … …  
    17441744        function bp_get_new_group_description() {
    17451745                global $bp;
    1746                
     1746
    17471747                if ( isset( $bp->groups->current_group->description ) )
    17481748                        $description = $bp->groups->current_group->description;
    17491749                else
    17501750                        $description = '';
    1751                        
     1751
    17521752                return apply_filters( 'bp_get_new_group_description', $description );
    17531753        }
    … …  
    18561856                        for ( $i = 0; $i < count( $friends ); $i++ ) {
    18571857                                $checked = '';
    1858                                
     1858
    18591859                                if ( !empty( $invites ) ) {
    18601860                                        if ( in_array( $friends[$i]['id'], $invites ) )
    … …  
    22462246        if ( !$group_id ) {
    22472247                /* Backwards compatibility */
    2248                 if ( !empty( $bp->groups->current_group ) ) 
     2248                if ( !empty( $bp->groups->current_group ) )
    22492249                        $group_id = $bp->groups->current_group->id;
    22502250                if ( !empty( $bp->groups->new_group_id ) )
  • trunk/bp-groups/bp-groups-widgets.php

    r3521 r3592  
    2424        function widget( $args, $instance ) {
    2525                global $bp;
    26                
     26
    2727                $user_id = apply_filters( 'bp_group_widget_user_id', '0' );
    2828
    … …  
    100100                        'max_members' => 5,
    101101                        'group_default' => 'active'
    102                 );     
     102                );
    103103                $instance = wp_parse_args( (array) $instance, $defaults );
    104                
     104
    105105                $title = strip_tags( $instance['title'] );
    106106                $max_groups = strip_tags( $instance['max_groups'] );
    107107                $group_default = strip_tags( $instance['group_default'] );
    108108                ?>
    109                
     109
    110110                <p><label for="bp-groups-widget-title"><?php _e('Title:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" style="width: 100%" /></label></p>
    111111
    112112                <p><label for="bp-groups-widget-groups-max"><?php _e('Max groups to show:', 'buddypress'); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_groups' ); ?>" name="<?php echo $this->get_field_name( 'max_groups' ); ?>" type="text" value="<?php echo esc_attr( $max_groups ); ?>" style="width: 30%" /></label></p>
    113                
     113
    114114                <p>
    115                         <label for="bp-groups-widget-groups-default"><?php _e('Default groups to show:', 'buddypress'); ?> 
     115                        <label for="bp-groups-widget-groups-default"><?php _e('Default groups to show:', 'buddypress'); ?>
    116116                        <select name="<?php echo $this->get_field_name( 'group_default' ); ?>">
    117117                                <option value="newest" <?php if ( $group_default == 'newest' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Newest', 'buddypress' ) ?></option>
    118118                                <option value="active" <?php if ( $group_default == 'active' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Active', 'buddypress' ) ?></option>
    119119                                <option value="popular"  <?php if ( $group_default == 'popular' ) : ?>selected="selected"<?php endif; ?>><?php _e( 'Popular', 'buddypress' ) ?></option>
    120                         </select>                       
     120                        </select>
    121121                        </label>
    122122                </p>
  • trunk/bp-loader.php

    r3549 r3592  
    113113                'fileupload_maxk'
    114114        ) );
    115        
     115
    116116        // These options always come from the options table of BP_ROOT_BLOG
    117117        $root_blog_options = apply_filters( 'bp_core_root_blog_options', array(
    … …  
    125125        else
    126126                $site_meta = $wpdb->get_results( "SELECT option_name AS name, option_value AS value FROM {$wpdb->options} WHERE option_name IN ({$meta_keys})" );
    127                
     127
    128128        $root_blog_meta_keys = "'" . implode( "','", (array)$root_blog_options ) ."'";
    129        
     129
    130130        $root_blog_meta_table = $wpdb->get_blog_prefix( BP_ROOT_BLOG ) . 'options';
    131131        $root_blog_meta = $wpdb->get_results( $wpdb->prepare( "SELECT option_name AS name, option_value AS value FROM {$root_blog_meta_table} WHERE option_name IN ({$root_blog_meta_keys})" ) );
  • trunk/bp-messages/bp-messages-notifications.php

    r3362 r3592  
    4444                wp_mail( $email_to, $email_subject, $email_content );
    4545        }
    46        
     46
    4747        do_action( 'bp_messages_sent_notification_email', $recipients, $email_subject, $email_content, $args );
    4848}
  • trunk/bp-messages/bp-messages-templatetags.php

    r3584 r3592  
    673673function bp_thread_has_messages( $args = '' ) {
    674674        global $bp, $thread_template, $group_id;
    675        
     675
    676676        $defaults = array(
    677677                'thread_id' => false,
  • trunk/bp-messages/js/autocomplete/jquery.autocompletefb.dev.js

    r3476 r3592  
    77 * - Idea: Facebook
    88 * - Guillermo Rauch: Original MooTools script
    9  * - InteRiders <http://interiders.com/> 
     9 * - InteRiders <http://interiders.com/>
    1010 *
    1111 * Copyright (c) 2008 Widi Harsojo <wharsojo@gmail.com>, http://wharsojo.wordpress.com/
    … …  
    1414 *   http://www.gnu.org/licenses/gpl.html
    1515 */
    16  
    17 jQuery.fn.autoCompletefb = function(options) 
     16
     17jQuery.fn.autoCompletefb = function(options)
    1818{
    1919        var tmp = this;
    20         var settings = 
     20        var settings =
    2121        {
    2222                ul         : tmp,
    … …  
    2626                inputClass : ".send-to-input"
    2727        }
    28        
     28
    2929        if(options) jQuery.extend(settings, options);
    30        
    31         var acfb = 
     30
     31        var acfb =
    3232        {
    3333                params  : settings,
    … …  
    4343                }
    4444        }
    45        
     45
    4646        jQuery(settings.foundClass+" img.p").click(function(){
    4747                acfb.removeFind(this);
    4848        });
    49        
     49
    5050        jQuery(settings.inputClass,tmp).autocomplete(settings.urlLookup,settings.acOptions);
    5151        jQuery(settings.inputClass,tmp).result(function(e,d,f){
    … …  
    5757                var v = '<li class="'+f+'" id="un-'+un+'"><span><a href="'+l+'">'+d[0]+'</a></span> <span class="p">X</span></li>';
    5858                var x = jQuery(settings.inputClass,tmp).before(v);
    59                
     59
    6060                jQuery('#send-to-usernames').addClass(un);
    61                
     61
    6262                jQuery('.p',x[0].previousSibling).click(function(){
    6363                        acfb.removeFind(this);
    … …  
    6565                jQuery(settings.inputClass,tmp).val('');
    6666        });
    67        
     67
    6868        jQuery(settings.inputClass,tmp).focus();
    6969        return acfb;
  • trunk/bp-messages/js/autocomplete/jquery.autocompletefb.js

    r3477 r3592  
    77 * - Idea: Facebook
    88 * - Guillermo Rauch: Original MooTools script
    9  * - InteRiders <http://interiders.com/> 
     9 * - InteRiders <http://interiders.com/>
    1010 *
    1111 * Copyright (c) 2008 Widi Harsojo <wharsojo@gmail.com>, http://wharsojo.wordpress.com/
  • trunk/bp-messages/js/autocomplete/jquery.bgiframe.min.js

    r1366 r3592  
    11/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
    2  * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
     2 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
    33 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
    44 *
  • trunk/bp-messages/js/autocomplete/jquery.dimensions.dev.js

    r3476 r3592  
    1313
    1414(function($){
    15        
     15
    1616$.dimensions = {
    1717        version: '@VERSION'
    … …  
    2020// Create innerHeight, innerWidth, outerHeight and outerWidth methods
    2121$.each( [ 'Height', 'Width' ], function(i, name){
    22        
     22
    2323        // innerHeight and innerWidth
    2424        $.fn[ 'inner' + name ] = function() {
    2525                if (!this[0]) return;
    26                
     26
    2727                var torl = name == 'Height' ? 'Top'    : 'Left',  // top or left
    2828                    borr = name == 'Height' ? 'Bottom' : 'Right'; // bottom or right
    29                
     29
    3030                return this[ name.toLowerCase() ]() + num(this, 'padding' + torl) + num(this, 'padding' + borr);
    3131        };
    32        
     32
    3333        // outerHeight and outerWidth
    3434        $.fn[ 'outer' + name ] = function(options) {
    3535                if (!this[0]) return;
    36                
     36
    3737                var torl = name == 'Height' ? 'Top'    : 'Left',  // top or left
    3838                    borr = name == 'Height' ? 'Bottom' : 'Right'; // bottom or right
    39                
     39
    4040                options = $.extend({ margin: false }, options || {});
    41                
     41
    4242                return this[ name.toLowerCase() ]()
    4343                                + num(this, 'border' + torl + 'Width') + num(this, 'border' + borr + 'Width')
    … …  
    5151        $.fn[ 'scroll' + name ] = function(val) {
    5252                if (!this[0]) return;
    53                
     53
    5454                return val != undefined ?
    55                
     55
    5656                        // Set the scroll offset
    5757                        this.each(function() {
    5858                                this == window || this == document ?
    59                                         window.scrollTo( 
     59                                        window.scrollTo(
    6060                                                name == 'Left' ? val : $(window)[ 'scrollLeft' ](),
    6161                                                name == 'Top'  ? val : $(window)[ 'scrollTop'  ]()
    … …  
    6363                                        this[ 'scroll' + name ] = val;
    6464                        }) :
    65                        
     65
    6666                        // Return the scroll offset
    6767                        this[0] == window || this[0] == document ?
    … …  
    7676        position: function() {
    7777                var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results;
    78                
     78
    7979                if (elem) {
    8080                        // Get *real* offsetParent
    8181                        offsetParent = this.offsetParent();
    82                        
     82
    8383                        // Get correct offsets
    8484                        offset       = this.offset();
    8585                        parentOffset = offsetParent.offset();
    86                        
     86
    8787                        // Subtract element margins
    8888                        offset.top  -= num(elem, 'marginTop');
    8989                        offset.left -= num(elem, 'marginLeft');
    90                        
     90
    9191                        // Add offsetParent borders
    9292                        parentOffset.top  += num(offsetParent, 'borderTopWidth');
    9393                        parentOffset.left += num(offsetParent, 'borderLeftWidth');
    94                        
     94
    9595                        // Subtract the two offsets
    9696                        results = {
    … …  
    9999                        };
    100100                }
    101                
     101
    102102                return results;
    103103        },
    104        
     104
    105105        offsetParent: function() {
    106106                var offsetParent = this[0].offsetParent;
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r3580 r3592  
    568568        if ( $bp->messages->slug == $bp->current_component )
    569569                $autocomplete_all = $bp->messages->autocomplete_all;
    570        
     570
    571571        $friends = false;
    572572
    … …  
    576576        if ( $autocomplete_all ) {
    577577                $users = BP_Core_User::search_users( $_GET['q'], $limit, $pag_page );
    578                
     578
    579579                if ( !empty( $users['users'] ) ) {
    580580                        // Build an array with the correct format
    … …  
    584584                                        $user_ids[] = $user->id;
    585585                        }
    586                        
     586
    587587                        $user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit );
    588588                }
    … …  
    590590                if ( function_exists( 'friends_search_friends' ) ) {
    591591                        $users = friends_search_friends( $_GET['q'], $bp->loggedin_user->id, $limit, 1 );
    592                        
     592
    593593                        // Keeping the bp_friends_autocomplete_list filter for backward compatibility
    594594                        $users = apply_filters( 'bp_friends_autocomplete_list', $users, $_GET['q'], $limit );
    595                        
     595
    596596                        if ( !empty( $users['friends'] ) )
    597597                                $user_ids = apply_filters( 'bp_friends_autocomplete_ids', $users['friends'], $_GET['q'], $limit );
    598598                }
    599599        }
    600        
     600
    601601
    602602        if ( $user_ids ) {
  • trunk/bp-themes/bp-default/_inc/css/default.css

    r3587 r3592  
    2020        padding-top: 0 !important; /* Remove the top padding space for the admin bar in this theme */
    2121}
    22        
     22
    2323body.activity-permalink {
    2424        min-width: 960px;
    … …  
    2626}
    2727
    28 h1, 
    29 h2, 
    30 h3, 
    31 h4, 
    32 h5, 
     28h1,
     29h2,
     30h3,
     31h4,
     32h5,
    3333h6 {
    3434        margin: 5px 0 15px 0;
    3535}
    3636
    37 h1 { 
    38         font-size: 28px; 
    39         margin-bottom: 25px; 
    40 }
    41 
    42 h2 { 
    43         font-size: 24px; 
    44         margin-bottom: 20px; 
    45 }
    46 
    47 h3 { 
    48         font-size: 20px; 
    49 }
    50 
    51 h4 { 
    52         font-size: 16px; 
    53         margin-bottom: 15px; 
    54 }
    55 
    56 h5 { 
    57         font-size: 14px; 
    58         margin-bottom: 0; 
    59 }
    60 
    61 h6 { 
    62         font-size: 12px; 
    63         margin-bottom: 0; 
    64 }
    65 
    66 a { 
    67         color: #1fb3dd; 
    68 }
    69 
    70 a:hover, 
    71 a:active { 
    72         color: #888; 
    73 }
    74 
    75 a:focus { 
    76         outline: 1px dotted #ccc; 
    77 }
    78 
    79 .padder { 
    80         padding: 19px; 
    81 }
    82 
    83 .clear { 
    84         clear: left; 
    85 }
    86 
    87 p {     
    88         margin-bottom: 15px; 
    89 }
    90 
    91 p:last-child { 
    92         margin-bottom: 0; 
     37h1 {
     38        font-size: 28px;
     39        margin-bottom: 25px;
     40}
     41
     42h2 {
     43        font-size: 24px;
     44        margin-bottom: 20px;
     45}
     46
     47h3 {
     48        font-size: 20px;
     49}
     50
     51h4 {
     52        font-size: 16px;
     53        margin-bottom: 15px;
     54}
     55
     56h5 {
     57        font-size: 14px;
     58        margin-bottom: 0;
     59}
     60
     61h6 {
     62        font-size: 12px;
     63        margin-bottom: 0;
     64}
     65
     66a {
     67        color: #1fb3dd;
     68}
     69
     70a:hover,
     71a:active {
     72        color: #888;
     73}
     74
     75a:focus {
     76        outline: 1px dotted #ccc;
     77}
     78
     79.padder {
     80        padding: 19px;
     81}
     82
     83.clear {
     84        clear: left;
     85}
     86
     87p {
     88        margin-bottom: 15px;
     89}
     90
     91p:last-child {
     92        margin-bottom: 0;
    9393}
    9494
    … …  
    128128        line-height: 1;
    129129        vertical-align: baseline;
    130         position: relative;     
     130        position: relative;
    131131}
    132132
    … …  
    154154        position: relative;
    155155}
    156        
     156
    157157#header #search-bar {
    158158        position: absolute;
    … …  
    190190        width: 44%;
    191191}
    192                
     192
    193193#header h1 a {
    194194        color: #fff;
    … …  
    332332        margin-bottom: 20px;
    333333}
    334        
     334
    335335body.activity-permalink div#container {
    336336        background: none;
    … …  
    352352        background: url( ../images/sidebar_back.gif ) top left repeat-x;
    353353}
    354        
     354
    355355div#sidebar div#sidebar-me img.avatar {
    356356        float: left;
    … …  
    368368        margin: 15px -16px;
    369369}
    370                
     370
    371371div#sidebar ul#bp-nav li {
    372372        padding: 10px 15px;
    … …  
    385385        margin-top: 20px;
    386386}
    387                
     387
    388388#footer-widget-area .widget_search input[type=text],
    389389div#sidebar .widget_search input[type=text] {
    … …  
    392392}
    393393
    394 #footer-widget-area ul#recentcomments li, 
     394#footer-widget-area ul#recentcomments li,
    395395#footer-widget-area .widget_recent_entries ul li,
    396 div#sidebar ul#recentcomments li, 
     396div#sidebar ul#recentcomments li,
    397397div#sidebar .widget_recent_entries ul li {
    398398        margin-bottom: 15px;
    … …  
    405405        margin-right: 10px;
    406406}
    407                
     407
    408408#footer-widget-area div.item-avatar img,
    409409div#sidebar div.item-avatar img {
    … …  
    414414
    415415#footer-widget-area .avatar-block,
    416 div#sidebar .avatar-block { 
    417         overflow: hidden; 
     416div#sidebar .avatar-block {
     417        overflow: hidden;
    418418}
    419419
    … …  
    431431}
    432432
    433 #footer-widget-area div.item-meta, 
     433#footer-widget-area div.item-meta,
    434434#footer-widget-area div.item-content,
    435 div#sidebar div.item-meta, 
     435div#sidebar div.item-meta,
    436436div#sidebar div.item-content {
    437437        margin-left: 38px;
    … …  
    467467        -webkit-border-bottom-left-radius: 6px;
    468468}
    469        
     469
    470470div#content .one-column {
    471471        margin-right: 0;
    … …  
    490490}
    491491
    492 div#item-header div#item-header-content { 
    493         margin-left: 170px; 
     492div#item-header div#item-header-content {
     493        margin-left: 170px;
    494494}
    495495
    … …  
    499499        line-height: 120%;
    500500}
    501                
     501
    502502div#item-header h2 a {
    503503        text-decoration: none;
    … …  
    510510}
    511511
    512 div#item-header h2 { 
    513         margin-bottom: 5px; 
    514 }
    515 
    516 div#item-header span.activity, 
     512div#item-header h2 {
     513        margin-bottom: 5px;
     514}
     515
     516div#item-header span.activity,
    517517div#item-header h2 span.highlight {
    518518        vertical-align: middle;
    … …  
    523523}
    524524
    525 div#item-header h2 span.highlight { 
    526         font-size: 16px; 
     525div#item-header h2 span.highlight {
     526        font-size: 16px;
    527527}
    528528
    … …  
    558558        text-align: right;
    559559}
    560                
     560
    561561div#item-header div#item-actions h3 {
    562562        font-size: 12px;
    … …  
    569569}
    570570
    571 div#item-header ul h5, 
    572 div#item-header ul span, 
     571div#item-header ul h5,
     572div#item-header ul span,
    573573div#item-header ul hr {
    574574        display: none;
    … …  
    579579}
    580580
    581 div#item-header ul img.avatar, 
     581div#item-header ul img.avatar,
    582582div#item-header ul.avatars img.avatar {
    583583        width: 30px;
    … …  
    586586}
    587587
    588 div#item-header div.generic-button, 
     588div#item-header div.generic-button,
    589589div#item-header a.button {
    590590        float: left;
    … …  
    603603        width: 100%;
    604604}
    605        
     605
    606606ul.item-list li {
    607607        position: relative;
    … …  
    609609        border-bottom: 1px solid #eaeaea;
    610610}
    611                
    612 ul.single-line li { 
    613         border: none; 
     611
     612ul.single-line li {
     613        border: none;
    614614}
    615615
    … …  
    619619}
    620620
    621 ul.item-list li div.item-title, 
     621ul.item-list li div.item-title,
    622622ul.item-list li h4 {
    623623        font-weight: normal;
    … …  
    626626        margin: 0;
    627627}
    628                        
     628
    629629ul.item-list li div.item-title span {
    630630        font-size: 12px;
    … …  
    667667        background: #eaeaea;
    668668}
    669        
     669
    670670div.item-list-tabs ul li a {
    671671        text-decoration: none;
    … …  
    675675        width: 100%;
    676676}
    677                
     677
    678678div.item-list-tabs ul li {
    679679        float: left;
    680680        margin: 5px 0 0 5px;
    681681}
    682                        
     682
    683683div.item-list-tabs#subnav ul li {
    684684        margin-top: 0;
    … …  
    693693        margin: 7px 20px 0 0;
    694694}
    695                                
     695
    696696div.item-list-tabs#subnav ul li.last {
    697697        margin-top: 4px;
    … …  
    708708        text-decoration: none;
    709709}
    710                        
     710
    711711div.item-list-tabs ul li span {
    712712        color: #aaa;
    … …  
    729729        -webkit-border-top-right-radius: 3px;
    730730}
    731                        
     731
    732732ul li.loading a {
    733733        background-image: url( ../images/ajax-loader.gif );
    … …  
    736736        padding-right: 30px !important;
    737737}
    738                                
     738
    739739div#item-nav ul li.loading a {
    740740        background-position: 88% 50%;
    … …  
    766766}
    767767
    768 span.activity, 
     768span.activity,
    769769div#message p {
    770770        display: inline-block;
    … …  
    791791        margin: -37px 0 0 0;
    792792}
    793        
     793
    794794div.dir-search input[type=text] {
    795795        padding: 4px;
    … …  
    809809        height: 16px;
    810810}
    811        
    812 div.pagination#user-pag, 
     811
     812div.pagination#user-pag,
    813813.friends div.pagination,
    814 .mygroups div.pagination, 
    815 .myblogs div.pagination, 
     814.mygroups div.pagination,
     815.myblogs div.pagination,
    816816noscript div.pagination {
    817817        background: #f8f8f8;
    … …  
    827827        float: right;
    828828}
    829                
     829
    830830div.pagination .pagination-links span,
    831831div.pagination .pagination-links a {
    … …  
    833833        padding: 0 5px;
    834834}
    835                        
     835
    836836div.pagination .pagination-links a:hover {
    837837        font-weight: bold;
    … …  
    849849        margin: 15px 0;
    850850}
    851        
     851
    852852div#message.updated {
    853         clear: both; 
     853        clear: both;
    854854}
    855855
    … …  
    859859        display:block;
    860860}
    861        
     861
    862862div#message.error p {
    863863        background: #e41717;
    … …  
    888888-------------------------------------------------------------- */
    889889
    890 a.button, 
    891 input[type=submit], 
    892 input[type=button], 
     890a.button,
     891input[type=submit],
     892input[type=button],
    893893input[type=reset],
    894 ul.button-nav li a, 
     894ul.button-nav li a,
    895895div.generic-button a {
    896896        background: url( ../images/white-grad.png ) top left repeat-x;
    … …  
    907907        cursor: pointer;
    908908}
    909        
    910 a.button:hover, 
    911 a.button:focus, 
    912 input[type=submit]:hover, 
    913 input[type=button]:hover, 
     909
     910a.button:hover,
     911a.button:focus,
     912input[type=submit]:hover,
     913input[type=button]:hover,
    914914input[type=reset]:hover,
    915 ul.button-nav li a:hover, 
     915ul.button-nav li a:hover,
    916916ul.button-nav li.current a,
    917917div.generic-button a:hover {
    … …  
    927927        cursor: default;
    928928}
    929        
    930 div.pending a:hover, 
    931 a.disabled:hover { 
    932         border-color: #eee; 
    933         color: #bbb; 
    934 }
    935 
    936 div.accept, 
     929
     930div.pending a:hover,
     931a.disabled:hover {
     932        border-color: #eee;
     933        color: #bbb;
     934}
     935
     936div.accept,
    937937div.reject {
    938938        float: left;
    … …  
    944944        margin: 0 10px 10px 0;
    945945}
    946        
     946
    947947ul.button-nav li.current a {
    948948        font-weight: bold;
    … …  
    968968-------------------------------------------------------------- */
    969969
    970 form.standard-form textarea, 
     970form.standard-form textarea,
    971971form.standard-form input[type=text],
    972 form.standard-form select, 
     972form.standard-form select,
    973973form.standard-form input[type=password],
    974974.dir-search input[type=text] {
    … …  
    982982        color: #888;
    983983}
    984                
     984
    985985form.standard-form select {
    986986        padding: 3px;
    … …  
    991991}
    992992
    993 form.standard-form label, 
     993form.standard-form label,
    994994form.standard-form span.label {
    995995        display: block;
    … …  
    997997        margin: 15px 0 5px 0;
    998998}
    999                
     999
    10001000form.standard-form div.checkbox label,
    10011001form.standard-form div.radio label {
    … …  
    10131013        width: 75%;
    10141014}
    1015                
     1015
    10161016form.standard-form#sidebar-login-form input[type=text],
    10171017form.standard-form#sidebar-login-form input[type=password] {
    … …  
    10291029        width: 90%;
    10301030}
    1031                        
     1031
    10321032form.standard-form#signup_form div.submit {
    1033         float: right; 
    1034 }
    1035 
    1036 div#signup-avatar img { 
    1037         margin: 0 15px 10px 0; 
    1038 }
    1039        
     1033        float: right;
     1034}
     1035
     1036div#signup-avatar img {
     1037        margin: 0 15px 10px 0;
     1038}
     1039
    10401040form.standard-form textarea {
    10411041        width: 75%;
    10421042        height: 120px;
    10431043}
    1044                
     1044
    10451045form.standard-form textarea#message_content {
    10461046        height: 200px;
    … …  
    10611061        clear: both;
    10621062}
    1063                
     1063
    10641064form.standard-form div.submit input {
    10651065        margin-right: 15px;
    … …  
    10701070        list-style: disc;
    10711071}
    1072                
     1072
    10731073form.standard-form div.radio ul li {
    10741074        margin-bottom: 5px;
    … …  
    10811081}
    10821082
    1083 form.standard-form #basic-details-section, 
     1083form.standard-form #basic-details-section,
    10841084form.standard-form #blog-details-section,
    10851085form.standard-form #profile-details-section {
    … …  
    10871087        width: 48%;
    10881088}
    1089        
    1090 form.standard-form #profile-details-section { 
    1091         float: right; 
     1089
     1090form.standard-form #profile-details-section {
     1091        float: right;
    10921092}
    10931093
    … …  
    10961096}
    10971097
    1098 form.standard-form input:focus, 
    1099 form.standard-form textarea:focus, 
     1098form.standard-form input:focus,
     1099form.standard-form textarea:focus,
    11001100form.standard-form select:focus {
    11011101        background: #fafafa;
    … …  
    11061106        margin-top: 20px;
    11071107}
    1108        
     1108
    11091109div#invite-list {
    11101110        height: 400px;
    … …  
    11271127        width: 100%;
    11281128}
    1129        
     1129
    11301130table thead tr {
    11311131        background: #eaeaea;
    … …  
    11381138
    11391139table.profile-fields {
    1140         margin-bottom: 20px; 
     1140        margin-bottom: 20px;
    11411141}
    11421142
    … …  
    11501150        vertical-align: middle;
    11511151}
    1152                
     1152
    11531153table tr td.label {
    11541154        border-right: 1px solid #eaeaea;
    … …  
    11561156        width: 25%;
    11571157}
    1158                
    1159 table tr td.thread-info p { 
    1160         margin: 0; 
     1158
     1159table tr td.thread-info p {
     1160        margin: 0;
    11611161}
    11621162
    … …  
    11661166        margin-top: 3px;
    11671167}
    1168        
     1168
    11691169div#sidebar table td,
    1170 table.forum td { 
    1171         text-align: center; 
     1170table.forum td {
     1171        text-align: center;
    11721172}
    11731173
    … …  
    11801180        text-align: left;
    11811181}
    1182        
    1183 table.notification-settings th.icon, 
    1184 table.notification-settings td:first-child { 
    1185         display: none; 
    1186 }
    1187 
    1188 table.notification-settings th.title { 
    1189         width: 80%; 
    1190 }
    1191        
    1192 table.notification-settings .yes, 
    1193 table.notification-settings .no { 
    1194         width: 40px; 
    1195         text-align: center; 
     1182
     1183table.notification-settings th.icon,
     1184table.notification-settings td:first-child {
     1185        display: none;
     1186}
     1187
     1188table.notification-settings th.title {
     1189        width: 80%;
     1190}
     1191
     1192table.notification-settings .yes,
     1193table.notification-settings .no {
     1194        width: 40px;
     1195        text-align: center;
    11961196}
    11971197
    … …  
    12001200        width: auto;
    12011201}
    1202        
     1202
    12031203table.forum tr.sticky td {
    12041204        background: #fff9db;
    … …  
    12191219}
    12201220
    1221 table.forum tr > td:first-child, 
     1221table.forum tr > td:first-child,
    12221222table.forum tr > th:first-child {
    12231223        padding-left: 15px;
    12241224}
    12251225
    1226 table.forum tr > td:last-child, 
     1226table.forum tr > td:last-child,
    12271227table.forum tr > th:last-child {
    12281228        padding-right: 15px;
    12291229}
    12301230
    1231 table.forum tr th#th-title, 
     1231table.forum tr th#th-title,
    12321232table.forum tr th#th-poster,
    1233 table.forum tr th#th-group, 
     1233table.forum tr th#th-group,
    12341234table.forum td.td-poster,
    1235 table.forum td.td-group, 
    1236 table.forum td.td-title { 
    1237         text-align: left; 
     1235table.forum td.td-group,
     1236table.forum td.td-title {
     1237        text-align: left;
    12381238}
    12391239
    … …  
    13071307        border-radius: 3px;
    13081308}
    1309        
     1309
    13101310form#whats-new-form textarea {
    13111311        width: 100%;
    … …  
    13511351        padding: 12px 0 0 0;
    13521352}
    1353        
     1353
    13541354.activity-list li.mini div.activity-meta {
    13551355        margin: 0;
    … …  
    13661366        margin-left: 36px;
    13671367}
    1368                
     1368
    13691369.activity-list li.activity_comment .activity-avatar img.avatar,
    13701370.activity-list li.activity_comment .activity-avatar img.FB_profile_pic {
    … …  
    13941394        right: 0;
    13951395}
    1396        
     1396
    13971397body.activity-permalink .activity-list li.mini .activity-meta {
    13981398        position: absolute;
    … …  
    14141414        background: url( ../images/replyto_arrow.gif ) 7px 0 no-repeat;
    14151415}
    1416        
     1416
    14171417.activity-list li .activity-inreplyto > p {
    14181418        margin: 0;
    … …  
    14341434        height: 50px;
    14351435}
    1436                
     1436
    14371437body.activity-permalink .activity-list .activity-avatar img {
    14381438        width: 100px;
    … …  
    14431443        margin-left: 70px;
    14441444}
    1445        
     1445
    14461446body.activity-permalink .activity-list li .activity-content {
    14471447        -moz-border-radius: 4px;
    … …  
    14581458        margin-right: 0;
    14591459}
    1460        
     1460
    14611461body.activity-permalink .activity-list li .activity-header > p {
    14621462        background: url( ../images/activity_arrow.gif ) top left no-repeat;
    … …  
    14731473        line-height: 220%;
    14741474}
    1475        
     1475
    14761476.activity-list .activity-content .activity-header img.avatar {
    14771477        float: none !important;
    … …  
    14921492        margin-right: 3px;
    14931493}
    1494        
     1494
    14951495.activity-list .activity-header a:first-child:hover {
    14961496        background: #059ae7 !important;
    14971497        color: #fff !important;
    14981498}
    1499                
    1500 .activity-list .activity-content a:first-child:focus { 
    1501         outline: none; 
     1499
     1500.activity-list .activity-content a:first-child:focus {
     1501        outline: none;
    15021502}
    15031503
    … …  
    15151515        text-decoration: underline;
    15161516}
    1517                
     1517
    15181518.activity-list .activity-content span.activity-header-meta a:hover {
    15191519        color: inherit;
    … …  
    15261526        overflow: hidden;
    15271527}
    1528                
     1528
    15291529body.activity-permalink .activity-content .activity-inner,
    15301530body.activity-permalink .activity-content blockquote {
    … …  
    15331533
    15341534/* Backwards compatibility. */
    1535 .activity-inner > .activity-inner { 
    1536         margin: 0 !important; 
    1537 }
    1538                
    1539 .activity-inner > blockquote { 
    1540         margin: 0 !important; 
     1535.activity-inner > .activity-inner {
     1536        margin: 0 !important;
     1537}
     1538
     1539.activity-inner > blockquote {
     1540        margin: 0 !important;
    15411541}
    15421542
    … …  
    15591559        border-radius: 4px;
    15601560}
    1561        
     1561
    15621562.activity-list li.load-more a {
    15631563        color: #555;
    … …  
    15861586        margin-right: 3px;
    15871587}
    1588        
     1588
    15891589.activity-list div.activity-meta a.acomment-reply {
    15901590        background: #fff9db;
    … …  
    15941594}
    15951595
    1596 div.activity-meta a:focus { 
    1597         outline: none; 
    1598 }
    1599        
     1596div.activity-meta a:focus {
     1597        outline: none;
     1598}
     1599
    16001600div.activity-meta a:hover {
    16011601        background: #aaa;
    … …  
    16031603        border-color: #aaa;
    16041604}
    1605                
     1605
    16061606div.activity-meta a.acomment-reply:hover {
    16071607        background: #f7740a;
    … …  
    16431643        padding: 10px 0 0;
    16441644}
    1645                
     1645
    16461646body.activity-permalink .activity-list li.mini .activity-comments {
    16471647        clear: none;
    … …  
    16701670        margin-left: 20px;
    16711671}
    1672                
     1672
    16731673body.activity-permalink div.activity-comments ul li > ul {
    16741674        margin-top: 15px;
    … …  
    16861686        margin-top: 5px;
    16871687}
    1688                
    1689 div.acomment-content .time-since { 
    1690         display: none; 
    1691 }
    1692 
    1693 div.acomment-content .activity-delete-link { 
    1694         display: none; 
    1695 }
    1696                
    1697 div.acomment-content .comment-header { 
    1698         display: none; 
     1688
     1689div.acomment-content .time-since {
     1690        display: none;
     1691}
     1692
     1693div.acomment-content .activity-delete-link {
     1694        display: none;
     1695}
     1696
     1697div.acomment-content .comment-header {
     1698        display: none;
    16991699}
    17001700
    … …  
    17181718        padding: 8px;
    17191719}
    1720                
     1720
    17211721div.activity-comments li form.ac-form {
    17221722        margin-right: 15px;
    … …  
    17371737        background-repeat: no-repeat;
    17381738}
    1739        
     1739
    17401740div.activity-comments form .ac-textarea {
    17411741        padding: 8px;
    … …  
    17471747        border-radius: 3px;
    17481748}
    1749                        
     1749
    17501750div.activity-comments form textarea {
    17511751        width: 100%;
    … …  
    17571757        padding: 0;
    17581758}
    1759                                
     1759
    17601760div.activity-comments form input {
    17611761        margin-top: 5px;
    … …  
    17651765        float: left;
    17661766}
    1767                        
     1767
    17681768div.ac-reply-avatar img {
    17691769        border: 2px solid #fff !important;
    … …  
    17921792}
    17931793
    1794 li span.unread-count, 
     1794li span.unread-count,
    17951795tr.unread span.unread-count {
    17961796        background: #dd0000;
    … …  
    18021802        border-radius: 3px;
    18031803}
    1804                
     1804
    18051805div.item-list-tabs ul li a span.unread-count {
    18061806        padding: 1px 6px;
    … …  
    18201820        padding: 15px;
    18211821}
    1822        
     1822
    18231823div#message-thread div.alt {
    18241824        background: #f4f4f4;
    … …  
    18391839        font-size: 16px;
    18401840}
    1841                
     1841
    18421842div#message-thread strong a {
    18431843        text-decoration: none;
    … …  
    18941894        font-size: 11px;
    18951895}
    1896        
     1896
    18971897div#topic-meta div.admin-links {
    18981898        bottom: 0;
    … …  
    19051905        padding: 5px 0;
    19061906}
    1907        
     1907
    19081908div#topic-meta h3 {
    1909         font-size: 20px;       
     1909        font-size: 20px;
    19101910}
    19111911
    … …  
    19241924}
    19251925
    1926 div.post h2.pagetitle, 
     1926div.post h2.pagetitle,
    19271927div.post h2.posttitle {
    19281928        margin: 0;
    19291929        line-height: 120%;
    19301930}
    1931                
    1932 div.post h2.pagetitle a, 
     1931
     1932div.post h2.pagetitle a,
    19331933div.post h2.posttitle a {
    19341934        color: #666;
    … …  
    19361936}
    19371937
    1938 .navigation, 
    1939 .paged-navigation, 
     1938.navigation,
     1939.paged-navigation,
    19401940.comment-navigation {
    19411941        overflow: hidden;
    … …  
    19571957}
    19581958
    1959 div.post p { 
    1960         margin: 0 0 20px 0; 
    1961 }
    1962 
    1963 div.post ul, 
    1964 div.post ol, 
    1965 div.post dl { 
    1966         margin: 0 0 18px 1.5em; 
    1967 }
    1968        
     1959div.post p {
     1960        margin: 0 0 20px 0;
     1961}
     1962
     1963div.post ul,
     1964div.post ol,
     1965div.post dl {
     1966        margin: 0 0 18px 1.5em;
     1967}
     1968
    19691969div.post ul {
    1970         list-style: square; 
    1971 }
    1972        
    1973 div.post ol { 
     1970        list-style: square;
     1971}
     1972
     1973div.post ol {
    19741974        list-style: decimal;
    19751975}
    1976        
    1977 div.post ol ol { 
    1978         list-style: upper-alpha; 
    1979 }
    1980        
    1981 div.post dl { 
    1982         margin-left: 0; 
    1983 }
    1984        
    1985 div.post dt { 
    1986         font-size: 14px; 
    1987         font-weight: bold; 
    1988 }
    1989        
    1990 div.post dd { 
     1976
     1977div.post ol ol {
     1978        list-style: upper-alpha;
     1979}
     1980
     1981div.post dl {
     1982        margin-left: 0;
     1983}
     1984
     1985div.post dt {
     1986        font-size: 14px;
     1987        font-weight: bold;
     1988}
     1989
     1990div.post dd {
    19911991        margin: 0 0 15px 0;
    19921992}
    19931993
    1994 div.post pre, 
     1994div.post pre,
    19951995div.post code p {
    19961996        padding: 15px;
    … …  
    20022002
    20032003div.post code {
    2004         font-family: "Monaco", courier, sans-serif; 
     2004        font-family: "Monaco", courier, sans-serif;
    20052005}
    20062006
    … …  
    20192019        border: 1px solid #eee;
    20202020}
    2021                
     2021
    20222022div.post table th {
    2023         border-top: 1px solid #eee; 
    2024         text-align: left; 
    2025 }
    2026                
    2027 div.post table td { 
    2028         border-top: 1px solid #eee; 
    2029 }
    2030        
    2031 div.post div.author-box, 
     2023        border-top: 1px solid #eee;
     2024        text-align: left;
     2025}
     2026
     2027div.post table td {
     2028        border-top: 1px solid #eee;
     2029}
     2030
     2031div.post div.author-box,
    20322032div.comment-avatar-box {
    20332033        background: #f0f0f0;
    … …  
    20432043        border-radius: 3px;
    20442044}
    2045                
    2046 div.author-box p, 
    2047 div.comment-avatar-box p { 
    2048         margin: 5px 0 0; 
    2049 }
    2050                
    2051 div.author-box a, 
    2052 div.comment-avatar-box a { 
    2053         text-decoration: none; 
    2054 }
    2055 
    2056 div.post div.author-box img, 
     2045
     2046div.author-box p,
     2047div.comment-avatar-box p {
     2048        margin: 5px 0 0;
     2049}
     2050
     2051div.author-box a,
     2052div.comment-avatar-box a {
     2053        text-decoration: none;
     2054}
     2055
     2056div.post div.author-box img,
    20572057div.comment-avatar-box img {
    20582058        float: none;
    … …  
    20612061}
    20622062
    2063 div.post div.post-content, 
     2063div.post div.post-content,
    20642064div.comment-content {
    20652065        margin-left: 105px;
    20662066}
    20672067
    2068 div.post p.date, div.post p.postmetadata, 
     2068div.post p.date, div.post p.postmetadata,
    20692069div.comment-meta, div.comment-options {
    20702070        color: #888;
    … …  
    20832083}
    20842084
    2085 div.post .tags { 
    2086         float: left; 
    2087 }
    2088 
    2089 div.post .comments { 
    2090         float: right; 
    2091 }
    2092 
    2093 div.post img { 
    2094         margin-bottom: 15px; 
    2095 }
    2096 
    2097 div.post img.wp-smiley { 
    2098         padding: 0 !important; 
    2099         margin: 0 !important; 
    2100         border: none !important; 
    2101         float: none !important; 
    2102         clear: none !important; 
     2085div.post .tags {
     2086        float: left;
     2087}
     2088
     2089div.post .comments {
     2090        float: right;
     2091}
     2092
     2093div.post img {
     2094        margin-bottom: 15px;
     2095}
     2096
     2097div.post img.wp-smiley {
     2098        padding: 0 !important;
     2099        margin: 0 !important;
     2100        border: none !important;
     2101        float: none !important;
     2102        clear: none !important;
    21032103}
    21042104
    … …  
    21212121}
    21222122
    2123 div.post .aligncenter, 
     2123div.post .aligncenter,
    21242124div.post div.aligncenter {
    21252125        display: block;
    … …  
    21442144}
    21452145
    2146 div.post dd.wp-caption p.wp-caption-text, 
     2146div.post dd.wp-caption p.wp-caption-text,
    21472147div.post .wp-caption p.wp-caption-text {
    21482148        font-size: 0.9em;
    … …  
    21632163}
    21642164
    2165 #comments h3, 
    2166 #trackbacks h3, 
     2165#comments h3,
     2166#trackbacks h3,
    21672167#respond h3 {
    21682168        font-size: 20px;
    … …  
    21722172}
    21732173
    2174 #comments span.title, 
     2174#comments span.title,
    21752175#trackbacks span.title {
    21762176        color: #aaa;
    … …  
    21982198}
    21992199
    2200 ol.commentlist ul.children { 
    2201         margin-left: 105px; 
     2200ol.commentlist ul.children {
     2201        margin-left: 105px;
    22022202}
    22032203
    … …  
    22162216        background: #fff;
    22172217}
    2218        
     2218
    22192219#site-generator {
    22202220        text-align: center;
    … …  
    22432243        padding: 5px 15px;
    22442244        font-size: 12px;
    2245         clear: left;   
     2245        clear: left;
    22462246}
    22472247
  • trunk/bp-themes/bp-default/_inc/global.js

    r3587 r3592  
    825825                jq(this).removeClass('over');
    826826        });
    827                
     827
    828828        jq('body#bp-default table.zebra tbody tr:odd').addClass('alt');
    829829
  • trunk/bp-themes/bp-default/comments.php

    r3369 r3592  
    1919                                foreach ( (array)$comments as $comment )
    2020                                        if ( 'comment' != get_comment_type() )
    21                                                 $numTrackBacks++; 
     21                                                $numTrackBacks++;
    2222                                        else
    2323                                                $numComments++;
  • trunk/bp-themes/bp-default/forums/index.php

    r3460 r3592  
    116116
    117117                </form>
    118                
     118
    119119                <?php do_action( 'bp_after_directory_forums' ) ?>
    120120
  • trunk/bp-themes/bp-default/functions.php

    r3589 r3592  
    536536 * @deprecated 1.3
    537537 * @deprecated No longer required.
    538  * @param string $template Absolute path to the page template 
     538 * @param string $template Absolute path to the page template
    539539 * @return string
    540540 * @since 1.2
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r3531 r3592  
    200200                                                <h5>
    201201                                                        <?php bp_group_member_link() ?>
    202                                                        
     202
    203203                                                        <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress'); ?>
    204204
    205                                                         <span class="small"> - 
    206                                                        
     205                                                        <span class="small"> -
     206
    207207                                                        <?php if ( bp_get_group_member_is_banned() ) : ?>
    208                                                                
     208
    209209                                                                <a href="<?php bp_group_member_unban_link() ?>" class="confirm member-unban" title="<?php _e( 'Unban this member', 'buddypress' ) ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
    210210
  • trunk/bp-themes/bp-default/registration/register.php

    r3306 r3592  
    163163
    164164                                <?php endif; ?>
    165                                
     165
    166166                                <?php if ( bp_get_blog_signup_allowed() ) : ?>
    167167
  • trunk/bp-xprofile.php

    r3572 r3592  
    634634                $data = array();
    635635                foreach( (array)$values as $value ) {
    636                         $data[] = apply_filters( 'xprofile_get_field_data', $value ); 
     636                        $data[] = apply_filters( 'xprofile_get_field_data', $value );
    637637                }
    638638        } else {
    639639                $data = apply_filters( 'xprofile_get_field_data', $values );
    640640        }
    641        
     641
    642642        return $data;
    643643}
    … …  
    928928        if ( !$object_id )
    929929                return false;
    930        
     930
    931931        if ( !isset( $object_type ) )
    932932                return false;
    933        
     933
    934934        if ( !in_array( $object_type, array( 'group', 'field', 'data' ) ) )
    935935                return false;
    … …  
    962962        if ( !$object_id )
    963963                return false;
    964        
     964
    965965        if ( !isset( $object_type ) )
    966966                return false;
    967        
     967
    968968        if ( !in_array( $object_type, array( 'group', 'field', 'data' ) ) )
    969969                return false;
    … …  
    10031003        if ( !$object_id )
    10041004                return false;
    1005        
     1005
    10061006        if ( !isset( $object_type ) )
    10071007                return false;
    1008        
     1008
    10091009        if ( !in_array( $object_type, array( 'group', 'field', 'data' ) ) )
    10101010                return false;
    1011                
     1011
    10121012        $meta_key = preg_replace( '|[^a-z0-9_]|i', '', $meta_key );
    10131013
    … …  
    10191019        if ( empty( $meta_value ) )
    10201020                return bp_xprofile_delete_meta( $object_id, $object_type, $meta_key );
    1021        
     1021
    10221022        $cur = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . $bp->profile->table_name_meta . " WHERE object_id = %d AND object_type = %s AND meta_key = %s", $object_id, $object_type, $meta_key ) );
    10231023
    … …  
    10361036
    10371037function bp_xprofile_update_fieldgroup_meta( $field_group_id, $meta_key, $meta_value ) {
    1038         return bp_xprofile_update_meta( $field_group_id, 'group', $meta_key, $meta_value );     
     1038        return bp_xprofile_update_meta( $field_group_id, 'group', $meta_key, $meta_value );
    10391039}
    10401040
    10411041function bp_xprofile_update_field_meta( $field_id, $meta_key, $meta_value ) {
    1042         return bp_xprofile_update_meta( $field_id, 'field', $meta_key, $meta_value );   
     1042        return bp_xprofile_update_meta( $field_id, 'field', $meta_key, $meta_value );
    10431043}
    10441044
    10451045function bp_xprofile_update_fielddata_meta( $field_data_id, $meta_key, $meta_value ) {
    1046         return bp_xprofile_update_meta( $field_data_id, 'data', $meta_key, $meta_value );       
     1046        return bp_xprofile_update_meta( $field_data_id, 'data', $meta_key, $meta_value );
    10471047}
    10481048
  • trunk/bp-xprofile/admin/js/admin.dev.js

    r3476 r3592  
    1313        var label = document.createElement('label');
    1414        label.setAttribute('for', forWhat + '_option' + theId);
    15        
     15
    1616        var txt = document.createTextNode("Option " + theId + ": ");
    1717        label.appendChild(txt);
    18        
     18
    1919        var isDefault = document.createElement('input');
    20        
     20
    2121        if(forWhat == 'checkbox' || forWhat == 'multiselectbox') {
    2222                isDefault.setAttribute('type', 'checkbox');
    … …  
    2424        } else {
    2525                isDefault.setAttribute('type', 'radio');
    26                 isDefault.setAttribute('name', 'isDefault_' + forWhat + '_option');                                     
     26                isDefault.setAttribute('name', 'isDefault_' + forWhat + '_option');
    2727        }
    28        
     28
    2929        isDefault.setAttribute('value', theId);
    30        
     30
    3131        var label1 = document.createElement('label');
    3232        var txt1 = document.createTextNode(" Default Value ");
    33        
     33
    3434        label1.appendChild(txt1);
    3535        label1.setAttribute('for', 'isDefault_' + forWhat + '_option[]');
    3636        toDelete = document.createElement('a');
    37        
     37
    3838        toDeleteText = document.createTextNode('[x]');
    3939        toDelete.setAttribute('href',"javascript:hide('" + forWhat + '_div' + theId + "')");
    40        
     40
    4141        toDelete.setAttribute('class','delete');
    4242
    … …  
    4747        newDiv.appendChild(document.createTextNode(" "));
    4848        newDiv.appendChild(isDefault);
    49         newDiv.appendChild(label1);     
    50         newDiv.appendChild(toDelete);   
     49        newDiv.appendChild(label1);
     50        newDiv.appendChild(toDelete);
    5151        holder.appendChild(newDiv);
    52        
    53        
     52
     53
    5454        theId++
    5555        document.getElementById(forWhat + "_option_number").value = theId;
    … …  
    6161        document.getElementById("multiselectbox").style.display = "none";
    6262        document.getElementById("checkbox").style.display = "none";
    63        
     63
    6464        if(forWhat == "radio")
    6565                document.getElementById("radio").style.display = "";
    66        
     66
    6767        if(forWhat == "selectbox")
    68                 document.getElementById("selectbox").style.display = "";                                               
    69        
     68                document.getElementById("selectbox").style.display = "";
     69
    7070        if(forWhat == "multiselectbox")
    71                 document.getElementById("multiselectbox").style.display = "";                                           
    72        
     71                document.getElementById("multiselectbox").style.display = "";
     72
    7373        if(forWhat == "checkbox")
    74                 document.getElementById("checkbox").style.display = "";                                         
     74                document.getElementById("checkbox").style.display = "";
    7575}
    7676
    7777function hide(id) {
    7878        if ( !document.getElementById(id) ) return false;
    79        
     79
    8080        document.getElementById(id).style.display = "none";
    8181        document.getElementById(id).value = '';
    … …  
    8484// Set up deleting options ajax
    8585jQuery(document).ready( function() {
    86        
    87         jQuery("a.ajax-option-delete").click( 
     86
     87        jQuery("a.ajax-option-delete").click(
    8888                function() {
    8989                        var theId = this.id.split('-');
    9090                        theId = theId[1];
    91                        
     91
    9292                        jQuery.post( ajaxurl, {
    9393                                action: 'xprofile_delete_option',
    9494                                'cookie': encodeURIComponent(document.cookie),
    9595                                '_wpnonce': jQuery("input#_wpnonce").val(),
    96                                
     96
    9797                                'option_id': theId
    9898                        },
    … …  
    100100                        {});
    101101                }
    102         );                             
     102        );
    103103});
    104104
    … …  
    161161
    162162        /* tabs init with a custom tab template and an "add" callback filling in the content */
    163         var $tab_items; 
     163        var $tab_items;
    164164        var $tabs = jQuery( "#tabs" ).tabs();
    165165        set_tab_items( $tabs );
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r3544 r3592  
    761761                global $wpdb, $bp;
    762762
    763                
     763
    764764                $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = %d", $this->user_id, $this->field_id ) );
    765765
Note: See TracChangeset for help on using the changeset viewer.