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
modal-migrate-ctct.php
74 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Modal for when migrating ConstantContact. |
| 4 | * We're not using this yet. |
| 5 | * |
| 6 | * @package Hustle |
| 7 | * @since 4.0.3 |
| 8 | */ |
| 9 | |
| 10 | $ctct = Hustle_ConstantContact::get_instance(); |
| 11 | $api = $ctct->api(); |
| 12 | ?> |
| 13 | |
| 14 | <div class="sui-modal sui-modal-sm"> |
| 15 | |
| 16 | <div |
| 17 | role="dialog" |
| 18 | id="hustle-dialog-migrate--constantcontact" |
| 19 | class="sui-modal-content" |
| 20 | aria-modal="true" |
| 21 | aria-labelledby="hustle-dialog-migrate--constantcontact-title" |
| 22 | aria-describedby="hustle-dialog-migrate--constantcontact-description" |
| 23 | > |
| 24 | |
| 25 | <div class="sui-box"> |
| 26 | |
| 27 | <div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60"> |
| 28 | |
| 29 | <button class="sui-button-icon sui-button-float--right" data-modal-close> |
| 30 | <i class="sui-icon-close sui-md" aria-hidden="true"></i> |
| 31 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 32 | </button> |
| 33 | |
| 34 | <figure class="sui-box-logo" aria-hidden="true"> |
| 35 | <img src="<?php echo esc_url( $ctct->get_logo_2x() ); ?>" alt=""> |
| 36 | </figure> |
| 37 | |
| 38 | <h3 id="hustle-dialog-migrate--constantcontact-title" class="sui-box-title sui-lg"><?php esc_html_e( 'Migrate Constant Contact?', 'hustle' ); ?></h3> |
| 39 | |
| 40 | </div> |
| 41 | |
| 42 | <div class="sui-box-body sui-content-center sui-spacing-top--20"> |
| 43 | |
| 44 | <p id="hustle-dialog-migrate--constantcontact-description" class="sui-description"> |
| 45 | <?php esc_html_e( 'Click on the re-authenticate button below and authorize Hustle to retrieve access tokens for v3.0 API to update your integration to the latest API version.', 'hustle' ); ?> |
| 46 | </p> |
| 47 | |
| 48 | </div> |
| 49 | <?php |
| 50 | if ( method_exists( $api, 'get_migrate_authorization_uri' ) ) : |
| 51 | ?> |
| 52 | <div class="sui-box-footer sui-flatten sui-content-center"> |
| 53 | <a class="sui-button hustle-ctct-migrate" href="<?php echo esc_url( $api->get_migrate_authorization_uri() ); ?>"> |
| 54 | <span class="sui-loading-text"><?php esc_html_e( 'Re-Authenticate', 'hustle' ); ?></span> |
| 55 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 56 | </a> |
| 57 | </div> |
| 58 | <?php else : ?> |
| 59 | <div class="sui-box-footer sui-flatten sui-content-center"> |
| 60 | |
| 61 | <button type="button" class="sui-button hustle-ctct-migrate hustle-onload-icon-action"><?php esc_html_e( 'Re-Authenticate', 'hustle' ); ?> |
| 62 | |
| 63 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 64 | |
| 65 | </button> |
| 66 | |
| 67 | </div> |
| 68 | <?php endif; ?> |
| 69 | </div> |
| 70 | |
| 71 | </div> |
| 72 | |
| 73 | </div> |
| 74 |