文件操作 - fill-in-the-blank.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/tutor/templates/single/quiz/parts/fill-in-the-blank.php
编辑文件内容
<?php /** * Fill in blank * * @package Tutor\Templates * @subpackage Single\Quiz\Parts * @author Themeum <support@themeum.com> * @link https://themeum.com * @version 1.0.0 */ ?> <div id="quiz-matching-ans-area" class="quiz-question-ans-choice-area tutor-mt-40 question-type-<?php echo esc_attr( $question_type ); ?> <?php echo $answer_required ? 'quiz-answer-required' : ''; ?> "> <?php if ( is_array( $answers ) && count( $answers ) ) { foreach ( $answers as $answer ) { $answer_title = stripslashes( $answer->answer_title ); $answer->is_correct ? $quiz_answers[] = $answer->answer_id : 0; ?> <div class="fill-in-the-gap tutor-fs-6 tutor-body-color"> <?php $count_dash_fields = substr_count( $answer_title, '{dash}' ); if ( $count_dash_fields ) { $dash_string = array(); $input_data = array(); for ( $i = 1; $i <= $count_dash_fields; $i ++ ) { $dash_string[] = '{dash}'; $input_data[] = "<span class='fill-blank'> <input type='text' name='attempt[{$is_started_quiz->attempt_id}][quiz_question][{$question->question_id}][]' /> </span>"; } echo wp_kses( str_replace( $dash_string, $input_data, $answer_title ), array( 'span' => array( 'class' => true ), 'input' => array( 'type' => true, 'name' => true, 'class' => true, ), ) ); } ?> </div> <?php } } ?> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件