common
2 months ago
basic.php
1 year ago
buddypress.php
3 years ago
color_picker.php
2 months ago
design.php
3 years ago
google_classroom.php
3 years ago
gradebook.php
3 years ago
import_export.php
1 year ago
notifications.php
3 years ago
status.php
3 years ago
tab.php
1 year ago
tutor_pages.php
1 year ago
zoom.php
4 years ago
basic.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Settings option view |
| 4 | * |
| 5 | * @package Tutor\Views |
| 6 | * @subpackage Tutor\Settings |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 2.0.0 |
| 10 | */ |
| 11 | |
| 12 | //phpcs:ignore -- contain safe data |
| 13 | echo $this->view_template( 'common/reset-button-template.php', $section ); ?> |
| 14 | |
| 15 | <?php |
| 16 | $blocks_slug = $blocks['slug'] ?? ''; |
| 17 | foreach ( $section['blocks'] as $blocks ) : |
| 18 | do_action( 'tutor_before_basic_option_single_item', $blocks_slug, $blocks ); |
| 19 | if ( empty( $blocks['label'] ) ) : |
| 20 | ?> |
| 21 | <div class="tutor-option-single-item tutor-mb-32"> |
| 22 | <?php echo $this->blocks( $blocks ); //phpcs:ignore ?> |
| 23 | <?php do_action( 'tutor_inside_basic_option_single_item', $blocks_slug, $blocks ); ?> |
| 24 | </div> |
| 25 | <?php else : ?> |
| 26 | <?php |
| 27 | echo $this->blocks( $blocks ); //phpcs:ignore |
| 28 | ?> |
| 29 | <?php endif; ?> |
| 30 | <?php do_action( 'tutor_after_basic_option_single_item', $blocks_slug, $blocks ); ?> |
| 31 | |
| 32 | <?php endforeach; ?> |
| 33 |