|
@@ 3310-3314 (lines=5) @@
|
| 3307 |
|
$user_lesson_status = Sensei_Utils::user_lesson_status( get_the_ID(), get_current_user_id() ); |
| 3308 |
|
|
| 3309 |
|
$lesson_length = get_post_meta( $lesson_id, '_lesson_length', true ); |
| 3310 |
|
if ( '' != $lesson_length ) { |
| 3311 |
|
|
| 3312 |
|
$meta_html .= '<span class="lesson-length">' . __( 'Length: ', 'woothemes-sensei' ) . $lesson_length . __( ' minutes', 'woothemes-sensei' ) . '</span>'; |
| 3313 |
|
|
| 3314 |
|
} |
| 3315 |
|
|
| 3316 |
|
if ( Sensei()->settings->get( 'lesson_author' ) ) { |
| 3317 |
|
|
|
@@ 3327-3335 (lines=9) @@
|
| 3324 |
|
|
| 3325 |
|
} |
| 3326 |
|
|
| 3327 |
|
if ( $single_lesson_complete ) { |
| 3328 |
|
|
| 3329 |
|
$meta_html .= '<span class="lesson-status complete">' .__( 'Complete', 'woothemes-sensei' ) .'</span>'; |
| 3330 |
|
|
| 3331 |
|
} elseif ( $user_lesson_status ) { |
| 3332 |
|
|
| 3333 |
|
$meta_html .= '<span class="lesson-status in-progress">' . __( 'In Progress', 'woothemes-sensei' ) .'</span>'; |
| 3334 |
|
|
| 3335 |
|
} // End If Statement |
| 3336 |
|
|
| 3337 |
|
echo $meta_html; |
| 3338 |
|
|