confirm.php
66 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tutor confirm alert template |
| 4 | * Display confirm window |
| 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 | $image = isset( $image ) ? $image : ''; |
| 16 | $icon = isset( $icon ) ? $icon : ''; |
| 17 | $title = isset( $title ) ? $title : ''; //phpcs:ignore |
| 18 | $content = isset( $content ) ? $content : ''; |
| 19 | $yes = isset( $yes ) ? $yes : array( 'text' => __( 'Yes', 'tutor' ) ); |
| 20 | $close = isset( $close ) ? (bool) $close : true; |
| 21 | ?> |
| 22 | <div id="<?php echo esc_attr( $id ); ?>" class="tutor-modal<?php echo esc_attr( $class ); ?>"> |
| 23 | <div class="tutor-modal-overlay"></div> |
| 24 | <div class="tutor-modal-window"> |
| 25 | <div class="tutor-modal-content tutor-modal-content-white"> |
| 26 | <?php if ( $close ) : ?> |
| 27 | <button class="tutor-iconic-btn tutor-modal-close-o" data-tutor-modal-close> |
| 28 | <span class="tutor-icon-times" area-hidden="true"></span> |
| 29 | </button> |
| 30 | <?php endif; ?> |
| 31 | <div class="tutor-modal-body tutor-text-center"> |
| 32 | <div class="tutor-px-lg-48 tutor-py-lg-24"> |
| 33 | <?php if ( $image ) : ?> |
| 34 | <div class="tutor-mt-24"> |
| 35 | <img class="tutor-d-inline-block" src="<?php echo esc_url( tutor()->url ); ?>assets/images/<?php echo esc_attr( $image ); ?>" /> |
| 36 | </div> |
| 37 | <?php endif; ?> |
| 38 | |
| 39 | <?php if ( $icon ) : ?> |
| 40 | <div class="tutor-mt-24"> |
| 41 | <span class="tutor-d-inline-block"><?php echo esc_attr( $icon ); ?></span> |
| 42 | </div> |
| 43 | <?php endif; ?> |
| 44 | |
| 45 | <?php if ( $title ) : ?> |
| 46 | <div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-mb-12"><?php echo esc_html( $title ); ?></div> |
| 47 | <?php endif; ?> |
| 48 | |
| 49 | <?php if ( $content ) : ?> |
| 50 | <div class="tutor-fs-6 tutor-color-muted"><?php echo esc_html( $content ); ?></div> |
| 51 | <?php endif; ?> |
| 52 | |
| 53 | <div class="tutor-d-flex tutor-justify-center tutor-mt-48 tutor-mb-24"> |
| 54 | <button class="tutor-btn tutor-btn-outline-primary" data-tutor-modal-close> |
| 55 | <?php esc_html_e( 'Cancel', 'tutor' ); ?> |
| 56 | </button> |
| 57 | <button class="tutor-btn tutor-btn-primary<?php echo isset( $yes['class'] ) ? ' ' . esc_html( $yes['class'] ) : ''; ?> tutor-ml-20" <?php echo isset( $yes['attr'] ) && is_array( $yes['attr'] ) ? implode( ' ', $yes['attr'] ) : ''; //phpcs:ignore ?>> |
| 58 | <?php echo esc_html( $yes['text'] ); ?> |
| 59 | </button> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | </div> |
| 66 |