Changeset 6606
- Timestamp:
- 12/10/2012 02:04:33 PM (12 years ago)
- Location:
- trunk/bp-groups
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/admin/js/admin.js
r6267 r6606 22 22 open: function() { $(this).addClass('open'); }, 23 23 close: function() { $(this).removeClass('open'); $(this).val(''); }, 24 select: function( event, ui ) { add_member_to_list( event, ui ); }, 25 24 select: function( event, ui ) { add_member_to_list( event, ui ); } 26 25 }); 27 26 -
trunk/bp-groups/bp-groups-admin.php
r6467 r6606 54 54 */ 55 55 function bp_groups_admin_load() { 56 global $bp , $bp_groups_list_table;56 global $bp_groups_list_table; 57 57 58 58 // Build redirection URL … … 60 60 61 61 // Decide whether to load the dev version of the CSS and JavaScript 62 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : ' .min';62 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : 'min.'; 63 63 64 64 // Decide whether to load the index or edit screen … … 233 233 if ( ! empty( $user_names ) ) { 234 234 235 foreach( $user_names as $user_key =>$user_name ) {235 foreach( array_values( $user_names ) as $user_name ) { 236 236 $un = trim( $user_name ); 237 237 … … 398 398 * Display the single groups edit screen 399 399 * 400 * @global int $screen_layout_columns Number of columns shown on this admin page401 400 * @since 1.7 402 401 */ 403 402 function bp_groups_admin_edit() { 404 global $screen_layout_columns;405 403 406 404 if ( ! is_super_admin() ) … … 459 457 460 458 // Call an action for plugins to modify the group before we display the edit form 461 do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); 462 ?> 459 do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?> 463 460 464 461 <div class="wrap"> … … 891 888 */ 892 889 class BP_Groups_List_Table extends WP_List_Table { 890 893 891 /** 894 892 * What type of view is being displayed? e.g. "All", "Pending", "Approved", "Spam"... … … 979 977 $this->group_type_ids = BP_Groups_Group::get_group_type_ids(); 980 978 979 // Pass a dummy array if there are no groups of this type 981 980 $include = false; 982 981 if ( 'all' != $this->view && isset( $this->group_type_ids[ $this->view ] ) ) { 983 // Pass a dummy array if there are no groups of this type984 982 $include = ! empty( $this->group_type_ids[ $this->view ] ) ? $this->group_type_ids[ $this->view ] : array( 0 ); 985 983 } … … 1056 1054 extract( $this->_args ); 1057 1055 1058 $this->display_tablenav( 'top' ); 1059 ?> 1056 $this->display_tablenav( 'top' ); ?> 1060 1057 1061 1058 <table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0"> … … 1089 1086 function single_row( $item ) { 1090 1087 static $row_class = ''; 1091 $row_class = ( $row_class == '' ? ' class="alternate"' : '' ); 1088 1089 if ( empty( $row_class ) ) { 1090 $row_class = ( $row_class == '' ) ? ' class="alternate"' : ''; 1091 } 1092 1092 1093 1093 echo '<tr' . $row_class . ' id="activity-' . esc_attr( $item['id'] ) . '" data-parent_id="' . esc_attr( $item['id'] ) . '" data-root_id="' . esc_attr( $item['id'] ) . '">'; … … 1102 1102 */ 1103 1103 function get_views() { 1104 $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] ); 1105 //$redirect_to = remove_query_arg( array( 'activity_status', 'aid', 'deleted', 'error', 'spammed', 'unspammed', 'updated', ), $_SERVER['REQUEST_URI'] ); 1106 ?> 1104 $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] ); ?> 1107 1105 <ul class="subsubsub"> 1108 1106 <li class="all"><a href="<?php echo esc_attr( esc_url( $url_base ) ); ?>" class="<?php if ( 'all' == $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li>
Note: See TracChangeset
for help on using the changeset viewer.