Skip to content

Commit

Permalink
Fixed PHPCS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
etchirag committed Dec 29, 2023
1 parent 858a5f1 commit 209965a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ public function display_quiz( $options, $quiz_data, $question_amount, $shortcode
'recaptcha_error_text' => __( 'ReCaptcha is missing', 'quiz-master-next' ),
);
$qmn_json_data = apply_filters( 'qsm_json_error_message', $qmn_json_data ,$options);
$quiz_time_over = __( 'Quiz time is over.', 'quiz-master-next' );
wp_enqueue_script( 'progress-bar', QSM_PLUGIN_JS_URL . '/progressbar.min.js', array(), '1.1.0', true );
wp_enqueue_script( 'jquery-ui-slider' );
wp_enqueue_script( 'jquery-ui-slider-rtl-js', QSM_PLUGIN_JS_URL . '/jquery.ui.slider-rtl.js', array(), $mlwQuizMasterNext->version, true );
Expand All @@ -924,7 +925,7 @@ public function display_quiz( $options, $quiz_data, $question_amount, $shortcode
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'multicheckbox_limit_reach' => $mlwQuizMasterNext->pluginHelper->qsm_language_support( $options->quiz_limit_choice, "quiz_quiz_limit_choice-{$options->quiz_id}" ),
'out_of_text' => __( ' out of ', 'quiz-master-next' ),
'quiz_time_over' => __( 'Quiz time is over.', 'quiz-master-next' ),
'quiz_time_over' => esc_html($quiz_time_over),
'security' => wp_create_nonce( 'qsm_submit_quiz' ),
'start_date' => current_time( 'h:i:s A m/d/Y' ),
)
Expand Down
4 changes: 2 additions & 2 deletions php/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ function qsm_get_post_id_from_quiz_id( $quiz_id ) {
add_filter( 'qmn_end_shortcode', 'qsm_display_popup_div', 10, 3 );
function qsm_display_popup_div( $return_display, $qmn_quiz_options ) {
if ( '0' === $qmn_quiz_options->enable_result_after_timer_end && 0 < $qmn_quiz_options->timer_limit ) {
$time_up = __( 'Time is Up!', 'quiz-master-next' );
$time_up = __( 'Time is Up!', 'quiz-master-next' );
$return_display .= '<div style="display: none;" class="qsm-popup qsm-popup-slide" id="modal-3" aria-hidden="false">';
$return_display .= '<div class="qsm-popup__overlay" tabindex="-1" data-micromodal-close="">';
$return_display .= '<div class="qsm-popup__container qmn_quiz_container" role="dialog" aria-modal="true">';
$return_display .= '<div class="qsm-popup__content">';
$return_display .= '<img src="' . QSM_PLUGIN_URL . 'assets/clock.png' . '" alt="clock.png"/>';
$return_display .= '<p class="qsm-time-up-text">'. $time_up .'</p>';
$return_display .= '<p class="qsm-time-up-text">'. esc_html($time_up) .'</p>';
$return_display .= '</div>';
$return_display .= '<footer class="qsm-popup__footer"><button class="qsm-popup-secondary-button qmn_btn" data-micromodal-close="" aria-label="Close this dialog window">'. __( 'Cancel', 'quiz-master-next' ).'</button><button data-quiz_id="' . $qmn_quiz_options->quiz_id . '" class="submit-the-form qmn_btn">'.__( 'Submit Quiz', 'quiz-master-next' ).'</button></footer>'; $return_display .= '</div>';
$return_display .= '</div>';
Expand Down

0 comments on commit 209965a

Please sign in to comment.