add_quiz.php
4 years ago
edit-lesson.php
4 years ago
edit_quiz.php
4 years ago
question_answer_edit_form.php
4 years ago
question_answer_form.php
4 years ago
question_form.php
4 years ago
review.php
4 years ago
edit_quiz.php
372 lines
| 1 | <?php |
| 2 | $quiz = null; |
| 3 | if ( ! empty( $_POST['tutor_quiz_builder_quiz_id'] ) ) { |
| 4 | $quiz_id = sanitize_text_field( $_POST['tutor_quiz_builder_quiz_id'] ); |
| 5 | $quiz = get_post( $quiz_id ); |
| 6 | |
| 7 | echo '<input type="hidden" id="tutor_quiz_builder_quiz_id" value="' . esc_attr( $quiz_id ) . '" />'; |
| 8 | } elseif ( ! empty( $quiz_id ) ) { |
| 9 | $quiz = get_post( $quiz_id ); |
| 10 | |
| 11 | echo '<input type="hidden" id="tutor_quiz_builder_quiz_id" value="' . esc_attr( $quiz_id ) . '" />'; |
| 12 | } |
| 13 | |
| 14 | if ( ! $quiz ) { |
| 15 | die( 'No quiz found' ); |
| 16 | } |
| 17 | |
| 18 | if ( $topic_id != '' ) { |
| 19 | echo '<input type="hidden" id="current_topic_id_for_quiz" value="' . sanitize_text_field( $_POST['topic_id'] ) . '" />'; |
| 20 | } |
| 21 | |
| 22 | ?> |
| 23 | |
| 24 | <div class="tutor-quiz-builder-modal-contents"> |
| 25 | |
| 26 | <div id="tutor-quiz-modal-tab-items-wrap" class="tutor-quiz-modal-tab-items-wrap"> |
| 27 | |
| 28 | <a href="#quiz-builder-tab-quiz-info" class="tutor-quiz-modal-tab-item active"> |
| 29 | <i class="tutor-icon-list"></i> <?php _e( 'Quiz Info', 'tutor' ); ?> |
| 30 | </a> |
| 31 | <a href="#quiz-builder-tab-questions" class="tutor-quiz-modal-tab-item"> |
| 32 | <i class="tutor-icon-doubt"></i> <?php _e( 'Questions', 'tutor' ); ?> |
| 33 | </a> |
| 34 | <a href="#quiz-builder-tab-settings" class="tutor-quiz-modal-tab-item"> |
| 35 | <i class="tutor-icon-settings-1"></i> <?php _e( 'Settings', 'tutor' ); ?> |
| 36 | </a> |
| 37 | <a href="#quiz-builder-tab-advanced-options" class="advanced-options-tab-item tutor-quiz-modal-tab-item"> |
| 38 | <i class="tutor-icon-filter-tool-black-shape"></i> <?php _e( 'Advanced Options', 'tutor' ); ?> |
| 39 | </a> |
| 40 | |
| 41 | </div> |
| 42 | |
| 43 | <div id="tutor-quiz-builder-modal-tabs-container" class="tutor-quiz-builder-modal-tabs-container"> |
| 44 | <div id="quiz-builder-tab-quiz-info" class="quiz-builder-tab-container"> |
| 45 | <div class="quiz-builder-tab-body"> |
| 46 | <div class="tutor-quiz-builder-group"> |
| 47 | <div class="tutor-quiz-builder-row"> |
| 48 | <div class="tutor-quiz-builder-col"> |
| 49 | <input type="text" name="quiz_title" placeholder="<?php _e( 'Type your quiz title here', 'tutor' ); ?>" value="<?php echo stripslashes( esc_attr( $quiz->post_title ) ); ?>"> |
| 50 | </div> |
| 51 | </div> |
| 52 | <p class="warning quiz_form_msg"></p> |
| 53 | </div> |
| 54 | <div class="tutor-quiz-builder-group"> |
| 55 | <div class="tutor-quiz-builder-row"> |
| 56 | <div class="tutor-quiz-builder-col"> |
| 57 | <textarea name="quiz_description" rows="5"><?php echo stripslashes( $quiz->post_content ); ?></textarea> |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |
| 61 | |
| 62 | <?php do_action( 'tutor_quiz_edit_modal_info_tab_after', $quiz ); ?> |
| 63 | |
| 64 | </div> |
| 65 | |
| 66 | <div class="tutor-quiz-builder-modal-control-btn-group"> |
| 67 | <div class="quiz-builder-btn-group-left"> |
| 68 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-first-step"><?php _e( 'Save & Next', 'tutor' ); ?></a> |
| 69 | </div> |
| 70 | <div class="quiz-builder-btn-group-right"> |
| 71 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-cancel"> |
| 72 | <?php |
| 73 | _e( 'Cancel', 'tutor' ); |
| 74 | ?> |
| 75 | </a> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | </div> |
| 80 | |
| 81 | <div id="quiz-builder-tab-questions" class="quiz-builder-tab-container" style="display: none;"> |
| 82 | <div class="quiz-builder-tab-body"> |
| 83 | <div class="quiz-builder-questions-wrap"> |
| 84 | |
| 85 | <?php |
| 86 | $questions = tutor_utils()->get_questions_by_quiz( $quiz_id ); |
| 87 | |
| 88 | if ( $questions ) { |
| 89 | foreach ( $questions as $question ) { |
| 90 | ?> |
| 91 | <div class="quiz-builder-question-wrap" data-question-id="<?php echo esc_attr( $question->question_id ); ?>"> |
| 92 | <div class="quiz-builder-question"> |
| 93 | <span class="question-sorting"> |
| 94 | <i class="tutor-icon-move"></i> |
| 95 | </span> |
| 96 | |
| 97 | <span class="question-title"><?php echo stripslashes( esc_attr( $question->question_title ) ); ?></span> |
| 98 | |
| 99 | <span class="question-icon"> |
| 100 | <?php |
| 101 | $type = tutor_utils()->get_question_types( $question->question_type ); |
| 102 | echo $type['icon'] . ' ' . $type['name']; |
| 103 | ?> |
| 104 | </span> |
| 105 | |
| 106 | <span class="question-edit-icon"> |
| 107 | <a href="javascript:;" class="tutor-quiz-open-question-form" data-question-id="<?php echo esc_attr( $question->question_id ); ?>"> |
| 108 | <i class="tutor-icon-pencil"></i> |
| 109 | </a> |
| 110 | </span> |
| 111 | </div> |
| 112 | |
| 113 | <div class="quiz-builder-qustion-trash"> |
| 114 | <a href="javascript:;" class="tutor-quiz-question-trash" data-question-id="<?php echo esc_attr( $question->question_id ); ?>"> |
| 115 | <i class="tutor-icon-garbage"></i> |
| 116 | </a> |
| 117 | </div> |
| 118 | </div> |
| 119 | <?php |
| 120 | } |
| 121 | } |
| 122 | ?> |
| 123 | </div> |
| 124 | |
| 125 | <div class="tutor-quiz-builder-form-row"> |
| 126 | <a href="javascript:;" class="tutor-quiz-add-question-btn tutor-quiz-open-question-form"> |
| 127 | <i class="tutor-icon-add-line"></i> |
| 128 | <?php _e( 'Add Question', 'tutor' ); ?> |
| 129 | </a> |
| 130 | </div> |
| 131 | |
| 132 | </div> |
| 133 | |
| 134 | <div class="tutor-quiz-builder-modal-control-btn-group"> |
| 135 | <div class="quiz-builder-btn-group-left"> |
| 136 | <a href="#quiz-builder-tab-quiz-info" class="quiz-modal-tab-navigation-btn quiz-modal-btn-back"><?php _e( 'Back', 'tutor' ); ?></a> |
| 137 | <a href="#quiz-builder-tab-settings" class="quiz-modal-tab-navigation-btn quiz-modal-btn-next"><?php _e( 'Next', 'tutor' ); ?></a> |
| 138 | </div> |
| 139 | <div class="quiz-builder-btn-group-right"> |
| 140 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-cancel"><?php _e( 'Cancel', 'tutor' ); ?></a> |
| 141 | </div> |
| 142 | </div> |
| 143 | |
| 144 | </div> |
| 145 | |
| 146 | <div id="quiz-builder-tab-settings" class="quiz-builder-tab-container" style="display: none;"> |
| 147 | <div class="quiz-builder-tab-body"> |
| 148 | |
| 149 | <div class="quiz-builder-modal-settins"> |
| 150 | <div class="tutor-quiz-builder-group"> |
| 151 | <h4> <?php _e( 'Time Limit', 'tutor' ); ?> </h4> |
| 152 | <div class="tutor-quiz-builder-row"> |
| 153 | <div class="tutor-quiz-builder-col auto-width"> |
| 154 | <input type="text" name="quiz_option[time_limit][time_value]" value="<?php echo esc_attr( tutor_utils()->get_quiz_option( $quiz_id, 'time_limit.time_value', 0 ) ); ?>"> |
| 155 | </div> |
| 156 | <div class="tutor-quiz-builder-col auto-width"> |
| 157 | <?php $limit_time_type = tutor_utils()->get_quiz_option( $quiz_id, 'time_limit.time_type', 'minutes' ); ?> |
| 158 | <select name="quiz_option[time_limit][time_type]"> |
| 159 | <option value="seconds" <?php selected( 'seconds', $limit_time_type ); ?>><?php _e( 'Seconds', 'tutor' ); ?></option> |
| 160 | <option value="minutes" <?php selected( 'minutes', $limit_time_type ); ?>><?php _e( 'Minutes', 'tutor' ); ?></option> |
| 161 | <option value="hours" <?php selected( 'hours', $limit_time_type ); ?>><?php _e( 'Hours', 'tutor' ); ?></option> |
| 162 | <option value="days" <?php selected( 'days', $limit_time_type ); ?>><?php _e( 'Days', 'tutor' ); ?></option> |
| 163 | <option value="weeks" <?php selected( 'weeks', $limit_time_type ); ?>><?php _e( 'Weeks', 'tutor' ); ?></option> |
| 164 | </select> |
| 165 | </div> |
| 166 | <div class="tutor-quiz-builder-col auto-width"> |
| 167 | <label class="btn-switch"> |
| 168 | <input type="checkbox" value="1" name="quiz_option[hide_quiz_time_display]" <?php checked( '1', tutor_utils()->get_quiz_option( $quiz_id, 'hide_quiz_time_display' ) ); ?> /> |
| 169 | <div class="btn-slider btn-round"></div> |
| 170 | </label> |
| 171 | <span><?php _e( 'Hide quiz time - display', 'tutor' ); ?></span> |
| 172 | </div> |
| 173 | </div> |
| 174 | <p class="help"><?php _e( 'Time limit for this quiz. 0 means no time limit.', 'tutor' ); ?></p> |
| 175 | </div> <!-- .tutor-quiz-builder-group --> |
| 176 | |
| 177 | <div class="tutor-quiz-builder-group"> |
| 178 | <h4><?php _e( 'Quiz Feedback Mode', 'tutor' ); ?> </h4> |
| 179 | |
| 180 | <p class="help">(<?php _e( 'Pick the quiz system"s behaviour on choice based questions', 'tutor' ); ?>)</p> |
| 181 | |
| 182 | <div class="tutor-quiz-builder-row"> |
| 183 | <div class="tutor-quiz-builder-col"> |
| 184 | <label class="tutor-quiz-feedback-mode"> |
| 185 | <input type="radio" name="quiz_option[feedback_mode]" value="default" <?php checked( 'default', tutor_utils()->get_quiz_option( $quiz_id, 'feedback_mode' ) ); ?>> |
| 186 | <span class="radio-icon"></span> |
| 187 | <div class="tutor-quiz-feedback-mode-option"> |
| 188 | <h4 class="tutor-quiz-feedback-option-option-title"><?php _e( 'Default', 'tutor' ); ?></h4> |
| 189 | <p class="tutor-quiz-feedback-option-subtitle"><?php _e( 'Answers shown after quiz is finished', 'tutor' ); ?></p> |
| 190 | </div> |
| 191 | </label> |
| 192 | </div> |
| 193 | <div class="tutor-quiz-builder-col"> |
| 194 | <label class="tutor-quiz-feedback-mode"> |
| 195 | <input type="radio" name="quiz_option[feedback_mode]" value="retry" <?php checked( 'retry', tutor_utils()->get_quiz_option( $quiz_id, 'feedback_mode' ) ); ?>> |
| 196 | <span class="radio-icon"></span> |
| 197 | <div class="tutor-quiz-feedback-mode-option"> |
| 198 | <h4 class="tutor-quiz-feedback-option-option-title"><?php _e( 'Retry Mode', 'tutor' ); ?></h4> |
| 199 | <p class="tutor-quiz-feedback-option-subtitle"><?php _e( 'Unlimited attempts on each question.', 'tutor' ); ?></p> |
| 200 | </div> |
| 201 | </label> |
| 202 | </div> |
| 203 | <div class="tutor-quiz-builder-col"> |
| 204 | <label class="tutor-quiz-feedback-mode"> |
| 205 | <input type="radio" name="quiz_option[feedback_mode]" value="reveal" <?php checked( 'reveal', tutor_utils()->get_quiz_option( $quiz_id, 'feedback_mode' ) ); ?>> |
| 206 | <span class="radio-icon"></span> |
| 207 | <div class="tutor-quiz-feedback-mode-option"> |
| 208 | <h4 class="tutor-quiz-feedback-option-option-title"><?php _e( 'Reveal Mode', 'tutor' ); ?></h4> |
| 209 | <p class="tutor-quiz-feedback-option-subtitle"><?php _e( 'Show result after the attempt.', 'tutor' ); ?></p> |
| 210 | </div> |
| 211 | </label> |
| 212 | </div> |
| 213 | |
| 214 | </div> |
| 215 | </div> <!-- .tutor-quiz-builder-group --> |
| 216 | |
| 217 | <div class="tutor-quiz-builder-group"> |
| 218 | <h4><?php _e( 'Attempts Allowed', 'tutor' ); ?> <span>(<?php _e( 'Optional', 'tutor' ); ?>)</span></h4> |
| 219 | <div class="tutor-quiz-builder-row"> |
| 220 | <div class="tutor-quiz-builder-col"> |
| 221 | <?php |
| 222 | $default_attempts_allowed = tutor_utils()->get_option( 'quiz_attempts_allowed' ); |
| 223 | $attempts_allowed = (int) tutor_utils()->get_quiz_option( $quiz_id, 'attempts_allowed', $default_attempts_allowed ); |
| 224 | ?> |
| 225 | |
| 226 | <div class="tutor-field-type-slider" data-min="0" data-max="20"> |
| 227 | <p class="tutor-field-type-slider-value"><?php echo esc_attr( $attempts_allowed ); ?></p> |
| 228 | <div class="tutor-field-slider"></div> |
| 229 | <input type="hidden" value="<?php echo esc_attr( $attempts_allowed ); ?>" name="quiz_option[attempts_allowed]" /> |
| 230 | </div> |
| 231 | </div> |
| 232 | </div> |
| 233 | <p class="help"><?php _e( 'Restriction on the number of attempts a student is allowed to take for this quiz. 0 for no limit', 'tutor' ); ?></p> |
| 234 | </div> <!-- .tutor-quiz-builder-group --> |
| 235 | |
| 236 | <div class="tutor-quiz-builder-group"> |
| 237 | <h4><?php _e( 'Passing Grade (%)', 'tutor' ); ?></h4> |
| 238 | <div class="tutor-quiz-builder-row"> |
| 239 | <div class="tutor-quiz-builder-col"> |
| 240 | <input type="number" name="quiz_option[passing_grade]" value="<?php echo esc_attr( tutor_utils()->get_quiz_option( $quiz_id, 'passing_grade', 80 ) ); ?>" size="10"> |
| 241 | </div> |
| 242 | </div> |
| 243 | <p class="help"><?php _e( 'Set the passing percentage for this quiz', 'tutor' ); ?></p> |
| 244 | </div> <!-- .tutor-quiz-builder-group --> |
| 245 | |
| 246 | <div class="tutor-quiz-builder-group"> |
| 247 | <h4><?php _e( 'Max questions allowed to answer', 'tutor' ); ?></h4> |
| 248 | <div class="tutor-quiz-builder-row"> |
| 249 | <div class="tutor-quiz-builder-col"> |
| 250 | <input type="number" name="quiz_option[max_questions_for_answer]" value="<?php echo esc_attr( tutor_utils()->get_quiz_option( $quiz_id, 'max_questions_for_answer', 10 ) ); ?>"> |
| 251 | </div> |
| 252 | </div> |
| 253 | <p class="help"><?php _e( 'This amount of question will be available for students to answer, and question will comes randomly from all available questions belongs with a quiz, if this amount greater than available question, then all questions will be available for a student to answer.', 'tutor' ); ?></p> |
| 254 | </div> <!-- .tutor-quiz-builder-group --> |
| 255 | |
| 256 | <?php do_action( 'tutor_quiz_edit_modal_settings_tab_after', $quiz ); ?> |
| 257 | |
| 258 | </div> |
| 259 | </div> |
| 260 | |
| 261 | <div class="tutor-quiz-builder-modal-control-btn-group"> |
| 262 | <div class="quiz-builder-btn-group-left"> |
| 263 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-back"><?php _e( 'Back', 'tutor' ); ?></a> |
| 264 | <a href="#quiz-builder-tab-advanced-options" class="quiz-modal-tab-navigation-btn quiz-modal-settings-save-btn" data-toast_success_message="<?php esc_attr_e( 'Saved', 'tutor' ); ?>"><?php _e( 'Save', 'tutor' ); ?></a> |
| 265 | </div> |
| 266 | <!--<div class="quiz-builder-btn-group-right"> |
| 267 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-cancel"><?php /*_e('Cancel', 'tutor'); */ ?></a> |
| 268 | </div>--> |
| 269 | </div> |
| 270 | </div> |
| 271 | |
| 272 | <div id="quiz-builder-tab-advanced-options" class="quiz-builder-tab-container" style="display: none;"> |
| 273 | |
| 274 | <div class="tutor-quiz-builder-group"> |
| 275 | <div class="tutor-quiz-builder-row"> |
| 276 | <div class="tutor-quiz-builder-col auto-width"> |
| 277 | <label class="btn-switch"> |
| 278 | <input type="checkbox" value="1" name="quiz_option[quiz_auto_start]" <?php checked( '1', tutor_utils()->get_quiz_option( $quiz_id, 'quiz_auto_start' ) ); ?> /> |
| 279 | <div class="btn-slider btn-round"></div> |
| 280 | </label> |
| 281 | <span><?php _e( 'Quiz Auto Start', 'tutor' ); ?></span> |
| 282 | </div> |
| 283 | </div> |
| 284 | <p class="help"><?php _e( 'If you enable this option, the quiz will start automatically after the page is loaded.', 'tutor' ); ?></p> |
| 285 | </div> |
| 286 | |
| 287 | <div class="tutor-quiz-builder-group"> |
| 288 | <div class="tutor-quiz-builder-row"> |
| 289 | <div class="tutor-quiz-builder-col auto-width"> |
| 290 | <h4><?php _e( 'Question Layout', 'tutor' ); ?></h4> |
| 291 | |
| 292 | <select name="quiz_option[question_layout_view]"> |
| 293 | <option value=""><?php _e( 'Set question layout view', 'tutor' ); ?></option> |
| 294 | <option value="single_question" <?php selected( 'single_question', tutor_utils()->get_quiz_option( $quiz_id, 'question_layout_view' ) ); ?>> <?php _e( 'Single Question', 'tutor' ); ?> </option> |
| 295 | <option value="question_pagination" <?php selected( 'question_pagination', tutor_utils()->get_quiz_option( $quiz_id, 'question_layout_view' ) ); ?>> <?php _e( 'Question Pagination', 'tutor' ); ?> </option> |
| 296 | <option value="question_below_each_other" <?php selected( 'question_below_each_other', tutor_utils()->get_quiz_option( $quiz_id, 'question_layout_view' ) ); ?>> <?php _e( 'Question below each other', 'tutor' ); ?> </option> |
| 297 | </select> |
| 298 | </div> |
| 299 | |
| 300 | <div class="tutor-quiz-builder-col auto-width"> |
| 301 | <h4><?php _e( 'Questions Order', 'tutor' ); ?></h4> |
| 302 | |
| 303 | <select name="quiz_option[questions_order]"> |
| 304 | <option value="rand" <?php selected( 'rand', tutils()->get_quiz_option( $quiz_id, 'questions_order' ) ); ?>> <?php _e( 'Random', 'tutor' ); ?> </option> |
| 305 | <option value="sorting" <?php selected( 'sorting', tutils()->get_quiz_option( $quiz_id, 'questions_order' ) ); ?>> <?php _e( 'Sorting', 'tutor' ); ?> </option> |
| 306 | |
| 307 | <option value="asc" <?php selected( 'asc', tutils()->get_quiz_option( $quiz_id, 'questions_order' ) ); ?>> <?php _e( 'Ascending', 'tutor' ); ?> </option> |
| 308 | <option value="desc" <?php selected( 'desc', tutils()->get_quiz_option( $quiz_id, 'questions_order' ) ); ?>> <?php _e( 'Descending', 'tutor' ); ?> </option> |
| 309 | </select> |
| 310 | </div> |
| 311 | |
| 312 | </div> |
| 313 | </div> |
| 314 | |
| 315 | <div class="tutor-quiz-builder-group"> |
| 316 | <div class="tutor-quiz-builder-row"> |
| 317 | <div class="tutor-quiz-builder-col auto-width"> |
| 318 | <label class="btn-switch"> |
| 319 | <input type="checkbox" value="1" name="quiz_option[hide_question_number_overview]" <?php checked( '1', tutor_utils()->get_quiz_option( $quiz_id, 'hide_question_number_overview' ) ); ?> /> |
| 320 | <div class="btn-slider btn-round"></div> |
| 321 | </label> |
| 322 | <span><?php _e( 'Hide question number', 'tutor' ); ?></span> |
| 323 | </div> |
| 324 | </div> |
| 325 | <p class="help"><?php _e( 'Show/hide question number during attempt.', 'tutor' ); ?></p> |
| 326 | </div> |
| 327 | |
| 328 | <div class="tutor-quiz-builder-group"> |
| 329 | <h4><?php _e( 'Short answer characters limit', 'tutor' ); ?></h4> |
| 330 | <div class="tutor-quiz-builder-row"> |
| 331 | <div class="tutor-quiz-builder-col"> |
| 332 | <input type="number" name="quiz_option[short_answer_characters_limit]" value="<?php echo esc_attr( tutor_utils()->get_quiz_option( $quiz_id, 'short_answer_characters_limit', 200 ) ); ?>"> |
| 333 | </div> |
| 334 | </div> |
| 335 | <p class="help"><?php _e( 'Student will place answer in short answer question type within this characters limit.', 'tutor' ); ?></p> |
| 336 | </div> |
| 337 | |
| 338 | <div class="tutor-quiz-builder-group"> |
| 339 | <h4><?php _e( 'Open-Ended/Essay questions answer character limit', 'tutor' ); ?></h4> |
| 340 | <div class="tutor-quiz-builder-row"> |
| 341 | <div class="tutor-quiz-builder-col"> |
| 342 | <input type="number" name="quiz_option[open_ended_answer_characters_limit]" value="<?php echo esc_attr( tutor_utils()->get_quiz_option( $quiz_id, 'open_ended_answer_characters_limit', 500 ) ); ?>"> |
| 343 | </div> |
| 344 | </div> |
| 345 | <p class="help"><?php _e( 'Students will place the answer in the Open-Ended/Essay question type within this character limit.', 'tutor' ); ?></p> |
| 346 | </div> |
| 347 | |
| 348 | <div class="tutor-quiz-builder-modal-control-btn-group"> |
| 349 | <div class="quiz-builder-btn-group-left"> |
| 350 | <a href="#quiz-builder-tab-settings" class="quiz-modal-tab-navigation-btn quiz-modal-btn-back"><?php _e( 'Back', 'tutor' ); ?></a> |
| 351 | <a href="#quiz-builder-tab-advanced-options" class="quiz-modal-tab-navigation-btn quiz-modal-settings-save-btn" data-toast_success_message="<?php _e( 'Saved', 'tutor' ); ?>"><?php _e( 'Save', 'tutor' ); ?></a> |
| 352 | </div> |
| 353 | <!--<div class="quiz-builder-btn-group-right"> |
| 354 | <a href="#quiz-builder-tab-questions" class="quiz-modal-tab-navigation-btn quiz-modal-btn-cancel"><?php /*_e('Cancel', 'tutor'); */ ?></a> |
| 355 | </div>--> |
| 356 | </div> |
| 357 | </div> |
| 358 | |
| 359 | </div> |
| 360 | |
| 361 | <div class="tutor-quiz-builder-modal-tabs-notice"> |
| 362 | <?php |
| 363 | // TODO: These links are must be updated |
| 364 | $knowledge_base_link = sprintf( "<a href='%s' target='_blank'>%s</a>", 'https://docs.themeum.com/tutor-lms/', __( 'Knowledge Base', 'tutor' ) ); |
| 365 | |
| 366 | $documentation_link = sprintf( "<a href='%s' target='_blank'>%s</a>", 'https://docs.themeum.com/tutor-lms/', __( 'Documentation', 'tutor' ) ); |
| 367 | printf( __( 'Need any Help? Please visit our %1$s and %2$s.', 'tutor' ), $knowledge_base_link, $documentation_link ); |
| 368 | ?> |
| 369 | </div> |
| 370 | |
| 371 | </div> |
| 372 |