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-infusionsoft.php
104 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Modal for when migrating Aweber. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.1.1 |
| 7 | */ |
| 8 | |
| 9 | $infusionsoft = Hustle_Infusion_Soft::get_instance(); |
| 10 | ?> |
| 11 | |
| 12 | <div class="sui-modal sui-modal-sm"> |
| 13 | |
| 14 | <div |
| 15 | role="dialog" |
| 16 | id="hustle-dialog-migrate--infusionsoft" |
| 17 | class="sui-modal-content" |
| 18 | aria-modal="true" |
| 19 | aria-labelledby="hustle-dialog-migrate--infusionsoft-title" |
| 20 | aria-describedby="hustle-dialog-migrate--infusionsoft-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( $infusionsoft->get_logo_2x() ); ?>" alt="Keap" /> |
| 34 | </figure> |
| 35 | |
| 36 | <h3 id="hustle-dialog-migrate--infusionsoft-title" class="sui-box-title sui-lg"><?php esc_html_e( 'Migrate Keap', 'hustle' ); ?></h3> |
| 37 | |
| 38 | <?php $keys_link = '<a href="https://keys.developer.keap.com/">' . esc_html__( 'here', 'hustle' ) . '</a>'; ?> |
| 39 | <?php /* translators: 1. infusionsoft developer dashboard */ ?> |
| 40 | <p id="hustle-dialog-migrate--infusionsoft-description" class="sui-description"><?php printf( esc_html__( 'Re-authenticate your Hustle → Keap integration using OAuth2. Enter your Keap access tokens to update your integration. Get your API keys %s.', 'hustle' ), $keys_link );// phpcs:ignore ?></p> |
| 41 | |
| 42 | </div> |
| 43 | |
| 44 | <form class="sui-box-body sui-content-center sui-spacing-top--20"> |
| 45 | |
| 46 | <div class="sui-form-field"> |
| 47 | |
| 48 | <label for="infusionsoft-public-key" id="label-infusionsoft-public-key" class="sui-label"> |
| 49 | <?php esc_html_e( 'Client ID', 'hustle' ); ?> |
| 50 | </label> |
| 51 | |
| 52 | <input |
| 53 | id="infusionsoft" |
| 54 | name="api_key" |
| 55 | placeholder="<?php printf( esc_html__( 'Enter your client ID', 'hustle' ) ); ?>" |
| 56 | class="sui-form-control" |
| 57 | aria-labelledby="label-infusionsoft-public-key" |
| 58 | aria-describedby="error-infusionsoft-public-key" |
| 59 | /> |
| 60 | |
| 61 | <span id="error-infusionsoft-public-key" class="sui-error-message sui-hidden"><?php esc_html_e( 'Please enter a valid client ID', 'hustle' ); ?></span> |
| 62 | |
| 63 | </div> |
| 64 | <div class="sui-form-field"> |
| 65 | |
| 66 | <label for="infusionsoft-private-key" id="label-infusionsoft-private-key" class="sui-label"> |
| 67 | <?php esc_html_e( 'Private key', 'hustle' ); ?> |
| 68 | </label> |
| 69 | |
| 70 | <input |
| 71 | id="infusionsoft" |
| 72 | name="private_key" |
| 73 | placeholder="<?php printf( esc_html__( 'Enter your private key', 'hustle' ) ); ?>" |
| 74 | class="sui-form-control" |
| 75 | aria-labelledby="label-infusionsoft-private-key" |
| 76 | aria-describedby="error-infusionsoft-private-key" |
| 77 | /> |
| 78 | |
| 79 | <span id="error-infusionsoft-private-key" class="sui-error-message sui-hidden"><?php esc_html_e( 'Please enter a valid private key', 'hustle' ); ?></span> |
| 80 | |
| 81 | </div> |
| 82 | |
| 83 | </form> |
| 84 | |
| 85 | <div class="sui-box-footer sui-flatten sui-content-center"> |
| 86 | |
| 87 | <button |
| 88 | id="integration-migrate" |
| 89 | class="hustle-infusionsoft-migrate sui-button sui-button-blue hustle-provider-next hustle-onload-icon-action sui-button-center" |
| 90 | data-id="" |
| 91 | data-nonce="<?php echo esc_attr( wp_create_nonce( 'hustle_provider_action' ) ); ?>" |
| 92 | > |
| 93 | <span class="sui-loading-text"><?php esc_html_e( 'Authorize', 'hustle' ); ?></span> |
| 94 | <span class="sui-icon-loader sui-loading" aria-hidden="true"></span> |
| 95 | </button> |
| 96 | |
| 97 | </div> |
| 98 | |
| 99 | </div> |
| 100 | |
| 101 | </div> |
| 102 | |
| 103 | </div> |
| 104 |