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/groups/functions.php

    r11807 r11855  
    2020function bp_nouveau_message_markup_wrapper( $message, $type ) {
    2121
    22     if( ! $message )
     22    if ( ! $message ) {
    2323        return false;
     24    }
    2425
    2526    $message = '<div class="bp-feedback ' . $type . '"><span class="bp-icon" aria-hidden="true"></span><p>' . $message . '</p></div>';
     
    253254        if ( ! empty( $r['per_page'] ) ) {
    254255            $response->meta = array(
    255                 'total_page'   => ceil( (int) $query->total_users / (int) $r['per_page'] ),
    256                 'page' => (int) $r['page'],
     256                'total_page' => ceil( (int) $query->total_users / (int) $r['per_page'] ),
     257                'page'       => (int) $r['page'],
    257258            );
    258259        }
     
    269270    if ( bp_is_active( 'friends' ) && isset( $steps['group-invites'] ) ) {
    270271        // Simply change the name
    271         $steps['group-invites']['name'] = _x( 'Invite',  'Group screen nav', 'buddypress' );
     272        $steps['group-invites']['name'] = _x( 'Invite', 'Group screen nav', 'buddypress' );
    272273        return $steps;
    273274    }
     
    275276    // Add the create step if friends component is not active
    276277    $steps['group-invites'] = array(
    277         'name'     => _x( 'Invite',  'Group screen nav', 'buddypress' ),
    278         'position' => 30
     278        'name'     => _x( 'Invite', 'Group screen nav', 'buddypress' ),
     279        'position' => 30,
    279280    );
    280281
     
    855856function bp_nouveau_group_locate_template_part( $template = '' ) {
    856857    $current_group = groups_get_current_group();
    857     $bp_nouveau     = bp_nouveau();
     858    $bp_nouveau    = bp_nouveau();
    858859
    859860    if ( ! $template || empty( $current_group->id ) ) {
     
    877878            }
    878879
    879             $bp_nouveau->groups->current_group_hierarchy[] = 'groups/single/%s-group-type-' . sanitize_file_name( $current_group_type )   . '.php';
     880            $bp_nouveau->groups->current_group_hierarchy[] = 'groups/single/%s-group-type-' . sanitize_file_name( $current_group_type ) . '.php';
    880881        }
    881882
     
    997998function bp_nouveau_groups_add_home_widget_filters() {
    998999    add_filter( 'bp_nouveau_activity_widget_query', 'bp_nouveau_group_activity_widget_overrides', 10, 1 );
    999     add_filter( 'bp_before_has_groups_parse_args',  'bp_nouveau_group_groups_widget_overrides',  10, 1 );
    1000     add_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides',  10, 1 );
     1000    add_filter( 'bp_before_has_groups_parse_args', 'bp_nouveau_group_groups_widget_overrides', 10, 1 );
     1001    add_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides', 10, 1 );
    10011002
    10021003    do_action( 'bp_nouveau_groups_add_home_widget_filters' );
     
    10101011function bp_nouveau_groups_remove_home_widget_filters() {
    10111012    remove_filter( 'bp_nouveau_activity_widget_query', 'bp_nouveau_group_activity_widget_overrides', 10, 1 );
    1012     remove_filter( 'bp_before_has_groups_parse_args',  'bp_nouveau_group_groups_widget_overrides',  10, 1 );
    1013     remove_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides',  10, 1 );
     1013    remove_filter( 'bp_before_has_groups_parse_args', 'bp_nouveau_group_groups_widget_overrides', 10, 1 );
     1014    remove_filter( 'bp_before_has_members_parse_args', 'bp_nouveau_group_members_widget_overrides', 10, 1 );
    10141015
    10151016    do_action( 'bp_nouveau_groups_remove_home_widget_filters' );
Note: See TracChangeset for help on using the changeset viewer.