domain-selection.php
80 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 | |
| 3 | <input type="hidden" id="prepareTransfer" value="<?php echo esc_html(("prepare_migration_files")); ?>"> |
| 4 | <input type="hidden" id="transferMethod" value="cpanel"> |
| 5 | <input type="hidden" id="cpanelHost" value="<?php echo esc_html($data['URL']); ?>"> |
| 6 | <input type="hidden" id="cpanelUser" value="<?php echo esc_html($data['username']); ?>"> |
| 7 | <input type="hidden" id="cpanelPass" value="<?php echo esc_html($data['password']); ?>"> |
| 8 | <input type="hidden" id="cpanelApiToken" value="<?php echo esc_html($data['apiToken']); ?>"> |
| 9 | <input type="hidden" id="useApiToken" value="<?php echo esc_html($data['useApiToken']); ?>"> |
| 10 | |
| 11 | <div class="transferito__three-columns"> |
| 12 | <div class="transferito__column transferito__navigation-column"> |
| 13 | <?php |
| 14 | $data['sidebarNavigation'] = [ |
| 15 | 'destinationURL' => 'completed', |
| 16 | 'chooseMethod' => 'completed', |
| 17 | 'cPanelAuthentication' => 'completed', |
| 18 | 'selectDomain' => 'active', |
| 19 | 'startMigration' => 'disabled', |
| 20 | ]; |
| 21 | include getTransferitoViewPath('parts/migration/navigation'); |
| 22 | ?> |
| 23 | </div> |
| 24 | <div id="cPanelDomainSelectionScreen" class="transferito__column transferito__main-column"> |
| 25 | <div class="transferito-text__h1">Select Domain for Migration</div> |
| 26 | <div class="transferito__content-container"> |
| 27 | <div class="transferito-domain-selection"> |
| 28 | <div class="transferito-domain-selection__title transferito-text__p1--bold"> |
| 29 | <span class="transferito-input__required">*</span> |
| 30 | Select Destination Domain |
| 31 | </div> |
| 32 | <div class="transferito-domain-selection__content transferito-text__small"> |
| 33 | Please choose your destination domain. If you want to change the destination domain, you can easily select it from here. |
| 34 | </div> |
| 35 | <div class="transferito-domain-selection__input"> |
| 36 | <select |
| 37 | name="cpanelDomain" |
| 38 | id="field__cpanelDomain" |
| 39 | class="transferito-input__dropdown transferito-input__dropdown--full-width transferito-input__dropdown--large"> |
| 40 | <?php foreach ($data['domains'] as $domain) : ?> |
| 41 | <option value="<?php echo esc_html($domain); ?>" <?php echo ($domain === $data['domain']) ? 'selected="selected"' : '' ?>><?php echo esc_html($domain); ?></option> |
| 42 | <?php endforeach; ?> |
| 43 | </select> |
| 44 | |
| 45 | </div> |
| 46 | <div class="transferito-domain-selection__action-buttons"> |
| 47 | <button id="routeToCpanelAuthentication" data-screen-route="cpanelAuthentication" class="transferito-button transferito-button__secondary transferito-button--small transferito__screen-routing">BACK</button> |
| 48 | <button id="cpanelStart" class="transferito-button transferito-button__primary transferito-button--small transferito__cpanel-start-migration">START MIGRATION</button> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | </div> |
| 53 | <div class="transferito__column transferito__pro-tip-column"> |
| 54 | <?php |
| 55 | $data = [ |
| 56 | 'mainText' => 'Select the domain you want to migrate your current website. <br><br>If a WordPress website exists on your destination server. It will be replaced by this site that you are migrating.', |
| 57 | ]; |
| 58 | include getTransferitoViewPath('parts/migration/pro-tip'); |
| 59 | ?> |
| 60 | </div> |
| 61 | </div> |
| 62 | |
| 63 | <div id="cPanelDomainSelectFailure" class="transferito__hide-element"> |
| 64 | <?php |
| 65 | $data = [ |
| 66 | 'image' => 'failed-auth', |
| 67 | 'type' => 'error', |
| 68 | 'messageTitle' => 'We\'re unable to create your FTP & Database details!', |
| 69 | 'message' => 'There has a been an error.', |
| 70 | 'closeButton' => true, |
| 71 | 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.', |
| 72 | 'supportLink' => [ |
| 73 | 'anchorText' => 'Create Support Ticket', |
| 74 | 'url' => 'https://wordpress.org/support/plugin/transferito/' |
| 75 | ] |
| 76 | ]; |
| 77 | include getTransferitoViewPath('parts/notice'); |
| 78 | ?> |
| 79 | </div> |
| 80 |