ID, '_slms_progression_mode', true ) ?: 'sequential'; $enrollment = get_post_meta( $post->ID, '_slms_enrollment_mode', true ) ?: 'both'; $featured = (int) get_post_meta( $post->ID, '_slms_featured', true ); $content_change = get_post_meta( $post->ID, '_slms_content_change_mode', true ) ?: 'off'; $language = I18n::get_course_language( $post->ID ); ?>

>
ID ); if ( empty( $units ) ) { echo '

' . esc_html__( 'No units yet. Create units and assign them to this course.', 'accessnow-lms' ) . '

'; printf( '%s', esc_url( admin_url( 'post-new.php?post_type=slms_unit' ) ), esc_html__( 'Add New Unit', 'accessnow-lms' ) ); return; } echo '
'; foreach ( $units as $unit ) { echo '
'; echo '

'; printf( '%s', esc_url( get_edit_post_link( $unit->ID ) ), esc_html( $unit->post_title ) ); echo '

'; $lessons = Progress::get_unit_lessons( $unit->ID ); if ( ! empty( $lessons ) ) { echo ''; } else { echo '

' . esc_html__( 'No lessons in this unit.', 'accessnow-lms' ) . '

'; } echo '
'; } echo '
'; } }