logged-in.php
31 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | $is_instructor = tutor_utils()->is_instructor(); |
| 8 | if ($is_instructor){ |
| 9 | ?> |
| 10 | |
| 11 | <div class="tutor-alert-warning tutor-instructor-alert"> |
| 12 | <h2><?php _e("You are instructor", 'tutor'); ?></h2> |
| 13 | |
| 14 | <p> |
| 15 | <?php |
| 16 | echo sprintf(__("Registered at : %s %s", 'tutor'), date_i18n(get_option('date_format'), $is_instructor), date_i18n(get_option('time_format'), |
| 17 | $is_instructor) ); |
| 18 | ?> |
| 19 | </p> |
| 20 | |
| 21 | <p> |
| 22 | <?php |
| 23 | echo sprintf(__('Status : %s', 'tutor'), tutor_utils()->instructor_status()); |
| 24 | ?> |
| 25 | </p> |
| 26 | |
| 27 | </div> |
| 28 | |
| 29 | <?php }else{ |
| 30 | tutor_load_template('dashboard.instructor.apply_for_instructor'); |
| 31 | } ?> |