GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 476136...1f2497 )
by Liuta
02:37
created
uninstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If uninstall not called from WordPress, then exit.
29
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
29
+if (!defined('WP_UNINSTALL_PLUGIN')) {
30 30
 	exit;
31 31
 }
Please login to merge, or discard this patch.
includes/class-xcloner-i18n.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		load_plugin_textdomain(
38 38
 			'xcloner-backup-and-restore',
39 39
 			false,
40
-			dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
+			dirname(dirname(plugin_basename(__FILE__))).'/languages/'
41 41
 		);
42 42
 
43 43
 	}
Please login to merge, or discard this patch.
includes/class-xcloner-file-transfer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Xcloner_File_Transfer extends Xcloner_File_System{
3
+class Xcloner_File_Transfer extends Xcloner_File_System {
4 4
 	
5 5
 	private $target_url;
6 6
 	private $transfer_limit = 1048576; //bytes 1MB= 1048576 300KB = 358400
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 	
9 9
 	public function set_target($target_url)
10 10
 	{
11
-		return $this->target_url= $target_url;
11
+		return $this->target_url = $target_url;
12 12
 	}
13 13
 	
14 14
 	public function get_target()
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	
20 20
 	public function transfer_file($file, $start = 0, $hash = "")
21 21
 	{
22
-		if(!$this->target_url)
22
+		if (!$this->target_url)
23 23
 			throw new Exception("Please setup a target url for upload");
24 24
 
25 25
 		
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		
28 28
 		fseek($fp, $start, SEEK_SET);
29 29
 		
30
-		$binary_data =  fread($fp, $this->transfer_limit);
30
+		$binary_data = fread($fp, $this->transfer_limit);
31 31
 		
32 32
 		$tmp_filename = "xcloner_upload_".substr(md5(time()), 0, 5);
33 33
 		
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 		$send_array = array();
39 39
 		
40 40
 		$send_array['file'] 	= $file;
41
-		$send_array['start'] 	= $start;
42
-		$send_array['action'] 	= "write_file";
41
+		$send_array['start'] = $start;
42
+		$send_array['action'] = "write_file";
43 43
 		$send_array['hash'] 	= $hash;
44 44
 		#$send_array['blob'] 	= $binary_data;
45
-		$send_array['blob'] 	= $this->curl_file_create($tmp_file_path,'application/x-binary',$tmp_filename);
45
+		$send_array['blob'] 	= $this->curl_file_create($tmp_file_path, 'application/x-binary', $tmp_filename);
46 46
 		
47 47
 		//$data = http_build_query($send_array);
48 48
 		
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		
51 51
 		
52 52
 		$ch = curl_init();
53
-		curl_setopt($ch, CURLOPT_URL,$this->target_url);
53
+		curl_setopt($ch, CURLOPT_URL, $this->target_url);
54 54
 		
55 55
 		curl_setopt($ch, CURLOPT_POST, 1);
56 56
 		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
@@ -59,24 +59,24 @@  discard block
 block discarded – undo
59 59
         curl_setopt($ch, CURLOPT_TIMEOUT, 1200);
60 60
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
61 61
         
62
-		curl_setopt($ch, CURLOPT_POSTFIELDS, $send_array );
62
+		curl_setopt($ch, CURLOPT_POSTFIELDS, $send_array);
63 63
 		curl_setopt($ch, CURLOPT_VERBOSE, true);
64 64
 		
65
-		$original_result = curl_exec ($ch);
65
+		$original_result = curl_exec($ch);
66 66
 		
67 67
 		$this->get_tmp_filesystem()->delete($tmp_filename);
68 68
 		
69 69
 		$result = json_decode($original_result);
70 70
 				
71
-		if(!$result)
72
-			throw new Exception("We have received no valid response from the remote host, original message: ". $original_result);
71
+		if (!$result)
72
+			throw new Exception("We have received no valid response from the remote host, original message: ".$original_result);
73 73
 			
74
-		if($result->status != 200)
74
+		if ($result->status != 200)
75 75
 		{
76 76
 			throw new Exception($result->response);
77 77
 		}
78 78
 		
79
-		if(ftell($fp) >= $this->get_storage_filesystem()->getSize($file))
79
+		if (ftell($fp) >= $this->get_storage_filesystem()->getSize($file))
80 80
 		{
81 81
 			$this->get_logger()->info(sprintf("Upload done for file %s to target url %s, transferred a total of %s bytes", $file, $this->target_url, ftell($fp)));
82 82
 			$this->remove_tmp_filesystem();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	            . ($postname ?: basename($filename))
94 94
 	            . ($mimetype ? ";type=$mimetype" : '');
95 95
 		
96
-		}else{
96
+		} else {
97 97
 			
98 98
 			return curl_file_create($filename, $mimetype, $postname);	
99 99
 				
Please login to merge, or discard this patch.
xcloner.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If this file is called directly, abort.
29
-if ( ! defined( 'WPINC' ) ) {
29
+if (!defined('WPINC')) {
30 30
 	die;
31 31
 }
32 32
 
33 33
 //i will not load the plugin outside admin or cron
34
-if(!is_admin() and !defined('DOING_CRON'))
34
+if (!is_admin() and !defined('DOING_CRON'))
35 35
 	return;
36 36
 
37 37
 define("DS", DIRECTORY_SEPARATOR);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  */
43 43
 function activate_xcloner() 
44 44
 {
45
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';
45
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';
46 46
 	Xcloner_Activator::activate();
47 47
 }
48 48
 
@@ -52,31 +52,31 @@  discard block
 block discarded – undo
52 52
  */
53 53
 function deactivate_xcloner() 
54 54
 {
55
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php';
55
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php';
56 56
 	Xcloner_Deactivator::deactivate();
57 57
 }
58 58
 
59
-register_activation_hook( __FILE__, 'activate_xcloner' );
60
-register_deactivation_hook( __FILE__, 'deactivate_xcloner' );
59
+register_activation_hook(__FILE__, 'activate_xcloner');
60
+register_deactivation_hook(__FILE__, 'deactivate_xcloner');
61 61
 
62
-require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';	
62
+require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';	
63 63
 
64
-if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
64
+if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
65 65
 {
66 66
 	?>
67 67
 	<div class="error notice">
68
-		<p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."),Xcloner_Activator::xcloner_minimum_version, phpversion())?></p>
68
+		<p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."), Xcloner_Activator::xcloner_minimum_version, phpversion())?></p>
69 69
 	</div>
70 70
 	<?php	
71
-	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
72
-	deactivate_plugins( plugin_basename( __FILE__ ) );
71
+	require_once(ABSPATH.'wp-admin/includes/plugin.php');
72
+	deactivate_plugins(plugin_basename(__FILE__));
73 73
 	return;
74 74
 }		
75 75
 		
76
-$db_installed_ver = get_option( "xcloner_db_version" );
76
+$db_installed_ver = get_option("xcloner_db_version");
77 77
 $xcloner_db_version = Xcloner_Activator::xcloner_db_version;
78 78
 
79
-if($db_installed_ver != $xcloner_db_version)
79
+if ($db_installed_ver != $xcloner_db_version)
80 80
 {
81 81
 	Xcloner_Activator::activate();
82 82
 }
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
 	wp_deregister_script('heartbeat');
92 92
 }
93 93
 
94
-if(isset($_GET['page']) and stristr($_GET['page'] ,  "xcloner_"))
94
+if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_"))
95 95
 {
96
-	add_action( 'init', 'stop_heartbeat', 1 );
96
+	add_action('init', 'stop_heartbeat', 1);
97 97
 }	
98 98
 
99 99
 /**
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
 
117 117
 }
118 118
 
119
-require_once(plugin_dir_path( __FILE__ )  . '/vendor/autoload.php');
120
-require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php';
119
+require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php');
120
+require plugin_dir_path(__FILE__).'includes/class-xcloner.php';
121 121
 
122
-try{
122
+try {
123 123
 	
124 124
 	$xcloner_plugin = run_xcloner();
125 125
 	
126
-}catch(Exception $e){
126
+}catch (Exception $e) {
127 127
 	
128 128
 	echo $e->getMessage();
129 129
 	
Please login to merge, or discard this patch.
admin/partials/xcloner_console_page.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$xcloner_settings 	= $this->get_xcloner_container()->get_xcloner_settings();
4
-$logger				= $this->get_xcloner_container()->get_xcloner_logger();
5
-$logger_content 	= $logger->getLastDebugLines();
3
+$xcloner_settings = $this->get_xcloner_container()->get_xcloner_settings();
4
+$logger = $this->get_xcloner_container()->get_xcloner_logger();
5
+$logger_content = $logger->getLastDebugLines();
6 6
 ?>
7 7
 <div class="col s12 ">
8 8
 	<div>
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 				<?php echo __('XCloner Debugger Dashboard', 'xcloner-backup-and-restore') ?>
11 11
 		</h5>
12 12
 		
13
-		<?php if($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
13
+		<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
14 14
 		<ul class="collapsible xcloner-debugger" data-collapsible="accordion">
15 15
 			<li class="active">
16 16
 				<div class="collapsible-header active"><i class="material-icons">bug_report</i>XCloner Debugger</div>
17 17
 				<div class="collapsible-body">
18
-					<div class="console" id="xcloner-console"><?php if(isset($logger_content)) echo implode("<br />\n", $logger_content); ?></div>
18
+					<div class="console" id="xcloner-console"><?php if (isset($logger_content)) echo implode("<br />\n", $logger_content); ?></div>
19 19
 				</div>
20 20
 			</li>
21 21
 		</ul>
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 				}, 2000);*/
29 29
 			})
30 30
 		</script>
31
-		<?php endif;?>
31
+		<?php endif; ?>
32 32
 	</div>
33 33
 </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_remote_storage_page.php 1 patch
Spacing   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
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,12 +20,12 @@  discard block
 block discarded – undo
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="right">
25 25
 						<div class="switch">
26 26
 							<label>
27 27
 							Off
28
-							<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if(get_option("xcloner_ftp_enable")) echo "checked"?> \>
28
+							<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if (get_option("xcloner_ftp_enable")) echo "checked"?> \>
29 29
 							<span class="lever"></span>
30 30
 							On
31 31
 							</label>
@@ -35,96 +35,96 @@  discard block
 block discarded – undo
35 35
 				<div class="collapsible-body">
36 36
 					<div class="row">
37 37
 						<div class="col s12 m3 label">
38
-							<label for="ftp_host"><?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?></label>
38
+							<label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?></label>
39 39
 						</div>
40 40
 						<div class="col s12 m6">
41
-							<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")?>">
41
+							<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")?>">
42 42
 				        </div>
43 43
 				        <div class=" col s12 m2">
44
-							<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)?>">
44
+							<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)?>">
45 45
 				        </div>
46 46
 			        </div>
47 47
 			        
48 48
 			        <div class="row">
49 49
 						<div class="col s12 m3 label">
50
-							<label for="ftp_username"><?php echo __("Ftp Username",'xcloner-backup-and-restore')?></label>
50
+							<label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore')?></label>
51 51
 						</div>	
52 52
 						<div class=" col s12 m6">
53
-							<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" >
53
+							<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" >
54 54
 				        </div>
55 55
 			        </div>
56 56
 			        
57 57
 			        
58 58
 			        <div class="row">
59 59
 						<div class="col s12 m3 label">
60
-							<label for="ftp_password"><?php echo __("Ftp Password",'xcloner-backup-and-restore')?></label>
60
+							<label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore')?></label>
61 61
 						</div>
62 62
 						<div class=" col s12 m6">
63
-							<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" >
63
+							<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" >
64 64
 				        </div>
65 65
 			        </div>
66 66
 			        
67 67
 			        <div class="row">
68 68
 						<div class="col s12 m3 label">
69
-							<label for="ftp_root"><?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?></label>
69
+							<label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?></label>
70 70
 						</div>
71 71
 						<div class=" col s12 m6">
72
-							<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")?>">
72
+							<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")?>">
73 73
 						</div>	
74 74
 			        </div>
75 75
 			        
76 76
 			        <div class="row">
77 77
 						<div class="col s12 m3 label">
78
-							<label for="ftp_root"><?php echo __("Ftp Transfer Mode",'xcloner-backup-and-restore')?></label>
78
+							<label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore')?></label>
79 79
 						</div>
80 80
 						<div class=" col s12 m6 input-field inline">
81
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if(get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
82
-							<label for="passive"><?php echo __("Passive",'xcloner-backup-and-restore')?></label>
81
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
82
+							<label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore')?></label>
83 83
 
84
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if(!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
85
-							<label for="active"><?php echo __("Active",'xcloner-backup-and-restore')?></label>
84
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
85
+							<label for="active"><?php echo __("Active", 'xcloner-backup-and-restore')?></label>
86 86
 						</div>	
87 87
 			        </div>
88 88
 			        
89 89
 			        <div class="row">
90 90
 						<div class="col s12 m3 label">
91
-							<label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection",'xcloner-backup-and-restore')?></label>
91
+							<label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore')?></label>
92 92
 						</div>
93 93
 						<div class=" col s12 m6 input-field inline">
94
-							<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"?> />
95
-							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable",'xcloner-backup-and-restore')?></label>
94
+							<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"?> />
95
+							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore')?></label>
96 96
 
97
-							<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"?> />
98
-							<label for="ftp_ssl_mode_active"><?php echo __("Enable",'xcloner-backup-and-restore')?></label>
97
+							<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"?> />
98
+							<label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore')?></label>
99 99
 						</div>	
100 100
 			        </div>
101 101
 			        
102 102
 			        <div class="row">
103 103
 						<div class="col s12 m3 label">
104
-							<label for="ftp_timeout"><?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?></label>
104
+							<label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?></label>
105 105
 						</div>
106 106
 						<div class=" col s12 m2">
107
-							<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)?>">
107
+							<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)?>">
108 108
 				        </div>
109 109
 			        </div>
110 110
 			        
111 111
 			        <div class="row">
112 112
 						<div class="col s12 m3 label">
113
-							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)",'xcloner-backup-and-restore')?></label>
113
+							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore')?></label>
114 114
 						</div>
115 115
 						<div class=" col s12 m6">
116
-							<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")?>">
116
+							<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")?>">
117 117
 				        </div>
118 118
 			        </div>
119 119
 			        
120 120
 			        <div class="row">
121 121
 						<div class="col s6 m4">
122
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
122
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
123 123
 								<i class="material-icons right">save</i>
124 124
 							</button>
125 125
 						</div>	
126 126
 						<div class="col s6 m4">
127
-							<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')?>
127
+							<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')?>
128 128
 								<i class="material-icons right">import_export</i>
129 129
 							</button>
130 130
 						</div>
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 			<!-- SFTP STORAGE-->
136 136
 			<li id="sftp">
137 137
 				<div class="collapsible-header">
138
-					<i class="material-icons">computer</i><?php echo __("SFTP Storage",'xcloner-backup-and-restore')?>
138
+					<i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore')?>
139 139
 					<div class="right">
140 140
 						<div class="switch">
141 141
 							<label>
142 142
 							Off
143
-							<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if(get_option("xcloner_sftp_enable")) echo "checked"?> \>
143
+							<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if (get_option("xcloner_sftp_enable")) echo "checked"?> \>
144 144
 							<span class="lever"></span>
145 145
 							On
146 146
 							</label>
@@ -150,79 +150,79 @@  discard block
 block discarded – undo
150 150
 				<div class="collapsible-body">
151 151
 					<div class="row">
152 152
 						<div class="col s12 m3 label">
153
-							<label for="sftp_host"><?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?></label>
153
+							<label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?></label>
154 154
 						</div>
155 155
 						<div class="col s12 m6">
156
-							<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")?>">
156
+							<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")?>">
157 157
 				        </div>
158 158
 				        <div class=" col s12 m2">
159
-							<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)?>">
159
+							<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)?>">
160 160
 				        </div>
161 161
 			        </div>
162 162
 			        
163 163
 			        <div class="row">
164 164
 						<div class="col s12 m3 label">
165
-							<label for="sftp_username"><?php echo __("SFTP Username",'xcloner-backup-and-restore')?></label>
165
+							<label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore')?></label>
166 166
 						</div>	
167 167
 						<div class=" col s12 m6">
168
-							<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" >
168
+							<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" >
169 169
 				        </div>
170 170
 			        </div>
171 171
 			        
172 172
 			        
173 173
 			        <div class="row">
174 174
 						<div class="col s12 m3 label">
175
-							<label for="sftp_password"><?php echo __("SFTP Password",'xcloner-backup-and-restore')?></label>
175
+							<label for="sftp_password"><?php echo __("SFTP Password", 'xcloner-backup-and-restore')?></label>
176 176
 						</div>
177 177
 						<div class=" col s12 m6">
178
-							<input placeholder="<?php echo __("SFTP 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" >
178
+							<input placeholder="<?php echo __("SFTP 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" >
179 179
 				        </div>
180 180
 			        </div>
181 181
 			        
182 182
 			        <div class="row">
183 183
 						<div class="col s12 m3 label">
184
-							<label for="sftp_private_key"><?php echo __("SFTP Private Key",'xcloner-backup-and-restore')?></label>
184
+							<label for="sftp_private_key"><?php echo __("SFTP Private Key", 'xcloner-backup-and-restore')?></label>
185 185
 						</div>
186 186
 						<div class=" col s12 m6">
187
-							<input placeholder="<?php echo __("SFTP Private Key",'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")?>">
187
+							<input placeholder="<?php echo __("SFTP Private Key", '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")?>">
188 188
 						</div>	
189 189
 			        </div>
190 190
 			        
191 191
 			        <div class="row">
192 192
 						<div class="col s12 m3 label">
193
-							<label for="sftp_root"><?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?></label>
193
+							<label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?></label>
194 194
 						</div>
195 195
 						<div class=" col s12 m6">
196
-							<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")?>">
196
+							<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")?>">
197 197
 						</div>	
198 198
 			        </div>
199 199
 			        
200 200
 			        <div class="row">
201 201
 						<div class="col s12 m3 label">
202
-							<label for="sftp_timeout"><?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?></label>
202
+							<label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?></label>
203 203
 						</div>
204 204
 						<div class=" col s12 m2">
205
-							<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)?>">
205
+							<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)?>">
206 206
 				        </div>
207 207
 			        </div>
208 208
 			        
209 209
 			        <div class="row">
210 210
 						<div class="col s12 m3 label">
211
-							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)",'xcloner-backup-and-restore')?></label>
211
+							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore')?></label>
212 212
 						</div>
213 213
 						<div class=" col s12 m6">
214
-							<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")?>">
214
+							<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")?>">
215 215
 				        </div>
216 216
 			        </div>
217 217
 			        
218 218
 			        <div class="row">
219 219
 						<div class="col s6 m4">
220
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
220
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
221 221
 								<i class="material-icons right">save</i>
222 222
 							</button>
223 223
 						</div>	
224 224
 						<div class="col s6 m4">
225
-							<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')?>
225
+							<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')?>
226 226
 								<i class="material-icons right">import_export</i>
227 227
 							</button>
228 228
 						</div>
@@ -234,12 +234,12 @@  discard block
 block discarded – undo
234 234
 			<!-- AWS STORAGE-->
235 235
 			<li id="aws">
236 236
 				<div class="collapsible-header">
237
-					<i class="material-icons">computer</i><?php echo __("AWS Storage",'xcloner-backup-and-restore')?>
237
+					<i class="material-icons">computer</i><?php echo __("AWS Storage", 'xcloner-backup-and-restore')?>
238 238
 					<div class="right">
239 239
 						<div class="switch">
240 240
 							<label>
241 241
 							Off
242
-							<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if(get_option("xcloner_aws_enable")) echo "checked"?> \>
242
+							<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if (get_option("xcloner_aws_enable")) echo "checked"?> \>
243 243
 							<span class="lever"></span>
244 244
 							On
245 245
 							</label>
@@ -261,35 +261,35 @@  discard block
 block discarded – undo
261 261
 			        
262 262
 			        <div class="row">
263 263
 						<div class="col s12 m3 label">
264
-							<label for="aws_key"><?php echo __("AWS Key",'xcloner-backup-and-restore')?></label>
264
+							<label for="aws_key"><?php echo __("AWS Key", 'xcloner-backup-and-restore')?></label>
265 265
 						</div>	
266 266
 						<div class=" col s12 m6">
267
-							<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" >
267
+							<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" >
268 268
 				        </div>
269 269
 			        </div>
270 270
 			        
271 271
 			        <div class="row">
272 272
 						<div class="col s12 m3 label">
273
-							<label for="aws_secret"><?php echo __("AWS Secret",'xcloner-backup-and-restore')?></label>
273
+							<label for="aws_secret"><?php echo __("AWS Secret", 'xcloner-backup-and-restore')?></label>
274 274
 						</div>	
275 275
 						<div class=" col s12 m6">
276
-							<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" >
276
+							<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" >
277 277
 				        </div>
278 278
 			        </div>
279 279
 			        
280 280
 			        <div class="row">
281 281
 						<div class="col s12 m3 label">
282
-							<label for="aws_region"><?php echo __("AWS Region",'xcloner-backup-and-restore')?></label>
282
+							<label for="aws_region"><?php echo __("AWS Region", 'xcloner-backup-and-restore')?></label>
283 283
 						</div>	
284 284
 						<div class=" col s12 m6">
285
-							<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" >
285
+							<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" >
286 286
 							<option readonly value=""><?php echo __("Please Select AWS Region")?></option>
287 287
 							<?php 							
288 288
 							$aws_regions = $remote_storage->get_aws_regions();
289 289
 							
290
-							foreach($aws_regions as $key=>$region){
290
+							foreach ($aws_regions as $key=>$region) {
291 291
 								?>
292
-								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region')?"selected":"")?>><?php echo $region?> = <?php echo $key?></option>
292
+								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region') ? "selected" : "")?>><?php echo $region?> = <?php echo $key?></option>
293 293
 								<?php
294 294
 								}
295 295
 							?>
@@ -299,30 +299,30 @@  discard block
 block discarded – undo
299 299
 			        
300 300
 			        <div class="row">
301 301
 						<div class="col s12 m3 label">
302
-							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?></label>
302
+							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?></label>
303 303
 						</div>	
304 304
 						<div class=" col s12 m6">
305
-							<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" >
305
+							<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" >
306 306
 				        </div>
307 307
 			        </div>
308 308
 			        
309 309
 			        <div class="row">
310 310
 						<div class="col s12 m3 label">
311
-							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)",'xcloner-backup-and-restore')?></label>
311
+							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)", 'xcloner-backup-and-restore')?></label>
312 312
 						</div>
313 313
 						<div class=" col s12 m6">
314
-							<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")?>">
314
+							<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")?>">
315 315
 				        </div>
316 316
 			        </div>
317 317
 			        
318 318
 			        <div class="row">
319 319
 						<div class="col s6 m4">
320
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
320
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
321 321
 								<i class="material-icons right">save</i>
322 322
 							</button>
323 323
 						</div>	
324 324
 						<div class="col s6 m4">
325
-							<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')?>
325
+							<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')?>
326 326
 								<i class="material-icons right">import_export</i>
327 327
 							</button>
328 328
 						</div>
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
 			<!-- DROPBOX STORAGE-->
335 335
 			<li id="dropbox">
336 336
 				<div class="collapsible-header">
337
-					<i class="material-icons">computer</i><?php echo __("Dropbox Storage",'xcloner-backup-and-restore')?>
337
+					<i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore')?>
338 338
 					<div class="right">
339 339
 						<div class="switch">
340 340
 							<label>
341 341
 							Off
342
-							<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if(get_option("xcloner_dropbox_enable")) echo "checked"?> \>
342
+							<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if (get_option("xcloner_dropbox_enable")) echo "checked"?> \>
343 343
 							<span class="lever"></span>
344 344
 							On
345 345
 							</label>
@@ -361,49 +361,49 @@  discard block
 block discarded – undo
361 361
 			        
362 362
 			        <div class="row">
363 363
 						<div class="col s12 m3 label">
364
-							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?></label>
364
+							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?></label>
365 365
 						</div>	
366 366
 						<div class=" col s12 m6">
367
-							<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" >
367
+							<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" >
368 368
 				        </div>
369 369
 			        </div>
370 370
 			        
371 371
 			        
372 372
 			        <div class="row">
373 373
 						<div class="col s12 m3 label">
374
-							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?></label>
374
+							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?></label>
375 375
 						</div>
376 376
 						<div class=" col s12 m6">
377
-							<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" >
377
+							<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" >
378 378
 				        </div>
379 379
 			        </div>
380 380
 			        
381 381
 			        <div class="row">
382 382
 						<div class="col s12 m3 label">
383
-							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?></label>
383
+							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?></label>
384 384
 						</div>
385 385
 						<div class=" col s12 m6">
386
-							<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")?>">
386
+							<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")?>">
387 387
 						</div>	
388 388
 			        </div>
389 389
 			        
390 390
 			        <div class="row">
391 391
 						<div class="col s12 m3 label">
392
-							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)",'xcloner-backup-and-restore')?></label>
392
+							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore')?></label>
393 393
 						</div>
394 394
 						<div class=" col s12 m6">
395
-							<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")?>">
395
+							<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")?>">
396 396
 				        </div>
397 397
 			        </div>
398 398
 			        
399 399
 			        <div class="row">
400 400
 						<div class="col s6 m4">
401
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
401
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
402 402
 								<i class="material-icons right">save</i>
403 403
 							</button>
404 404
 						</div>	
405 405
 						<div class="col s6 m4">
406
-							<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')?>
406
+							<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')?>
407 407
 								<i class="material-icons right">import_export</i>
408 408
 							</button>
409 409
 						</div>
@@ -415,12 +415,12 @@  discard block
 block discarded – undo
415 415
 			<!-- AZURE STORAGE-->
416 416
 			<li id="azure">
417 417
 				<div class="collapsible-header">
418
-					<i class="material-icons">computer</i><?php echo __("Azure Blog Storage",'xcloner-backup-and-restore')?>
418
+					<i class="material-icons">computer</i><?php echo __("Azure Blog Storage", 'xcloner-backup-and-restore')?>
419 419
 					<div class="right">
420 420
 						<div class="switch">
421 421
 							<label>
422 422
 							Off
423
-							<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if(get_option("xcloner_azure_enable")) echo "checked"?> \>
423
+							<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if (get_option("xcloner_azure_enable")) echo "checked"?> \>
424 424
 							<span class="lever"></span>
425 425
 							On
426 426
 							</label>
@@ -435,56 +435,56 @@  discard block
 block discarded – undo
435 435
 						</div>	
436 436
 						<div class=" col s12 m6">
437 437
 							<p>
438
-								<?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>')?>
438
+								<?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>')?>
439 439
 							</p>
440 440
 				        </div>
441 441
 			        </div>
442 442
 			        
443 443
 			        <div class="row">
444 444
 						<div class="col s12 m3 label">
445
-							<label for="azure_account_name"><?php echo __("Azure Account Name",'xcloner-backup-and-restore')?></label>
445
+							<label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?></label>
446 446
 						</div>	
447 447
 						<div class=" col s12 m6">
448
-							<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" >
448
+							<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" >
449 449
 				        </div>
450 450
 			        </div>
451 451
 			        
452 452
 			        
453 453
 			        <div class="row">
454 454
 						<div class="col s12 m3 label">
455
-							<label for="azure_api_key"><?php echo __("Azure Api Key",'xcloner-backup-and-restore')?></label>
455
+							<label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?></label>
456 456
 						</div>
457 457
 						<div class=" col s12 m6">
458
-							<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" >
458
+							<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" >
459 459
 				        </div>
460 460
 			        </div>
461 461
 			        
462 462
 			        <div class="row">
463 463
 						<div class="col s12 m3 label">
464
-							<label for="azure_container"><?php echo __("Azure Container",'xcloner-backup-and-restore')?></label>
464
+							<label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore')?></label>
465 465
 						</div>
466 466
 						<div class=" col s12 m6">
467
-							<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")?>">
467
+							<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")?>">
468 468
 						</div>	
469 469
 			        </div>
470 470
 			        
471 471
 			        <div class="row">
472 472
 						<div class="col s12 m3 label">
473
-							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)",'xcloner-backup-and-restore')?></label>
473
+							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore')?></label>
474 474
 						</div>
475 475
 						<div class=" col s12 m6">
476
-							<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")?>">
476
+							<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")?>">
477 477
 				        </div>
478 478
 			        </div>
479 479
 			        
480 480
 			        <div class="row">
481 481
 						<div class="col s6 m4">
482
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
482
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
483 483
 								<i class="material-icons right">save</i>
484 484
 							</button>
485 485
 						</div>	
486 486
 						<div class="col s6 m4">
487
-							<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')?>
487
+							<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')?>
488 488
 								<i class="material-icons right">import_export</i>
489 489
 							</button>
490 490
 						</div>
@@ -496,12 +496,12 @@  discard block
 block discarded – undo
496 496
 			<!-- BACKBLAZE STORAGE-->
497 497
 			<li id="backblaze">
498 498
 				<div class="collapsible-header">
499
-					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage",'xcloner-backup-and-restore')?>
499
+					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage", 'xcloner-backup-and-restore')?>
500 500
 					<div class="right">
501 501
 						<div class="switch">
502 502
 							<label>
503 503
 							Off
504
-							<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if(get_option("xcloner_backblaze_enable")) echo "checked"?> \>
504
+							<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if (get_option("xcloner_backblaze_enable")) echo "checked"?> \>
505 505
 							<span class="lever"></span>
506 506
 							On
507 507
 							</label>
@@ -516,56 +516,56 @@  discard block
 block discarded – undo
516 516
 						</div>	
517 517
 						<div class=" col s12 m6">
518 518
 							<p>
519
-								<?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>')?>
519
+								<?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>')?>
520 520
 							</p>
521 521
 				        </div>
522 522
 			        </div>
523 523
 			        
524 524
 			        <div class="row">
525 525
 						<div class="col s12 m3 label">
526
-							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id",'xcloner-backup-and-restore')?></label>
526
+							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id", 'xcloner-backup-and-restore')?></label>
527 527
 						</div>	
528 528
 						<div class=" col s12 m6">
529
-							<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" >
529
+							<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" >
530 530
 				        </div>
531 531
 			        </div>
532 532
 			        
533 533
 			        
534 534
 			        <div class="row">
535 535
 						<div class="col s12 m3 label">
536
-							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key",'xcloner-backup-and-restore')?></label>
536
+							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key", 'xcloner-backup-and-restore')?></label>
537 537
 						</div>
538 538
 						<div class=" col s12 m6">
539
-							<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" >
539
+							<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" >
540 540
 				        </div>
541 541
 			        </div>
542 542
 			        
543 543
 			        <div class="row">
544 544
 						<div class="col s12 m3 label">
545
-							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name",'xcloner-backup-and-restore')?></label>
545
+							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name", 'xcloner-backup-and-restore')?></label>
546 546
 						</div>
547 547
 						<div class=" col s12 m6">
548
-							<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" >
548
+							<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" >
549 549
 				        </div>
550 550
 			        </div>
551 551
 			        
552 552
 			        <div class="row">
553 553
 						<div class="col s12 m3 label">
554
-							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)",'xcloner-backup-and-restore')?></label>
554
+							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)", 'xcloner-backup-and-restore')?></label>
555 555
 						</div>
556 556
 						<div class=" col s12 m6">
557
-							<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")?>">
557
+							<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")?>">
558 558
 				        </div>
559 559
 			        </div>
560 560
 			        
561 561
 			        <div class="row">
562 562
 						<div class="col s6 m4">
563
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
563
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
564 564
 								<i class="material-icons right">save</i>
565 565
 							</button>
566 566
 						</div>	
567 567
 						<div class="col s6 m4">
568
-							<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')?>
568
+							<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')?>
569 569
 								<i class="material-icons right">import_export</i>
570 570
 							</button>
571 571
 						</div>
@@ -577,12 +577,12 @@  discard block
 block discarded – undo
577 577
 			<!-- WEBDAV STORAGE-->
578 578
 			<li id="webdav">
579 579
 				<div class="collapsible-header">
580
-					<i class="material-icons">computer</i><?php echo __("WebDAV Storage",'xcloner-backup-and-restore')?>
580
+					<i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore')?>
581 581
 					<div class="right">
582 582
 						<div class="switch">
583 583
 							<label>
584 584
 							Off
585
-							<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if(get_option("xcloner_webdav_enable")) echo "checked"?> \>
585
+							<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if (get_option("xcloner_webdav_enable")) echo "checked"?> \>
586 586
 							<span class="lever"></span>
587 587
 							On
588 588
 							</label>
@@ -604,57 +604,57 @@  discard block
 block discarded – undo
604 604
 			        
605 605
 			        <div class="row">
606 606
 						<div class="col s12 m3 label">
607
-							<label for="webdav_url"><?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?></label>
607
+							<label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?></label>
608 608
 						</div>	
609 609
 						<div class=" col s12 m6">
610
-							<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" >
610
+							<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" >
611 611
 				        </div>
612 612
 			        </div>
613 613
 			        
614 614
 			        <div class="row">
615 615
 						<div class="col s12 m3 label">
616
-							<label for="webdav_username"><?php echo __("WebDAV Username",'xcloner-backup-and-restore')?></label>
616
+							<label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?></label>
617 617
 						</div>
618 618
 						<div class=" col s12 m6">
619
-							<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" >
619
+							<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" >
620 620
 				        </div>
621 621
 			        </div>
622 622
 			        
623 623
 			        <div class="row">
624 624
 						<div class="col s12 m3 label">
625
-							<label for="webdav_password"><?php echo __("WebDAV Password",'xcloner-backup-and-restore')?></label>
625
+							<label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?></label>
626 626
 						</div>
627 627
 						<div class=" col s12 m6">
628
-							<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" >
628
+							<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" >
629 629
 				        </div>
630 630
 			        </div>
631 631
 			        
632 632
 			        <div class="row">
633 633
 						<div class="col s12 m3 label">
634
-							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?></label>
634
+							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?></label>
635 635
 						</div>	
636 636
 						<div class=" col s12 m6">
637
-							<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" >
637
+							<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" >
638 638
 				        </div>
639 639
 			        </div>
640 640
 			        
641 641
 			        <div class="row">
642 642
 						<div class="col s12 m3 label">
643
-							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)",'xcloner-backup-and-restore')?></label>
643
+							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore')?></label>
644 644
 						</div>
645 645
 						<div class=" col s12 m6">
646
-							<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")?>">
646
+							<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")?>">
647 647
 				        </div>
648 648
 			        </div>
649 649
 			        
650 650
 			        <div class="row">
651 651
 						<div class="col s6 m4">
652
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
652
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
653 653
 								<i class="material-icons right">save</i>
654 654
 							</button>
655 655
 						</div>	
656 656
 						<div class="col s6 m4">
657
-							<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')?>
657
+							<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')?>
658 658
 								<i class="material-icons right">import_export</i>
659 659
 							</button>
660 660
 						</div>
@@ -666,13 +666,13 @@  discard block
 block discarded – undo
666 666
 			<!-- Google DRIVE STORAGE-->
667 667
 			<li id="gdrive">
668 668
 				<div class="collapsible-header">
669
-					<i class="material-icons">computer</i><?php echo __("Google Drive Storage",'xcloner-backup-and-restore')?>
670
-					<?php if($gdrive_construct):?>
669
+					<i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore')?>
670
+					<?php if ($gdrive_construct):?>
671 671
 					<div class="right">
672 672
 						<div class="switch">
673 673
 							<label>
674 674
 							Off
675
-							<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if(get_option("xcloner_gdrive_enable")) echo "checked"?> \>
675
+							<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if (get_option("xcloner_gdrive_enable")) echo "checked"?> \>
676 676
 							<span class="lever"></span>
677 677
 							On
678 678
 							</label>
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
 				</div>
683 683
 				<div class="collapsible-body">
684 684
 			        
685
-			        <?php if($gdrive_construct) : ?>
685
+			        <?php if ($gdrive_construct) : ?>
686 686
 			        
687 687
 				        <div class="row">
688 688
 							<div class="col s12 m3 label">
@@ -690,28 +690,28 @@  discard block
 block discarded – undo
690 690
 							</div>	
691 691
 							<div class=" col s12 m9">
692 692
 								<p>
693
-									<?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>')?>
693
+									<?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>')?>
694 694
 									<a href="https://youtu.be/YXUVPUVgG8k" target="_blank" class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" 
695
-									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>	
695
+									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>	
696 696
 								</p>
697 697
 					        </div>
698 698
 				        </div>
699 699
 			        
700 700
 						<div class="row">
701 701
 							<div class="col s12 m3 label">
702
-								<label for="gdrive_client_id"><?php echo __("Client ID",'xcloner-backup-and-restore')?></label>
702
+								<label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore')?></label>
703 703
 							</div>
704 704
 							<div class=" col s12 m6">
705
-								<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")?>">
705
+								<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")?>">
706 706
 					        </div>
707 707
 				        </div>
708 708
 				        
709 709
 				        <div class="row">
710 710
 							<div class="col s12 m3 label">
711
-								<label for="gdrive_client_secret"><?php echo __("Client Secret",'xcloner-backup-and-restore')?></label>
711
+								<label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore')?></label>
712 712
 							</div>
713 713
 							<div class=" col s12 m6">
714
-								<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")?>">
714
+								<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")?>">
715 715
 					        </div>
716 716
 				        </div>
717 717
 				        
@@ -721,41 +721,41 @@  discard block
 block discarded – undo
721 721
 								&nbsp;
722 722
 							</div>	
723 723
 							<div class=" col s12 m6">
724
-									<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>
725
-									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here","xcloner-backup-and-restore")?>">
724
+									<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>
725
+									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore")?>">
726 726
 					        </div>
727 727
 				        </div>
728 728
 				        
729 729
 				        <div class="row">
730 730
 							<div class="col s12 m3 label">
731
-								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path",'xcloner-backup-and-restore')?>
731
+								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore')?>
732 732
 									<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" \
733 733
 									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 />
734 734
 									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>	
735 735
 								</label>
736 736
 							</div>	
737 737
 							<div class=" col s12 m6">
738
-								<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" >
738
+								<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" >
739 739
 					        </div>
740 740
 				        </div>
741 741
 				        
742 742
 				        <div class="row">
743 743
 							<div class="col s12 m3 label">
744
-								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)",'xcloner-backup-and-restore')?></label>
744
+								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore')?></label>
745 745
 							</div>
746 746
 							<div class=" col s12 m6">
747
-								<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")?>">
747
+								<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")?>">
748 748
 					        </div>
749 749
 				        </div>
750 750
 				        
751 751
 				        <div class="row">
752 752
 							<div class="col s6 m4">
753
-								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
753
+								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
754 754
 									<i class="material-icons right">save</i>
755 755
 								</button>
756 756
 							</div>	
757 757
 							<div class="col s6 m4">
758
-								<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')?>
758
+								<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')?>
759 759
 									<i class="material-icons right">import_export</i>
760 760
 								</button>
761 761
 							</div>
@@ -771,15 +771,15 @@  discard block
 block discarded – undo
771 771
 									<h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.")?></h6>
772 772
 									<h6><?php echo __("PHP 5.5 minimum version is required.")?></h6>
773 773
 									<br />
774
-									<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">
775
-										<?php echo sprintf(__('Install Now','xcloner-backup-and-restore'))?>
774
+									<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">
775
+										<?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore'))?>
776 776
 									</a>
777 777
 									
778 778
 									<a href="<?php echo admin_url("plugin-install.php")?>?tab=plugin-information&amp;plugin=xcloner-google-drive&amp;TB_iframe=true&amp;width=772&amp;height=499" class="btn thickbox open-plugin-details-modal" aria-label="More information about Theme Check 20160523.1" data-title="Theme Check 20160523.1">
779 779
 									<!--
780 780
 									<a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip">
781 781
 									-->
782
-										<?php echo sprintf(__('More Details','xcloner-backup-and-restore'))?>
782
+										<?php echo sprintf(__('More Details', 'xcloner-backup-and-restore'))?>
783 783
 									</a>
784 784
 								</div>
785 785
 					        </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_init_page.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
  * @subpackage Xcloner/admin/partials
13 13
  */
14 14
 
15
-$requirements	 		= $this->get_xcloner_container()->get_xcloner_requirements();
16
-$xcloner_settings 		= $this->get_xcloner_container()->get_xcloner_settings();
17
-$xcloner_file_system 	= $this->get_xcloner_container()->get_xcloner_filesystem();
18
-$logger					= $this->get_xcloner_container()->get_xcloner_logger();
19
-$xcloner_scheduler 		= $this->get_xcloner_container()->get_xcloner_scheduler();
15
+$requirements = $this->get_xcloner_container()->get_xcloner_requirements();
16
+$xcloner_settings = $this->get_xcloner_container()->get_xcloner_settings();
17
+$xcloner_file_system = $this->get_xcloner_container()->get_xcloner_filesystem();
18
+$logger = $this->get_xcloner_container()->get_xcloner_logger();
19
+$xcloner_scheduler = $this->get_xcloner_container()->get_xcloner_scheduler();
20 20
 
21 21
 $logger_content = $logger->getLastDebugLines();
22 22
 
23
-$date_format = get_option( 'date_format' );
24
-$time_format = get_option( 'time_format' );
23
+$date_format = get_option('date_format');
24
+$time_format = get_option('time_format');
25 25
 
26
-if($requirements->check_backup_ready_status())
26
+if ($requirements->check_backup_ready_status())
27 27
 {
28
-	$latest_backup =  $xcloner_file_system->get_latest_backup();
28
+	$latest_backup = $xcloner_file_system->get_latest_backup();
29 29
 	$xcloner_file_system->backup_storage_cleanup();
30 30
 }
31 31
 ?>
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	</div>
39 39
 </div>
40 40
 
41
-<?php if(isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?>
41
+<?php if (isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?>
42 42
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
43 43
 		<p><strong>
44 44
 			<?php echo __('Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	</div>
48 48
 <?php endif?>
49 49
 
50
-<?php if(!isset($latest_backup['timestamp']) ): ?>
50
+<?php if (!isset($latest_backup['timestamp'])): ?>
51 51
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
52 52
 		<p><strong>
53 53
 			<?php echo __('You have no backup that I could find, please generate a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?>
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	</div>
57 57
 <?php endif?>
58 58
 
59
-<?php if(!$requirements->check_backup_ready_status()):?>
59
+<?php if (!$requirements->check_backup_ready_status()):?>
60 60
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
61 61
 		<p><strong>
62 62
 			<?php echo __('Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore') ?>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 							<div class="row">
84 84
 								<h5><?php echo __("Latest Backup", 'xcloner-backup-and-restore')?></h5>
85 85
 								<blockquote>
86
-								<?php if($latest_backup):?>
86
+								<?php if ($latest_backup):?>
87 87
 									<div class="item">
88 88
 										<div class="title"><?php echo __("Backup Name", 'xcloner-backup-and-restore')?>:</div>
89 89
 										<?php echo $latest_backup['basename']?>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 									<div class="item">
98 98
 										<div class="title"><?php echo __("Backup Date", 'xcloner-backup-and-restore')?>:</div>
99 99
 										<?php 
100
-										echo date($date_format." ".$time_format, $latest_backup['timestamp']+(get_option( 'gmt_offset' ) * HOUR_IN_SECONDS))
100
+										echo date($date_format." ".$time_format, $latest_backup['timestamp'] + (get_option('gmt_offset') * HOUR_IN_SECONDS))
101 101
 										?>
102 102
 									</div> 
103 103
 								<?php else:?>
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 								<blockquote>
112 112
 								<div class="item">
113 113
 									<div class="title"><?php echo __("Total Size", 'xcloner-backup-and-restore')?>:</div>
114
-									<?php echo size_format($xcloner_file_system->get_storage_usage());?>
114
+									<?php echo size_format($xcloner_file_system->get_storage_usage()); ?>
115 115
 								</div>
116 116
 								</blockquote>
117 117
 							<h5><?php echo __("Next Scheduled Backup", 'xcloner-backup-and-restore')?></h5>
@@ -120,25 +120,25 @@  discard block
 block discarded – undo
120 120
 									<?php
121 121
 									$list = ($xcloner_scheduler->get_next_run_schedule());
122 122
 										
123
-										if(is_array($list))
123
+										if (is_array($list))
124 124
 										{
125
-											$xcloner_file_system->sort_by($list, "next_run_time","asc");
125
+											$xcloner_file_system->sort_by($list, "next_run_time", "asc");
126 126
 										}
127 127
 										
128
-										if(isset($list[0]))
128
+										if (isset($list[0]))
129 129
 											$latest_schedule = $list[0];
130 130
 									?>
131
-									<?php if(isset($latest_schedule->name)):?>
131
+									<?php if (isset($latest_schedule->name)):?>
132 132
 									<div class="title"><?php echo __("Schedule Name", 'xcloner-backup-and-restore')?>:</div>
133
-										<?php	echo $latest_schedule->name;?>
134
-									<?php endif;?>	
133
+										<?php	echo $latest_schedule->name; ?>
134
+									<?php endif; ?>	
135 135
 								</div>
136 136
 								<div class="item">
137 137
 									<div class="title"><?php echo __("Next Call", 'xcloner-backup-and-restore')?>:</div>
138
-									<?php if(isset($latest_schedule->next_run_time))	
138
+									<?php if (isset($latest_schedule->next_run_time))	
139 139
 											echo date($date_format." ".$time_format, $latest_schedule->next_run_time);
140 140
 										  else
141
-											echo __("Unscheduled",'xcloner-backup-and-restore');
141
+											echo __("Unscheduled", 'xcloner-backup-and-restore');
142 142
 									?>
143 143
 								</div>
144 144
 								</blockquote>
@@ -146,14 +146,14 @@  discard block
 block discarded – undo
146 146
 					</div>
147 147
 				</li>
148 148
 				
149
-				<?php if($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
149
+				<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
150 150
 				<li class="active">
151 151
 					<div class="collapsible-header active">
152 152
 						<i class="material-icons">bug_report</i><?php echo __('XCloner Debugger', 'xcloner-backup-and-restore')?>
153 153
 						<span class="right"><a href="#<?php echo $logger_basename = basename($logger->get_main_logger_url())?>" class="download-logger"><?php echo $logger_basename?></a></span>
154 154
 					</div>
155 155
 					<div class="collapsible-body">
156
-						<div class="console" id="xcloner-console"><?php if($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
156
+						<div class="console" id="xcloner-console"><?php if ($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
157 157
 					</div>
158 158
 				</li>
159 159
 				<script>
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 					}, 2000);*/
166 166
 				})
167 167
 				</script>
168
-				<?php endif;?>
168
+				<?php endif; ?>
169 169
 			
170 170
 			</ul>
171 171
 			
@@ -177,59 +177,59 @@  discard block
 block discarded – undo
177 177
 	  
178 178
 	  <div class="card blue-grey darken-1 z-depth-4 backup-ready">
179 179
 		<div class="card-content white-text">
180
-		  <span class="card-title"><?php echo __("System Check",'xcloner-backup-and-restore')?></span>
180
+		  <span class="card-title"><?php echo __("System Check", 'xcloner-backup-and-restore')?></span>
181 181
 		  <ul>
182
-				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1)?"teal":"red")?> lighten-2" >
183
-					<?php echo __('Backup Start Location','xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path();?></span>
182
+				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1) ? "teal" : "red")?> lighten-2" >
183
+					<?php echo __('Backup Start Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path(); ?></span>
184 184
 				</li>
185
-				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1)?"teal":"red")?> lighten-2" >
186
-					<?php echo __('Backup Storage Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path();?></span>
185
+				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1) ? "teal" : "red")?> lighten-2" >
186
+					<?php echo __('Backup Storage Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path(); ?></span>
187 187
 				</li>
188
-				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1)?"teal":"red")?> lighten-2" >
189
-					<?php echo __('Temporary Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path();?></span>
188
+				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1) ? "teal" : "red")?> lighten-2" >
189
+					<?php echo __('Temporary Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path(); ?></span>
190 190
 				</li>
191 191
 				
192
-				<li class="card-panel <?php echo ($requirements->check_min_php_version(1)?"teal":"red")?> lighten-2" >
193
-					<?php echo __('PHP Version Check','xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version();?>
192
+				<li class="card-panel <?php echo ($requirements->check_min_php_version(1) ? "teal" : "red")?> lighten-2" >
193
+					<?php echo __('PHP Version Check', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version(); ?>
194 194
 					( >= <?php echo $requirements->get_constant('min_php_version')?>)
195 195
 				</li>
196
-				<li class="card-panel <?php echo ($requirements->check_safe_mode(1)?"teal":"orange")?> lighten-2" >
197
-					<?php echo __('PHP Safe Mode','xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode();?>
196
+				<li class="card-panel <?php echo ($requirements->check_safe_mode(1) ? "teal" : "orange")?> lighten-2" >
197
+					<?php echo __('PHP Safe Mode', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode(); ?>
198 198
 					( <?php echo $requirements->get_constant('safe_mode')?>)
199 199
 				</li>
200
-				<li class="card-panel <?php echo ($requirements->check_backup_ready_status()?"teal":"red")?> lighten-2">
201
-					<?php echo ($requirements->check_backup_ready_status()?__('BACKUP READY','xcloner-backup-and-restore'):__('Backup not ready, please check above requirements','xcloner-backup-and-restore'))?>
202
-					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status()?'thumb_up':'thumb_down')?></i>
200
+				<li class="card-panel <?php echo ($requirements->check_backup_ready_status() ? "teal" : "red")?> lighten-2">
201
+					<?php echo ($requirements->check_backup_ready_status() ? __('BACKUP READY', 'xcloner-backup-and-restore') : __('Backup not ready, please check above requirements', 'xcloner-backup-and-restore'))?>
202
+					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down')?></i>
203 203
 				</li>
204 204
 		  </ul>
205 205
 		  <ul class="additional_system_info">
206 206
 				<li class="card-panel grey darken-1" >
207
-					<?php echo __('PHP max_execution_time','xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time();?>
207
+					<?php echo __('PHP max_execution_time', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time(); ?>
208 208
 				</li>
209 209
 				<li class="card-panel grey darken-1" >
210
-					<?php echo __('PHP memory_limit','xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit();?>
210
+					<?php echo __('PHP memory_limit', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit(); ?>
211 211
 				</li>
212 212
 				<li class="card-panel grey darken-1" >
213
-					<?php echo __('PHP open_basedir','xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir();?>
213
+					<?php echo __('PHP open_basedir', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir(); ?>
214 214
 				</li>
215 215
 				<?php 
216 216
 				$data = array();
217
-				if($requirements->check_backup_ready_status())
217
+				if ($requirements->check_backup_ready_status())
218 218
 					$data = $xcloner_file_system->estimate_read_write_time();
219 219
 				?>
220 220
 				<li class="card-panel grey darken-1" >
221
-					<?php echo __('Reading Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time'])?$data['reading_time']:__("unknown"));?>
221
+					<?php echo __('Reading Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time']) ? $data['reading_time'] : __("unknown")); ?>
222 222
 				</li>
223 223
 				<li class="card-panel grey darken-1" >
224
-					<?php echo __('Writing Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time'])?$data['writing_time']:__("unknown"));?>
224
+					<?php echo __('Writing Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time']) ? $data['writing_time'] : __("unknown")); ?>
225 225
 				</li>
226 226
 				<li class="card-panel grey darken-1" >
227
-					<?php echo __('Free Disk Space','xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space();;?>
227
+					<?php echo __('Free Disk Space', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space(); ;?>
228 228
 				</li>
229 229
 		  </ul>
230 230
 		</div>
231 231
 		<div class="card-action">
232
-		  <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __('Toggle Additional System Info','xcloner-backup-and-restore')?></a>
232
+		  <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __('Toggle Additional System Info', 'xcloner-backup-and-restore')?></a>
233 233
 		</div>
234 234
 	  </div>
235 235
 
Please login to merge, or discard this patch.
admin/partials/xcloner_manage_backups_page.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$xcloner_file_system 		= $this->get_xcloner_container()->get_xcloner_filesystem();
4
-$xcloner_sanitization 		= $this->get_xcloner_container()->get_xcloner_sanitization();
5
-$xcloner_remote_storage 	= $this->get_xcloner_container()->get_xcloner_remote_storage();
6
-$storage_selection 			= "";
3
+$xcloner_file_system = $this->get_xcloner_container()->get_xcloner_filesystem();
4
+$xcloner_sanitization = $this->get_xcloner_container()->get_xcloner_sanitization();
5
+$xcloner_remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage();
6
+$storage_selection = "";
7 7
 
8
-if(isset($_GET['storage_selection']) and $_GET['storage_selection'])
8
+if (isset($_GET['storage_selection']) and $_GET['storage_selection'])
9 9
 {
10 10
 	$storage_selection = $xcloner_sanitization->sanitize_input_as_string($_GET['storage_selection']);
11 11
 }
@@ -21,18 +21,18 @@  discard block
 block discarded – undo
21 21
 	<div class="col s12 m6 l9">
22 22
 		<h1><?= esc_html(get_admin_page_title()); ?></h1>
23 23
 	</div>	
24
-	<?php if(sizeof($available_storages)):?>
24
+	<?php if (sizeof($available_storages)):?>
25 25
 		<div class="col s12 m6 l3 remote-storage-selection">
26 26
 				<select name="storage_selection" id="storage_selection" class="validate" required >
27 27
 					
28
-					<?php if($storage_selection):?>
28
+					<?php if ($storage_selection):?>
29 29
 						<option value="" selected><?php echo __('Change To Local Storage...', 'xcloner-backup-and-restore') ?></option>
30 30
 					<?php else: ?>
31 31
 						<option value="" selected><?php echo __('Change To Remote Storage...', 'xcloner-backup-and-restore') ?></option>
32
-					<?php endif;?>
32
+					<?php endif; ?>
33 33
 						
34
-					<?php foreach($available_storages as $storage=>$text):?>
35
-						<option value="<?php echo $storage?>"<?php if($storage == $storage_selection) echo "selected"?>><?php echo $text?></option>
34
+					<?php foreach ($available_storages as $storage=>$text):?>
35
+						<option value="<?php echo $storage?>"<?php if ($storage == $storage_selection) echo "selected"?>><?php echo $text?></option>
36 36
 					<?php endforeach?>
37 37
 				</select>
38 38
 	<?php endif?>
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
 				  <label for="select_all">&nbsp;</label>
48 48
 				</p> 
49 49
 		  </th>
50
-		  <th data-field="id"><?php echo __("Backup Name",'xcloner-backup-and-restore')?></th>
51
-		  <th data-field="name"><?php echo __("Created Time",'xcloner-backup-and-restore')?></th>
52
-		  <th data-field="name"><?php echo __("Size",'xcloner-backup-and-restore')?></th>
53
-		  <th class="no-sort" data-field="price"><?php echo __("Action",'xcloner-backup-and-restore')?></th>
50
+		  <th data-field="id"><?php echo __("Backup Name", 'xcloner-backup-and-restore')?></th>
51
+		  <th data-field="name"><?php echo __("Created Time", 'xcloner-backup-and-restore')?></th>
52
+		  <th data-field="name"><?php echo __("Size", 'xcloner-backup-and-restore')?></th>
53
+		  <th class="no-sort" data-field="price"><?php echo __("Action", 'xcloner-backup-and-restore')?></th>
54 54
 		  
55 55
 	  </tr>
56 56
 	</thead>
@@ -60,20 +60,20 @@  discard block
 block discarded – undo
60 60
       
61 61
 <?php 
62 62
 $i = 0;
63
-foreach($backup_list as $file_info):?>
63
+foreach ($backup_list as $file_info):?>
64 64
 <?php 
65
-	if($storage_selection == "gdrive")
65
+	if ($storage_selection == "gdrive")
66 66
 		$file_info['path'] = $file_info['filename'].".".$file_info['extension'];
67 67
 	$file_exists_on_local_storage = true;
68 68
 	
69
-	if($storage_selection)
69
+	if ($storage_selection)
70 70
 	{
71
-		if(!$xcloner_file_system->get_storage_filesystem()->has($file_info['path']))
71
+		if (!$xcloner_file_system->get_storage_filesystem()->has($file_info['path']))
72 72
 			$file_exists_on_local_storage = false;
73 73
 	}
74 74
 
75 75
 ?>
76
-<?php if(!isset($file_info['parent'])):?>	
76
+<?php if (!isset($file_info['parent'])):?>	
77 77
 	
78 78
 	<tr>
79 79
 		<td class="checkbox">
@@ -84,55 +84,55 @@  discard block
 block discarded – undo
84 84
 		</td>
85 85
 		<td>
86 86
 			<span class=""><?php echo $file_info['path']?></span>
87
-			<?php if(!$file_exists_on_local_storage): ?>
88
-				<a href="#" title="<?php echo __("File does not exists on local storage","xcloner-backup-and-restore")?>"><i class="material-icons backup_warning">warning</i></a>
87
+			<?php if (!$file_exists_on_local_storage): ?>
88
+				<a href="#" title="<?php echo __("File does not exists on local storage", "xcloner-backup-and-restore")?>"><i class="material-icons backup_warning">warning</i></a>
89 89
 			<?php endif?>
90 90
 			<?php 
91
-			if(isset($file_info['childs']) and is_array($file_info['childs'])):
91
+			if (isset($file_info['childs']) and is_array($file_info['childs'])):
92 92
 			?>
93 93
 			<a href="#" title="expand" class="expand-multipart add"><i class="material-icons">add</i></a>
94 94
 			<a href="#" title="collapse" class="expand-multipart remove"><i class="material-icons">remove</i></a>
95 95
 			<ul class="multipart">
96
-			<?php foreach($file_info['childs'] as $child):?>
96
+			<?php foreach ($file_info['childs'] as $child):?>
97 97
 				<li>
98 98
 					<?php echo $child[0]?> (<?php echo size_format($child[2])?>) 
99 99
 					<?php
100 100
 					$child_exists_on_local_storage = true;
101
-					if($storage_selection)
101
+					if ($storage_selection)
102 102
 					{
103
-						if(!$xcloner_file_system->get_storage_filesystem()->has($child[0]))
103
+						if (!$xcloner_file_system->get_storage_filesystem()->has($child[0]))
104 104
 							$child_exists_on_local_storage = false;
105 105
 					}
106 106
 					?>
107
-					<?php if(!$child_exists_on_local_storage): ?>
108
-						<a href="#" title="<?php echo __("File does not exists on local storage","xcloner-backup-and-restore")?>"><i class="material-icons backup_warning">warning</i></a>
107
+					<?php if (!$child_exists_on_local_storage): ?>
108
+						<a href="#" title="<?php echo __("File does not exists on local storage", "xcloner-backup-and-restore")?>"><i class="material-icons backup_warning">warning</i></a>
109 109
 					<?php endif?>
110
-					<?php if(!$storage_selection) :?>
111
-						<a href="#<?php echo $child[0];?>" class="download" title="Download Backup"><i class="material-icons">file_download</i></a>
112
-						<a href="#<?php echo $child[0]?>" class="list-backup-content" title="<?php echo __('List Backup Content','xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> 
113
-					<?php elseif($storage_selection != "gdrive" && !$xcloner_file_system->get_storage_filesystem()->has($child[0])): ?>
114
-						<a href="#<?php echo $child[0]?>" class="copy-remote-to-local" title="<?php echo __('Push Backup To Local Storage','xcloner-backup-and-restore')?>"><i class="material-icons">file_upload</i></a>
110
+					<?php if (!$storage_selection) :?>
111
+						<a href="#<?php echo $child[0]; ?>" class="download" title="Download Backup"><i class="material-icons">file_download</i></a>
112
+						<a href="#<?php echo $child[0]?>" class="list-backup-content" title="<?php echo __('List Backup Content', 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a> 
113
+					<?php elseif ($storage_selection != "gdrive" && !$xcloner_file_system->get_storage_filesystem()->has($child[0])): ?>
114
+						<a href="#<?php echo $child[0]?>" class="copy-remote-to-local" title="<?php echo __('Push Backup To Local Storage', 'xcloner-backup-and-restore')?>"><i class="material-icons">file_upload</i></a>
115 115
 					<?php endif?>
116 116
 				</li>
117
-				<?php endforeach;?>
117
+				<?php endforeach; ?>
118 118
 			</ul>
119
-			<?php endif;?>
119
+			<?php endif; ?>
120 120
 		</td>
121 121
 		<td><?php echo date("d M, Y H:i", $file_info['timestamp'])?></td>
122 122
 		<td><?php echo size_format($file_info['size'])?></td>
123 123
 		<td>
124
-			<?php if(!$storage_selection):?>
125
-				<a href="#<?php echo $file_info['basename'];?>" class="download" title="<?php echo __('Download Backup','xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
124
+			<?php if (!$storage_selection):?>
125
+				<a href="#<?php echo $file_info['basename']; ?>" class="download" title="<?php echo __('Download Backup', 'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
126 126
 
127
-				<?php if(sizeof($available_storages)):?>
128
-					<a href="#<?php echo $file_info['basename']?>" class="cloud-upload" title="<?php echo __('Send Backup To Remote Storage','xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
127
+				<?php if (sizeof($available_storages)):?>
128
+					<a href="#<?php echo $file_info['basename']?>" class="cloud-upload" title="<?php echo __('Send Backup To Remote Storage', 'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
129 129
 				<?php endif?>
130
-				<a href="#<?php echo $file_info['basename']?>" class="list-backup-content" title="<?php echo __('List Backup Content','xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
131
-			 <?php endif;?>
130
+				<a href="#<?php echo $file_info['basename']?>" class="list-backup-content" title="<?php echo __('List Backup Content', 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
131
+			 <?php endif; ?>
132 132
 			 	
133
-			<a href="#<?php echo $file_info['basename']?>" class="delete" title="<?php echo __('Delete Backup','xcloner-backup-and-restore')?>"><i class="material-icons">delete</i></a>
134
-			<?php if($storage_selection and !$file_exists_on_local_storage):?>
135
-				<a href="#<?php echo $file_info['basename'];?>" class="copy-remote-to-local" title="<?php echo __('Push Backup To Local Storage','xcloner-backup-and-restore')?>"><i class="material-icons">file_upload</i></a>
133
+			<a href="#<?php echo $file_info['basename']?>" class="delete" title="<?php echo __('Delete Backup', 'xcloner-backup-and-restore')?>"><i class="material-icons">delete</i></a>
134
+			<?php if ($storage_selection and !$file_exists_on_local_storage):?>
135
+				<a href="#<?php echo $file_info['basename']; ?>" class="copy-remote-to-local" title="<?php echo __('Push Backup To Local Storage', 'xcloner-backup-and-restore')?>"><i class="material-icons">file_upload</i></a>
136 136
 			<?php endif?>	
137 137
 			
138 138
 		</td>
@@ -145,12 +145,12 @@  discard block
 block discarded – undo
145 145
 	</tbody>
146 146
 </table>
147 147
 
148
-<a class="waves-effect waves-light btn delete-all"><i class="material-icons left">delete</i><?php echo __("Delete",'xcloner-backup-and-restore')?></a>
148
+<a class="waves-effect waves-light btn delete-all"><i class="material-icons left">delete</i><?php echo __("Delete", 'xcloner-backup-and-restore')?></a>
149 149
 
150 150
 <!-- List Backup Content Modal-->
151 151
 <div id="backup_cotent_modal" class="modal">
152 152
 	<div class="modal-content">
153
-		<h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4>
153
+		<h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4>
154 154
 		<h5 class="backup-name"></h5>
155 155
 		
156 156
 		<div class="progress">
@@ -163,14 +163,14 @@  discard block
 block discarded – undo
163 163
 <!-- Local Transfer Modal-->
164 164
 <div id="local_storage_upload_modal" class="modal">
165 165
 	<div class="modal-content">
166
-		<h4><?php echo sprintf(__("Transfer Remote Backup To Local Storage",'xcloner-backup-and-restore'), "")?></h4>
166
+		<h4><?php echo sprintf(__("Transfer Remote Backup To Local Storage", 'xcloner-backup-and-restore'), "")?></h4>
167 167
 		<h5 class="backup-name"></h5>
168 168
 		
169 169
 		<div class="row status">
170 170
 			<div class="progress">
171 171
 				<div class="indeterminate"></div>
172 172
 			</div>
173
-			<?php echo __("Uploading backup to the local storage filesystem...",'xcloner-backup-and-restore')?> <span class="status-text"></span>
173
+			<?php echo __("Uploading backup to the local storage filesystem...", 'xcloner-backup-and-restore')?> <span class="status-text"></span>
174 174
 		</div>
175 175
 	</div>	
176 176
 </div>
@@ -180,17 +180,17 @@  discard block
 block discarded – undo
180 180
 	<form method="POST" class="remote-storage-form">
181 181
 	<input type="hidden" name="file" class="backup_name">	  
182 182
 	<div class="modal-content">
183
-	  <h4><?php echo __("Remote Storage Transfer",'xcloner-backup-and-restore')?></h4>
183
+	  <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore')?></h4>
184 184
 	  <p>
185
-	  <?php if(sizeof($available_storages)):?>
185
+	  <?php if (sizeof($available_storages)):?>
186 186
 			<div class="row">
187 187
 				<div class="col s12 label">
188
-					<label><?php echo sprintf(__('Send %s to remote storage','xcloner-backup-and-restore'), "<span class='backup_name'></span>") ?></label>
188
+					<label><?php echo sprintf(__('Send %s to remote storage', 'xcloner-backup-and-restore'), "<span class='backup_name'></span>") ?></label>
189 189
 				</div>
190 190
 				<div class="input-field col s8 m10">
191 191
 					<select name="transfer_storage" id="transfer_storage" class="validate" required >
192 192
 						<option value="" selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option>
193
-						<?php foreach($available_storages as $storage=>$text):?>
193
+						<?php foreach ($available_storages as $storage=>$text):?>
194 194
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
195 195
 						<?php endforeach?>
196 196
 						</select>
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 				</div>
202 202
 			</div>
203 203
 			<div class="row status">
204
-				<?php echo __("Uploading backup to the selected remote storage...",'xcloner-backup-and-restore')?> <span class="status-text"></span>
204
+				<?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore')?> <span class="status-text"></span>
205 205
 				<div class="progress">
206 206
 					<div class="indeterminate"></div>
207 207
 				</div>
Please login to merge, or discard this patch.
admin/partials/xcloner_restore_page.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$xcloner_settings 		= $this->get_xcloner_container()->get_xcloner_settings();
4
-$logger					= $this->get_xcloner_container()->get_xcloner_logger();
5
-$xcloner_file_system 	= $this->get_xcloner_container()->get_xcloner_filesystem();
6
-$xcloner_file_transfer 	= $this->get_xcloner_container()->get_xcloner_file_transfer();
3
+$xcloner_settings = $this->get_xcloner_container()->get_xcloner_settings();
4
+$logger = $this->get_xcloner_container()->get_xcloner_logger();
5
+$xcloner_file_system = $this->get_xcloner_container()->get_xcloner_filesystem();
6
+$xcloner_file_transfer = $this->get_xcloner_container()->get_xcloner_file_transfer();
7 7
 
8
-$start = 0 ;
8
+$start = 0;
9 9
 
10 10
 $backup_list = $xcloner_file_system->get_latest_backups();
11 11
 
@@ -21,22 +21,22 @@  discard block
 block discarded – undo
21 21
 	<div class="col s12">
22 22
 		<ul class="collapsible xcloner-restore " data-collapsible="accordion">
23 23
 			<li data-step="1" class="restore-script-upload-step steps active show">
24
-				<div class="collapsible-header active"><i class="material-icons">settings_remote</i><?php echo __("Restore Script Upload",'xcloner-backup-and-restore')?></div>
24
+				<div class="collapsible-header active"><i class="material-icons">settings_remote</i><?php echo __("Restore Script Upload", 'xcloner-backup-and-restore')?></div>
25 25
 				<div class="collapsible-body row">
26 26
 						
27 27
 						<ul class="text-steps">
28
-							<li><?php echo __("Please download the restore script from",'xcloner-backup-and-restore')?> <a href='#' onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __("here",'xcloner-backup-and-restore')?></strong></a>
28
+							<li><?php echo __("Please download the restore script from", 'xcloner-backup-and-restore')?> <a href='#' onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __("here", 'xcloner-backup-and-restore')?></strong></a>
29 29
 							</li>	
30 30
 							<li>
31
-							<?php echo __("Extract the files on your new host",'xcloner-backup-and-restore')?>
31
+							<?php echo __("Extract the files on your new host", 'xcloner-backup-and-restore')?>
32 32
 							</li>
33 33
 							<li>
34
-							<?php echo __("Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php",'xcloner-backup-and-restore')?>
34
+							<?php echo __("Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php", 'xcloner-backup-and-restore')?>
35 35
 							</li>
36 36
 							<li>
37
-							<?php echo __("If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.",'xcloner-backup-and-restore')?>
37
+							<?php echo __("If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.", 'xcloner-backup-and-restore')?>
38 38
 							</li>
39
-							<?php if(is_ssl()):?>
39
+							<?php if (is_ssl()):?>
40 40
 							<li>
41 41
 								<?php echo __("We have detected your connection to the site as being secure, so your restore script address must start with https://.")?>
42 42
 							</li>
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
 						</ul>	
46 46
 						
47 47
 						<div class="input-field col l9 s12">
48
-							<input value="<?php echo (is_ssl())?"https://":"http://"?>" id="restore_script_url" type="text" class="validate" placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php" >
48
+							<input value="<?php echo (is_ssl()) ? "https://" : "http://"?>" id="restore_script_url" type="text" class="validate" placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php" >
49 49
 							<label for="restore_script_url"></label>
50 50
 							<div id="url_validation_status" class="status"></div>
51 51
 				        </div>
52 52
 				        <div class="col l3 s12 right-align">
53
-							<button class="btn waves-effect waves-light" type="submit" id="validate_url" name="action"><?php echo __("Check",'xcloner-backup-and-restore')?>
53
+							<button class="btn waves-effect waves-light" type="submit" id="validate_url" name="action"><?php echo __("Check", 'xcloner-backup-and-restore')?>
54 54
 							    <i class="material-icons right">send</i>
55 55
 							</button>
56 56
 				        </div>
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
 			</li>
59 59
 			
60 60
 			<li data-step="2" class="backup-upload-step steps">
61
-				<div class="collapsible-header active"><i class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Remote Host",'xcloner-backup-and-restore')?>
61
+				<div class="collapsible-header active"><i class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Remote Host", 'xcloner-backup-and-restore')?>
62 62
 				</div>
63 63
 				<div class="collapsible-body row">
64
-					<p><?php echo __("You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.",'xcloner-backup-and-restore')?></p>
64
+					<p><?php echo __("You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.", 'xcloner-backup-and-restore')?></p>
65 65
 					<div class="input-field col s12 l7">
66 66
 						<select id="backup_file" name="backup_file" class="browser-default">
67
-					      <option value="" disabled selected><?php echo __("Please select a local backup archive to upload to remote host",'xcloner-backup-and-restore')?></option>
68
-					      <?php if(is_array($backup_list)):?>
69
-							<?php foreach($backup_list as $file):?>
67
+					      <option value="" disabled selected><?php echo __("Please select a local backup archive to upload to remote host", 'xcloner-backup-and-restore')?></option>
68
+					      <?php if (is_array($backup_list)):?>
69
+							<?php foreach ($backup_list as $file):?>
70 70
 								<option value="<?php echo $file['basename']?>">
71 71
 								<?php echo $file['basename']?> (<?php echo size_format($file['size'])?>)
72 72
 								</option>
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
 					</div>
83 83
 					<div class="col s12 l5 right-align">
84 84
 						<div class="toggler">
85
-							<button class="btn waves-effect waves-light upload-backup normal" type="submit" id="" name="action"><?php echo __("Upload",'xcloner-backup-and-restore')?>
85
+							<button class="btn waves-effect waves-light upload-backup normal" type="submit" id="" name="action"><?php echo __("Upload", 'xcloner-backup-and-restore')?>
86 86
 							    <i class="material-icons right">send</i>
87 87
 							</button>
88
-							<button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
88
+							<button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
89 89
 							    <i class="material-icons right">close</i>
90 90
 							</button>
91 91
 						</div>
92
-						<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next",'xcloner-backup-and-restore')?>" id="skip_upload_backup" name="action"><?php echo __("Next",'xcloner-backup-and-restore')?>
92
+						<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next", 'xcloner-backup-and-restore')?>" id="skip_upload_backup" name="action"><?php echo __("Next", 'xcloner-backup-and-restore')?>
93 93
 						    <i class="material-icons right">navigate_next</i>
94 94
 						</button>
95 95
 					</div>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 			</li>	
98 98
 			
99 99
 			<li data-step="3" class="restore-remote-backup-step steps active">
100
-				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Remote Host",'xcloner-backup-and-restore')?>
100
+				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Remote Host", 'xcloner-backup-and-restore')?>
101 101
 						<i class="material-icons right" title="Refresh Remote Backup Files List" id="refresh_remote_backup_file">cached</i>
102 102
 
103 103
 						<div class="switch right">
@@ -114,12 +114,12 @@  discard block
 block discarded – undo
114 114
 						<div class=" col s12 l7">
115 115
 							<div class="input-field row">
116 116
 								<input type="text" name="remote_restore_path" id="remote_restore_path" class="validate" placeholder="Restore Target Path">
117
-								<label><?php echo __("Remote Restore Target Path",'xcloner-backup-and-restore')?></label>
117
+								<label><?php echo __("Remote Restore Target Path", 'xcloner-backup-and-restore')?></label>
118 118
 							</div>
119 119
 							
120 120
 							<div class="input-field row">
121 121
 								<select id="remote_backup_file" name="remote_backup_file" class="browser-default">
122
-									<option value="" disabled selected><?php echo __("Please select the remote backup file to restore",'xcloner-backup-and-restore')?></option>
122
+									<option value="" disabled selected><?php echo __("Please select the remote backup file to restore", 'xcloner-backup-and-restore')?></option>
123 123
 							    </select>
124 124
 							    <label></label>
125 125
 							</div>
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
 				       
135 135
 				        <div class="col s12 l5 right-align">
136 136
 							<div class="toggler">
137
-								<button class="btn waves-effect waves-light restore_remote_backup normal " type="submit" id="" name="action"><?php echo __("Restore",'xcloner-backup-and-restore')?>
137
+								<button class="btn waves-effect waves-light restore_remote_backup normal " type="submit" id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore')?>
138 138
 								    <i class="material-icons right">send</i>
139 139
 								</button>
140
-								<button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
140
+								<button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
141 141
 								    <i class="material-icons right">close</i>
142 142
 								</button>
143 143
 							</div>
144
-							<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next",'xcloner-backup-and-restore')?>" id="skip_remote_backup_step" name="action"><?php echo __("Next",'xcloner-backup-and-restore')?>
144
+							<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next", 'xcloner-backup-and-restore')?>" id="skip_remote_backup_step" name="action"><?php echo __("Next", 'xcloner-backup-and-restore')?>
145 145
 								<i class="material-icons right">navigate_next</i>
146 146
 							</button>
147 147
 				        </div>
@@ -149,71 +149,71 @@  discard block
 block discarded – undo
149 149
 			</li>
150 150
 			
151 151
 			<li data-step="4" class="restore-remote-database-step steps active">
152
-				<div class="collapsible-header"><i class="material-icons">list</i><?php echo __("Restore Remote Database - Search and Replace",'xcloner-backup-and-restore')?>
152
+				<div class="collapsible-header"><i class="material-icons">list</i><?php echo __("Restore Remote Database - Search and Replace", 'xcloner-backup-and-restore')?>
153 153
 					<i class="material-icons right" title="Refresh Database Backup Files List" id="refresh_database_file">cached</i>
154 154
 				</div>
155 155
 				<div class="collapsible-body row">
156 156
 						
157 157
 						<div class="col s12">
158
-							<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-tooltip="<?php echo __('Please provide below the mysql connection details for the remote host database.','xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
159
-							<h5><?php echo __('Remote Mysql Details','xcloner-backup-and-restore')?></h5>
158
+							<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-tooltip="<?php echo __('Please provide below the mysql connection details for the remote host database.', 'xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
159
+							<h5><?php echo __('Remote Mysql Details', 'xcloner-backup-and-restore')?></h5>
160 160
 						</div>						
161 161
 						<div class=" col s12">
162 162
 							<div class="input-field col s12 m6">
163 163
 								<input type="text" name="remote_mysql_host" id="remote_mysql_host" class="validate" placeholder="Remote Mysql Hostname" value="localhost">
164
-								<label><?php echo __("Remote Mysql Hostname",'xcloner-backup-and-restore')?></label>
164
+								<label><?php echo __("Remote Mysql Hostname", 'xcloner-backup-and-restore')?></label>
165 165
 							</div>
166 166
 							
167 167
 							<div class="input-field  col s12 m6">
168 168
 								<input type="text" name="remote_mysql_db" id="remote_mysql_db" class="validate" placeholder="Remote Mysql Database">
169
-								<label><?php echo __("Remote Mysql Database",'xcloner-backup-and-restore')?></label>
169
+								<label><?php echo __("Remote Mysql Database", 'xcloner-backup-and-restore')?></label>
170 170
 							</div>
171 171
 							
172 172
 							<div class="input-field  col s12 m6">
173 173
 								<input type="text" name="remote_mysql_user" id="remote_mysql_user" class="validate" placeholder="Remote Mysql Username">
174
-								<label><?php echo __("Remote Mysql Username",'xcloner-backup-and-restore')?></label>
174
+								<label><?php echo __("Remote Mysql Username", 'xcloner-backup-and-restore')?></label>
175 175
 							</div>
176 176
 							
177 177
 							
178 178
 							<div class="input-field  col s12 m6">
179 179
 								<input type="text" name="remote_mysql_pass" id="remote_mysql_pass" class="validate" placeholder="Remote Mysql Password">
180
-								<label><?php echo __("Remote Mysql Password",'xcloner-backup-and-restore')?></label>
180
+								<label><?php echo __("Remote Mysql Password", 'xcloner-backup-and-restore')?></label>
181 181
 							</div>
182 182
 							
183 183
 						</div>	
184 184
 						<div class="col s12">
185
-						<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-html="true" data-tooltip="<?php echo __('I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.','xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
186
-							<h5><?php echo __('Remote Mysql Search and Replace','xcloner-backup-and-restore')?></h5>
185
+						<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-html="true" data-tooltip="<?php echo __('I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.', 'xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
186
+							<h5><?php echo __('Remote Mysql Search and Replace', 'xcloner-backup-and-restore')?></h5>
187 187
 						</div>
188 188
 						<div class="col s12">  
189 189
 							<div class="input-field col s12 m6 ">
190
-									<input type="text" name="wp_home_url" id="wp_home_url" class="validate" placeholder="WP Home Url" value="<?php echo home_url();?>">
191
-									<label><?php echo __("Source Home Url",'xcloner-backup-and-restore')?></label>
190
+									<input type="text" name="wp_home_url" id="wp_home_url" class="validate" placeholder="WP Home Url" value="<?php echo home_url(); ?>">
191
+									<label><?php echo __("Source Home Url", 'xcloner-backup-and-restore')?></label>
192 192
 							</div>	
193 193
 							
194 194
 							<div class="input-field col s12 m6 ">
195 195
 									<input type="text" name="remote_restore_url" id="remote_restore_url" class="validate" placeholder="Restore Target Url">
196
-									<label><?php echo __("With Target Home Url",'xcloner-backup-and-restore')?></label>
196
+									<label><?php echo __("With Target Home Url", 'xcloner-backup-and-restore')?></label>
197 197
 							</div>
198 198
 						
199
-						<?php if( site_url() != home_url()) : ?>
199
+						<?php if (site_url() != home_url()) : ?>
200 200
 							<div class="input-field col s12 m6 ">
201
-									<input type="text" name="wp_site_url" id="wp_site_url" class="validate" placeholder="WP Site Url" value="<?php echo site_url();?>">
202
-									<label><?php echo __("Source Site Url",'xcloner-backup-and-restore')?></label>
201
+									<input type="text" name="wp_site_url" id="wp_site_url" class="validate" placeholder="WP Site Url" value="<?php echo site_url(); ?>">
202
+									<label><?php echo __("Source Site Url", 'xcloner-backup-and-restore')?></label>
203 203
 							</div>	
204 204
 							
205 205
 							<div class="input-field col s12 m6 ">
206 206
 									<input type="text" name="remote_restore_site_url" id="remote_restore_site_url" class="validate" placeholder="Restore Target Url">
207
-									<label><?php echo __("With Target Site Url",'xcloner-backup-and-restore')?></label>
207
+									<label><?php echo __("With Target Site Url", 'xcloner-backup-and-restore')?></label>
208 208
 							</div>
209 209
 						
210
-						<?php endif;?>
210
+						<?php endif; ?>
211 211
 						</div>
212 212
 						
213 213
 						<div class=" col s12 l7">
214 214
 							<div class="input-field row">
215 215
 								<select id="remote_database_file" name="remote_database_file" class="browser-default">
216
-									<option value="" disabled selected><?php echo __("Please select the remote database backup file to restore",'xcloner-backup-and-restore')?></option>
216
+									<option value="" disabled selected><?php echo __("Please select the remote database backup file to restore", 'xcloner-backup-and-restore')?></option>
217 217
 							    </select>
218 218
 							    
219 219
 							    <label></label>
@@ -232,15 +232,15 @@  discard block
 block discarded – undo
232 232
 				      
233 233
 				        <div class="col s12 l5 right-align">
234 234
 							<div class="toggler">
235
-								<button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit" id="" name="action"><?php echo __("Restore",'xcloner-backup-and-restore')?>
235
+								<button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit" id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore')?>
236 236
 								    <i class="material-icons right">send</i>
237 237
 								</button>
238
-								<button class="btn waves-effect waves-light red restore_remote_mysqldump cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
238
+								<button class="btn waves-effect waves-light red restore_remote_mysqldump cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
239 239
 								    <i class="material-icons right">close</i>
240 240
 								</button>
241 241
 							</div>
242 242
 							
243
-							<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next",'xcloner-backup-and-restore')?>" id="skip_restore_remote_database_step" name="action"><?php echo __("Next",'xcloner-backup-and-restore')?>
243
+							<button class="btn waves-effect waves-light grey" type="submit" title="<?php echo __("Skip Next", 'xcloner-backup-and-restore')?>" id="skip_restore_remote_database_step" name="action"><?php echo __("Next", 'xcloner-backup-and-restore')?>
244 244
 								<i class="material-icons right">navigate_next</i>
245 245
 							</button>
246 246
 							
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
 			</li>
251 251
 			
252 252
 			<li data-step="5" class="restore-finish-step steps active">
253
-				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Finishing up...",'xcloner-backup-and-restore')?>
253
+				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Finishing up...", 'xcloner-backup-and-restore')?>
254 254
 				</div>
255 255
 				<div class="collapsible-body row">
256 256
 						
257 257
 						<div class="row">
258 258
 							<div class="col s4">
259
-								<label><?php echo __("Update wp-config.php mysql details and update the restored site Url",'xcloner-backup-and-restore')?></label>
259
+								<label><?php echo __("Update wp-config.php mysql details and update the restored site Url", 'xcloner-backup-and-restore')?></label>
260 260
 							</div>
261 261
 							
262 262
 							<div class="col s8">
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 						
274 274
 						<div class="row">
275 275
 							<div class="col s4">
276
-								<label><?php echo __("Delete Restored Backup Temporary Folder",'xcloner-backup-and-restore')?></label>
276
+								<label><?php echo __("Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore')?></label>
277 277
 							</div>
278 278
 							<div class="col s8">
279 279
 								<div class="switch">
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 						
290 290
 						<div class="row">
291 291
 							<div class="col s4">
292
-								<label><?php echo __("Delete Restore Script",'xcloner-backup-and-restore')?></label>
292
+								<label><?php echo __("Delete Restore Script", 'xcloner-backup-and-restore')?></label>
293 293
 							</div>
294 294
 							<div class="col s8">
295 295
 								<div class="switch">
@@ -308,15 +308,15 @@  discard block
 block discarded – undo
308 308
 				        </div>
309 309
 				        
310 310
 						<div class=" row col s12 center-align" id="xcloner_restore_finish">
311
-							<h5><?php echo __("Thank you for using XCloner.",'xcloner-backup-and-restore')?></h5>
312
-							<h6><?php echo sprintf(__("We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore'),'<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>') ?></h6>
311
+							<h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore')?></h5>
312
+							<h6><?php echo sprintf(__("We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore'), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>') ?></h6>
313 313
 							<a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow @thinkovi</a>
314 314
 							<script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
315 315
 				        </div>
316 316
 				        
317 317
 				        <div class="col s12 center-align">
318 318
 
319
-							<button class="btn waves-effect waves-light teal" type="submit" id="restore_finish" name="action"><?php echo __("Finish",'xcloner-backup-and-restore')?>
319
+							<button class="btn waves-effect waves-light teal" type="submit" id="restore_finish" name="action"><?php echo __("Finish", 'xcloner-backup-and-restore')?>
320 320
 								<i class="material-icons right">navigate_next</i>
321 321
 							</button>
322 322
 				        </div>
Please login to merge, or discard this patch.