Skip to:
Content

BuddyPress.org

Ticket #7313: class-bp-groups-widget.php.alphabetic.patch

File class-bp-groups-widget.php.alphabetic.patch, 1.7 KB (added by mchansy, 3 years ago)
  • class-bp-groups-widget.php

     
    123123                                <a href="<?php bp_groups_directory_permalink(); ?>" id="recently-active-groups"<?php if ( $instance['group_default'] == 'active' ) : ?> class="selected"<?php endif; ?>><?php _e("Active", 'buddypress') ?></a>
    124124                                <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span>
    125125                                <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="popular-groups" <?php if ( $instance['group_default'] == 'alphabetical' ) : ?> class="selected"<?php endif; ?>><?php _e("Alphabetical", 'buddypress') ?></a>
    126128                        </div>
    127129
    128130                        <ul id="groups-list" class="item-list" aria-live="polite" aria-relevant="all" aria-atomic="true">
     
    224226                                <option value="newest" <?php selected( $group_default, 'newest' ); ?>><?php _e( 'Newest', 'buddypress' ) ?></option>
    225227                                <option value="active" <?php selected( $group_default, 'active' ); ?>><?php _e( 'Active', 'buddypress' ) ?></option>
    226228                                <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>
    227230                        </select>
    228231                </p>
    229232        <?php