Skip to content

Commit

Permalink
Merge pull request #2137 from QuizandSurveyMaster/dev
Browse files Browse the repository at this point in the history
Release 8.1.2
  • Loading branch information
etvarun authored Mar 15, 2023
2 parents 826010c + e4d1710 commit ec3c169
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 48 deletions.
4 changes: 2 additions & 2 deletions mlw_quizmaster2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Quiz And Survey Master
* Description: Easily and quickly add quizzes and surveys to your website.
* Version: 8.1.1
* Version: 8.1.2
* Author: ExpressTech
* Author URI: https://quizandsurveymaster.com/
* Plugin URI: https://expresstech.io/
Expand Down Expand Up @@ -43,7 +43,7 @@ class MLWQuizMasterNext {
* @var string
* @since 4.0.0
*/
public $version = '8.1.1';
public $version = '8.1.2';

/**
* QSM Alert Manager Object
Expand Down
91 changes: 46 additions & 45 deletions php/admin/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,51 +95,52 @@ public function init() {
*/
public static function default_settings() {
return array(
'form_type' => 0,
'system' => 3,
'score_roundoff' => 0,
'progress_bar' => 0,
'require_log_in' => 0,
'pagination' => 0,
'timer_limit' => 0,
'enable_result_after_timer_end' => 0,
'skip_validation_time_expire' => 0,
'total_user_tries' => 0,
'limit_total_entries' => 0,
'question_from_total' => 0,
'question_per_category' => 0,
'contact_info_location' => 0,
'loggedin_user_contact' => 0,
'comment_section' => 1,
'question_numbering' => 0,
'show_optin' => 0,
'show_text_html' => 0,
'store_responses' => 1,
'send_email' => 1,
'disable_answer_onselect' => 0,
'ajax_show_correct' => 0,
'contact_disable_autofill' => 0,
'form_disable_autofill' => 0,
'show_category_on_front' => 0,
'enable_quick_result_mc' => 0,
'end_quiz_if_wrong' => 0,
'enable_quick_correct_answer_info' => 0,
'enable_retake_quiz_button' => 1,
'enable_pagination_quiz' => 0,
'enable_deselect_option' => 0,
'disable_description_on_result' => 0,
'disable_scroll_next_previous_click' => 0,
'disable_first_page' => 0,
'disable_mathjax' => 0,
'quiz_animation' => '',
'result_page_fb_image' => QSM_PLUGIN_URL . 'assets/icon-200x200.png',
'randomness_order' => 0,
'scheduled_time_start' => '',
'scheduled_time_end' => '',
'not_allow_after_expired_time' => 0,
'preferred_date_format' => 'F j, Y',
'default_answers' => 1,
'correct_answer_logic' => 0,
'form_type' => 0,
'system' => 3,
'score_roundoff' => 0,
'progress_bar' => 0,
'require_log_in' => 0,
'pagination' => 0,
'timer_limit' => 0,
'enable_result_after_timer_end' => 0,
'skip_validation_time_expire' => 0,
'total_user_tries' => 0,
'limit_total_entries' => 0,
'question_from_total' => 0,
'question_per_category' => 0,
'contact_info_location' => 0,
'loggedin_user_contact' => 0,
'comment_section' => 1,
'question_numbering' => 0,
'show_optin' => 0,
'show_text_html' => 0,
'store_responses' => 1,
'send_email' => 1,
'disable_answer_onselect' => 0,
'ajax_show_correct' => 0,
'contact_disable_autofill' => 0,
'form_disable_autofill' => 0,
'show_category_on_front' => 0,
'enable_quick_result_mc' => 0,
'end_quiz_if_wrong' => 0,
'enable_quick_correct_answer_info' => 0,
'show_question_featured_image_in_result' => 0,
'enable_retake_quiz_button' => 1,
'enable_pagination_quiz' => 0,
'enable_deselect_option' => 0,
'disable_description_on_result' => 0,
'disable_scroll_next_previous_click' => 0,
'disable_first_page' => 0,
'disable_mathjax' => 0,
'quiz_animation' => '',
'result_page_fb_image' => QSM_PLUGIN_URL . 'assets/icon-200x200.png',
'randomness_order' => 0,
'scheduled_time_start' => '',
'scheduled_time_end' => '',
'not_allow_after_expired_time' => 0,
'preferred_date_format' => 'F j, Y',
'default_answers' => 1,
'correct_answer_logic' => 0,
);
}

Expand Down
3 changes: 3 additions & 0 deletions php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,9 @@ public function display_end_section( $qmn_quiz_options, $qmn_array_for_variables
} else {
?>
<div class="qsm-auto-page-row quiz_section quiz_end empty_quiz_end <?php echo esc_attr( $qsm_d_none ); ?>" >
<?php if ( ( ! empty( $qmn_quiz_options->randomness_order ) && 0 !== intval( $qmn_quiz_options->randomness_order ) ) || ( ! empty( $qmn_quiz_options->question_from_total ) && 0 !== intval( $qmn_quiz_options->question_from_total ) ) && ( empty( $qmn_quiz_options->pagination ) || 0 === intval( $qmn_quiz_options->pagination ) ) ) : ?>
<input type="submit" class="qsm-btn qsm-submit-btn qmn_btn" value="<?php echo esc_attr( $mlwQuizMasterNext->pluginHelper->qsm_language_support( $qmn_quiz_options->submit_button_text, "quiz_submit_button_text-{$qmn_quiz_options->quiz_id}" ) ); ?>" />
<?php endif; ?>
</div>
<?php
}
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: quiz, survey, lead, test, score, exam, questionnaire, question,wordpress q
Requires at least: 4.9
Tested up to: 6.1
Requires PHP: 5.4
Stable tag: 8.1.1
Stable tag: 8.1.2
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -163,6 +163,9 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
18. Database

== Changelog ==
= 8.1.2 (March 15, 2023) =
* Hotfix: Fixed submit button visiblity issue with random question option

= 8.1.1 (March 09, 2023) =
* Feature: Added an option to highlight the correct answer if the user selected the wrong answer
* Feature: Added an option to show/hide the question's featured image on the result page
Expand Down

0 comments on commit ec3c169

Please sign in to comment.