Changeset 7949 for trunk/bp-groups/bp-groups-template.php
- Timestamp:
- 02/21/2014 02:06:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-template.php
r7948 r7949 2029 2029 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) : $per_page; 2030 2030 2031 // Assemble the base URL for pagination 2032 $base_url = trailingslashit( bp_get_group_permalink( groups_get_current_group() ) . bp_current_action() ); 2033 if ( bp_action_variable() ) { 2034 $base_url = trailingslashit( $base_url . bp_action_variable() ); 2035 } 2036 2031 2037 $members_args = $r; 2032 2038 … … 2053 2059 2054 2060 $this->pag_links = paginate_links( array( 2055 'base' => add_query_arg( 'mlpage', '%#%'),2061 'base' => add_query_arg( array( 'mlpage' => '%#%' ), $base_url ), 2056 2062 'format' => '', 2057 2063 'total' => !empty( $this->pag_num ) ? ceil( $this->total_member_count / $this->pag_num ) : $this->total_member_count, … … 2133 2139 global $members_template; 2134 2140 2141 $exclude_admins_mods = 1; 2142 2143 if ( bp_is_group_members() ) { 2144 $exclude_admins_mods = 0; 2145 } 2146 2135 2147 $r = wp_parse_args( $args, array( 2136 2148 'group_id' => bp_get_current_group_id(), … … 2139 2151 'max' => false, 2140 2152 'exclude' => false, 2141 'exclude_admins_mods' => 1,2153 'exclude_admins_mods' => $exclude_admins_mods, 2142 2154 'exclude_banned' => 1, 2143 2155 'group_role' => false, … … 2325 2337 } 2326 2338 2339 /** 2340 * Output the Group members template 2341 * 2342 * @since BuddyPress (?) 2343 * 2344 * @return string html output 2345 */ 2346 function bp_groups_members_template_part() { 2347 ?> 2348 <div class="item-list-tabs" id="subnav" role="navigation"> 2349 <ul> 2350 <li class="groups-members-search" role="search"> 2351 <?php bp_directory_members_search_form(); ?> 2352 </li> 2353 2354 <?php bp_groups_members_filter(); ?> 2355 <?php do_action( 'bp_members_directory_member_sub_types' ); ?> 2356 2357 </ul> 2358 </div> 2359 2360 <div id="members-group-list" class="group_members dir-list"> 2361 2362 <?php bp_get_template_part( 'groups/single/members' ); ?> 2363 2364 </div> 2365 <?php 2366 } 2367 2368 /** 2369 * Output the Group members filters 2370 * 2371 * @since BuddyPress (?) 2372 * 2373 * @return string html output 2374 */ 2375 function bp_groups_members_filter() { 2376 ?> 2377 <li id="group_members-order-select" class="last filter"> 2378 <label for="group_members-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label> 2379 <select id="group_members-order-by"> 2380 <option value="last_joined"><?php _e( 'Newest', 'buddypress' ); ?></option> 2381 <option value="first_joined"><?php _e( 'Oldest', 'buddypress' ); ?></option> 2382 <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option> 2383 2384 <?php do_action( 'bp_groups_members_order_options' ); ?> 2385 2386 </select> 2387 </li> 2388 <?php 2389 } 2327 2390 2328 2391 /***************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.