Assets
8 months ago
parts
8 months ago
connected-sites.php
8 months ago
create-transfer.php
10 months ago
settings.php
10 months ago
transfer.php
10 months ago
create-transfer.php
98 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; |
| 2 | |
| 3 | /** |
| 4 | * Get transients to check to see if the user is a premium user |
| 5 | */ |
| 6 | $emptyKeys = filter_var(get_transient('transferito_empty_keys'), FILTER_VALIDATE_BOOLEAN); |
| 7 | $availableTransfers = filter_var(get_transient('transferito_has_available_transfers'), FILTER_VALIDATE_BOOLEAN); |
| 8 | ?> |
| 9 | |
| 10 | <div class="wrap"> |
| 11 | |
| 12 | <div class="transferito-header"> |
| 13 | <div class="transferito-header__logo"></div> |
| 14 | <div class="transferito-header__actions"> |
| 15 | |
| 16 | <div class="transferito-header__action-button"> |
| 17 | <button data-transferito-modal="transferitoSupportOptions" class="transferito-button transferito-button__support transferito-button__support--link transferito-button--medium transferito-open-support-modal"> |
| 18 | Need More Help? |
| 19 | </button> |
| 20 | </div> |
| 21 | |
| 22 | <div class="transferito-header__action-button"> |
| 23 | <a href="https://knowledge.transferito.com/getting-started" class="transferito-button transferito-button__primary--blue transferito-button--small transferito-log-event" data-event-name="viewQuickStartGuide" target="_blank">QUICKSTART GUIDE</a> |
| 24 | </div> |
| 25 | |
| 26 | <?php if ($emptyKeys || !$availableTransfers) : ?> |
| 27 | <div class="transferito-header__action-button"> |
| 28 | <a href="https://transferito.com/upgrade-to-premium" class="transferito-button transferito-button__primary transferito-button--small transferito-log-event" data-event-name="upgradeToPremium_Legend" target="_blank">UPGRADE TO PREMIUM</a> |
| 29 | </div> |
| 30 | <?php endif; ?> |
| 31 | </div> |
| 32 | </div> |
| 33 | |
| 34 | <div id="transferitoHeaderLegend" class="transferito-legend transferito__hide-element"></div> |
| 35 | |
| 36 | <input type="hidden" id="nonce" value="<?php echo esc_html(wp_create_nonce("template_change")); ?>"> |
| 37 | <input type="hidden" id="cleanUpNonce" value="<?php echo esc_html(wp_create_nonce("run_cleanup")); ?>"> |
| 38 | <input type="hidden" id="logEventNonce" value="<?php echo esc_html(wp_create_nonce("log_event")); ?>"> |
| 39 | |
| 40 | <div id="transferitoTemplate"> |
| 41 | |
| 42 | <?php |
| 43 | $userMessage = ($userWithoutAPIKeys) |
| 44 | ? 'We\'re just checking the size of your site' |
| 45 | : 'We\'re just configuring the plugin for your site'; |
| 46 | $data = [ |
| 47 | 'mainMessage' => $userMessage, |
| 48 | 'secondaryMessage' => $name . ', bear with us this shouldn\'t take too long' |
| 49 | ]; |
| 50 | include getTransferitoViewPath('parts/loading'); |
| 51 | ?> |
| 52 | |
| 53 | </div> |
| 54 | |
| 55 | <div id="transferitoModalTemplate" class="transferito-modal transferito__hide-element"></div> |
| 56 | |
| 57 | <div id="requestHostingGuideForm" class="transferito__hide-element"> |
| 58 | <?php |
| 59 | $data = [ |
| 60 | 'title' => 'Request a Hosting Guide', |
| 61 | 'mainContent' => 'We apologize for not having a guide for your hosting provider. However, we would be more than happy to create one for you. Just enter your details below. Thank you!', |
| 62 | 'guideRequest' => true |
| 63 | ]; |
| 64 | include getTransferitoViewPath('parts/information'); |
| 65 | ?> |
| 66 | </div> |
| 67 | |
| 68 | <div id="successSentGuideRequest" class="transferito__hide-element"> |
| 69 | <?php |
| 70 | $data = [ |
| 71 | 'image' => 'sent-success', |
| 72 | 'type' => 'success', |
| 73 | 'messageTitle' => 'Thank You!', |
| 74 | 'message' => 'We are currently in the process of creating a guide for your hosting provider. You will be notified via email once it has been completed.', |
| 75 | 'closeButton' => true, |
| 76 | ]; |
| 77 | include getTransferitoViewPath('parts/notice'); |
| 78 | ?> |
| 79 | </div> |
| 80 | |
| 81 | <div id="upgradeToPremiumPaymentModal" class="transferito__hide-element"> |
| 82 | <?php |
| 83 | $data = [ |
| 84 | 'image' => 'sent-success', |
| 85 | 'title' => 'Request a Hosting Guide', |
| 86 | 'mainContent' => 'We apologize for not having a guide for your hosting provider. However, we would be more than happy to create one for you. Just enter your details below. Thank you!', |
| 87 | 'iframeURL' => 'https://transferito.com/pricing/card' |
| 88 | ]; |
| 89 | include getTransferitoViewPath('parts/iframe'); |
| 90 | ?> |
| 91 | </div> |
| 92 | |
| 93 | <div id="transferitoSupportOptions" class="transferito__hide-element"> |
| 94 | <?php include getTransferitoViewPath('parts/modals/support'); ?> |
| 95 | </div> |
| 96 | |
| 97 | </div> |
| 98 |