contexts.php
4 years ago
qna-new.php
4 years ago
qna-single.php
4 years ago
qna-table.php
4 years ago
qna-new.php
36 lines
| 1 | <?php |
| 2 | extract($data); // $course_id, $context |
| 3 | ?> |
| 4 | <div class="tutor-qa-new tutor-quesanswer" data-course_id="<?php echo $course_id; ?>" data-question_id="0" data-context="<?php echo $context; ?>"> |
| 5 | <div class="tutor-quesanswer-askquestion"> |
| 6 | <textarea placeholder="<?php _e('Do you have any question?', 'tutor'); ?>" class="tutor-form-control"></textarea> |
| 7 | <?php if ('course-single-qna-sidebar' == $data['context']) : ?> |
| 8 | <div class="sidebar-ask-new-qna-submit tutor-row tutor-mt-16"> |
| 9 | <div class="tutor-col"> |
| 10 | <button class="sidebar-ask-new-qna-cancel-btn tutor-btn tutor-btn-outline-primary tutor-btn-block"> |
| 11 | <?php _e('Cancel', 'tutor'); ?> |
| 12 | </button> |
| 13 | </div> |
| 14 | |
| 15 | <div class="tutor-col"> |
| 16 | <button class="sidebar-ask-new-qna-submit-btn tutor-btn tutor-btn-primary tutor-btn-block"> |
| 17 | <?php _e('Submit', 'tutor'); ?> |
| 18 | </button> |
| 19 | </div> |
| 20 | </div> |
| 21 | |
| 22 | <div class="sidebar-ask-new-qna-btn-wrap"> |
| 23 | <a class="sidebar-ask-new-qna-btn tutor-btn tutor-btn-primary tutor-btn-block"> |
| 24 | <?php _e('Ask a New Question', 'tutor'); ?> |
| 25 | </a> |
| 26 | </div> |
| 27 | <?php else : ?> |
| 28 | <div class="tutor-d-flex tutor-justify-end tutor-mt-24"> |
| 29 | <button class="sidebar-ask-new-qna-submit-btn tutor-btn tutor-btn-primary"> |
| 30 | <?php _e('Ask Question', 'tutor'); ?> |
| 31 | </button> |
| 32 | </div> |
| 33 | <?php endif ?> |
| 34 | </div> |
| 35 | </div> |
| 36 | <div class="tutor-qna-single-question"></div> |