Skip to:
Content

BuddyPress.org


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

Removes trailing whitespace. Fixes #2965, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.