course-filter
3 years ago
dashboard
2 years ago
email
3 years ago
global
3 years ago
instructor
3 years ago
loop
2 years ago
modal
3 years ago
profile
3 years ago
shortcode
3 years ago
single
2 years ago
template-part
3 years ago
widget
3 years ago
archive-course-init.php
2 years ago
archive-course.php
3 years ago
course-embed.php
3 years ago
course-none.php
3 years ago
dashboard.php
3 years ago
feature_disabled.php
3 years ago
instructor-setting.php
3 years ago
login-form.php
3 years ago
login.php
3 years ago
metabox-wrapper.php
3 years ago
permission-denied.php
3 years ago
public-profile.php
2 years ago
single-assignment.php
3 years ago
single-content-loader.php
3 years ago
single-course.php
2 years ago
single-lesson.php
3 years ago
single-preview-lesson.php
3 years ago
single-quiz.php
3 years ago
template.php
3 years ago
instructor-setting.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for Instructor Settings |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @author Themeum <support@themeum.com> |
| 7 | * @link https://themeum.com |
| 8 | * @since 1.0.0 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; |
| 13 | } |
| 14 | ?> |
| 15 | |
| 16 | <div class="tutor-option-field-row"> |
| 17 | <div class="tutor-option-field-label"> |
| 18 | <label for=""><?php esc_html_e( 'Instructor List Layout', 'tutor' ); ?></label> |
| 19 | </div> |
| 20 | <div class="tutor-option-field"> |
| 21 | <div class="instructor-layout-templates-fields"> |
| 22 | <?php |
| 23 | $url_base = tutor()->url . 'assets/images/instructor-layout/'; |
| 24 | |
| 25 | foreach ( $templates as $template ) { |
| 26 | $img = $url_base . $template . '.jpg'; |
| 27 | $selected_template = tutor_utils()->get_option( 'instructor_list_layout' ); |
| 28 | ?> |
| 29 | <label class="instructor-layout-template <?php echo $template === $selected_template ? 'selected-template' : ''; ?> "> |
| 30 | <img src="<?php echo esc_url( $img ); ?>" /> |
| 31 | <input type="radio" name="tutor_option[instructor_list_layout]" value="<?php echo esc_attr( $template ); ?>" <?php checked( $template, $selected_template ); ?> style="display: none;" > |
| 32 | </label> |
| 33 | <?php |
| 34 | } |
| 35 | ?> |
| 36 | </div> |
| 37 | <p class="desc"> |
| 38 | <?php esc_html_e( 'Selected one will be used if layout is not defined as shortcode attribute.', 'tutor' ); ?> |
| 39 | </p> |
| 40 | </div> |
| 41 | </div> |
| 42 | |
| 43 |