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