final-integration-form-delete.php
6 years ago
migrate-dismiss-confirmation.php
6 years ago
modal-integration.php
4 years ago
modal-migrate-aweber.php
3 years ago
modal-migrate-constantcontact-hub.php
5 months ago
modal-migrate-constantcontact-non-hub.php
5 months ago
modal-migrate-convertkit.php
3 months ago
modal-migrate-hubspot-non-hub.php
1 month ago
modal-migrate-infusionsoft-hub.php
5 months ago
modal-migrate-infusionsoft.php
5 months ago
modal-preview.php
5 years ago
remove-active-integration.php
3 years ago
modal-migrate-constantcontact-hub.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Modal for when migrating Aweber. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.1.1 |
| 7 | */ |
| 8 | |
| 9 | $cc_instance = Hustle_ConstantContact::get_instance(); |
| 10 | ?> |
| 11 | |
| 12 | <div class="sui-modal sui-modal-sm"> |
| 13 | |
| 14 | <div |
| 15 | role="dialog" |
| 16 | id="hustle-dialog-migrate--constantcontact" |
| 17 | class="sui-modal-content" |
| 18 | aria-modal="true" |
| 19 | aria-labelledby="hustle-dialog-migrate--constantcontact-title" |
| 20 | aria-describedby="hustle-dialog-migrate--constantcontact-description" |
| 21 | > |
| 22 | |
| 23 | <div class="sui-box"> |
| 24 | |
| 25 | <div class="sui-box-header sui-content-center sui-flatten sui-spacing-top--60"> |
| 26 | |
| 27 | <button class="sui-button-icon sui-button-float--right" data-modal-close> |
| 28 | <i class="sui-icon-close sui-md" aria-hidden="true"></i> |
| 29 | <span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog window', 'hustle' ); ?></span> |
| 30 | </button> |
| 31 | |
| 32 | <figure class="sui-box-logo" aria-hidden="true"> |
| 33 | <img src="<?php echo esc_url( $cc_instance->get_logo_2x() ); ?>" alt="Constant Contact" /> |
| 34 | </figure> |
| 35 | |
| 36 | <h3 id="hustle-dialog-migrate--constantcontact-title" class="sui-box-title sui-lg"><?php esc_html_e( 'Re-connect Constant Contact', 'hustle' ); ?></h3> |
| 37 | <p id="hustle-dialog-migrate--constantcontact-description" class="sui-description"><?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' ); ?></p> |
| 38 | |
| 39 | </div> |
| 40 | <div class="sui-box-footer sui-flatten sui-content-center"> |
| 41 | <?php |
| 42 | $api = $cc_instance->static_api( Hustle_ConstantContact::AUTH_FLOW_PKCE ); |
| 43 | $auth_url = $api->get_authorization_uri( 0, true, Hustle_Data::INTEGRATIONS_PAGE ); |
| 44 | |
| 45 | if ( $auth_url ) : |
| 46 | ?> |
| 47 | <a id="integration-migrate" href="<?php echo esc_url( $auth_url ); ?>" class="hustle-constantcontact-migrate sui-button sui-button-blue" data-nonce="<?php echo esc_attr( wp_create_nonce( 'hustle_provider_action' ) ); ?>"> |
| 48 | <?php esc_html_e( 'Re-authorize now', 'hustle' ); ?> |
| 49 | </a> |
| 50 | <?php endif; ?> |
| 51 | |
| 52 | </div> |
| 53 | |
| 54 | </div> |
| 55 | |
| 56 | </div> |
| 57 | |
| 58 | </div> |
| 59 |