reset-button-template.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template: Settings reset for each section. |
| 4 | * |
| 5 | * @package TutorLMS |
| 6 | * @subpackage Settings |
| 7 | * @since 2.0.0 |
| 8 | */ |
| 9 | |
| 10 | $section_label = isset( $section['label'] ) && ! empty( $section['label'] ) ? esc_attr( $section['label'] ) : ''; |
| 11 | $section_slug = isset( $section['slug'] ) && ! empty( $section['slug'] ) ? esc_attr( $section['slug'] ) : ''; |
| 12 | ?> |
| 13 | <div class="tutor-option-main-title"> |
| 14 | <div class="tutor-fs-4 tutor-fw-medium tutor-color-black" tutor-option-title><?php echo esc_attr( $section_label ); ?></div> |
| 15 | <button type="button" data-tutor-modal-target="tutor-modal-bulk-action" |
| 16 | class="tutor-btn tutor-btn-ghost modal-reset-open" |
| 17 | data-reset="<?php echo esc_attr( $section_slug ); ?>" |
| 18 | data-heading="<?php echo esc_html( 'Reset to Default Settings?' ); ?>" |
| 19 | data-message="<?php echo esc_html( 'WARNING! This will overwrite all customized settings of this section and reset them to default. Proceed with caution.' ); ?>" disabled> |
| 20 | <i class="btn-icon tutor-icon-refresh tutor-mr-8" area-hidden="true"></i> |
| 21 | <?php echo esc_attr( 'Reset to Default', 'tutor' ); ?> |
| 22 | </button> |
| 23 | </div> |
| 24 |