Assets
1 year ago
parts
1 year ago
create-transfer.php
1 year ago
settings.php
1 year ago
transfer.php
1 year ago
create-transfer.php
83 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Get transients to check to see if the user is a premium user |
| 4 | */ |
| 5 | $emptyKeys = filter_var(get_transient('transferito_empty_keys'), FILTER_VALIDATE_BOOLEAN); |
| 6 | $availableTransfers = filter_var(get_transient('transferito_has_available_transfers'), FILTER_VALIDATE_BOOLEAN); |
| 7 | ?> |
| 8 | |
| 9 | <div class="wrap"> |
| 10 | |
| 11 | <div class="transferito-header"> |
| 12 | <div class="transferito-header__logo"></div> |
| 13 | <div class="transferito-header__actions"> |
| 14 | |
| 15 | <div class="transferito-header__action-button"> |
| 16 | <a href="https://wordpress.org/support/plugin/transferito/" class="transferito-button transferito-button__support transferito-button--medium transferito-log-event" data-event-name="supportLink" target="_blank"> |
| 17 | Support |
| 18 | </a> |
| 19 | </div> |
| 20 | |
| 21 | <div class="transferito-header__action-button"> |
| 22 | <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> |
| 23 | </div> |
| 24 | |
| 25 | <?php if ($emptyKeys || !$availableTransfers) : ?> |
| 26 | <div class="transferito-header__action-button"> |
| 27 | <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> |
| 28 | </div> |
| 29 | <?php endif; ?> |
| 30 | </div> |
| 31 | </div> |
| 32 | |
| 33 | <div id="transferitoHeaderLegend" class="transferito-legend transferito__hide-element"></div> |
| 34 | |
| 35 | <input type="hidden" id="nonce" value="<?php echo wp_create_nonce("template_change"); ?>"> |
| 36 | |
| 37 | <div id="transferitoTemplate"> |
| 38 | <?php if ($data['userWithoutAPIKeys']) : ?> |
| 39 | <?php echo loadTemplate( 'parts/loading', [ |
| 40 | 'mainMessage' => 'We\'re just checking the size of your site', |
| 41 | 'secondaryMessage' => $data['name'] . ', bear with us this shouldn\'t take too long' |
| 42 | ]); ?> |
| 43 | <?php endif; ?> |
| 44 | |
| 45 | <?php if (!$data['userWithoutAPIKeys']) : ?> |
| 46 | <?php echo loadTemplate( 'parts/loading', [ |
| 47 | 'mainMessage' => 'We\'re just configuring the plugin for your site', |
| 48 | 'secondaryMessage' => $data['name'] . ', bear with us this shouldn\'t take too long' |
| 49 | ]); ?> |
| 50 | <?php endif; ?> |
| 51 | </div> |
| 52 | |
| 53 | <div id="transferitoModalTemplate" class="transferito-modal transferito__hide-element"></div> |
| 54 | |
| 55 | <div id="requestHostingGuideForm" class="transferito__hide-element"> |
| 56 | <?php echo loadTemplate( 'parts/information', [ |
| 57 | 'title' => 'Request a Hosting Guide', |
| 58 | '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!', |
| 59 | 'guideRequest' => true |
| 60 | ]); ?> |
| 61 | </div> |
| 62 | |
| 63 | <div id="successSentGuideRequest" class="transferito__hide-element"> |
| 64 | <?php echo loadTemplate( 'parts/notice', [ |
| 65 | 'image' => 'sent-success', |
| 66 | 'type' => 'success', |
| 67 | 'messageTitle' => 'Thank You!', |
| 68 | '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.', |
| 69 | 'closeButton' => true, |
| 70 | ]); ?> |
| 71 | </div> |
| 72 | |
| 73 | <div id="upgradeToPremiumPaymentModal" class="transferito__hide-element"> |
| 74 | <?php echo loadTemplate( 'parts/iframe', [ |
| 75 | 'image' => 'sent-success', |
| 76 | 'title' => 'Request a Hosting Guide', |
| 77 | '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!', |
| 78 | 'iframeURL' => 'https://transferito.com/pricing/card' |
| 79 | ]); ?> |
| 80 | </div> |
| 81 | |
| 82 | </div> |
| 83 |