@@ 3319-3323 (lines=5) @@ | ||
3316 | $user_lesson_status = Sensei_Utils::user_lesson_status( get_the_ID(), get_current_user_id() ); |
|
3317 | ||
3318 | $lesson_length = get_post_meta( $lesson_id, '_lesson_length', true ); |
|
3319 | if ( '' != $lesson_length ) { |
|
3320 | ||
3321 | $meta_html .= '<span class="lesson-length">' . __( 'Length: ', 'woothemes-sensei' ) . $lesson_length . __( ' minutes', 'woothemes-sensei' ) . '</span>'; |
|
3322 | ||
3323 | } |
|
3324 | ||
3325 | if ( Sensei()->settings->get( 'lesson_author' ) ) { |
|
3326 | ||
@@ 3336-3344 (lines=9) @@ | ||
3333 | ||
3334 | } |
|
3335 | ||
3336 | if ( $single_lesson_complete ) { |
|
3337 | ||
3338 | $meta_html .= '<span class="lesson-status complete">' .__( 'Complete', 'woothemes-sensei' ) .'</span>'; |
|
3339 | ||
3340 | } elseif ( $user_lesson_status ) { |
|
3341 | ||
3342 | $meta_html .= '<span class="lesson-status in-progress">' . __( 'In Progress', 'woothemes-sensei' ) .'</span>'; |
|
3343 | ||
3344 | } // End If Statement |
|
3345 | ||
3346 | echo $meta_html; |
|
3347 |