Skip to content

Commit

Permalink
added hooks for timer new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-pranav committed Dec 17, 2024
1 parent 854b1a2 commit 514ad01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion php/admin/admin-results-details-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ function qsm_generate_results_details_tab() {

//Timer design
$template .= '<div class="overview-inner-wrap">';
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>'.__('Time Taken','quiz-master-next').'</span></h2>';
$template .= '<div id="submitdiv" class="postbox "><h2 class="hndle ui-sortable-handle"><span>'.__('Time Taken','quiz-master-next').'</span>';
$template .= apply_filters( 'qsm_admin_results_details_timer_after', $mlw_qmn_results_array );
$template .= '</h2>';
$template .= '<div class="inside">';
$template .= '<div class="timer-div-wrapper">';

Expand Down
3 changes: 2 additions & 1 deletion php/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ function qsm_display_popup_div( $return_display, $qmn_quiz_options ) {
$return_display .= '<img src="' . QSM_PLUGIN_URL . 'assets/clock.png' . '" alt="clock.png"/>';
$return_display .= '<p class="qsm-time-up-text">'. esc_html__( 'Time is Up!', 'quiz-master-next' ) .'</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 .= '<footer class="qsm-popup__footer"><button class="qsm-popup-secondary-button qmn_btn" data-micromodal-close="" aria-label="Close this dialog window">'. apply_filters( 'qsm_timer_up_cancel_button_text_after', __( 'Cancel', 'quiz-master-next' ) ).'</button><button data-quiz_id="' . $qmn_quiz_options->quiz_id . '" class="submit-the-form qmn_btn">'. apply_filters( 'qsm_timer_up_submit_button_text_after', __( 'Submit Quiz', 'quiz-master-next' ) ).'</button></footer>';
$return_display .= '</div>';
$return_display .= '</div>';
$return_display .= '</div>';
}
Expand Down

0 comments on commit 514ad01

Please sign in to comment.