Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor/templates/single/quiz/parts/open-ended.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Open ended
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 ( 'open_ended' === $question_type ) {
20
+
$get_option_meta = tutor_utils()->get_quiz_option( $quiz_id );
21
+
if ( isset( $get_option_meta['open_ended_answer_characters_limit'] ) ) {
22
+
if ( '' != $get_option_meta['open_ended_answer_characters_limit'] ) {
23
+
$characters_limit = $get_option_meta['open_ended_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
+