Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2018 03:38:01 PM (4 years ago)
Author:
djpaul
Message:

Templates, Nouveau: whitespace changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r11807 r11855  
    7373            $qs[] = 'component_action=' . $post_query['filter'];
    7474        } else {
    75             $qs[] = 'type='   . $post_query['filter'];
     75            $qs[] = 'type=' . $post_query['filter'];
    7676            $qs[] = 'action=' . $post_query['filter'];
    7777        }
     
    8585    if ( 'personal' === $post_query['scope'] ) {
    8686        $user_id = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id();
    87         $qs[] = 'user_id=' . $user_id;
     87        $qs[]    = 'user_id=' . $user_id;
    8888    }
    8989
     
    101101    if ( ! empty( $post_query['exclude_just_posted'] ) ) {
    102102        $just_posted = wp_parse_id_list( $post_query['exclude_just_posted'] );
    103         $qs[] = 'exclude=' . implode( ',', $just_posted );
     103        $qs[]        = 'exclude=' . implode( ',', $just_posted );
    104104    }
    105105
     
    157157 * @return string
    158158 */
    159 function bp_nouveau_ajax_button( $output ='', $button = null, $before ='', $after = '', $r = array() ) {
     159function bp_nouveau_ajax_button( $output = '', $button = null, $before = '', $after = '', $r = array() ) {
    160160    if ( empty( $button->component ) ) {
    161161        return $output;
     
    259259    // Actually merge some classes defaults and $args
    260260    // @todo This is temp, we need certain classes but maybe improve this approach.
    261     $default_classes = array( 'action' );
     261    $default_classes        = array( 'action' );
    262262    $r['container_classes'] = array_merge( $r['container_classes'], $default_classes );
    263263
     
    266266    }
    267267
    268     $container          = $r['container'];
    269     $container_id       = '';
    270     $container_classes  = '';
    271     $output             = $r['output'];
     268    $container         = $r['container'];
     269    $container_id      = '';
     270    $container_classes = '';
     271    $output            = $r['output'];
    272272
    273273    if ( ! empty( $r['container_id'] ) ) {
     
    276276
    277277    if ( ! empty( $r['container_classes'] ) && is_array( $r['container_classes'] ) ) {
    278         $container_classes = ' class="' . join( ' ', array_map( 'sanitize_html_class', $r['container_classes'] ) ) .'"';
     278        $container_classes = ' class="' . join( ' ', array_map( 'sanitize_html_class', $r['container_classes'] ) ) . '"';
    279279    }
    280280
     
    791791            }
    792792
    793             $k = str_replace( array( '[', ']' ), array( '_', '' ), $key );
     793            $k            = str_replace( array( '[', ']' ), array( '_', '' ), $key );
    794794            $retval[ $k ] = $setting;
    795795        }
    796796
    797797    // Used when it's an early regular request
    798     } elseif ( isset( $temporary_setting['bp_nouveau_appearance[' . $option . ']'] ) ) {
    799         $retval = $temporary_setting['bp_nouveau_appearance[' . $option . ']'];
     798    } elseif ( isset( $temporary_setting[ 'bp_nouveau_appearance[' . $option . ']' ] ) ) {
     799        $retval = $temporary_setting[ 'bp_nouveau_appearance[' . $option . ']' ];
    800800
    801801    // Used when it's an ajax request
     
    971971        /* Cover image */
    972972        #buddypress #item-header-cover-image {
    973             min-height: ' . $params["height"] . 'px;
     973            min-height: ' . $params['height'] . 'px;
    974974            margin-bottom: 1em;
    975975        }
     
    982982
    983983        #buddypress #header-cover-image {
    984             height: ' . $params["height"] . 'px;
     984            height: ' . $params['height'] . 'px;
    985985            ' . $cover_image . '
    986986        }
     
    996996
    997997        #buddypress #item-header-cover-image #item-header-avatar {
    998             margin-top: '. $avatar_offset .'px;
     998            margin-top: ' . $avatar_offset . 'px;
    999999            float: left;
    10001000            overflow: visible;
     
    10121012        body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-header-content,
    10131013        body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-actions {
    1014             margin-top: ' . $params["height"] . 'px;
     1014            margin-top: ' . $params['height'] . 'px;
    10151015            margin-left: 0;
    10161016            clear: none;
     
    12971297    } elseif ( 'member-friends-loading' === $feedback_id && bp_is_my_profile() ) {
    12981298        $feedback_messages['member-friends-loading']['message'] = __( 'Loading your friends, please wait.', 'buddypress' );
    1299     }  elseif ( 'member-groups-loading' === $feedback_id && bp_is_my_profile() ) {
     1299    } elseif ( 'member-groups-loading' === $feedback_id && bp_is_my_profile() ) {
    13001300        $feedback_messages['member-groups-loading']['message'] = __( 'Loading the groups you are a member of, please wait.', 'buddypress' );
    13011301    }
Note: See TracChangeset for help on using the changeset viewer.