Skip to content

Commit

Permalink
Added advance dropdown functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Dec 12, 2023
1 parent 38f747f commit ac13a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/template-variables/qsm-tempvar-question-answers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
function qsm_tempvar_qa_text_qt_choice( $total_answers, $answers_from_response, $grading_system, $question_settings, $form_type = 0 ) {
global $mlwQuizMasterNext;
$question_with_answer_text = '';
$class = '';
$class = '';
foreach ( $total_answers as $single_answer_key => $single_answer ) {
if ( 8 == $answers_from_response['question_type'] && 'not-opted' == $answers_from_response['user_compare_text'] ) {
$class = 'not-opted';
Expand All @@ -18,7 +18,7 @@ function qsm_tempvar_qa_text_qt_choice( $total_answers, $answers_from_response,
}
if ( in_array( $single_answer_key, $user_answer_keys, true ) ) {
$is_user_answer = true;
}
}
$image_class = '';
$caption = '';
if ( isset( $question_settings['answerEditor'] ) && 'image' === $question_settings['answerEditor'] ) {
Expand Down

0 comments on commit ac13a2c

Please sign in to comment.