Ticket #6513: 6513.diff
File 6513.diff, 4.1 KB (added by , 9 years ago) |
---|
-
src/bp-groups/bp-groups-widgets.php
72 72 */ 73 73 $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ); 74 74 75 /** 76 * Filters the separator of the group list options 77 */ 78 $separator = apply_filters( 'bp_groups_widget_separator', '|' ); 79 75 80 echo $before_widget; 76 81 77 82 $title = !empty( $instance['link_title'] ) ? '<a href="' . bp_get_groups_directory_permalink() . '">' . $title . '</a>' : $title; … … 89 94 90 95 <?php if ( bp_has_groups( $group_args ) ) : ?> 91 96 <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> | 97 <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> 98 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 99 <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> 100 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 94 101 <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> 95 102 </div> 96 103 -
src/bp-members/bp-members-widgets.php
76 76 $title = apply_filters( 'widget_title', $settings['title'], $settings, $this->id_base ); 77 77 $title = $settings['link_title'] ? '<a href="' . bp_get_members_directory_permalink() . '">' . $title . '</a>' : $title; 78 78 79 /** 80 * Filters the separator of the member list options 81 */ 82 $separator = apply_filters( 'bp_members_widget_separator', '|' ); 83 79 84 // Output before widget HTMl, title (and maybe content before & after it) 80 85 echo $args['before_widget'] 81 86 . $args['before_title'] … … 96 101 97 102 <div class="item-options" id="members-list-options"> 98 103 <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> 104 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 105 <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> 100 106 101 107 <?php if ( bp_is_active( 'friends' ) ) : ?> 108 <span class="bp-separator" role="separator"><?php echo esc_html( $separator ); ?></span> 109 <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> 102 110 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>104 105 111 <?php endif; ?> 106 112 107 113 </div>