header-context
4 years ago
attempt-details.php
4 years ago
attempt-table.php
4 years ago
contexts.php
4 years ago
header.php
4 years ago
instructor-feedback.php
4 years ago
instructor-feedback.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Instructor Feedback Template |
| 4 | * |
| 5 | * @package InstructorFeedback |
| 6 | * |
| 7 | * @since v2.0.0 |
| 8 | */ |
| 9 | |
| 10 | $attempt_data = $data['attempt_data']; |
| 11 | $attempt_info = isset( $attempt_data->attempt_info ) ? unserialize( $attempt_data->attempt_info ) : false; |
| 12 | $content = ''; |
| 13 | if ( $attempt_info ) { |
| 14 | $content = isset( $attempt_info['instructor_feedback'] ) ? $attempt_info['instructor_feedback'] : ''; |
| 15 | } |
| 16 | |
| 17 | ?> |
| 18 | <div class="wrap"> |
| 19 | <div class="quiz-attempt-answers-wrap"> |
| 20 | <div class="attempt-answers-header tutor-mb-12"> |
| 21 | <div class="attempt-header-quiz tutor-mt-24"> |
| 22 | <span class="tutor-color-black tutor-fs-6 tutor-fw-medium"><?php esc_html_e( 'Instructor Feedback', 'tutor' ); ?></span> |
| 23 | </div> |
| 24 | </div> |
| 25 | <div class="tutor-instructor-feedback-wrap tutor-mb-16"> |
| 26 | <div id="tutor-instructor-feedback-editor"></div> |
| 27 | <?php |
| 28 | $editor_args = array( |
| 29 | 'content' => $content, |
| 30 | 'args' => array(), |
| 31 | ); |
| 32 | $text_editor_template = tutor()->path . 'templates/global/tutor-text-editor.php'; |
| 33 | tutor_load_template_from_custom_path( $text_editor_template, $editor_args ); |
| 34 | ?> |
| 35 | </div> |
| 36 | <button class="tutor-btn tutor-btn-primary tutor-instructor-feedback tutor-mt-4" data-attempt-id="<?php echo esc_attr( $attempt_data->attempt_id ); ?>" data-toast_success_message="<?php esc_html_e( 'Updated', 'tutor' ); ?>"> |
| 37 | <?php esc_html_e( 'Update', 'tutor' ); ?> |
| 38 | </button> |
| 39 | </div> |
| 40 | </div> |
| 41 |