PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / src / Views / parts / migration / cpanel / main.php
transferito / src / Views / parts / migration / cpanel Last commit date
domain-selection.php 10 months ago main.php 10 months ago
main.php
207 lines
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
2
3 <input type="hidden" id="cPanelMigration" value="<?php echo esc_html(wp_create_nonce('cpanel_migration')); ?>">
4
5 <div class="transferito__three-columns">
6 <div class="transferito__column transferito__navigation-column">
7 <?php
8 $data['sidebarNavigation'] = [
9 'destinationURL' => 'completed',
10 'chooseMethod' => 'completed',
11 'cPanelAuthentication' => 'active',
12 'selectDomain' => 'disabled',
13 'startMigration' => 'disabled',
14 ];
15 include getTransferitoViewPath('parts/migration/navigation');
16 ?>
17 </div>
18 <div id="cpanelMigrationScreen" class="transferito__column transferito__main-column">
19 <div class="transferito-text__h1">Enter your cPanel login details</div>
20
21 <div class="transferito__content-container">
22 <div class="transferito-cpanel-authentication">
23 <div class="transferito-cpanel-authentication__title transferito-text__p1--bold">
24 <span class="transferito-input__required">*</span>
25 Enter your cPanel Username
26 </div>
27 <div class="transferito-cpanel-authentication__input">
28 <input
29 id="field__cPanelUser"
30 name="cpanelUser"
31 value="<?php echo isset($data['cpanelDetail']['cpanelUser']) ? esc_html($data['cpanelDetail']['cpanelUser']) : ''; ?>"
32 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin" type="text">
33 </div>
34 <div id="cpanelAPITokenElement" class="<?php echo isset($data['cpanelDetail']['cPanelUseApiToken']) && !$data['cpanelDetail']['cPanelUseApiToken'] ? 'transferito__hide-element' : ''; ?>">
35 <div class="transferito-cpanel-authentication__title transferito-text__p1--bold">
36 <span class="transferito-input__required">*</span>
37 Enter your cPanel API Token
38 </div>
39 <div class="transferito-cpanel-authentication__input">
40 <input name="cPanelApiToken"
41 id="field__cPanelApiToken"
42 value="<?php echo isset($data['cpanelDetail']['cPanelApiToken']) ? esc_html($data['cpanelDetail']['cPanelApiToken']) : ''; ?>"
43 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin" type="text">
44 </div>
45 </div>
46
47 <div id="cpanelPasswordElement" class="<?php echo (isset($data['cpanelDetail']['cPanelUseApiToken']) && $data['cpanelDetail']['cPanelUseApiToken']) || !$data['cpanelDetail'] ? 'transferito__hide-element' : ''; ?>">
48 <div class="transferito-cpanel-authentication__title transferito-text__p1--bold">
49 <span class="transferito-input__required">*</span>
50 Enter your cPanel Password
51 </div>
52 <div class="transferito-cpanel-authentication__input">
53 <input name="cpanelPass"
54 id="field__cPanelPass"
55 value="<?php echo isset($data['cpanelDetail']['cpanelPass']) ? esc_html($data['cpanelDetail']['cpanelPass']) : ''; ?>"
56 class="transferito__field-required transferito-input__text-box transferito-form-element transferito-input__text-box--full-width transferito-input__text-box--thin" type="text">
57 </div>
58 </div>
59 <div class="transferito-cpanel-authentication__action-buttons">
60 <button id="routeToMigrationMethodSelection" data-screen-route="migrationMethodSelection" class="transferito-button transferito-button__secondary transferito-button--small transferito__screen-routing">BACK</button>
61 <button id="cpanelAuth" class="transferito-button transferito-button__primary transferito-button--small transferito__cpanel-authentication" <?php echo esc_html($data['cpanelCompleted']) ? '' : 'disabled'?>>CONTINUE</button>
62 </div>
63 </div>
64 </div>
65 </div>
66 <div class="transferito__column transferito__pro-tip-column">
67 <?php
68 $data = [
69 'textBox' => [
70 "content" => "Our migrations with cPanel are faster and easier because you do not need to create FTP or database details.",
71 ],
72 'faqs' => [
73 [
74 "anchorText" => "What is cPanel?",
75 "modalName" => "whatIsCpanel"
76 ],
77 [
78 "anchorText" => "Where can I find my cPanel Username?",
79 "modalName" => "findCpanelUsername"
80 ],
81 [
82 "anchorText" => "Where can I find my cPanel API Token?",
83 "modalName" => "findCpanelAPIToken"
84 ],
85 [
86 "anchorText" => "How can I create my cPanel API Token?",
87 "modalName" => "createCpanelAPIToken"
88 ],
89 [
90 "anchorText" => "Where can I find my cPanel Password?",
91 "modalName" => "findCpanelPassword"
92 ],
93 ]
94 ];
95 include getTransferitoViewPath('parts/migration/pro-tip');
96 ?>
97 </div>
98 </div>
99
100 <div id="errorFailedCpanelAuth" class="transferito__hide-element">
101 <?php
102 $data = [
103 'image' => 'failed-auth',
104 'type' => 'error',
105 'messageTitle' => 'cPanel connection failed!',
106 'message' => 'We were unable to connect to your server using your cPanel login details. Please check that your details are correct and try again.',
107 'closeButton' => true,
108 'additionalInfo' => 'If you are still facing this issue our migration specialists are happy to help you resolve this issue.',
109 'supportLink' => [
110 'anchorText' => 'Create Support Ticket',
111 'url' => 'https://wordpress.org/support/plugin/transferito/'
112 ]
113 ];
114 include getTransferitoViewPath('parts/notice');
115 ?>
116 </div>
117
118 <div id="whatIsCpanel" class="transferito__hide-element">
119 <?php
120 $data = [
121 'name' => 'What is cPanel?',
122 'title' => 'What is cPanel?',
123 'mainContent' => 'This video tutorial will give you a quick introduction into what cPanel is and why hosting providers use cPanel.',
124 'videoID' => '4XpV0-DQuJ4',
125 ];
126 include getTransferitoViewPath('parts/information');
127 ?>
128 </div>
129 <div id="findCpanelUsername" class="transferito__hide-element">
130 <?php
131 $data = [
132 'name' => 'Find your cPanel username',
133 'title' => 'Find your cPanel username',
134 'mainContent' => 'This video will show you where to find your cPanel username in your cPanel dashboard.',
135 'videoID' => '0KVm2NAHBck',
136 'additionalInfo' => [
137 'text' => 'Now you\'ve learnt how to find your cPanel username, the next step is to create a cPanel API token.',
138 'links' => [
139 [
140 'modalName' => 'createCpanelAPIToken',
141 'text' => 'How can I create my cPanel API Token?'
142 ]
143 ]
144 ]
145 ];
146 include getTransferitoViewPath('parts/information');
147 ?>
148 </div>
149 <div id="findCpanelAPIToken" class="transferito__hide-element">
150 <?php
151 $data = [
152 'name' => 'Where can I find my cPanel API Token?',
153 'title' => 'Where can I find my cPanel API Token?',
154 'mainContent' => '
155 Unfortunately, cPanel API Tokens are not able to be viewed again. <br><br>
156 So if you have previously created a cPanel API Token and not saved it in a secure location or you haven\'t created an API Token. You will have to create one.',
157 'additionalInfo' => [
158 'text' => '
159 <strong>Note:</strong><br>
160 Click on the link below to follow a step-by-step guide on how to create your cPanel API token',
161 'links' => [
162 [
163 'modalName' => 'createCpanelAPIToken',
164 'text' => 'How can I create my cPanel API Token?'
165 ],
166 ]
167 ]
168 ];
169 include getTransferitoViewPath('parts/information');
170 ?>
171 </div>
172 <div id="createCpanelAPIToken" class="transferito__hide-element">
173 <?php
174 $data = [
175 'name' => 'How can I create my cPanel API Token',
176 'title' => 'How can I create my cPanel API Token',
177 'mainContent' => 'This video will give you a step by step walkthrough on how to create your cPanel API token for your hosting account.',
178 'videoID' => 'Fde7hGGM-yQ'
179 ];
180 include getTransferitoViewPath('parts/information');
181 ?>
182 </div>
183 <div id="findCpanelPassword" class="transferito__hide-element">
184 <?php
185 $data = [
186 'name' => 'Where can I find my cPanel password?',
187 'title' => 'Where can I find my cPanel password?',
188 'mainContent' => '
189 The best place to start is by checking your email, your web hosting provider should have sent you an email with your cPanel login details.
190 ',
191 'additionalInfo' => [
192 'text' => '
193 <strong>Please Note:</strong><br>
194 Some web hosting providers may not provide you with your cPanel password. If this is the case please use a cPanel API token.<br><br>
195 Click on the link below to follow a step-by-step guide on how to create your cPanel API token',
196 'links' => [
197 [
198 'modalName' => 'createCpanelAPIToken',
199 'text' => 'How can I create my cPanel API Token?'
200 ],
201 ]
202 ]
203 ];
204 include getTransferitoViewPath('parts/information');
205 ?>
206 </div>
207