alert.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor prompt alert template |
| 4 | * Display various prompt messages |
| 5 | * |
| 6 | * @package Tutor\Templates |
| 7 | * @subpackage Modal |
| 8 | * @author Themeum <support@themeum.com> |
| 9 | * @link https://themeum.com |
| 10 | * @since 2.0.2 |
| 11 | */ |
| 12 | |
| 13 | $id = isset( $id ) ? $id : ''; //phpcs:ignore |
| 14 | $class = isset( $class ) ? ' ' . $class : ''; |
| 15 | $title = isset( $title ) ? $title : 'Do You Want to Delete This?'; // phpcs:ignore |
| 16 | $content = isset( $content ) ? $content : ''; |
| 17 | $close = isset( $close ) ? (bool) $close : true; |
| 18 | ?> |
| 19 | <div id="<?php echo esc_attr( $id ); ?>" class="tutor-modal<?php echo esc_attr( $class ); ?>"> |
| 20 | <div class="tutor-modal-overlay"></div> |
| 21 | <div class="tutor-modal-window tutor-modal-window-sm"> |
| 22 | <div class="tutor-modal-content tutor-modal-content-white"> |
| 23 | <?php if ( $close ) : ?> |
| 24 | <button class="tutor-iconic-btn tutor-modal-close-o" data-tutor-modal-close> |
| 25 | <span class="tutor-icon-times" area-hidden="true"></span> |
| 26 | </button> |
| 27 | <?php endif; ?> |
| 28 | <div class="tutor-modal-body tutor-text-center"> |
| 29 | <div class="tutor-my-32"> |
| 30 | <?php if ( $title ) : ?> |
| 31 | <div class="tutor-fs-4 tutor-fw-medium tutor-color-black tutor-mb-8"><?php echo esc_html( $title ); ?></div> |
| 32 | <?php endif; ?> |
| 33 | <?php if ( $content ) : ?> |
| 34 | <div class="tutor-fs-6 tutor-color-muted"><?php echo esc_html( $content ); ?></div> |
| 35 | <?php endif; ?> |
| 36 | <button class="tutor-btn tutor-btn-primary tutor-btn-fw tutor-mt-32" data-tutor-modal-close> |
| 37 | <?php esc_html_e( 'Ok', 'tutor' ); ?> |
| 38 | </button> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |
| 43 | </div> |
| 44 |