Changeset 7375
- Timestamp:
- 09/09/2013 01:21:53 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r7352 r7375 1106 1106 */ 1107 1107 function single_row( $item ) { 1108 static $ row_class = '';1109 1110 if ( empty( $row_class )) {1111 $row_class = ' class=" alternate"';1108 static $even = false; 1109 1110 if ( $even ) { 1111 $row_class = ' class="even"'; 1112 1112 } else { 1113 $row_class = ' ';1113 $row_class = ' class="alternate odd"'; 1114 1114 } 1115 1115 … … 1117 1117 echo $this->single_row_columns( $item ); 1118 1118 echo '</tr>'; 1119 1120 $even = ! $even; 1119 1121 } 1120 1122 -
trunk/bp-groups/bp-groups-admin.php
r7360 r7375 1192 1192 */ 1193 1193 function single_row( $item = array() ) { 1194 static $row_class = ''; 1195 1196 if ( empty( $row_class ) ) { 1194 static $even = false; 1195 1196 if ( $even ) { 1197 $row_class = ' class="even"'; 1198 } else { 1197 1199 $row_class = ' class="alternate odd"'; 1198 } else {1199 $row_class = ' class="even"';1200 1200 } 1201 1201 … … 1203 1203 echo $this->single_row_columns( $item ); 1204 1204 echo '</tr>'; 1205 1206 $even = ! $even; 1205 1207 } 1206 1208
Note: See TracChangeset
for help on using the changeset viewer.