Changeset 3260 for branches/1.2/bp-core/bp-core-widgets.php
- Timestamp:
- 09/13/2010 01:08:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-widgets.php
r3143 r3260 22 22 global $bp; 23 23 24 24 extract( $args ); 25 25 26 26 echo $before_widget; … … 32 32 <div class="item-options" id="members-list-options"> 33 33 <span class="ajax-loader" id="ajax-loader-members"></span> 34 <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="newest-members" class="selected"><?php _e( 'Newest', 'buddypress' ) ?></a> | 35 <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="recently-active-members"><?php _e( 'Active', 'buddypress' ) ?></a> | 36 <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="popular-members"><?php _e( 'Popular', 'buddypress' ) ?></a> 34 <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="newest-members" class="selected"><?php _e( 'Newest', 'buddypress' ) ?></a> 35 | <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="recently-active-members"><?php _e( 'Active', 'buddypress' ) ?></a> 36 37 <?php if ( bp_is_active( 'friends' ) ) : ?> 38 39 | <a href="<?php echo site_url() . '/' . BP_MEMBERS_SLUG ?>" id="popular-members"><?php _e( 'Popular', 'buddypress' ) ?></a> 40 41 <?php endif; ?> 42 37 43 </div> 38 44 … … 148 154 global $bp; 149 155 150 156 extract( $args ); 151 157 152 158 echo $before_widget; … … 202 208 case 'newest-members': 203 209 $type = 'newest'; 204 break; 210 break; 211 205 212 case 'recently-active-members': 206 213 $type = 'active'; 207 break; 214 break; 215 208 216 case 'popular-members': 209 $type = 'popular'; 210 break; 217 if ( bp_is_active( 'friends' ) ) 218 $type = 'popular'; 219 else 220 $type = 'active'; 221 222 break; 211 223 } 212 224 … … 224 236 <?php if ( 'active' == $type || 'newest' == $type ) : ?> 225 237 <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div> 226 <?php else : ?>238 <?php elseif ( bp_is_active( 'friends' ) ) : ?> 227 239 <div class="item-meta"><span class="activity"><?php bp_member_total_friend_count() ?></span></div> 228 240 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.