choice-box.php
1 year ago
fill-in-the-blank.php
3 years ago
image-answer.php
3 years ago
image-matching.php
1 year ago
matching.php
1 year ago
meta.php
5 days ago
open-ended.php
2 years ago
ordering.php
3 years ago
question.php
5 days ago
short-answer.php
1 year ago
short-answer.php
37 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Short answer |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Quiz\Parts |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @version 1.0.0 |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | |
| 14 | <div class="quiz-question-ans-choice-area tutor-mt-40 question-type-<?php echo esc_attr( $question_type ); ?> <?php echo $answer_required ? 'quiz-answer-required' : ''; ?>"> |
| 15 | <div class="quiz-question-ans-choice"> |
| 16 | <textarea class="tutor-form-control question_type_<?php echo esc_attr( $question_type ); ?>" name="attempt[<?php echo esc_attr( $is_started_quiz->attempt_id ); ?>][quiz_question][<?php echo esc_attr( $question->question_id ); ?>]"></textarea> |
| 17 | </div> |
| 18 | <?php |
| 19 | if ( 'short_answer' === $question_type ) { |
| 20 | $get_option_meta = tutor_utils()->get_quiz_option( $quiz_id ); |
| 21 | if ( isset( $get_option_meta['short_answer_characters_limit'] ) ) { |
| 22 | if ( '' != $get_option_meta['short_answer_characters_limit'] ) { |
| 23 | $characters_limit = $get_option_meta['short_answer_characters_limit']; |
| 24 | $markup = '<p class="answer_limit_desc">' . __( 'Character Remaining: ', 'tutor' ) . '<span class="characters_remaining">' . $characters_limit . '</span> </p>'; |
| 25 | echo wp_kses( |
| 26 | $markup, |
| 27 | array( |
| 28 | 'p' => array( 'class' => true ), |
| 29 | 'span' => array( 'class' => true ), |
| 30 | ) |
| 31 | ); |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | ?> |
| 36 | </div> |
| 37 |