final-integration-form-delete.php
6 years ago
migrate-dismiss-confirmation.php
6 years ago
modal-integration.php
5 years ago
modal-migrate-aweber.php
5 years ago
modal-migrate-ctct.php
6 years ago
modal-preview.php
5 years ago
remove-active-integration.php
6 years ago
migrate-dismiss-confirmation.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Modal to confirm when skipping 3.x to 4.x tracking migration. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.0 |
| 7 | */ |
| 8 | |
| 9 | $attributes = array( |
| 10 | 'modal_id' => 'migrate-dismiss-confirmation', |
| 11 | 'has_description' => true, |
| 12 | 'modal_size' => 'sm', |
| 13 | |
| 14 | 'header' => array( |
| 15 | 'classes' => 'sui-flatten sui-content-center sui-spacing-top--60', |
| 16 | 'title' => __( 'Dismiss Migrate Data Notice', 'hustle' ), |
| 17 | 'title_classes' => 'sui-lg', |
| 18 | ), |
| 19 | 'body' => array( |
| 20 | 'classes' => 'sui-content-center sui-spacing-top--20', |
| 21 | 'description' => __( "Are you sure you wish to dismiss this notice? Make sure you've already migrated data of your existing modules, and you don't need to migrate data anymore.", 'hustle' ), |
| 22 | ), |
| 23 | 'footer' => array( |
| 24 | 'classes' => 'sui-content-center sui-flatten', |
| 25 | 'buttons' => array( |
| 26 | array( |
| 27 | 'classes' => 'sui-button-ghost', |
| 28 | 'text' => __( 'Cancel', 'hustle' ), |
| 29 | 'is_close' => true, |
| 30 | ), |
| 31 | array( |
| 32 | 'id' => 'hustle-dismiss-modal-button', |
| 33 | 'classes' => 'sui-button-ghost sui-button-red', |
| 34 | 'is_close' => true, |
| 35 | 'text' => __( 'Dismiss Forever', 'hustle' ), |
| 36 | 'attributes' => array( |
| 37 | 'data-nonce' => wp_create_nonce( 'hustle_dismiss_notification' ), |
| 38 | 'data-name' => Hustle_Dashboard_Admin::MIGRATE_NOTICE_NAME, |
| 39 | ), |
| 40 | ), |
| 41 | ), |
| 42 | ), |
| 43 | ); |
| 44 | |
| 45 | $this->render_modal( $attributes ); |
| 46 |