reset-button-template.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template: Settings reset for each section. |
| 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 | $section_label = isset( $section['label'] ) && ! empty( $section['label'] ) ? esc_attr( $section['label'] ) : ''; |
| 13 | $section_slug = isset( $section['slug'] ) && ! empty( $section['slug'] ) ? esc_attr( $section['slug'] ) : ''; |
| 14 | ?> |
| 15 | <div class="tutor-option-main-title"> |
| 16 | <div class="tutor-fs-4 tutor-fw-medium tutor-color-black" tutor-option-title><?php echo esc_attr( $section_label ); ?></div> |
| 17 | <button type="button" data-tutor-modal-target="tutor-modal-bulk-action" |
| 18 | class="tutor-btn tutor-btn-ghost modal-reset-open" |
| 19 | data-reset="<?php echo esc_attr( $section_slug ); ?>" |
| 20 | data-heading="<?php echo esc_html( 'Reset to Default Settings?' ); ?>" |
| 21 | 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> |
| 22 | <i class="btn-icon tutor-icon-refresh tutor-mr-8" area-hidden="true"></i> |
| 23 | <?php esc_html_e( 'Reset to Default', 'tutor' ); ?> |
| 24 | </button> |
| 25 | </div> |
| 26 |