contexts.php
4 years ago
qna-new.php
4 years ago
qna-single.php
4 years ago
qna-table.php
4 years ago
contexts.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | $contexts = array( |
| 4 | 'qna-table' => array( |
| 5 | 'columns' => array( |
| 6 | 'checkbox' => '<div class="tutor-d-flex"><input type="checkbox" id="tutor-bulk-checkbox-all" class="tutor-form-check-input" /></div>', |
| 7 | 'student' => __('Student', 'tutor'), |
| 8 | 'question' => __('Question', 'tutor'), |
| 9 | 'reply' => __('Reply', 'tutor'), |
| 10 | 'waiting_since' => __('Waiting Since', 'tutor'), |
| 11 | 'status' => __('Status', 'tutor'), |
| 12 | 'action' => __('Action', 'tutor'), |
| 13 | ), |
| 14 | 'contexts' => array( |
| 15 | 'frontend-dashboard-qna-table-instructor' => array( |
| 16 | 'student', |
| 17 | 'question', |
| 18 | 'reply', |
| 19 | 'status', |
| 20 | 'action' |
| 21 | ), |
| 22 | 'frontend-dashboard-qna-table-student' => array( |
| 23 | 'question', |
| 24 | 'reply', |
| 25 | 'action' |
| 26 | ), |
| 27 | 'backend-dashboard-qna-table' => true, |
| 28 | ) |
| 29 | ), |
| 30 | ); |
| 31 | |
| 32 | return tutor_utils()->get_table_columns_from_context($page_key, $context, $contexts, 'tutor/qna/table/column'); |