Changeset 3521
- Timestamp:
- 12/05/2010 09:57:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-widgets.php
r3477 r3521 24 24 function widget( $args, $instance ) { 25 25 global $bp; 26 27 $user_id = apply_filters( 'bp_group_widget_user_id', '0' ); 26 28 27 29 extract( $args ); 28 30 29 31 if ( !$instance['group_default'] ) … … 35 37 . $after_title; ?> 36 38 37 <?php if ( bp_has_groups( ' type=' . $instance['group_default'] . '&max=' . $instance['max_groups'] ) ) : ?>39 <?php if ( bp_has_groups( 'user_id=' . $user_id . '&type=' . $instance['group_default'] . '&max=' . $instance['max_groups'] ) ) : ?> 38 40 <div class="item-options" id="groups-list-options"> 39 41 <a href="<?php echo site_url() . '/' . $bp->groups->slug ?>" id="newest-groups"<?php if ( $instance['group_default'] == 'newest' ) : ?> class="selected"<?php endif; ?>><?php _e("Newest", 'buddypress') ?></a> |
Note: See TracChangeset
for help on using the changeset viewer.