webhook-change.php
66 lines
| 1 | <div class="notice notice-warning surecart-webhook-change-notice"> |
| 2 | <div class="breadcrumbs"> |
| 3 | <img style="display: block" src="<?php echo esc_url( trailingslashit( plugin_dir_url( SURECART_PLUGIN_FILE ) ) . 'images/logo.svg' ); ?>" alt="SureCart" width="125"> |
| 4 | <svg |
| 5 | xmlns="http://www.w3.org/2000/svg" |
| 6 | width="16" |
| 7 | height="16" |
| 8 | viewBox="0 0 24 24" |
| 9 | fill="none" |
| 10 | stroke="currentColor" |
| 11 | stroke-width="2" |
| 12 | stroke-linecap="round" |
| 13 | stroke-linejoin="round" |
| 14 | > |
| 15 | <polyline points="9 18 15 12 9 6" /> |
| 16 | </svg> |
| 17 | <span><?php esc_html_e( 'Connection', 'surecart' ); ?></span> |
| 18 | </div> |
| 19 | <h1><?php esc_html_e( 'There are two websites connected to the same SureCart store.', 'surecart' ); ?></h1> |
| 20 | <p class="description"> |
| 21 | <?php |
| 22 | esc_html_e( |
| 23 | 'Two sites that are telling SureCart they are the same site. Please let us know how to treat this website change.', |
| 24 | 'surecart' |
| 25 | ); |
| 26 | ?> |
| 27 | <a href="https://surecart.com/docs/change-surecart-url/" target="_blank" class="learn-more-safe-mode"> |
| 28 | <?php esc_html_e( 'Learn More', 'surecart' ); ?> |
| 29 | </a> |
| 30 | </p> |
| 31 | <div class="webhook-cards"> |
| 32 | <div class="webhook-card"> |
| 33 | <h2><?php echo esc_html( sprintf( __( 'I want to update this site connection to the store "%s".', 'surecart' ), \SureCart::account()->name ) ); ?></h2> |
| 34 | <p> |
| 35 | <?php echo esc_html( sprintf( __( 'We will update the SureCart connection to the your new url. This is often the case when you have changed your website url or have migrated your site to a new domain.', 'surecart' ), \SureCart::account()->name ) ); ?> |
| 36 | </p> |
| 37 | <div class="webhook-links"> |
| 38 | <span class="previous-webhook"><?php echo esc_url( $previous_web_url ); ?></span> |
| 39 | <span class="previous-to-current"> ↓ </span> |
| 40 | <span class="current-webhook"><?php echo esc_url( $current_web_url ); ?></span> |
| 41 | <p class="webhook-action-link"> |
| 42 | <a href="<?php echo esc_url( $update_url ); ?>"> |
| 43 | <?php esc_html_e( 'I Changed My Site Address', 'surecart' ); ?> |
| 44 | </a> |
| 45 | </p> |
| 46 | </div> |
| 47 | </div> |
| 48 | <div class="webhook-card"> |
| 49 | <h2><?php echo esc_html( sprintf( __( 'I want to have both sites connected to the store "%s".', 'surecart' ), \SureCart::account()->name ) ); ?></h2> |
| 50 | <p> |
| 51 | <?php esc_html_e( 'We will create a new connection for this site. This can happen if you are using a staging site or want to have more than one website connected to the same store.', 'surecart' ); ?> |
| 52 | </p> |
| 53 | <div class="webhook-links"> |
| 54 | <span class="current-webhook"><?php echo esc_url( $previous_web_url ); ?></span> |
| 55 | <span> - </span> |
| 56 | <span class="current-webhook"><?php echo esc_url( $current_web_url ); ?></span> |
| 57 | <p class="webhook-action-link"> |
| 58 | <a href="<?php echo esc_url( $add_url ); ?>"> |
| 59 | <?php esc_html_e( 'This Is A Duplicate Or Staging Site', 'surecart' ); ?> |
| 60 | </a> |
| 61 | </p> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | </div> |
| 66 |