| @@ 294-305 (lines=12) @@ | ||
| 291 | $user_start_date = get_comment_meta( $item->comment_ID, 'start', true ); |
|
| 292 | $user_end_date = $item->comment_date; |
|
| 293 | ||
| 294 | if( 'complete' == $item->comment_approved ) { |
|
| 295 | ||
| 296 | $status = __( 'Completed', 'woothemes-sensei' ); |
|
| 297 | $status_class = 'graded'; |
|
| 298 | ||
| 299 | } else { |
|
| 300 | ||
| 301 | $status = __( 'In Progress', 'woothemes-sensei' ); |
|
| 302 | $status_class = 'in-progress'; |
|
| 303 | $user_end_date = ''; |
|
| 304 | ||
| 305 | } |
|
| 306 | $course_percent = get_comment_meta( $item->comment_ID, 'percent', true ); |
|
| 307 | ||
| 308 | // Output users data |
|
| @@ 199-211 (lines=13) @@ | ||
| 196 | $course_start_date = get_comment_meta( $item->comment_ID, 'start', true ); |
|
| 197 | $course_end_date = ''; |
|
| 198 | ||
| 199 | if( 'complete' == $item->comment_approved ) { |
|
| 200 | ||
| 201 | $status = __( 'Completed', 'woothemes-sensei' ); |
|
| 202 | $status_class = 'graded'; |
|
| 203 | ||
| 204 | $course_end_date = $item->comment_date; |
|
| 205 | ||
| 206 | } else { |
|
| 207 | ||
| 208 | $status = __( 'In Progress', 'woothemes-sensei' ); |
|
| 209 | $status_class = 'in-progress'; |
|
| 210 | ||
| 211 | } |
|
| 212 | ||
| 213 | // Output users data |
|
| 214 | if ( !$this->csv_output ) { |
|