logged-in.php
21 lines
| 1 | <?php |
| 2 | $is_instructor = tutor_utils()->is_instructor(); |
| 3 | if ($is_instructor){ |
| 4 | ?> |
| 5 | |
| 6 | <div class="tutor-alert-warning tutor-instructor-alert"> |
| 7 | <h2><?php _e("You are instructor", 'tutor'); ?></h2> |
| 8 | |
| 9 | <p> |
| 10 | <?php _e(sprintf("Registered at : %s %s", date_i18n(get_option('date_format'), $is_instructor), date_i18n(get_option('time_format'), $is_instructor) ), 'tutor'); ?> |
| 11 | </p> |
| 12 | |
| 13 | <p> |
| 14 | <?php _e(sprintf('Status : %s', tutor_utils()->instructor_status()), 'tutor'); ?> |
| 15 | </p> |
| 16 | |
| 17 | </div> |
| 18 | |
| 19 | <?php }else{ |
| 20 | tutor_load_template('dashboard.instructor.apply_for_instructor'); |
| 21 | } ?> |