@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | |
4 | 4 | $gdrive_auth_url = ""; |
5 | 5 | |
6 | -if(method_exists($remote_storage, "get_gdrive_auth_url")) |
|
6 | +if (method_exists($remote_storage, "get_gdrive_auth_url")) |
|
7 | 7 | $gdrive_auth_url = $remote_storage->get_gdrive_auth_url(); |
8 | 8 | |
9 | 9 | $gdrive_construct = $remote_storage->gdrive_construct(); |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | <!-- FTP STORAGE--> |
21 | 21 | <li id="ftp"> |
22 | 22 | <div class="collapsible-header"> |
23 | - <i class="material-icons">computer</i><?php echo __("FTP Storage",'xcloner-backup-and-restore')?> |
|
23 | + <i class="material-icons">computer</i><?php echo __("FTP Storage", 'xcloner-backup-and-restore')?> |
|
24 | 24 | <div class="switch right"> |
25 | 25 | <label> |
26 | 26 | Off |
27 | - <input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if(get_option("xcloner_ftp_enable")) echo "checked"?> \> |
|
27 | + <input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if (get_option("xcloner_ftp_enable")) echo "checked"?> \> |
|
28 | 28 | <span class="lever"></span> |
29 | 29 | On |
30 | 30 | </label> |
@@ -33,96 +33,96 @@ discard block |
||
33 | 33 | <div class="collapsible-body"> |
34 | 34 | <div class="row"> |
35 | 35 | <div class="col s12 m3 label"> |
36 | - <label for="ftp_host"><?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?></label> |
|
36 | + <label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?></label> |
|
37 | 37 | </div> |
38 | 38 | <div class="col s12 m6"> |
39 | - <input placeholder="<?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>"> |
|
39 | + <input placeholder="<?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>"> |
|
40 | 40 | </div> |
41 | 41 | <div class=" col s12 m2"> |
42 | - <input placeholder="<?php echo __("Ftp Port",'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>"> |
|
42 | + <input placeholder="<?php echo __("Ftp Port", 'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>"> |
|
43 | 43 | </div> |
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <div class="row"> |
47 | 47 | <div class="col s12 m3 label"> |
48 | - <label for="ftp_username"><?php echo __("Ftp Username",'xcloner-backup-and-restore')?></label> |
|
48 | + <label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore')?></label> |
|
49 | 49 | </div> |
50 | 50 | <div class=" col s12 m6"> |
51 | - <input placeholder="<?php echo __("Ftp Username",'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" > |
|
51 | + <input placeholder="<?php echo __("Ftp Username", 'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" > |
|
52 | 52 | </div> |
53 | 53 | </div> |
54 | 54 | |
55 | 55 | |
56 | 56 | <div class="row"> |
57 | 57 | <div class="col s12 m3 label"> |
58 | - <label for="ftp_password"><?php echo __("Ftp Password",'xcloner-backup-and-restore')?></label> |
|
58 | + <label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore')?></label> |
|
59 | 59 | </div> |
60 | 60 | <div class=" col s12 m6"> |
61 | - <input placeholder="<?php echo __("Ftp Password",'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" > |
|
61 | + <input placeholder="<?php echo __("Ftp Password", 'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" > |
|
62 | 62 | </div> |
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="row"> |
66 | 66 | <div class="col s12 m3 label"> |
67 | - <label for="ftp_root"><?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?></label> |
|
67 | + <label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?></label> |
|
68 | 68 | </div> |
69 | 69 | <div class=" col s12 m6"> |
70 | - <input placeholder="<?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>"> |
|
70 | + <input placeholder="<?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>"> |
|
71 | 71 | </div> |
72 | 72 | </div> |
73 | 73 | |
74 | 74 | <div class="row"> |
75 | 75 | <div class="col s12 m3 label"> |
76 | - <label for="ftp_root"><?php echo __("Ftp Transfer Mode",'xcloner-backup-and-restore')?></label> |
|
76 | + <label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore')?></label> |
|
77 | 77 | </div> |
78 | 78 | <div class=" col s12 m6 input-field inline"> |
79 | - <input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if(get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> /> |
|
80 | - <label for="passive"><?php echo __("Passive",'xcloner-backup-and-restore')?></label> |
|
79 | + <input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> /> |
|
80 | + <label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore')?></label> |
|
81 | 81 | |
82 | - <input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if(!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> /> |
|
83 | - <label for="active"><?php echo __("Active",'xcloner-backup-and-restore')?></label> |
|
82 | + <input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> /> |
|
83 | + <label for="active"><?php echo __("Active", 'xcloner-backup-and-restore')?></label> |
|
84 | 84 | </div> |
85 | 85 | </div> |
86 | 86 | |
87 | 87 | <div class="row"> |
88 | 88 | <div class="col s12 m3 label"> |
89 | - <label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection",'xcloner-backup-and-restore')?></label> |
|
89 | + <label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore')?></label> |
|
90 | 90 | </div> |
91 | 91 | <div class=" col s12 m6 input-field inline"> |
92 | - <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if(!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> /> |
|
93 | - <label for="ftp_ssl_mode_inactive"><?php echo __("Disable",'xcloner-backup-and-restore')?></label> |
|
92 | + <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if (!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> /> |
|
93 | + <label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore')?></label> |
|
94 | 94 | |
95 | - <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if(get_option("xcloner_ftp_ssl_mode")) echo "checked"?> /> |
|
96 | - <label for="ftp_ssl_mode_active"><?php echo __("Enable",'xcloner-backup-and-restore')?></label> |
|
95 | + <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if (get_option("xcloner_ftp_ssl_mode")) echo "checked"?> /> |
|
96 | + <label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore')?></label> |
|
97 | 97 | </div> |
98 | 98 | </div> |
99 | 99 | |
100 | 100 | <div class="row"> |
101 | 101 | <div class="col s12 m3 label"> |
102 | - <label for="ftp_timeout"><?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?></label> |
|
102 | + <label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?></label> |
|
103 | 103 | </div> |
104 | 104 | <div class=" col s12 m2"> |
105 | - <input placeholder="<?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>"> |
|
105 | + <input placeholder="<?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>"> |
|
106 | 106 | </div> |
107 | 107 | </div> |
108 | 108 | |
109 | 109 | <div class="row"> |
110 | 110 | <div class="col s12 m3 label"> |
111 | - <label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
111 | + <label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
112 | 112 | </div> |
113 | 113 | <div class=" col s12 m6"> |
114 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>"> |
|
114 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>"> |
|
115 | 115 | </div> |
116 | 116 | </div> |
117 | 117 | |
118 | 118 | <div class="row"> |
119 | 119 | <div class="col s6 m4"> |
120 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="ftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
120 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
121 | 121 | <i class="material-icons right">save</i> |
122 | 122 | </button> |
123 | 123 | </div> |
124 | 124 | <div class="col s6 m4"> |
125 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
125 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
126 | 126 | <i class="material-icons right">import_export</i> |
127 | 127 | </button> |
128 | 128 | </div> |
@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | <!-- SFTP STORAGE--> |
134 | 134 | <li id="sftp"> |
135 | 135 | <div class="collapsible-header"> |
136 | - <i class="material-icons">computer</i><?php echo __("SFTP Storage",'xcloner-backup-and-restore')?> |
|
136 | + <i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore')?> |
|
137 | 137 | <div class="switch right"> |
138 | 138 | <label> |
139 | 139 | Off |
140 | - <input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if(get_option("xcloner_sftp_enable")) echo "checked"?> \> |
|
140 | + <input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if (get_option("xcloner_sftp_enable")) echo "checked"?> \> |
|
141 | 141 | <span class="lever"></span> |
142 | 142 | On |
143 | 143 | </label> |
@@ -146,79 +146,79 @@ discard block |
||
146 | 146 | <div class="collapsible-body"> |
147 | 147 | <div class="row"> |
148 | 148 | <div class="col s12 m3 label"> |
149 | - <label for="sftp_host"><?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?></label> |
|
149 | + <label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?></label> |
|
150 | 150 | </div> |
151 | 151 | <div class="col s12 m6"> |
152 | - <input placeholder="<?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>"> |
|
152 | + <input placeholder="<?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>"> |
|
153 | 153 | </div> |
154 | 154 | <div class=" col s12 m2"> |
155 | - <input placeholder="<?php echo __("SFTP Port",'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>"> |
|
155 | + <input placeholder="<?php echo __("SFTP Port", 'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>"> |
|
156 | 156 | </div> |
157 | 157 | </div> |
158 | 158 | |
159 | 159 | <div class="row"> |
160 | 160 | <div class="col s12 m3 label"> |
161 | - <label for="sftp_username"><?php echo __("SFTP Username",'xcloner-backup-and-restore')?></label> |
|
161 | + <label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore')?></label> |
|
162 | 162 | </div> |
163 | 163 | <div class=" col s12 m6"> |
164 | - <input placeholder="<?php echo __("SFTP Username",'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" > |
|
164 | + <input placeholder="<?php echo __("SFTP Username", 'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" > |
|
165 | 165 | </div> |
166 | 166 | </div> |
167 | 167 | |
168 | 168 | |
169 | 169 | <div class="row"> |
170 | 170 | <div class="col s12 m3 label"> |
171 | - <label for="sftp_password"><?php echo __("SFTP or Private Key Password",'xcloner-backup-and-restore')?></label> |
|
171 | + <label for="sftp_password"><?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?></label> |
|
172 | 172 | </div> |
173 | 173 | <div class=" col s12 m6"> |
174 | - <input placeholder="<?php echo __("SFTP or Private Key Password",'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" > |
|
174 | + <input placeholder="<?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" > |
|
175 | 175 | </div> |
176 | 176 | </div> |
177 | 177 | |
178 | 178 | <div class="row"> |
179 | 179 | <div class="col s12 m3 label"> |
180 | - <label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)",'xcloner-backup-and-restore')?></label> |
|
180 | + <label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)", 'xcloner-backup-and-restore')?></label> |
|
181 | 181 | </div> |
182 | 182 | <div class=" col s12 m6"> |
183 | - <textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File",'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea> |
|
183 | + <textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea> |
|
184 | 184 | </div> |
185 | 185 | </div> |
186 | 186 | |
187 | 187 | <div class="row"> |
188 | 188 | <div class="col s12 m3 label"> |
189 | - <label for="sftp_root"><?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?></label> |
|
189 | + <label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?></label> |
|
190 | 190 | </div> |
191 | 191 | <div class=" col s12 m6"> |
192 | - <input placeholder="<?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>"> |
|
192 | + <input placeholder="<?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>"> |
|
193 | 193 | </div> |
194 | 194 | </div> |
195 | 195 | |
196 | 196 | <div class="row"> |
197 | 197 | <div class="col s12 m3 label"> |
198 | - <label for="sftp_timeout"><?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?></label> |
|
198 | + <label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?></label> |
|
199 | 199 | </div> |
200 | 200 | <div class=" col s12 m2"> |
201 | - <input placeholder="<?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>"> |
|
201 | + <input placeholder="<?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>"> |
|
202 | 202 | </div> |
203 | 203 | </div> |
204 | 204 | |
205 | 205 | <div class="row"> |
206 | 206 | <div class="col s12 m3 label"> |
207 | - <label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
207 | + <label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
208 | 208 | </div> |
209 | 209 | <div class=" col s12 m6"> |
210 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>"> |
|
210 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>"> |
|
211 | 211 | </div> |
212 | 212 | </div> |
213 | 213 | |
214 | 214 | <div class="row"> |
215 | 215 | <div class="col s6 m4"> |
216 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="sftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
216 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
217 | 217 | <i class="material-icons right">save</i> |
218 | 218 | </button> |
219 | 219 | </div> |
220 | 220 | <div class="col s6 m4"> |
221 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
221 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
222 | 222 | <i class="material-icons right">import_export</i> |
223 | 223 | </button> |
224 | 224 | </div> |
@@ -230,11 +230,11 @@ discard block |
||
230 | 230 | <!-- AWS STORAGE--> |
231 | 231 | <li id="aws"> |
232 | 232 | <div class="collapsible-header"> |
233 | - <i class="material-icons">computer</i><?php echo __("AWS Storage",'xcloner-backup-and-restore')?> |
|
233 | + <i class="material-icons">computer</i><?php echo __("AWS Storage", 'xcloner-backup-and-restore')?> |
|
234 | 234 | <div class="switch right"> |
235 | 235 | <label> |
236 | 236 | Off |
237 | - <input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if(get_option("xcloner_aws_enable")) echo "checked"?> \> |
|
237 | + <input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if (get_option("xcloner_aws_enable")) echo "checked"?> \> |
|
238 | 238 | <span class="lever"></span> |
239 | 239 | On |
240 | 240 | </label> |
@@ -255,35 +255,35 @@ discard block |
||
255 | 255 | |
256 | 256 | <div class="row"> |
257 | 257 | <div class="col s12 m3 label"> |
258 | - <label for="aws_key"><?php echo __("AWS Key",'xcloner-backup-and-restore')?></label> |
|
258 | + <label for="aws_key"><?php echo __("AWS Key", 'xcloner-backup-and-restore')?></label> |
|
259 | 259 | </div> |
260 | 260 | <div class=" col s12 m6"> |
261 | - <input placeholder="<?php echo __("AWS Key",'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" > |
|
261 | + <input placeholder="<?php echo __("AWS Key", 'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" > |
|
262 | 262 | </div> |
263 | 263 | </div> |
264 | 264 | |
265 | 265 | <div class="row"> |
266 | 266 | <div class="col s12 m3 label"> |
267 | - <label for="aws_secret"><?php echo __("AWS Secret",'xcloner-backup-and-restore')?></label> |
|
267 | + <label for="aws_secret"><?php echo __("AWS Secret", 'xcloner-backup-and-restore')?></label> |
|
268 | 268 | </div> |
269 | 269 | <div class=" col s12 m6"> |
270 | - <input placeholder="<?php echo __("AWS Secret",'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" > |
|
270 | + <input placeholder="<?php echo __("AWS Secret", 'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" > |
|
271 | 271 | </div> |
272 | 272 | </div> |
273 | 273 | |
274 | 274 | <div class="row"> |
275 | 275 | <div class="col s12 m3 label"> |
276 | - <label for="aws_region"><?php echo __("AWS Region",'xcloner-backup-and-restore')?></label> |
|
276 | + <label for="aws_region"><?php echo __("AWS Region", 'xcloner-backup-and-restore')?></label> |
|
277 | 277 | </div> |
278 | 278 | <div class=" col s12 m6"> |
279 | - <select placeholder="<?php echo __("example: us-east-1",'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" > |
|
279 | + <select placeholder="<?php echo __("example: us-east-1", 'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" > |
|
280 | 280 | <option readonly value=""><?php echo __("Please Select AWS Region")?></option> |
281 | 281 | <?php |
282 | 282 | $aws_regions = $remote_storage->get_aws_regions(); |
283 | 283 | |
284 | - foreach($aws_regions as $key=>$region){ |
|
284 | + foreach ($aws_regions as $key=>$region) { |
|
285 | 285 | ?> |
286 | - <option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region')?"selected":"")?>><?php echo $region?> = <?php echo $key?></option> |
|
286 | + <option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region') ? "selected" : "")?>><?php echo $region?> = <?php echo $key?></option> |
|
287 | 287 | <?php |
288 | 288 | } |
289 | 289 | ?> |
@@ -293,30 +293,30 @@ discard block |
||
293 | 293 | |
294 | 294 | <div class="row"> |
295 | 295 | <div class="col s12 m3 label"> |
296 | - <label for="aws_bucket_name"><?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?></label> |
|
296 | + <label for="aws_bucket_name"><?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?></label> |
|
297 | 297 | </div> |
298 | 298 | <div class=" col s12 m6"> |
299 | - <input placeholder="<?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" > |
|
299 | + <input placeholder="<?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" > |
|
300 | 300 | </div> |
301 | 301 | </div> |
302 | 302 | |
303 | 303 | <div class="row"> |
304 | 304 | <div class="col s12 m3 label"> |
305 | - <label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
305 | + <label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
306 | 306 | </div> |
307 | 307 | <div class=" col s12 m6"> |
308 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>"> |
|
308 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>"> |
|
309 | 309 | </div> |
310 | 310 | </div> |
311 | 311 | |
312 | 312 | <div class="row"> |
313 | 313 | <div class="col s6 m4"> |
314 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="aws"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
314 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
315 | 315 | <i class="material-icons right">save</i> |
316 | 316 | </button> |
317 | 317 | </div> |
318 | 318 | <div class="col s6 m4"> |
319 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
319 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
320 | 320 | <i class="material-icons right">import_export</i> |
321 | 321 | </button> |
322 | 322 | </div> |
@@ -328,11 +328,11 @@ discard block |
||
328 | 328 | <!-- DROPBOX STORAGE--> |
329 | 329 | <li id="dropbox"> |
330 | 330 | <div class="collapsible-header"> |
331 | - <i class="material-icons">computer</i><?php echo __("Dropbox Storage",'xcloner-backup-and-restore')?> |
|
331 | + <i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore')?> |
|
332 | 332 | <div class="switch right"> |
333 | 333 | <label> |
334 | 334 | Off |
335 | - <input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if(get_option("xcloner_dropbox_enable")) echo "checked"?> \> |
|
335 | + <input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if (get_option("xcloner_dropbox_enable")) echo "checked"?> \> |
|
336 | 336 | <span class="lever"></span> |
337 | 337 | On |
338 | 338 | </label> |
@@ -353,49 +353,49 @@ discard block |
||
353 | 353 | |
354 | 354 | <div class="row"> |
355 | 355 | <div class="col s12 m3 label"> |
356 | - <label for="dropbox_access_token"><?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?></label> |
|
356 | + <label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?></label> |
|
357 | 357 | </div> |
358 | 358 | <div class=" col s12 m6"> |
359 | - <input placeholder="<?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" > |
|
359 | + <input placeholder="<?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" > |
|
360 | 360 | </div> |
361 | 361 | </div> |
362 | 362 | |
363 | 363 | |
364 | 364 | <div class="row"> |
365 | 365 | <div class="col s12 m3 label"> |
366 | - <label for="dropbox_app_secret"><?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?></label> |
|
366 | + <label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?></label> |
|
367 | 367 | </div> |
368 | 368 | <div class=" col s12 m6"> |
369 | - <input placeholder="<?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" > |
|
369 | + <input placeholder="<?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" > |
|
370 | 370 | </div> |
371 | 371 | </div> |
372 | 372 | |
373 | 373 | <div class="row"> |
374 | 374 | <div class="col s12 m3 label"> |
375 | - <label for="dropbox_prefix"><?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?></label> |
|
375 | + <label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?></label> |
|
376 | 376 | </div> |
377 | 377 | <div class=" col s12 m6"> |
378 | - <input placeholder="<?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>"> |
|
378 | + <input placeholder="<?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>"> |
|
379 | 379 | </div> |
380 | 380 | </div> |
381 | 381 | |
382 | 382 | <div class="row"> |
383 | 383 | <div class="col s12 m3 label"> |
384 | - <label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
384 | + <label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
385 | 385 | </div> |
386 | 386 | <div class=" col s12 m6"> |
387 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>"> |
|
387 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>"> |
|
388 | 388 | </div> |
389 | 389 | </div> |
390 | 390 | |
391 | 391 | <div class="row"> |
392 | 392 | <div class="col s6 m4"> |
393 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="dropbox"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
393 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
394 | 394 | <i class="material-icons right">save</i> |
395 | 395 | </button> |
396 | 396 | </div> |
397 | 397 | <div class="col s6 m4"> |
398 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
398 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
399 | 399 | <i class="material-icons right">import_export</i> |
400 | 400 | </button> |
401 | 401 | </div> |
@@ -407,11 +407,11 @@ discard block |
||
407 | 407 | <!-- AZURE STORAGE--> |
408 | 408 | <li id="azure"> |
409 | 409 | <div class="collapsible-header"> |
410 | - <i class="material-icons">computer</i><?php echo __("Azure Blob Storage",'xcloner-backup-and-restore')?> |
|
410 | + <i class="material-icons">computer</i><?php echo __("Azure Blob Storage", 'xcloner-backup-and-restore')?> |
|
411 | 411 | <div class="switch right"> |
412 | 412 | <label> |
413 | 413 | Off |
414 | - <input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if(get_option("xcloner_azure_enable")) echo "checked"?> \> |
|
414 | + <input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if (get_option("xcloner_azure_enable")) echo "checked"?> \> |
|
415 | 415 | <span class="lever"></span> |
416 | 416 | On |
417 | 417 | </label> |
@@ -425,56 +425,56 @@ discard block |
||
425 | 425 | </div> |
426 | 426 | <div class=" col s12 m6"> |
427 | 427 | <p> |
428 | - <?php echo sprintf(__('Visit %s and get your "Api Key".','xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>')?> |
|
428 | + <?php echo sprintf(__('Visit %s and get your "Api Key".', 'xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>')?> |
|
429 | 429 | </p> |
430 | 430 | </div> |
431 | 431 | </div> |
432 | 432 | |
433 | 433 | <div class="row"> |
434 | 434 | <div class="col s12 m3 label"> |
435 | - <label for="azure_account_name"><?php echo __("Azure Account Name",'xcloner-backup-and-restore')?></label> |
|
435 | + <label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?></label> |
|
436 | 436 | </div> |
437 | 437 | <div class=" col s12 m6"> |
438 | - <input placeholder="<?php echo __("Azure Account Name",'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" > |
|
438 | + <input placeholder="<?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" > |
|
439 | 439 | </div> |
440 | 440 | </div> |
441 | 441 | |
442 | 442 | |
443 | 443 | <div class="row"> |
444 | 444 | <div class="col s12 m3 label"> |
445 | - <label for="azure_api_key"><?php echo __("Azure Api Key",'xcloner-backup-and-restore')?></label> |
|
445 | + <label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?></label> |
|
446 | 446 | </div> |
447 | 447 | <div class=" col s12 m6"> |
448 | - <input placeholder="<?php echo __("Azure Api Key",'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" > |
|
448 | + <input placeholder="<?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" > |
|
449 | 449 | </div> |
450 | 450 | </div> |
451 | 451 | |
452 | 452 | <div class="row"> |
453 | 453 | <div class="col s12 m3 label"> |
454 | - <label for="azure_container"><?php echo __("Azure Container",'xcloner-backup-and-restore')?></label> |
|
454 | + <label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore')?></label> |
|
455 | 455 | </div> |
456 | 456 | <div class=" col s12 m6"> |
457 | - <input placeholder="<?php echo __("Azure Container",'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>"> |
|
457 | + <input placeholder="<?php echo __("Azure Container", 'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>"> |
|
458 | 458 | </div> |
459 | 459 | </div> |
460 | 460 | |
461 | 461 | <div class="row"> |
462 | 462 | <div class="col s12 m3 label"> |
463 | - <label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
463 | + <label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
464 | 464 | </div> |
465 | 465 | <div class=" col s12 m6"> |
466 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>"> |
|
466 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>"> |
|
467 | 467 | </div> |
468 | 468 | </div> |
469 | 469 | |
470 | 470 | <div class="row"> |
471 | 471 | <div class="col s6 m4"> |
472 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="azure"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
472 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
473 | 473 | <i class="material-icons right">save</i> |
474 | 474 | </button> |
475 | 475 | </div> |
476 | 476 | <div class="col s6 m4"> |
477 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
477 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
478 | 478 | <i class="material-icons right">import_export</i> |
479 | 479 | </button> |
480 | 480 | </div> |
@@ -486,11 +486,11 @@ discard block |
||
486 | 486 | <!-- BACKBLAZE STORAGE--> |
487 | 487 | <li id="backblaze"> |
488 | 488 | <div class="collapsible-header"> |
489 | - <i class="material-icons">computer</i><?php echo __("Backblaze Storage",'xcloner-backup-and-restore')?> |
|
489 | + <i class="material-icons">computer</i><?php echo __("Backblaze Storage", 'xcloner-backup-and-restore')?> |
|
490 | 490 | <div class="switch right"> |
491 | 491 | <label> |
492 | 492 | Off |
493 | - <input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if(get_option("xcloner_backblaze_enable")) echo "checked"?> \> |
|
493 | + <input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if (get_option("xcloner_backblaze_enable")) echo "checked"?> \> |
|
494 | 494 | <span class="lever"></span> |
495 | 495 | On |
496 | 496 | </label> |
@@ -504,56 +504,56 @@ discard block |
||
504 | 504 | </div> |
505 | 505 | <div class=" col s12 m6"> |
506 | 506 | <p> |
507 | - <?php echo sprintf(__('Visit %s and get your Account Id and Application Key.','xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>')?> |
|
507 | + <?php echo sprintf(__('Visit %s and get your Account Id and Application Key.', 'xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>')?> |
|
508 | 508 | </p> |
509 | 509 | </div> |
510 | 510 | </div> |
511 | 511 | |
512 | 512 | <div class="row"> |
513 | 513 | <div class="col s12 m3 label"> |
514 | - <label for="backblaze_account_id"><?php echo __("Backblaze Account Id",'xcloner-backup-and-restore')?></label> |
|
514 | + <label for="backblaze_account_id"><?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore')?></label> |
|
515 | 515 | </div> |
516 | 516 | <div class=" col s12 m6"> |
517 | - <input placeholder="<?php echo __("Backblaze Account Id",'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" > |
|
517 | + <input placeholder="<?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" > |
|
518 | 518 | </div> |
519 | 519 | </div> |
520 | 520 | |
521 | 521 | |
522 | 522 | <div class="row"> |
523 | 523 | <div class="col s12 m3 label"> |
524 | - <label for="backblaze_application_key"><?php echo __("Backblaze Application Key",'xcloner-backup-and-restore')?></label> |
|
524 | + <label for="backblaze_application_key"><?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore')?></label> |
|
525 | 525 | </div> |
526 | 526 | <div class=" col s12 m6"> |
527 | - <input placeholder="<?php echo __("Backblaze Application Key",'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" > |
|
527 | + <input placeholder="<?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" > |
|
528 | 528 | </div> |
529 | 529 | </div> |
530 | 530 | |
531 | 531 | <div class="row"> |
532 | 532 | <div class="col s12 m3 label"> |
533 | - <label for="backblaze_bucket_name"><?php echo __("Backblaze Bucket Name",'xcloner-backup-and-restore')?></label> |
|
533 | + <label for="backblaze_bucket_name"><?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore')?></label> |
|
534 | 534 | </div> |
535 | 535 | <div class=" col s12 m6"> |
536 | - <input placeholder="<?php echo __("Backblaze Bucket Name",'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" > |
|
536 | + <input placeholder="<?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" > |
|
537 | 537 | </div> |
538 | 538 | </div> |
539 | 539 | |
540 | 540 | <div class="row"> |
541 | 541 | <div class="col s12 m3 label"> |
542 | - <label for="backblaze_cleanup_days"><?php echo __("Backblaze Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
542 | + <label for="backblaze_cleanup_days"><?php echo __("Backblaze Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
543 | 543 | </div> |
544 | 544 | <div class=" col s12 m6"> |
545 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>"> |
|
545 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>"> |
|
546 | 546 | </div> |
547 | 547 | </div> |
548 | 548 | |
549 | 549 | <div class="row"> |
550 | 550 | <div class="col s6 m4"> |
551 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="backblaze"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
551 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
552 | 552 | <i class="material-icons right">save</i> |
553 | 553 | </button> |
554 | 554 | </div> |
555 | 555 | <div class="col s6 m4"> |
556 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
556 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
557 | 557 | <i class="material-icons right">import_export</i> |
558 | 558 | </button> |
559 | 559 | </div> |
@@ -565,11 +565,11 @@ discard block |
||
565 | 565 | <!-- WEBDAV STORAGE--> |
566 | 566 | <li id="webdav"> |
567 | 567 | <div class="collapsible-header"> |
568 | - <i class="material-icons">computer</i><?php echo __("WebDAV Storage",'xcloner-backup-and-restore')?> |
|
568 | + <i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore')?> |
|
569 | 569 | <div class="switch right"> |
570 | 570 | <label> |
571 | 571 | Off |
572 | - <input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if(get_option("xcloner_webdav_enable")) echo "checked"?> \> |
|
572 | + <input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if (get_option("xcloner_webdav_enable")) echo "checked"?> \> |
|
573 | 573 | <span class="lever"></span> |
574 | 574 | On |
575 | 575 | </label> |
@@ -590,57 +590,57 @@ discard block |
||
590 | 590 | |
591 | 591 | <div class="row"> |
592 | 592 | <div class="col s12 m3 label"> |
593 | - <label for="webdav_url"><?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?></label> |
|
593 | + <label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?></label> |
|
594 | 594 | </div> |
595 | 595 | <div class=" col s12 m6"> |
596 | - <input placeholder="<?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" > |
|
596 | + <input placeholder="<?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" > |
|
597 | 597 | </div> |
598 | 598 | </div> |
599 | 599 | |
600 | 600 | <div class="row"> |
601 | 601 | <div class="col s12 m3 label"> |
602 | - <label for="webdav_username"><?php echo __("WebDAV Username",'xcloner-backup-and-restore')?></label> |
|
602 | + <label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?></label> |
|
603 | 603 | </div> |
604 | 604 | <div class=" col s12 m6"> |
605 | - <input placeholder="<?php echo __("WebDAV Username",'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" > |
|
605 | + <input placeholder="<?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" > |
|
606 | 606 | </div> |
607 | 607 | </div> |
608 | 608 | |
609 | 609 | <div class="row"> |
610 | 610 | <div class="col s12 m3 label"> |
611 | - <label for="webdav_password"><?php echo __("WebDAV Password",'xcloner-backup-and-restore')?></label> |
|
611 | + <label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?></label> |
|
612 | 612 | </div> |
613 | 613 | <div class=" col s12 m6"> |
614 | - <input placeholder="<?php echo __("WebDAV Password",'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" > |
|
614 | + <input placeholder="<?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" > |
|
615 | 615 | </div> |
616 | 616 | </div> |
617 | 617 | |
618 | 618 | <div class="row"> |
619 | 619 | <div class="col s12 m3 label"> |
620 | - <label for="webdav_target_folder"><?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?></label> |
|
620 | + <label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?></label> |
|
621 | 621 | </div> |
622 | 622 | <div class=" col s12 m6"> |
623 | - <input placeholder="<?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" > |
|
623 | + <input placeholder="<?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" > |
|
624 | 624 | </div> |
625 | 625 | </div> |
626 | 626 | |
627 | 627 | <div class="row"> |
628 | 628 | <div class="col s12 m3 label"> |
629 | - <label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
629 | + <label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
630 | 630 | </div> |
631 | 631 | <div class=" col s12 m6"> |
632 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>"> |
|
632 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>"> |
|
633 | 633 | </div> |
634 | 634 | </div> |
635 | 635 | |
636 | 636 | <div class="row"> |
637 | 637 | <div class="col s6 m4"> |
638 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="webdav"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
638 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
639 | 639 | <i class="material-icons right">save</i> |
640 | 640 | </button> |
641 | 641 | </div> |
642 | 642 | <div class="col s6 m4"> |
643 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
643 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
644 | 644 | <i class="material-icons right">import_export</i> |
645 | 645 | </button> |
646 | 646 | </div> |
@@ -652,12 +652,12 @@ discard block |
||
652 | 652 | <!-- Google DRIVE STORAGE--> |
653 | 653 | <li id="gdrive"> |
654 | 654 | <div class="collapsible-header"> |
655 | - <i class="material-icons">computer</i><?php echo __("Google Drive Storage",'xcloner-backup-and-restore')?> |
|
656 | - <?php if($gdrive_construct):?> |
|
655 | + <i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore')?> |
|
656 | + <?php if ($gdrive_construct):?> |
|
657 | 657 | <div class="switch right"> |
658 | 658 | <label> |
659 | 659 | Off |
660 | - <input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if(get_option("xcloner_gdrive_enable")) echo "checked"?> \> |
|
660 | + <input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if (get_option("xcloner_gdrive_enable")) echo "checked"?> \> |
|
661 | 661 | <span class="lever"></span> |
662 | 662 | On |
663 | 663 | </label> |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | </div> |
667 | 667 | <div class="collapsible-body"> |
668 | 668 | |
669 | - <?php if($gdrive_construct) : ?> |
|
669 | + <?php if ($gdrive_construct) : ?> |
|
670 | 670 | |
671 | 671 | <div class="row"> |
672 | 672 | <div class="col s12 m3 label"> |
@@ -674,28 +674,28 @@ discard block |
||
674 | 674 | </div> |
675 | 675 | <div class=" col s12 m9"> |
676 | 676 | <p> |
677 | - <?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.','xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>')?> |
|
677 | + <?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>')?> |
|
678 | 678 | <a href="https://youtu.be/YXUVPUVgG8k" target="_blank" class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" |
679 | - data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s','xcloner-backup-and-restore'),"<br />https://youtu.be/YXUVPUVgG8k")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a> |
|
679 | + data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore'), "<br />https://youtu.be/YXUVPUVgG8k")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a> |
|
680 | 680 | </p> |
681 | 681 | </div> |
682 | 682 | </div> |
683 | 683 | |
684 | 684 | <div class="row"> |
685 | 685 | <div class="col s12 m3 label"> |
686 | - <label for="gdrive_client_id"><?php echo __("Client ID",'xcloner-backup-and-restore')?></label> |
|
686 | + <label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore')?></label> |
|
687 | 687 | </div> |
688 | 688 | <div class=" col s12 m6"> |
689 | - <input placeholder="<?php echo __("Google Client ID",'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>"> |
|
689 | + <input placeholder="<?php echo __("Google Client ID", 'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>"> |
|
690 | 690 | </div> |
691 | 691 | </div> |
692 | 692 | |
693 | 693 | <div class="row"> |
694 | 694 | <div class="col s12 m3 label"> |
695 | - <label for="gdrive_client_secret"><?php echo __("Client Secret",'xcloner-backup-and-restore')?></label> |
|
695 | + <label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore')?></label> |
|
696 | 696 | </div> |
697 | 697 | <div class=" col s12 m6"> |
698 | - <input placeholder="<?php echo __("Google Client Secret",'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>"> |
|
698 | + <input placeholder="<?php echo __("Google Client Secret", 'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>"> |
|
699 | 699 | </div> |
700 | 700 | </div> |
701 | 701 | |
@@ -705,41 +705,41 @@ discard block |
||
705 | 705 | |
706 | 706 | </div> |
707 | 707 | <div class=" col s12 m6"> |
708 | - <a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive','xcloner-backup-and-restore'))?></a> |
|
709 | - <input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here","xcloner-backup-and-restore")?>"> |
|
708 | + <a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive', 'xcloner-backup-and-restore'))?></a> |
|
709 | + <input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore")?>"> |
|
710 | 710 | </div> |
711 | 711 | </div> |
712 | 712 | |
713 | 713 | <div class="row"> |
714 | 714 | <div class="col s12 m3 label"> |
715 | - <label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path",'xcloner-backup-and-restore')?> |
|
715 | + <label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore')?> |
|
716 | 716 | <a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" \ |
717 | 717 | data-tooltip="<?php echo __('Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br /> |
718 | 718 | If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/','xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a> |
719 | 719 | </label> |
720 | 720 | </div> |
721 | 721 | <div class=" col s12 m6"> |
722 | - <input placeholder="<?php echo __("Target Folder ID or Root Path",'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" > |
|
722 | + <input placeholder="<?php echo __("Target Folder ID or Root Path", 'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" > |
|
723 | 723 | </div> |
724 | 724 | </div> |
725 | 725 | |
726 | 726 | <div class="row"> |
727 | 727 | <div class="col s12 m3 label"> |
728 | - <label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)",'xcloner-backup-and-restore')?></label> |
|
728 | + <label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore')?></label> |
|
729 | 729 | </div> |
730 | 730 | <div class=" col s12 m6"> |
731 | - <input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>"> |
|
731 | + <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>"> |
|
732 | 732 | </div> |
733 | 733 | </div> |
734 | 734 | |
735 | 735 | <div class="row"> |
736 | 736 | <div class="col s6 m4"> |
737 | - <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="gdrive"><?php echo __("Save Settings",'xcloner-backup-and-restore')?> |
|
737 | + <button class="btn waves-effect waves-light" type="submit" name="action" id="action" value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?> |
|
738 | 738 | <i class="material-icons right">save</i> |
739 | 739 | </button> |
740 | 740 | </div> |
741 | 741 | <div class="col s6 m4"> |
742 | - <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?> |
|
742 | + <button class="btn waves-effect waves-light orange" type="submit" name="action" id="action" value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?> |
|
743 | 743 | <i class="material-icons right">import_export</i> |
744 | 744 | </button> |
745 | 745 | </div> |
@@ -755,15 +755,15 @@ discard block |
||
755 | 755 | <h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.")?></h6> |
756 | 756 | <h6><?php echo __("PHP 5.5 minimum version is required.")?></h6> |
757 | 757 | <br /> |
758 | - <a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url;?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0"> |
|
759 | - <?php echo sprintf(__('Install Now','xcloner-backup-and-restore'))?> |
|
758 | + <a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url; ?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0"> |
|
759 | + <?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore'))?> |
|
760 | 760 | </a> |
761 | 761 | |
762 | 762 | <a href="<?php echo admin_url("plugin-install.php")?>?tab=plugin-information&plugin=xcloner-google-drive&TB_iframe=true&width=772&height=499" class="btn thickbox open-plugin-details-modal" aria-label="More information about Theme Check 20160523.1" data-title="Theme Check 20160523.1"> |
763 | 763 | <!-- |
764 | 764 | <a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip"> |
765 | 765 | --> |
766 | - <?php echo sprintf(__('More Details','xcloner-backup-and-restore'))?> |
|
766 | + <?php echo sprintf(__('More Details', 'xcloner-backup-and-restore'))?> |
|
767 | 767 | </a> |
768 | 768 | </div> |
769 | 769 | </div> |