contexts.php
3 years ago
qna-new.php
3 years ago
qna-single.php
3 years ago
qna-table.php
3 years ago
contexts.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor Q&A contexts |
| 4 | * |
| 5 | * @package Tutor\Views |
| 6 | * @subpackage Tutor\Q&A |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | $contexts = array( |
| 13 | 'qna-table' => array( |
| 14 | 'columns' => array( |
| 15 | 'checkbox' => '<div class="tutor-d-flex"><input type="checkbox" id="tutor-bulk-checkbox-all" class="tutor-form-check-input" /></div>', |
| 16 | 'student' => __( 'Student', 'tutor' ), |
| 17 | 'question' => __( 'Question', 'tutor' ), |
| 18 | 'reply' => __( 'Reply', 'tutor' ), |
| 19 | 'waiting_since' => __( 'Waiting Since', 'tutor' ), |
| 20 | 'status' => __( 'Status', 'tutor' ), |
| 21 | 'action' => __( 'Action', 'tutor' ), |
| 22 | ), |
| 23 | 'contexts' => array( |
| 24 | 'frontend-dashboard-qna-table-instructor' => array( |
| 25 | 'student', |
| 26 | 'question', |
| 27 | 'reply', |
| 28 | 'status', |
| 29 | 'action', |
| 30 | ), |
| 31 | 'frontend-dashboard-qna-table-student' => array( |
| 32 | 'question', |
| 33 | 'reply', |
| 34 | 'action', |
| 35 | ), |
| 36 | 'backend-dashboard-qna-table' => true, |
| 37 | ), |
| 38 | ), |
| 39 | ); |
| 40 | |
| 41 | return tutor_utils()->get_table_columns_from_context( $page_key, $context, $contexts, 'tutor/qna/table/column' ); |
| 42 |