1010
1111namespace Tutor \Models ;
1212
13+ use TUTOR \Icon ;
1314use TUTOR \Course ;
1415use Tutor \Ecommerce \Tax ;
1516use Tutor \Helpers \QueryHelper ;
@@ -1464,6 +1465,8 @@ public static function get_topic_progress_by_course_id( $course_id, $student_id
14641465 'is_completed ' => $ is_completed ,
14651466 'time_limit ' => tutor_utils ()->get_quiz_option ( $ post_id , 'time_limit.time_value ' ),
14661467 'time_type ' => tutor_utils ()->get_quiz_option ( $ post_id , 'time_limit.time_type ' ),
1468+ 'label ' => __ ( 'Quiz ' , 'tutor ' ),
1469+ 'icon ' => Icon::QUIZ_2 ,
14671470 );
14681471
14691472 } elseif ( 'tutor_assignments ' === $ post_type ) {
@@ -1477,6 +1480,8 @@ public static function get_topic_progress_by_course_id( $course_id, $student_id
14771480 'link ' => esc_url ( get_permalink ( $ post_id ) ),
14781481 'title ' => $ content_post ->post_title ,
14791482 'is_completed ' => $ is_completed ,
1483+ 'label ' => __ ( 'Assignment ' , 'tutor ' ),
1484+ 'icon ' => Icon::BOOK_2 ,
14801485 );
14811486
14821487 } elseif ( tutor ()->zoom_post_type === $ post_type ) {
@@ -1485,6 +1490,8 @@ public static function get_topic_progress_by_course_id( $course_id, $student_id
14851490 'id ' => $ post_id ,
14861491 'title ' => $ content_post ->post_title ,
14871492 'link ' => esc_url ( get_permalink ( $ post_id ) ),
1493+ 'label ' => __ ( 'Live Class ' , 'tutor ' ),
1494+ 'icon ' => Icon::ZOOM ,
14881495 );
14891496
14901497 } elseif ( tutor ()->meet_post_type === $ post_type ) {
@@ -1493,6 +1500,8 @@ public static function get_topic_progress_by_course_id( $course_id, $student_id
14931500 'id ' => $ post_id ,
14941501 'title ' => $ content_post ->post_title ,
14951502 'link ' => esc_url ( get_permalink ( $ post_id ) ),
1503+ 'label ' => __ ( 'Live Class ' , 'tutor ' ),
1504+ 'icon ' => Icon::GOOGLE_MEET ,
14961505 );
14971506
14981507 } else {
@@ -1507,6 +1516,8 @@ public static function get_topic_progress_by_course_id( $course_id, $student_id
15071516 'video ' => $ video ,
15081517 'video_play_time ' => isset ( $ video ->playtime ) ? $ video ->playtime : '' ,
15091518 'is_completed ' => $ is_completed ,
1519+ 'label ' => __ ( 'Reading ' , 'tutor ' ),
1520+ 'icon ' => Icon::COURSES ,
15101521 );
15111522 }
15121523
0 commit comments