Changeset 11380
- Timestamp:
- 01/11/2017 02:17:40 PM (8 years ago)
- Location:
- trunk/src/bp-groups
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-widgets.php
r11366 r11380 40 40 $type = 'popular'; 41 41 break; 42 case 'alphabetical-groups': 43 $type = 'alphabetical'; 44 break; 42 45 } 43 46 … … 64 67 <?php if ( 'newest-groups' === $_POST['filter'] ) : ?> 65 68 <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_date_created( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); ?></span> 66 <?php elseif ( 'recently-active-groups' === $_POST['filter'] ) : ?> 69 <?php elseif ( 'popular-groups' === $_POST['filter'] ) : ?> 70 <span class="activity"><?php bp_group_member_count(); ?></span> 71 <?php else : ?> 67 72 <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span> 68 <?php else : ?>69 <span class="activity"><?php bp_group_member_count(); ?></span>70 73 <?php endif; ?> 71 74 </div> -
trunk/src/bp-groups/classes/class-bp-groups-widget.php
r11268 r11380 25 25 public function __construct() { 26 26 $widget_ops = array( 27 'description' => __( 'A dynamic list of recently active, popular, and newestgroups', 'buddypress' ),27 'description' => __( 'A dynamic list of recently active, popular, newest, or alphabetical groups', 'buddypress' ), 28 28 'classname' => 'widget_bp_groups_widget buddypress widget', 29 29 'customize_selective_refresh' => true, … … 124 124 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 125 125 <a href="<?php bp_groups_directory_permalink(); ?>" id="popular-groups" <?php if ( $instance['group_default'] == 'popular' ) : ?> class="selected"<?php endif; ?>><?php _e("Popular", 'buddypress') ?></a> 126 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 127 <a href="<?php bp_groups_directory_permalink(); ?>" id="alphabetical-groups" <?php if ( $instance['group_default'] == 'alphabetical' ) : ?> class="selected"<?php endif; ?>><?php _e("Alphabetical", 'buddypress') ?></a> 126 128 </div> 127 129 … … 140 142 if ( 'newest' == $instance['group_default'] ) { 141 143 printf( __( 'created %s', 'buddypress' ), bp_get_group_date_created() ); 142 } elseif ( 'active' == $instance['group_default'] ) {143 printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() );144 144 } elseif ( 'popular' == $instance['group_default'] ) { 145 145 bp_group_member_count(); 146 } else { 147 printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); 146 148 } 147 149 ?> … … 225 227 <option value="active" <?php selected( $group_default, 'active' ); ?>><?php _e( 'Active', 'buddypress' ) ?></option> 226 228 <option value="popular" <?php selected( $group_default, 'popular' ); ?>><?php _e( 'Popular', 'buddypress' ) ?></option> 229 <option value="alphabetical" <?php selected( $group_default, 'alphabetical' ); ?>><?php _e( 'Alphabetical', 'buddypress' ) ?></option> 227 230 </select> 228 231 </p>
Note: See TracChangeset
for help on using the changeset viewer.