Skip to:
Content

BuddyPress.org

Ticket #6513: widgets.patch

File widgets.patch, 3.1 KB (added by dunhakdis, 5 years ago)
  • bp-groups/bp-groups-widgets.php

    diff --git a/bp-groups/bp-groups-widgets.php b/bp-groups/bp-groups-widgets.php
    index 2117aed..07c4b2d 100644
    a b class BP_Groups_Widget extends WP_Widget { 
    8989
    9090                <?php if ( bp_has_groups( $group_args ) ) : ?>
    9191                        <div class="item-options" id="groups-list-options">
    92                                 <a href="<?php bp_groups_directory_permalink(); ?>" id="newest-groups"<?php if ( $instance['group_default'] == 'newest' ) : ?> class="selected"<?php endif; ?>><?php _e("Newest", 'buddypress') ?></a> |
    93                                 <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> |
     92                                <a href="<?php bp_groups_directory_permalink(); ?>" id="newest-groups"<?php if ( $instance['group_default'] == 'newest' ) : ?> class="selected"<?php endif; ?>><?php _e("Newest", 'buddypress') ?></a>
     93                                <?php echo apply_filters('bp_groups_widget_separator', '|'); ?>
     94                                <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>
     95                                <?php echo apply_filters('bp_groups_widget_separator', '|'); ?>
    9496                                <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>
    9597                        </div>
    9698
  • bp-members/bp-members-widgets.php

    diff --git a/bp-members/bp-members-widgets.php b/bp-members/bp-members-widgets.php
    index c02c9da..13c8e0e 100644
    a b class BP_Core_Members_Widget extends WP_Widget { 
    9696
    9797                        <div class="item-options" id="members-list-options">
    9898                                <a href="<?php bp_members_directory_permalink(); ?>" id="newest-members" <?php if ( 'newest' === $settings['member_default'] ) : ?>class="selected"<?php endif; ?>><?php esc_html_e( 'Newest', 'buddypress' ); ?></a>
    99                                 |  <a href="<?php bp_members_directory_permalink(); ?>" id="recently-active-members" <?php if ( 'active' === $settings['member_default'] ) : ?>class="selected"<?php endif; ?>><?php esc_html_e( 'Active', 'buddypress' ); ?></a>
     99                                <?php echo apply_filters('bp_members_widget_separator', '|'); ?>
     100                                <a href="<?php bp_members_directory_permalink(); ?>" id="recently-active-members" <?php if ( 'active' === $settings['member_default'] ) : ?>class="selected"<?php endif; ?>><?php esc_html_e( 'Active', 'buddypress' ); ?></a>
    100101
    101102                                <?php if ( bp_is_active( 'friends' ) ) : ?>
    102 
    103                                         | <a href="<?php bp_members_directory_permalink(); ?>" id="popular-members" <?php if ( 'popular' === $settings['member_default'] ) : ?>class="selected"<?php endif; ?>><?php esc_html_e( 'Popular', 'buddypress' ); ?></a>
     103                                        <?php echo apply_filters('bp_members_widget_separator', '|'); ?>
     104                                        <a href="<?php bp_members_directory_permalink(); ?>" id="popular-members" <?php if ( 'popular' === $settings['member_default'] ) : ?>class="selected"<?php endif; ?>><?php esc_html_e( 'Popular', 'buddypress' ); ?></a>
    104105
    105106                                <?php endif; ?>
    106107