abort-message.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Form Builder abort message screen template. |
| 4 | * |
| 5 | * @since 1.7.3 |
| 6 | * |
| 7 | * @var string $message An abort message to display. |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | ?> |
| 15 | |
| 16 | <div id="wpforms-builder-abort-message" class="wpforms-fullscreen-notice wpforms-fullscreen-notice-light"> |
| 17 | |
| 18 | <h3 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h3> |
| 19 | <p><?php echo esc_html( $message ); ?></p> |
| 20 | |
| 21 | <img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/no-forms.svg' ); ?>" alt=""> |
| 22 | |
| 23 | <?php if ( wpforms_current_user_can( 'view_forms' ) ) : ?> |
| 24 | <div class="wpforms-fullscreen-notice-buttons"> |
| 25 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-overview' ) ); ?>" |
| 26 | class="wpforms-fullscreen-notice-button wpforms-fullscreen-notice-button-primary"> |
| 27 | <?php esc_html_e( 'Back to All Forms', 'wpforms-lite' ); ?> |
| 28 | </a> |
| 29 | </div> |
| 30 | <?php endif; ?> |
| 31 | |
| 32 | </div> |
| 33 |