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 ( e65d67...dc9fa8 )
by Liuta
03:08
created
includes/class-xcloner-deactivator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 		
34 34
 		global $xcloner_plugin;
35 35
 		
36
-		if(is_a($xcloner_plugin, 'Xcloner'))
36
+		if (is_a($xcloner_plugin, 'Xcloner'))
37 37
 		{
38 38
 			$xcloner_plugin->get_xcloner_filesystem()->cleanup_tmp_directories();
39 39
 			
Please login to merge, or discard this patch.
xcloner.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@  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
-if(!defined("DS"))
37
+if (!defined("DS"))
38 38
 {
39 39
 	define("DS", DIRECTORY_SEPARATOR);
40 40
 }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
  */
46 46
 function activate_xcloner() 
47 47
 {
48
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';
48
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';
49 49
 	Xcloner_Activator::activate();
50 50
 }
51 51
 
@@ -55,31 +55,31 @@  discard block
 block discarded – undo
55 55
  */
56 56
 function deactivate_xcloner() 
57 57
 {
58
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php';
58
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php';
59 59
 	Xcloner_Deactivator::deactivate();
60 60
 }
61 61
 
62
-register_activation_hook( __FILE__, 'activate_xcloner' );
63
-register_deactivation_hook( __FILE__, 'deactivate_xcloner' );
62
+register_activation_hook(__FILE__, 'activate_xcloner');
63
+register_deactivation_hook(__FILE__, 'deactivate_xcloner');
64 64
 
65
-require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';	
65
+require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';	
66 66
 
67
-if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
67
+if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
68 68
 {
69 69
 	?>
70 70
 	<div class="error notice">
71
-		<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>
71
+		<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>
72 72
 	</div>
73 73
 	<?php	
74
-	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
75
-	deactivate_plugins( plugin_basename( __FILE__ ) );
74
+	require_once(ABSPATH.'wp-admin/includes/plugin.php');
75
+	deactivate_plugins(plugin_basename(__FILE__));
76 76
 	return;
77 77
 }		
78 78
 		
79
-$db_installed_ver = get_option( "xcloner_db_version" );
79
+$db_installed_ver = get_option("xcloner_db_version");
80 80
 $xcloner_db_version = Xcloner_Activator::xcloner_db_version;
81 81
 
82
-if($db_installed_ver != $xcloner_db_version)
82
+if ($db_installed_ver != $xcloner_db_version)
83 83
 {
84 84
 	Xcloner_Activator::activate();
85 85
 }
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
 	wp_deregister_script('heartbeat');
95 95
 }
96 96
 
97
-if(isset($_GET['page']) and stristr($_GET['page'] ,  "xcloner_"))
97
+if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_"))
98 98
 {
99
-	add_action( 'init', 'xcloner_stop_heartbeat', 1 );
99
+	add_action('init', 'xcloner_stop_heartbeat', 1);
100 100
 }	
101 101
 
102 102
 /**
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
 
120 120
 }
121 121
 
122
-require_once(plugin_dir_path( __FILE__ )  . '/vendor/autoload.php');
123
-require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php';
122
+require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php');
123
+require plugin_dir_path(__FILE__).'includes/class-xcloner.php';
124 124
 
125
-try{
125
+try {
126 126
 	
127 127
 	$xcloner_plugin = run_xcloner();
128 128
 	
129
-}catch(Exception $e){
129
+}catch (Exception $e) {
130 130
 	
131 131
 	echo $e->getMessage();
132 132
 	
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@  discard block
 block discarded – undo
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 38
 if(!defined("DS"))
38 39
 {
@@ -126,7 +127,7 @@  discard block
 block discarded – undo
126 127
 	
127 128
 	$xcloner_plugin = run_xcloner();
128 129
 	
129
-}catch(Exception $e){
130
+} catch(Exception $e){
130 131
 	
131 132
 	echo $e->getMessage();
132 133
 	
Please login to merge, or discard this patch.
admin/partials/xcloner_init_page.php 2 patches
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,7 +146,7 @@  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')?>
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 						</div>
158 158
 					</div>
159 159
 					<div class="collapsible-body">
160
-						<div class="console" id="xcloner-console"><?php if($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
160
+						<div class="console" id="xcloner-console"><?php if ($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
161 161
 					</div>
162 162
 				</li>
163 163
 				<script>
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 					}, 2000);*/
170 170
 				})
171 171
 				</script>
172
-				<?php endif;?>
172
+				<?php endif; ?>
173 173
 			
174 174
 			</ul>
175 175
 			
@@ -181,59 +181,59 @@  discard block
 block discarded – undo
181 181
 	  
182 182
 	  <div class="card blue-grey darken-1 z-depth-4 backup-ready">
183 183
 		<div class="card-content white-text">
184
-		  <span class="card-title"><?php echo __("System Check",'xcloner-backup-and-restore')?></span>
184
+		  <span class="card-title"><?php echo __("System Check", 'xcloner-backup-and-restore')?></span>
185 185
 		  <ul>
186
-				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1)?"teal":"red")?> lighten-2" >
187
-					<?php echo __('Backup Start Location','xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path();?></span>
186
+				<li class="card-panel <?php echo ($requirements->check_xcloner_start_path(1) ? "teal" : "red")?> lighten-2" >
187
+					<?php echo __('Backup Start Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string "><?php echo $requirements->check_xcloner_start_path(); ?></span>
188 188
 				</li>
189
-				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1)?"teal":"red")?> lighten-2" >
190
-					<?php echo __('Backup Storage Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path();?></span>
189
+				<li class="card-panel <?php echo ($requirements->check_xcloner_store_path(1) ? "teal" : "red")?> lighten-2" >
190
+					<?php echo __('Backup Storage Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_store_path(); ?></span>
191 191
 				</li>
192
-				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1)?"teal":"red")?> lighten-2" >
193
-					<?php echo __('Temporary Location','xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path();?></span>
192
+				<li class="card-panel <?php echo ($requirements->check_xcloner_tmp_path(1) ? "teal" : "red")?> lighten-2" >
193
+					<?php echo __('Temporary Location', 'xcloner-backup-and-restore')?>: <span class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path(); ?></span>
194 194
 				</li>
195 195
 				
196
-				<li class="card-panel <?php echo ($requirements->check_min_php_version(1)?"teal":"red")?> lighten-2" >
197
-					<?php echo __('PHP Version Check','xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version();?>
196
+				<li class="card-panel <?php echo ($requirements->check_min_php_version(1) ? "teal" : "red")?> lighten-2" >
197
+					<?php echo __('PHP Version Check', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_min_php_version(); ?>
198 198
 					( >= <?php echo $requirements->get_constant('min_php_version')?>)
199 199
 				</li>
200
-				<li class="card-panel <?php echo ($requirements->check_safe_mode(1)?"teal":"orange")?> lighten-2" >
201
-					<?php echo __('PHP Safe Mode','xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode();?>
200
+				<li class="card-panel <?php echo ($requirements->check_safe_mode(1) ? "teal" : "orange")?> lighten-2" >
201
+					<?php echo __('PHP Safe Mode', 'xcloner-backup-and-restore')?>: <?php echo $requirements->check_safe_mode(); ?>
202 202
 					( <?php echo $requirements->get_constant('safe_mode')?>)
203 203
 				</li>
204
-				<li class="card-panel <?php echo ($requirements->check_backup_ready_status()?"teal":"red")?> lighten-2">
205
-					<?php echo ($requirements->check_backup_ready_status()?__('BACKUP READY','xcloner-backup-and-restore'):__('Backup not ready, please check above requirements','xcloner-backup-and-restore'))?>
206
-					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status()?'thumb_up':'thumb_down')?></i>
204
+				<li class="card-panel <?php echo ($requirements->check_backup_ready_status() ? "teal" : "red")?> lighten-2">
205
+					<?php echo ($requirements->check_backup_ready_status() ? __('BACKUP READY', 'xcloner-backup-and-restore') : __('Backup not ready, please check above requirements', 'xcloner-backup-and-restore'))?>
206
+					<i class="material-icons right tiny"><?php echo ($requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down')?></i>
207 207
 				</li>
208 208
 		  </ul>
209 209
 		  <ul class="additional_system_info">
210 210
 				<li class="card-panel grey darken-1" >
211
-					<?php echo __('PHP max_execution_time','xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time();?>
211
+					<?php echo __('PHP max_execution_time', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_max_execution_time(); ?>
212 212
 				</li>
213 213
 				<li class="card-panel grey darken-1" >
214
-					<?php echo __('PHP memory_limit','xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit();?>
214
+					<?php echo __('PHP memory_limit', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_memory_limit(); ?>
215 215
 				</li>
216 216
 				<li class="card-panel grey darken-1" >
217
-					<?php echo __('PHP open_basedir','xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir();?>
217
+					<?php echo __('PHP open_basedir', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_open_basedir(); ?>
218 218
 				</li>
219 219
 				<?php 
220 220
 				$data = array();
221
-				if($requirements->check_backup_ready_status())
221
+				if ($requirements->check_backup_ready_status())
222 222
 					$data = $xcloner_file_system->estimate_read_write_time();
223 223
 				?>
224 224
 				<li class="card-panel grey darken-1" >
225
-					<?php echo __('Reading Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time'])?$data['reading_time']:__("unknown"));?>
225
+					<?php echo __('Reading Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time']) ? $data['reading_time'] : __("unknown")); ?>
226 226
 				</li>
227 227
 				<li class="card-panel grey darken-1" >
228
-					<?php echo __('Writing Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time'])?$data['writing_time']:__("unknown"));?>
228
+					<?php echo __('Writing Time 1MB Block', 'xcloner-backup-and-restore')?>: <?php echo (isset($data['writing_time']) ? $data['writing_time'] : __("unknown")); ?>
229 229
 				</li>
230 230
 				<li class="card-panel grey darken-1" >
231
-					<?php echo __('Free Disk Space','xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space();;?>
231
+					<?php echo __('Free Disk Space', 'xcloner-backup-and-restore')?>: <?php echo $requirements->get_free_disk_space(); ;?>
232 232
 				</li>
233 233
 		  </ul>
234 234
 		</div>
235 235
 		<div class="card-action">
236
-		  <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>
236
+		  <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>
237 237
 		</div>
238 238
 	  </div>
239 239
 
Please login to merge, or discard this patch.
Braces   +19 added lines, -10 removed lines patch added patch discarded remove patch
@@ -100,7 +100,8 @@  discard block
 block discarded – undo
100 100
 										echo date($date_format." ".$time_format, $latest_backup['timestamp']+(get_option( 'gmt_offset' ) * HOUR_IN_SECONDS))
101 101
 										?>
102 102
 									</div> 
103
-								<?php else:?>
103
+								<?php else {
104
+	:?>
104 105
 									<div class="item">
105 106
 										<div class="title"><?php echo __("No Backup Yet", 'xcloner-backup-and-restore')?></div>
106 107
 									</div> 
@@ -111,7 +112,9 @@  discard block
 block discarded – undo
111 112
 								<blockquote>
112 113
 								<div class="item">
113 114
 									<div class="title"><?php echo __("Total Size", 'xcloner-backup-and-restore')?>:</div>
114
-									<?php echo size_format($xcloner_file_system->get_storage_usage());?>
115
+									<?php echo size_format($xcloner_file_system->get_storage_usage());
116
+}
117
+?>
115 118
 								</div>
116 119
 								</blockquote>
117 120
 							<h5><?php echo __("Next Scheduled Backup", 'xcloner-backup-and-restore')?></h5>
@@ -125,8 +128,9 @@  discard block
 block discarded – undo
125 128
 											$xcloner_file_system->sort_by($list, "next_run_time","asc");
126 129
 										}
127 130
 										
128
-										if(isset($list[0]))
129
-											$latest_schedule = $list[0];
131
+										if(isset($list[0])) {
132
+																					$latest_schedule = $list[0];
133
+										}
130 134
 									?>
131 135
 									<?php if(isset($latest_schedule->name)):?>
132 136
 									<div class="title"><?php echo __("Schedule Name", 'xcloner-backup-and-restore')?>:</div>
@@ -135,10 +139,11 @@  discard block
 block discarded – undo
135 139
 								</div>
136 140
 								<div class="item">
137 141
 									<div class="title"><?php echo __("Next Call", 'xcloner-backup-and-restore')?>:</div>
138
-									<?php if(isset($latest_schedule->next_run_time))	
142
+									<?php if(isset($latest_schedule->next_run_time)) {
139 143
 											echo date($date_format." ".$time_format, $latest_schedule->next_run_time);
140
-										  else
141
-											echo __("Unscheduled",'xcloner-backup-and-restore');
144
+} else {
145
+										  											echo __("Unscheduled",'xcloner-backup-and-restore');
146
+										  }
142 147
 									?>
143 148
 								</div>
144 149
 								</blockquote>
@@ -157,7 +162,10 @@  discard block
 block discarded – undo
157 162
 						</div>
158 163
 					</div>
159 164
 					<div class="collapsible-body">
160
-						<div class="console" id="xcloner-console"><?php if($logger_content) echo implode("<br />\n", array_reverse($logger_content)); ?></div>
165
+						<div class="console" id="xcloner-console"><?php if($logger_content) {
166
+	echo implode("<br />\n", array_reverse($logger_content));
167
+}
168
+?></div>
161 169
 					</div>
162 170
 				</li>
163 171
 				<script>
@@ -218,8 +226,9 @@  discard block
 block discarded – undo
218 226
 				</li>
219 227
 				<?php 
220 228
 				$data = array();
221
-				if($requirements->check_backup_ready_status())
222
-					$data = $xcloner_file_system->estimate_read_write_time();
229
+				if($requirements->check_backup_ready_status()) {
230
+									$data = $xcloner_file_system->estimate_read_write_time();
231
+				}
223 232
 				?>
224 233
 				<li class="card-panel grey darken-1" >
225 234
 					<?php echo __('Reading Time 1MB Block','xcloner-backup-and-restore')?>: <?php echo (isset($data['reading_time'])?$data['reading_time']:__("unknown"));?>
Please login to merge, or discard this patch.
admin/partials/xcloner_generate_backups_page.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@  discard block
 block discarded – undo
11 11
 <h1><?= esc_html(get_admin_page_title()); ?></h1>
12 12
          
13 13
 <ul class="nav-tab-wrapper content row">
14
-	<li><a href="#backup_options" class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab.". ".__('Backup Options','xcloner-backup-and-restore')?></a></li>
15
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
16
-		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options','xcloner-backup-and-restore')?></a></li>
14
+	<li><a href="#backup_options" class="nav-tab col s12 m3 l2 nav-tab-active"><?php echo $tab.". ".__('Backup Options', 'xcloner-backup-and-restore')?></a></li>
15
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
16
+		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options', 'xcloner-backup-and-restore')?></a></li>
17 17
 	<?php endif?>
18
-	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options','xcloner-backup-and-restore')?></a></li>
19
-	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup','xcloner-backup-and-restore')?></a></li>
20
-	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup','xcloner-backup-and-restore')?></a></li>
18
+	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options', 'xcloner-backup-and-restore')?></a></li>
19
+	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup', 'xcloner-backup-and-restore')?></a></li>
20
+	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup', 'xcloner-backup-and-restore')?></a></li>
21 21
 </ul>
22 22
 
23 23
 <form action="" method="POST" id="generate_backup_form">
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 		        <div class="input-field inline col s12 m10 l6">
29 29
 					<i class="material-icons prefix">input</i>
30 30
 					<input name="backup_name" id="backup_name" type="text" value=<?php echo $xcloner_settings->get_default_backup_name() ?> >
31
-					<label for="backup_name"><?php echo __('Backup Name','xcloner-backup-and-restore')?></label>
31
+					<label for="backup_name"><?php echo __('Backup Name', 'xcloner-backup-and-restore')?></label>
32 32
 				</div>
33 33
 				<div class="hide-on-small-only m2">
34
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('The default backup name, supported tags [time], [hostname], [domain]','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
34
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('The default backup name, supported tags [time], [hostname], [domain]', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
35 35
 				</div>
36 36
 		     </div>
37 37
 		     
38 38
 		     <div class="row">
39 39
 		        <div class="input-field inline col s12 m10 l6">
40 40
 					<i class="material-icons prefix">email</i>
41
-					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email');?>" >
42
-					<label for="email_notification"><?php echo __('Send Email Notification To','xcloner-backup-and-restore')?></label>
41
+					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email'); ?>" >
42
+					<label for="email_notification"><?php echo __('Send Email Notification To', 'xcloner-backup-and-restore')?></label>
43 43
 				</div>
44 44
 				<div class="hide-on-small-only m2">
45
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('If left blank, no notification will be sent','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
45
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('If left blank, no notification will be sent', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
46 46
 				</div>
47 47
 		     </div>
48 48
 		     
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 				<div class="input-field inline col s10 m10 l6">
51 51
 					<i class="material-icons prefix">access_time</i>
52 52
 					<input type="datetime-local" id="diff_start_date" class="datepicker_max_today" name="diff_start_date" >
53
-					<label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After','xcloner-backup-and-restore')?></label>
53
+					<label for="diff_start_date"><?php echo __('Backup Only Files Modified/Created After', 'xcloner-backup-and-restore')?></label>
54 54
 				</div>
55 55
 				<div class="hide-on-small-only m2">	
56 56
 					<a class="btn-floating tooltipped btn-small" data-html="true" data-position="center" data-delay="50" data-tooltip="<?php echo __("This option allows you to create a differential backup that will include only <br> changed files since the set date, leave blank to include all files", "xcloner-backup-and-restore")?>"><i class="material-icons">help_outline</i></a>
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
 				<div class="input-field col s12 m10 l6">
62 62
 					<i class="material-icons prefix">input</i>
63 63
 					<textarea name="backup_comments" id="backup_comments" class="materialize-textarea"></textarea>
64
-					<label for="backup_comments"><?php echo __('Backup Comments','xcloner-backup-and-restore')?></label>
64
+					<label for="backup_comments"><?php echo __('Backup Comments', 'xcloner-backup-and-restore')?></label>
65 65
 				</div>
66 66
 				<div class="hide-on-small-only m2">
67
-					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Some default backup comments that will be stored inside the backup archive','xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
67
+					<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Some default backup comments that will be stored inside the backup archive', 'xcloner-backup-and-restore')?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
68 68
 				</div>
69 69
 		     </div>
70 70
 		     
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 			 </div>
76 76
 		</div>
77 77
 		
78
-		<?php if($xcloner_settings->get_enable_mysql_backup()):?>
78
+		<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
79 79
 		<div id="database_options" class="tab-content">
80 80
 			<h2><?php echo __('Select database data to include in the backup', 'xcloner-backup-and-restore')?>:
81
-				<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Enable the \'Backup only WP tables\' setting if you don\'t want to show all other databases and tables not related to this Wordpress install','xcloner-backup-and-restore');?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
81
+				<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-tooltip="<?php echo __('Enable the \'Backup only WP tables\' setting if you don\'t want to show all other databases and tables not related to this Wordpress install', 'xcloner-backup-and-restore'); ?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
82 82
 			</h2>
83 83
 			
84 84
 			<!-- database/tables tree -->
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
 		<?php endif ?>
99 99
 		
100 100
 		<div id="files_options" class="tab-content">
101
-			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive','xcloner-backup-and-restore')?>:
102
-				<a class="btn-floating tooltipped btn-small" data-position="bottom" data-delay="50" data-html="true" data-tooltip="<?php echo __('You can navigate below through all your site structure(Backup Start Location) to exclude any file/folder you need by clicking the checkbox near it. <br />If the checkobx is disabled, then it matches a Regex Exclude File option and it can\'t be unchecked','xcloner-backup-and-restore');?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
101
+			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive', 'xcloner-backup-and-restore')?>:
102
+				<a class="btn-floating tooltipped btn-small" data-position="bottom" data-delay="50" data-html="true" data-tooltip="<?php echo __('You can navigate below through all your site structure(Backup Start Location) to exclude any file/folder you need by clicking the checkbox near it. <br />If the checkobx is disabled, then it matches a Regex Exclude File option and it can\'t be unchecked', 'xcloner-backup-and-restore'); ?>" data-tooltip-id=""><i class="material-icons">help_outline</i></a>
103 103
 			</h2>
104 104
 			
105 105
 			<!-- Files System Container -->
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 					<ul class="backup-status collapsible" data-collapsible="accordion">
128 128
 					    <li class="file-system">
129 129
 						      <div class="collapsible-header">
130
-									<i class="material-icons">folder</i><?php echo __('Scanning The File System...','xcloner-backup-and-restore')?>
130
+									<i class="material-icons">folder</i><?php echo __('Scanning The File System...', 'xcloner-backup-and-restore')?>
131 131
 									
132 132
 									<p class="right"><?php echo sprintf(__('Found %s files (%s)', 'xcloner-backup-and-restore'), '<span class="file-counter">0</span>', '<span  class="file-size-total">0</span>MB')?></p>
133 133
 
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
 								</div>	
142 142
 						      <div class="collapsible-body status-body"></div>
143 143
 					    </li>
144
-					    <?php if($xcloner_settings->get_enable_mysql_backup()):?>
144
+					    <?php if ($xcloner_settings->get_enable_mysql_backup()):?>
145 145
 					    <li class="database-backup">
146 146
 						      <div class="collapsible-header">
147
-									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...','xcloner-backup-and-restore')?>
147
+									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...', 'xcloner-backup-and-restore')?>
148 148
 									
149
-									<p class="right"><?php echo sprintf(__('Found %s tables in %s databases (%s)', 'xcloner-backup-and-restore'), '<span class="table-counter">0</span>', '<span class="database-counter">0</span>', '<span data-processed="0" class="total-records">0</span> records','xcloner-backup-and-restore')?></p>
149
+									<p class="right"><?php echo sprintf(__('Found %s tables in %s databases (%s)', 'xcloner-backup-and-restore'), '<span class="table-counter">0</span>', '<span class="database-counter">0</span>', '<span data-processed="0" class="total-records">0</span> records', 'xcloner-backup-and-restore')?></p>
150 150
 									
151 151
 									<div>
152 152
 										<p class="right"><span class="last-logged-table"></span></p>
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
 					    <?php endif?>
171 171
 					    <li class="files-backup">
172 172
 						      <div class="collapsible-header">
173
-									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...','xcloner-backup-and-restore')?>
173
+									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...', 'xcloner-backup-and-restore')?>
174 174
 									
175
-									<p class="right"><?php echo sprintf(__('Adding %s files (%s)','xcloner-backup-and-restore'), '<span class="file-counter">0</span>', '<span  data-processed="0" class="file-size-total">0</span>MB')?></p>
175
+									<p class="right"><?php echo sprintf(__('Adding %s files (%s)', 'xcloner-backup-and-restore'), '<span class="file-counter">0</span>', '<span  data-processed="0" class="file-size-total">0</span>MB')?></p>
176 176
 
177 177
 									<div>
178 178
 										<p class="right"><span class="last-logged-file"></span></p>
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 						      <div class="collapsible-body status-body">
186 186
 									<div class="row">
187 187
 										<div class="col l3 s12">
188
-											<h2><?php echo __("Backup Parts",'xcloner-backup-and-restore')?>: </h2>
188
+											<h2><?php echo __("Backup Parts", 'xcloner-backup-and-restore')?>: </h2>
189 189
 										</div>	
190 190
 										<div class="col l9 s12">
191 191
 											<ul class="backup-name"></ul>
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
 					    </li>
196 196
 					    <li class="backup-done">
197 197
 						      <div class="collapsible-header">
198
-									<i class="material-icons">done</i><?php echo __('Backup Done','xcloner-backup-and-restore')?>
198
+									<i class="material-icons">done</i><?php echo __('Backup Done', 'xcloner-backup-and-restore')?>
199 199
 									
200 200
 									<p class="right">
201
-										 <?php if(sizeof($available_storages)):?>
202
-											<a href="#" class="cloud-upload" title="<?php echo __("Send Backup To Remote Storage",'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
201
+										 <?php if (sizeof($available_storages)):?>
202
+											<a href="#" class="cloud-upload" title="<?php echo __("Send Backup To Remote Storage", 'xcloner-backup-and-restore')?>"><i class="material-icons">cloud_upload</i></a>
203 203
 										 <?php endif?>
204
-										 <a href="#" class="download" title="<?php echo __("Download Backup",'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
205
-										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content",'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
204
+										 <a href="#" class="download" title="<?php echo __("Download Backup", 'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
205
+										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content", 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
206 206
 									</p>
207 207
 									
208 208
 									<div class="progress">
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
 								</div>	
213 213
 						      <div class="collapsible-body center-align">
214 214
 									<div class="row">
215
-										<h5><?php echo __("Thank you for using XCloner.",'xcloner-backup-and-restore')?></h5>
216
-										<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/reviews/" target="_blank">Wordpress XCloner Reviews Section</a>') ?></h6>
215
+										<h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore')?></h5>
216
+										<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/reviews/" target="_blank">Wordpress XCloner Reviews Section</a>') ?></h6>
217 217
 										<a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow @thinkovi</a>
218 218
 										<script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
219 219
 									</div>
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 			<div class="row">
231 231
 				<div id="schedule_backup_success" class="col s12 l6 updated settings-error notice is-dismissible"> 
232 232
 					<p><strong><?php echo __('Schedule Saved', 'xcloner-backup-and-restore')?></strong></p>
233
-					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.','xcloner-backup-and-restore')?></span></button>
233
+					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.', 'xcloner-backup-and-restore')?></span></button>
234 234
 				</div>
235 235
 			</div>
236 236
 			
@@ -244,11 +244,11 @@  discard block
 block discarded – undo
244 244
 			<div class="row">
245 245
 				 <div class="input-field inline col s12 m8 l4">
246 246
 					  <input type="datetime-local" id="datepicker" class="datepicker" name="schedule_start_date" >
247
-					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:','xcloner-backup-and-restore')?></label>
247
+					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:', 'xcloner-backup-and-restore')?></label>
248 248
 				</div>
249 249
 				 <div class="input-field inline col s12 m4 l3">
250 250
 					  <input id="timepicker_ampm_dark" class="timepicker" type="time" name="schedule_start_time">
251
-					  <label for="timepicker_ampm_dark"><?php echo __('At:','xcloner-backup-and-restore')?></label>
251
+					  <label for="timepicker_ampm_dark"><?php echo __('At:', 'xcloner-backup-and-restore')?></label>
252 252
 				</div>
253 253
 			</div>
254 254
 			
@@ -256,17 +256,17 @@  discard block
 block discarded – undo
256 256
 			<div class="row">
257 257
 				<div class="input-field inline col s10 m11 l7">
258 258
 					<select id="backup_type" class="" name="backup_type">
259
-						<option value=""><?php echo __("Full Backup","xcloner-backup-and-restore");?></option>
260
-						<option value="diff"><?php echo __("Differential Backups","xcloner-backup-and-restore");?></option>
261
-						<option value="full_diff"><?php echo __("Full Backup + Differential Backups","xcloner-backup-and-restore");?></option>
259
+						<option value=""><?php echo __("Full Backup", "xcloner-backup-and-restore"); ?></option>
260
+						<option value="diff"><?php echo __("Differential Backups", "xcloner-backup-and-restore"); ?></option>
261
+						<option value="full_diff"><?php echo __("Full Backup + Differential Backups", "xcloner-backup-and-restore"); ?></option>
262 262
 					</select>
263
-					<label for="backup_type"><?php echo __('Scheduled Backup Type','xcloner-backup-and-restore')?></label>
263
+					<label for="backup_type"><?php echo __('Scheduled Backup Type', 'xcloner-backup-and-restore')?></label>
264 264
 				</div>
265 265
 				<div class="col s2 m1">	
266 266
 					<a class="btn-floating tooltipped btn-small" data-html="true" data-position="center" data-delay="50" data-tooltip="<ul style='max-width:760px; text-align:left;'>
267
-						<li><?php echo __("Full Backup = it will generate a full backup of all included files each time schedule runs","xcloner-backup-and-restore");?></li>
268
-						<li><?php echo __("Differentials Backups = backups will include only changed files since the schedule started to run","xcloner-backup-and-restore");?></li>
269
-						<li><?php echo __("Full Backup +  Differential Backups = the first time schedule runs, it will create a full backup and all next scheduled backups will include only files created/modified since that last full backup; a full backup is recreated when the number of changed files is bigger than the 'Differetial Backups Max Days' XCloner option.","xcloner-backup-and-restore");?></li>
267
+						<li><?php echo __("Full Backup = it will generate a full backup of all included files each time schedule runs", "xcloner-backup-and-restore"); ?></li>
268
+						<li><?php echo __("Differentials Backups = backups will include only changed files since the schedule started to run", "xcloner-backup-and-restore"); ?></li>
269
+						<li><?php echo __("Full Backup +  Differential Backups = the first time schedule runs, it will create a full backup and all next scheduled backups will include only files created/modified since that last full backup; a full backup is recreated when the number of changed files is bigger than the 'Differetial Backups Max Days' XCloner option.", "xcloner-backup-and-restore"); ?></li>
270 270
 					</ul>"><i class="material-icons">help_outline</i></a>
271 271
 				</div>
272 272
 			</div>	
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 						<?php
279 279
 						$schedules = $xcloner_scheduler->get_available_intervals();
280 280
 						
281
-						foreach($schedules as $key=>$schedule)
281
+						foreach ($schedules as $key=>$schedule)
282 282
 						{
283 283
 						?>
284 284
 							<option value="<?php echo $key?>"><?php echo $schedule['display']?></option>
@@ -290,12 +290,12 @@  discard block
 block discarded – undo
290 290
 				</div>
291 291
 			</div>	
292 292
 			
293
-			<?php if(sizeof($available_storages)):?>
293
+			<?php if (sizeof($available_storages)):?>
294 294
 			<div class="row">
295 295
 				<div class="input-field col s12 m12 l7">
296 296
 					<select name="schedule_storage" id="schedule_storage" class="validate">
297 297
 						<option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option>
298
-						<?php foreach($available_storages as $storage=>$text):?>
298
+						<?php foreach ($available_storages as $storage=>$text):?>
299 299
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
300 300
 						<?php endforeach?>
301 301
 						</select>
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 			<?php endif?>
306 306
 			<div class="row">
307 307
 				<div class="col s12 l7">
308
-					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit" ,'xcloner-backup-and-restore')?>
308
+					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit", 'xcloner-backup-and-restore')?>
309 309
 						<i class="material-icons right">send</i>
310 310
 					</button>
311 311
 				</div>
@@ -324,14 +324,14 @@  discard block
 block discarded – undo
324 324
 		<textarea  class="body" rows="5"></textarea>
325 325
 	</div>
326 326
 	<div class="modal-footer">
327
-		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close','xcloner-backup-and-restore')?></a>
327
+		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close', 'xcloner-backup-and-restore')?></a>
328 328
 	</div>
329 329
 </div>
330 330
 
331 331
 <!-- List Backup Content Modal-->
332 332
 <div id="backup_cotent_modal" class="modal">
333 333
 	<div class="modal-content">
334
-		<h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4>
334
+		<h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4>
335 335
 		<h5 class="backup-name"></h5>
336 336
 		
337 337
 		<div class="progress">
@@ -346,9 +346,9 @@  discard block
 block discarded – undo
346 346
 	<form method="POST" class="remote-storage-form">
347 347
 	<input type="hidden" name="file" class="backup_name">	  
348 348
 	<div class="modal-content">
349
-	  <h4><?php echo __("Remote Storage Transfer",'xcloner-backup-and-restore')?></h4>
349
+	  <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore')?></h4>
350 350
 	  <p>
351
-	  <?php if(sizeof($available_storages)):?>
351
+	  <?php if (sizeof($available_storages)):?>
352 352
 			<div class="row">
353 353
 				<div class="col s12 label">
354 354
 					<label><?php echo __(sprintf('Send %s to remote storage', "<span class='backup_name'></span>"), 'xcloner-backup-and-restore') ?></label>
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 				<div class="input-field col s8 m10">
357 357
 					<select name="transfer_storage" id="transfer_storage" class="validate" required >
358 358
 						<option value="" selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option>
359
-						<?php foreach($available_storages as $storage=>$text):?>
359
+						<?php foreach ($available_storages as $storage=>$text):?>
360 360
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
361 361
 						<?php endforeach?>
362 362
 						</select>
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 				</div>
368 368
 			</div>
369 369
 			<div class="row status">
370
-				<?php echo __("Uploading backup to the selected remote storage...",'xcloner-backup-and-restore')?> <span class="status-text"></span>
370
+				<?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore')?> <span class="status-text"></span>
371 371
 				<div class="progress">
372 372
 					<div class="indeterminate"></div>
373 373
 				</div>
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 		}
451 451
 	});
452 452
 	
453
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
453
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
454 454
 	jQuery('#jstree_database_container').jstree({
455 455
 			'core' : {
456 456
 				'check_callback' : true,
Please login to merge, or discard this patch.
admin/partials/xcloner_restore_page.php 1 patch
Spacing   +64 added lines, -64 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,24 +21,24 @@  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 __("If you want to do a local target system restore, leave Url field below empty and click 'Check Connection'",'xcloner-backup-and-restore')?> 
28
+							<li><?php echo __("If you want to do a local target system restore, leave Url field below empty and click 'Check Connection'", 'xcloner-backup-and-restore')?> 
29 29
 							</li>	
30
-							<li><?php echo __("If you want to do a remote target system restore, 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>
30
+							<li><?php echo __("If you want to do a remote target system restore, 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>
31 31
 							</li>	
32 32
 							<li>
33
-							<?php echo __("Extract the files on your new host",'xcloner-backup-and-restore')?>
33
+							<?php echo __("Extract the files on your new host", 'xcloner-backup-and-restore')?>
34 34
 							</li>
35 35
 							<li>
36
-							<?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')?>
36
+							<?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')?>
37 37
 							</li>
38 38
 							<li>
39
-							<?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')?>
39
+							<?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')?>
40 40
 							</li>
41
-							<?php if(is_ssl()):?>
41
+							<?php if (is_ssl()):?>
42 42
 							<li>
43 43
 								<?php echo __("We have detected your connection to the site as being secure, so your restore script address must start with https://.")?>
44 44
 							</li>
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 						</ul>	
48 48
 						
49 49
 						<div class="input-field col l9 s12">
50
-							<input value="<?php echo (is_ssl())?"https://":""?>" id="restore_script_url" type="text" class="validate" placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php" >
50
+							<input value="<?php echo (is_ssl()) ? "https://" : ""?>" id="restore_script_url" type="text" class="validate" placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php" >
51 51
 							<label for="restore_script_url"></label>
52 52
 							<div id="url_validation_status" class="status"></div>
53 53
 				        </div>
54 54
 				        <div class="col l3 s12 right-align">
55
-							<button class="btn waves-effect waves-light" type="submit" id="validate_url" name="action"><?php echo __("Check Connection",'xcloner-backup-and-restore')?>
55
+							<button class="btn waves-effect waves-light" type="submit" id="validate_url" name="action"><?php echo __("Check Connection", 'xcloner-backup-and-restore')?>
56 56
 							    <i class="material-icons right">send</i>
57 57
 							</button>
58 58
 				        </div>
@@ -60,15 +60,15 @@  discard block
 block discarded – undo
60 60
 			</li>
61 61
 			
62 62
 			<li data-step="2" class="backup-upload-step steps">
63
-				<div class="collapsible-header active"><i class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Target Host",'xcloner-backup-and-restore')?>
63
+				<div class="collapsible-header active"><i class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Target Host", 'xcloner-backup-and-restore')?>
64 64
 				</div>
65 65
 				<div class="collapsible-body row">
66
-					<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>
66
+					<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>
67 67
 					<div class="input-field col s12 l7">
68 68
 						<select id="backup_file" name="backup_file" class="browser-default">
69
-					      <option value="" disabled selected><?php echo __("Please select a local backup archive to upload to target host",'xcloner-backup-and-restore')?></option>
70
-					      <?php if(is_array($backup_list)):?>
71
-							<?php foreach($backup_list as $file):?>
69
+					      <option value="" disabled selected><?php echo __("Please select a local backup archive to upload to target host", 'xcloner-backup-and-restore')?></option>
70
+					      <?php if (is_array($backup_list)):?>
71
+							<?php foreach ($backup_list as $file):?>
72 72
 								<option value="<?php echo $file['basename']?>">
73 73
 								<?php echo $file['basename']?> (<?php echo size_format($file['size'])?>)
74 74
 								</option>
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
 					</div>
85 85
 					<div class="col s12 l5 right-align">
86 86
 						<div class="toggler">
87
-							<button class="btn waves-effect waves-light upload-backup normal" type="submit" id="" name="action"><?php echo __("Upload",'xcloner-backup-and-restore')?>
87
+							<button class="btn waves-effect waves-light upload-backup normal" type="submit" id="" name="action"><?php echo __("Upload", 'xcloner-backup-and-restore')?>
88 88
 							    <i class="material-icons right">send</i>
89 89
 							</button>
90
-							<button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
90
+							<button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
91 91
 							    <i class="material-icons right">close</i>
92 92
 							</button>
93 93
 						</div>
94
-						<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')?>
94
+						<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')?>
95 95
 						    <i class="material-icons right">navigate_next</i>
96 96
 						</button>
97 97
 					</div>
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 			</li>	
100 100
 			
101 101
 			<li data-step="3" class="restore-remote-backup-step steps active">
102
-				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Target Location",'xcloner-backup-and-restore')?>
102
+				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Target Location", 'xcloner-backup-and-restore')?>
103 103
 						<i class="material-icons right" title="Refresh Target Backup Files List" id="refresh_remote_backup_file">cached</i>
104 104
 
105 105
 						<div class="switch right">
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 										data-tooltip="<?php echo __("This is the directory where you would like to restore the backup archive files.<br /> 
121 121
 										Please use this with caution when restoring to a live site.",'xcloner-backup-and-restore')?>"><i class="material-icons">help_outline</i>
122 122
 									</a>	
123
-									<h5><?php echo __("Restore Target Path:",'xcloner-backup-and-restore')?></h5>
123
+									<h5><?php echo __("Restore Target Path:", 'xcloner-backup-and-restore')?></h5>
124 124
 									<input type="text" name="remote_restore_path" id="remote_restore_path" class="validate" placeholder="Restore Target Path">
125 125
 									<label></label>
126 126
 								</div>
@@ -133,28 +133,28 @@  discard block
 block discarded – undo
133 133
 									class="list-backup-content btn-floating tooltipped btn-small right" data-tooltip="<?php echo __('Click To List The Selected Backup Content', 'xcloner-backup-and-restore') ?>">
134 134
 										<i class="material-icons">folder_open</i>
135 135
 									</a>
136
-									<h5><?php echo __("Restore Backup Archive:",'xcloner-backup-and-restore')?></h5>
136
+									<h5><?php echo __("Restore Backup Archive:", 'xcloner-backup-and-restore')?></h5>
137 137
 									<select id="remote_backup_file" name="remote_backup_file" class="browser-default">
138
-										<option value="" disabled selected><?php echo __("Please select the target backup file to restore",'xcloner-backup-and-restore')?></option>
138
+										<option value="" disabled selected><?php echo __("Please select the target backup file to restore", 'xcloner-backup-and-restore')?></option>
139 139
 								    </select>
140 140
 								    <label></label>
141 141
 							    </div>
142 142
 							
143 143
 								<div class="col s12">
144 144
 									<input class="with-gap" name="filter_files" type="radio" id="filter_files_all" checked value="" />
145
-									<label for="filter_files_all"><?php echo __("Restore All Files","xcloner-backup-and-restore")?></label>
145
+									<label for="filter_files_all"><?php echo __("Restore All Files", "xcloner-backup-and-restore")?></label>
146 146
 									
147 147
 									<input class="with-gap" name="filter_files" type="radio" id="filter_files_plugins"  value="/^wp-content\/plugins(.*)/" />
148
-									<label for="filter_files_plugins"><?php echo __("Only Plugins","xcloner-backup-and-restore")?></label>
148
+									<label for="filter_files_plugins"><?php echo __("Only Plugins", "xcloner-backup-and-restore")?></label>
149 149
 									
150 150
 									<input class="with-gap" name="filter_files" type="radio" id="filter_files_uploads"  value="/^wp-content\/uploads(.*)/" />
151
-									<label for="filter_files_uploads"><?php echo __("Only Uploads","xcloner-backup-and-restore")?></label>
151
+									<label for="filter_files_uploads"><?php echo __("Only Uploads", "xcloner-backup-and-restore")?></label>
152 152
 									
153 153
 									<input class="with-gap" name="filter_files" type="radio" id="filter_files_themes"  value="/^wp-content\/themes(.*)/" />
154
-									<label for="filter_files_themes"><?php echo __("Only Themes","xcloner-backup-and-restore")?></label>
154
+									<label for="filter_files_themes"><?php echo __("Only Themes", "xcloner-backup-and-restore")?></label>
155 155
 									
156 156
 									<input class="with-gap" name="filter_files" type="radio" id="filter_files_database"  value="/^xcloner-(.*)\/(.*)\.sql/"/>
157
-									<label for="filter_files_database"><?php echo __("Only Database Backup","xcloner-backup-and-restore")?></label>
157
+									<label for="filter_files_database"><?php echo __("Only Database Backup", "xcloner-backup-and-restore")?></label>
158 158
 								</div>
159 159
 							</div>
160 160
 							
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
 				       
169 169
 				        <div class="col s12 l4 right-align">
170 170
 							<div class="toggler">
171
-								<button class="btn waves-effect waves-light restore_remote_backup normal " type="submit" id="" name="action"><?php echo __("Restore",'xcloner-backup-and-restore')?>
171
+								<button class="btn waves-effect waves-light restore_remote_backup normal " type="submit" id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore')?>
172 172
 								    <i class="material-icons right">send</i>
173 173
 								</button>
174
-								<button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
174
+								<button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
175 175
 								    <i class="material-icons right">close</i>
176 176
 								</button>
177 177
 							</div>
178
-							<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')?>
178
+							<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')?>
179 179
 								<i class="material-icons right">navigate_next</i>
180 180
 							</button>
181 181
 				        </div>
@@ -183,66 +183,66 @@  discard block
 block discarded – undo
183 183
 			</li>
184 184
 			
185 185
 			<li data-step="4" class="restore-remote-database-step steps active">
186
-				<div class="collapsible-header"><i class="material-icons">list</i><?php echo __("Restore Target Database - Search and Replace",'xcloner-backup-and-restore')?>
186
+				<div class="collapsible-header"><i class="material-icons">list</i><?php echo __("Restore Target Database - Search and Replace", 'xcloner-backup-and-restore')?>
187 187
 					<i class="material-icons right" title="Refresh Database Backup Files List" id="refresh_database_file">cached</i>
188 188
 				</div>
189 189
 				<div class="collapsible-body row">
190 190
 						
191 191
 						<div id="remote-restore-options">
192 192
 						<div class="col s12">
193
-							<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-html="true" data-tooltip="<?php echo __('Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.','xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
194
-							<h5><?php echo __('Target Mysql Details','xcloner-backup-and-restore')?></h5>
193
+							<a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50" data-html="true" data-tooltip="<?php echo __('Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.', 'xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
194
+							<h5><?php echo __('Target Mysql Details', 'xcloner-backup-and-restore')?></h5>
195 195
 						</div>						
196 196
 						<div class=" col s12">
197 197
 							<div class="input-field col s12 m6">
198 198
 								<input type="text" name="remote_mysql_host" id="remote_mysql_host" class="validate" placeholder="Target Mysql Hostname">
199
-								<label><?php echo __("Target Mysql Hostname",'xcloner-backup-and-restore')?></label>
199
+								<label><?php echo __("Target Mysql Hostname", 'xcloner-backup-and-restore')?></label>
200 200
 							</div>
201 201
 							
202 202
 							<div class="input-field  col s12 m6">
203 203
 								<input type="text" name="remote_mysql_db" id="remote_mysql_db" class="validate" placeholder="Target Mysql Database">
204
-								<label><?php echo __("Target Mysql Database",'xcloner-backup-and-restore')?></label>
204
+								<label><?php echo __("Target Mysql Database", 'xcloner-backup-and-restore')?></label>
205 205
 							</div>
206 206
 							
207 207
 							<div class="input-field  col s12 m6">
208 208
 								<input type="text" name="remote_mysql_user" id="remote_mysql_user" class="validate" placeholder="Target Mysql Username">
209
-								<label><?php echo __("Target Mysql Username",'xcloner-backup-and-restore')?></label>
209
+								<label><?php echo __("Target Mysql Username", 'xcloner-backup-and-restore')?></label>
210 210
 							</div>
211 211
 							
212 212
 							
213 213
 							<div class="input-field  col s12 m6">
214 214
 								<input type="text" name="remote_mysql_pass" id="remote_mysql_pass" class="validate" placeholder="Target Mysql Password">
215
-								<label><?php echo __("Target Mysql Password",'xcloner-backup-and-restore')?></label>
215
+								<label><?php echo __("Target Mysql Password", 'xcloner-backup-and-restore')?></label>
216 216
 							</div>
217 217
 							
218 218
 						</div>	
219 219
 						<div class="col s12">
220
-						<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>	
221
-							<h5><?php echo __('Target Mysql Search and Replace','xcloner-backup-and-restore')?></h5>
220
+						<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>	
221
+							<h5><?php echo __('Target Mysql Search and Replace', 'xcloner-backup-and-restore')?></h5>
222 222
 						</div>
223 223
 						<div class="col s12">  
224 224
 							<div class="input-field col s12 m6 ">
225
-									<input type="text" name="wp_home_url" id="wp_home_url" class="validate" placeholder="WP Home Url" value="<?php echo home_url();?>">
226
-									<label><?php echo __("Source Home Url",'xcloner-backup-and-restore')?></label>
225
+									<input type="text" name="wp_home_url" id="wp_home_url" class="validate" placeholder="WP Home Url" value="<?php echo home_url(); ?>">
226
+									<label><?php echo __("Source Home Url", 'xcloner-backup-and-restore')?></label>
227 227
 							</div>	
228 228
 							
229 229
 							<div class="input-field col s12 m6 ">
230 230
 									<input type="text" name="remote_restore_url" id="remote_restore_url" class="validate" placeholder="Restore Target Url">
231
-									<label><?php echo __("With Target Home Url",'xcloner-backup-and-restore')?></label>
231
+									<label><?php echo __("With Target Home Url", 'xcloner-backup-and-restore')?></label>
232 232
 							</div>
233 233
 						
234
-						<?php if( site_url() != home_url()) : ?>
234
+						<?php if (site_url() != home_url()) : ?>
235 235
 							<div class="input-field col s12 m6 ">
236
-									<input type="text" name="wp_site_url" id="wp_site_url" class="validate" placeholder="WP Site Url" value="<?php echo site_url();?>">
237
-									<label><?php echo __("Source Site Url",'xcloner-backup-and-restore')?></label>
236
+									<input type="text" name="wp_site_url" id="wp_site_url" class="validate" placeholder="WP Site Url" value="<?php echo site_url(); ?>">
237
+									<label><?php echo __("Source Site Url", 'xcloner-backup-and-restore')?></label>
238 238
 							</div>	
239 239
 							
240 240
 							<div class="input-field col s12 m6 ">
241 241
 									<input type="text" name="remote_restore_site_url" id="remote_restore_site_url" class="validate" placeholder="Restore Target Url">
242
-									<label><?php echo __("With Target Site Url",'xcloner-backup-and-restore')?></label>
242
+									<label><?php echo __("With Target Site Url", 'xcloner-backup-and-restore')?></label>
243 243
 							</div>
244 244
 						
245
-						<?php endif;?>
245
+						<?php endif; ?>
246 246
 						</div>
247 247
 						
248 248
 						</div>
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 						<div class=" col s12 l7">
251 251
 							<div class="input-field row">
252 252
 								<select id="remote_database_file" name="remote_database_file" class="browser-default">
253
-									<option value="" disabled selected><?php echo __("Please select the target database backup file to restore",'xcloner-backup-and-restore')?></option>
253
+									<option value="" disabled selected><?php echo __("Please select the target database backup file to restore", 'xcloner-backup-and-restore')?></option>
254 254
 							    </select>
255 255
 							    
256 256
 							    <label></label>
@@ -269,15 +269,15 @@  discard block
 block discarded – undo
269 269
 				      
270 270
 				        <div class="col s12 l5 right-align">
271 271
 							<div class="toggler">
272
-								<button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit" id="" name="action"><?php echo __("Restore",'xcloner-backup-and-restore')?>
272
+								<button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit" id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore')?>
273 273
 								    <i class="material-icons right">send</i>
274 274
 								</button>
275
-								<button class="btn waves-effect waves-light red restore_remote_mysqldump cancel" type="submit" id="" name="action"><?php echo __("Cancel",'xcloner-backup-and-restore')?>
275
+								<button class="btn waves-effect waves-light red restore_remote_mysqldump cancel" type="submit" id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore')?>
276 276
 								    <i class="material-icons right">close</i>
277 277
 								</button>
278 278
 							</div>
279 279
 							
280
-							<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')?>
280
+							<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')?>
281 281
 								<i class="material-icons right">navigate_next</i>
282 282
 							</button>
283 283
 							
@@ -287,13 +287,13 @@  discard block
 block discarded – undo
287 287
 			</li>
288 288
 			
289 289
 			<li data-step="5" class="restore-finish-step steps active">
290
-				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Finishing up...",'xcloner-backup-and-restore')?>
290
+				<div class="collapsible-header"><i class="material-icons">folder_open</i><?php echo __("Finishing up...", 'xcloner-backup-and-restore')?>
291 291
 				</div>
292 292
 				<div class="collapsible-body row">
293 293
 						
294 294
 						<div class="row">
295 295
 							<div class="col s4">
296
-								<label><?php echo __("Update wp-config.php mysql details and update the Target Site Url",'xcloner-backup-and-restore')?></label>
296
+								<label><?php echo __("Update wp-config.php mysql details and update the Target Site Url", 'xcloner-backup-and-restore')?></label>
297 297
 							</div>
298 298
 							
299 299
 							<div class="col s8">
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 						
311 311
 						<div class="row">
312 312
 							<div class="col s4">
313
-								<label><?php echo __("Delete Restored Backup Temporary Folder",'xcloner-backup-and-restore')?></label>
313
+								<label><?php echo __("Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore')?></label>
314 314
 							</div>
315 315
 							<div class="col s8">
316 316
 								<div class="switch">
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 						
327 327
 						<div class="row">
328 328
 							<div class="col s4">
329
-								<label><?php echo __("Delete Restore Script",'xcloner-backup-and-restore')?></label>
329
+								<label><?php echo __("Delete Restore Script", 'xcloner-backup-and-restore')?></label>
330 330
 							</div>
331 331
 							<div class="col s8">
332 332
 								<div class="switch">
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
 				        </div>
346 346
 				        
347 347
 						<div class=" row col s12 center-align" id="xcloner_restore_finish">
348
-							<h5><?php echo __("Thank you for using XCloner.",'xcloner-backup-and-restore')?></h5>
349
-							<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>
348
+							<h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore')?></h5>
349
+							<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>
350 350
 							<a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow @thinkovi</a>
351 351
 							<script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
352 352
 				        </div>
@@ -354,13 +354,13 @@  discard block
 block discarded – undo
354 354
 				        <div class="col s12 center-align">
355 355
 							<div class="row">
356 356
 								<div class="col s6 right-align">
357
-								<button class="btn waves-effect waves-light teal" type="submit" id="restore_finish" name="action"><?php echo __("Finish",'xcloner-backup-and-restore')?>
357
+								<button class="btn waves-effect waves-light teal" type="submit" id="restore_finish" name="action"><?php echo __("Finish", 'xcloner-backup-and-restore')?>
358 358
 									<i class="material-icons right">navigate_next</i>
359 359
 								</button>
360 360
 								</div>
361 361
 									
362 362
 								<div id="open_target_site" class="col s6 left-align">
363
-									<a disabled="disabled" href="#" class="btn waves-effect waves-light teal" type="button" target="_blank"><?php echo __("Open Target Site",'xcloner-backup-and-restore')?>
363
+									<a disabled="disabled" href="#" class="btn waves-effect waves-light teal" type="button" target="_blank"><?php echo __("Open Target Site", 'xcloner-backup-and-restore')?>
364 364
 										<i class="material-icons right">navigate_next</i>
365 365
 									</a>
366 366
 								</div>
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 <!-- List Backup Content Modal-->
379 379
 <div id="backup_cotent_modal" class="modal">
380 380
 	<div class="modal-content">
381
-		<h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4>
381
+		<h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4>
382 382
 		<h5 class="backup-name"></h5>
383 383
 		
384 384
 		<div class="progress">
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 or Private Key Password",'xcloner-backup-and-restore')?></label>
175
+							<label for="sftp_password"><?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?></label>
176 176
 						</div>
177 177
 						<div class=" col s12 m6">
178
-							<input placeholder="<?php echo __("SFTP or Private Key Password",'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
178
+							<input placeholder="<?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
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(RSA)",'xcloner-backup-and-restore')?></label>
184
+							<label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)", 'xcloner-backup-and-restore')?></label>
185 185
 						</div>
186 186
 						<div class=" col s12 m6">
187
-							<textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File",'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea>
187
+							<textarea rows="5" placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value=""><?php echo get_option("xcloner_sftp_private_key")?></textarea>
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_scheduled_backups_page.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $xcloner_remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage();
5 5
 $available_storages = $xcloner_remote_storage->get_available_storages();
6 6
 ?>
7
-<?php if(!defined("DISABLE_WP_CRON") || !DISABLE_WP_CRON): ?>
7
+<?php if (!defined("DISABLE_WP_CRON") || !DISABLE_WP_CRON): ?>
8 8
 	<div id="setting-error-" class="error settings-error notice is-dismissible"> 
9 9
 		<p><strong>
10 10
 			<?php echo sprintf(__('We have noticed that DISABLE_WP_CRON is disabled, we recommend enabling that and setting up wp-cron.php to run manually through your hosting account scheduler as explained <a href="%s" target="_blank">here</a>', 'xcloner-backup-and-restore'), "http://www.inmotionhosting.com/support/website/wordpress/disabling-the-wp-cronphp-in-wordpress") ?>
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 <div class="row">
50 50
 	<div class="col s12 m6 offset-m6 teal lighten-1" id="server_time">
51
-		<h2><?php echo __('Current Server Time', 'xcloner-backup-and-restore')?>: <span class="right"><?php echo current_time('mysql');?></span></h2>
51
+		<h2><?php echo __('Current Server Time', 'xcloner-backup-and-restore')?>: <span class="right"><?php echo current_time('mysql'); ?></span></h2>
52 52
 	</div>
53 53
 </div>
54 54
 
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
 					</div>
95 95
 					<!--<div class="input-field inline col s12 l6">
96 96
 						<select id="backup_type" class="" name="backup_type" id="backup_type">
97
-							<option value=""><?php echo __("Full Backup","xcloner-backup-and-restore");?></option>
98
-							<option value="diff"><?php echo __("Differential Backups","xcloner-backup-and-restore");?></option>
99
-							<option value="full_diff"><?php echo __("Full Backup + Differential Backups","xcloner-backup-and-restore");?></option>
97
+							<option value=""><?php echo __("Full Backup", "xcloner-backup-and-restore"); ?></option>
98
+							<option value="diff"><?php echo __("Differential Backups", "xcloner-backup-and-restore"); ?></option>
99
+							<option value="full_diff"><?php echo __("Full Backup + Differential Backups", "xcloner-backup-and-restore"); ?></option>
100 100
 						</select>
101
-						<label for="backup_type"><?php echo __('Scheduled Backup Type','xcloner-backup-and-restore')?></label>
101
+						<label for="backup_type"><?php echo __('Scheduled Backup Type', 'xcloner-backup-and-restore')?></label>
102 102
 					</div>-->
103 103
 				</div>
104 104
 				
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 							<?php
115 115
 							$schedules = $xcloner_scheduler->get_available_intervals();
116 116
 							
117
-							foreach($schedules as $key=>$schedule)
117
+							foreach ($schedules as $key=>$schedule)
118 118
 							{
119 119
 							?>
120 120
 								<option value="<?php echo $key?>"><?php echo $schedule['display']?></option>
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
 					</div>
126 126
 				</div>
127 127
 				
128
-				<?php if(sizeof($available_storages)):?>
128
+				<?php if (sizeof($available_storages)):?>
129 129
 				<div class="row">
130 130
 					<div class="input-field col s12 l12">
131 131
 						<select name="schedule_storage" id="schedule_storage" class="validate" >
132 132
 							<option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option>
133
-							<?php foreach($available_storages as $storage=>$text):?>
133
+							<?php foreach ($available_storages as $storage=>$text):?>
134 134
 								<option value="<?php echo $storage?>"><?php echo $text?></option>
135 135
 							<?php endforeach?>
136 136
 						</select>
Please login to merge, or discard this patch.
admin/class-xcloner-admin.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
 	 * @param      string    $plugin_name       The name of this plugin.
49 49
 	 * @param      string    $version    The version of this plugin.
50 50
 	 */
51
-	public function __construct( Xcloner $xcloner_container) {
51
+	public function __construct(Xcloner $xcloner_container) {
52 52
 
53
-		$this->plugin_name 			= $xcloner_container->get_plugin_name();
54
-		$this->version				= $xcloner_container->get_version();
55
-		$this->xcloner_container 	= $xcloner_container;
53
+		$this->plugin_name = $xcloner_container->get_plugin_name();
54
+		$this->version = $xcloner_container->get_version();
55
+		$this->xcloner_container = $xcloner_container;
56 56
 	}
57 57
 	
58 58
 	public function get_xcloner_container()
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 */
68 68
 	public function enqueue_styles($hook) {
69 69
 		
70
-		if(!stristr($hook, "page_".$this->plugin_name) || (isset($_GET['option']) and $_GET['option']=="com_cloner"))
70
+		if (!stristr($hook, "page_".$this->plugin_name) || (isset($_GET['option']) and $_GET['option'] == "com_cloner"))
71 71
 			return;
72 72
 
73 73
 		/**
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
 		 * class.
83 83
 		 */
84 84
 
85
-		wp_enqueue_style( $this->plugin_name."_materialize", plugin_dir_url( __FILE__ ) . 'css/materialize.min.css', array(), $this->version, 'all' );
86
-		wp_enqueue_style( $this->plugin_name."_materialize.clockpicker", plugin_dir_url( __FILE__ ) . 'css/materialize.clockpicker.css', array(), $this->version, 'all' );
87
-		wp_enqueue_style( $this->plugin_name."_materialize.icons", '//fonts.googleapis.com/icon?family=Material+Icons', array(), $this->version, 'all' );
88
-		wp_enqueue_style( $this->plugin_name."_jquery.datatables", plugin_dir_url( __FILE__ ) . 'css/jquery.dataTables.min.css', array(), $this->version, 'all' );
89
-		wp_enqueue_style( $this->plugin_name."_jquery.datatables.responsive", plugin_dir_url( __FILE__ ) . 'css/responsive.dataTables.css', array(), $this->version, 'all' );
90
-		wp_enqueue_style( $this->plugin_name."_jstree", dirname(plugin_dir_url( __FILE__ )) . '/vendor/vakata/jstree/dist/themes/default/style.min.css', array(), '3.3', 'all' );
91
-		wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/xcloner-admin.css', array(), $this->version, 'all' );
85
+		wp_enqueue_style($this->plugin_name."_materialize", plugin_dir_url(__FILE__).'css/materialize.min.css', array(), $this->version, 'all');
86
+		wp_enqueue_style($this->plugin_name."_materialize.clockpicker", plugin_dir_url(__FILE__).'css/materialize.clockpicker.css', array(), $this->version, 'all');
87
+		wp_enqueue_style($this->plugin_name."_materialize.icons", '//fonts.googleapis.com/icon?family=Material+Icons', array(), $this->version, 'all');
88
+		wp_enqueue_style($this->plugin_name."_jquery.datatables", plugin_dir_url(__FILE__).'css/jquery.dataTables.min.css', array(), $this->version, 'all');
89
+		wp_enqueue_style($this->plugin_name."_jquery.datatables.responsive", plugin_dir_url(__FILE__).'css/responsive.dataTables.css', array(), $this->version, 'all');
90
+		wp_enqueue_style($this->plugin_name."_jstree", dirname(plugin_dir_url(__FILE__)).'/vendor/vakata/jstree/dist/themes/default/style.min.css', array(), '3.3', 'all');
91
+		wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__).'css/xcloner-admin.css', array(), $this->version, 'all');
92 92
 
93 93
 	}
94 94
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 */
100 100
 	public function enqueue_scripts($hook) {
101 101
 
102
-		if(!stristr($hook, "page_".$this->plugin_name))
102
+		if (!stristr($hook, "page_".$this->plugin_name))
103 103
 			return;
104 104
 			
105 105
 		/**
@@ -117,17 +117,17 @@  discard block
 block discarded – undo
117 117
 		add_thickbox();
118 118
 		wp_enqueue_script('plugin-install');
119 119
 		wp_enqueue_script('updates');
120
-		wp_enqueue_script( $this->plugin_name."_materialize", plugin_dir_url( __FILE__ ) . 'js/materialize.min.js', array( 'jquery' ), $this->version, false );
121
-		wp_enqueue_script( $this->plugin_name."_materialize.clockpicker", plugin_dir_url( __FILE__ ) . 'js/materialize.clockpicker.js', array( 'jquery' ), $this->version, false );
122
-		wp_enqueue_script( $this->plugin_name."_jquery.datatables", plugin_dir_url( __FILE__ ) . 'js/jquery.dataTables.min.js', array( 'jquery' ), $this->version, false );
123
-		wp_enqueue_script( $this->plugin_name."_jquery.datatables.respnsive", plugin_dir_url( __FILE__ ) . 'js/dataTables.responsive.js', array( 'jquery' ), $this->version, false );
124
-		wp_enqueue_script( $this->plugin_name."_vakata", dirname(plugin_dir_url( __FILE__ )) . '/vendor/vakata/jstree/dist/jstree.min.js', array( 'jquery' ), '3.3', false );
125
-		wp_enqueue_script( $this->plugin_name."_xcloner-backup-class", plugin_dir_url( __FILE__ ) . 'js/xcloner-backup-class.js', array( 'jquery' ), $this->version, false );
126
-		wp_enqueue_script( $this->plugin_name."_xcloner-scheduler-class", plugin_dir_url( __FILE__ ) . 'js/xcloner-scheduler-class.js', array( 'jquery' ), $this->version, false );
127
-		wp_enqueue_script( $this->plugin_name."_xcloner-restore-class", plugin_dir_url( __FILE__ ) . 'js/xcloner-restore-class.js', array( 'jquery' ), $this->version, false );
128
-		wp_enqueue_script( $this->plugin_name."_xcloner-manage-backups-class", plugin_dir_url( __FILE__ ) . 'js/xcloner-manage-backups-class.js', array( 'jquery' ), $this->version, false );
129
-		wp_enqueue_script( $this->plugin_name."_xcloner-remote-storage-class", plugin_dir_url( __FILE__ ) . 'js/xcloner-remote-storage-class.js', array( 'jquery' ), $this->version, false );
130
-		wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/xcloner-admin.js', array( 'jquery' ), $this->version, false );
120
+		wp_enqueue_script($this->plugin_name."_materialize", plugin_dir_url(__FILE__).'js/materialize.min.js', array('jquery'), $this->version, false);
121
+		wp_enqueue_script($this->plugin_name."_materialize.clockpicker", plugin_dir_url(__FILE__).'js/materialize.clockpicker.js', array('jquery'), $this->version, false);
122
+		wp_enqueue_script($this->plugin_name."_jquery.datatables", plugin_dir_url(__FILE__).'js/jquery.dataTables.min.js', array('jquery'), $this->version, false);
123
+		wp_enqueue_script($this->plugin_name."_jquery.datatables.respnsive", plugin_dir_url(__FILE__).'js/dataTables.responsive.js', array('jquery'), $this->version, false);
124
+		wp_enqueue_script($this->plugin_name."_vakata", dirname(plugin_dir_url(__FILE__)).'/vendor/vakata/jstree/dist/jstree.min.js', array('jquery'), '3.3', false);
125
+		wp_enqueue_script($this->plugin_name."_xcloner-backup-class", plugin_dir_url(__FILE__).'js/xcloner-backup-class.js', array('jquery'), $this->version, false);
126
+		wp_enqueue_script($this->plugin_name."_xcloner-scheduler-class", plugin_dir_url(__FILE__).'js/xcloner-scheduler-class.js', array('jquery'), $this->version, false);
127
+		wp_enqueue_script($this->plugin_name."_xcloner-restore-class", plugin_dir_url(__FILE__).'js/xcloner-restore-class.js', array('jquery'), $this->version, false);
128
+		wp_enqueue_script($this->plugin_name."_xcloner-manage-backups-class", plugin_dir_url(__FILE__).'js/xcloner-manage-backups-class.js', array('jquery'), $this->version, false);
129
+		wp_enqueue_script($this->plugin_name."_xcloner-remote-storage-class", plugin_dir_url(__FILE__).'js/xcloner-remote-storage-class.js', array('jquery'), $this->version, false);
130
+		wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__).'js/xcloner-admin.js', array('jquery'), $this->version, false);
131 131
 		
132 132
 
133 133
 	}
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
 		$remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage();
145 145
 		
146 146
 		
147
-		if(isset($_POST['action']))
147
+		if (isset($_POST['action']))
148 148
 		{
149 149
 			$_POST['action'] = $xcloner_sanitization->sanitize_input_as_string($_POST['action']);
150 150
 			$remote_storage->save($_POST['action']);
151 151
 		}
152 152
 		
153
-		if(isset($_POST['authentification_code']) && $_POST['authentification_code'] != "")
153
+		if (isset($_POST['authentification_code']) && $_POST['authentification_code'] != "")
154 154
 		{
155 155
 			$_POST['authentification_code'] = $xcloner_sanitization->sanitize_input_as_string($_POST['authentification_code']);
156 156
 			
157 157
 			$remote_storage->set_access_token($_POST['authentification_code']);
158 158
 		}
159 159
 			
160
-		if(isset($_POST['connection_check']) && $_POST['connection_check'])
160
+		if (isset($_POST['connection_check']) && $_POST['connection_check'])
161 161
 		{
162 162
 			$remote_storage->check($_POST['action']);
163 163
 		}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	{
171 171
 		$requirements = $this->xcloner_container->get_xcloner_requirements();
172 172
 		
173
-		if(!$requirements->check_backup_ready_status())
173
+		if (!$requirements->check_backup_ready_status())
174 174
 		{
175 175
 			require_once("partials/xcloner_init_page.php");
176 176
 			return false;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	{
203 203
 		$requirements = $this->xcloner_container->get_xcloner_requirements();
204 204
 		
205
-		if(!$requirements->check_backup_ready_status())
205
+		if (!$requirements->check_backup_ready_status())
206 206
 		{
207 207
 			require_once("partials/xcloner_init_page.php");
208 208
 			return false;
@@ -235,10 +235,10 @@  discard block
 block discarded – undo
235 235
 	    <?php
236 236
 			$xcloner_sanitization = $this->get_xcloner_container()->get_xcloner_sanitization();
237 237
 			
238
-            if( isset( $_GET[ 'tab' ] ) ) {
239
-                $active_tab = $xcloner_sanitization->sanitize_input_as_string($_GET[ 'tab' ]);
238
+            if (isset($_GET['tab'])) {
239
+                $active_tab = $xcloner_sanitization->sanitize_input_as_string($_GET['tab']);
240 240
             } // end if
241
-            else{
241
+            else {
242 242
 				$active_tab = "general_options";
243 243
 			}
244 244
             
@@ -257,20 +257,20 @@  discard block
 block discarded – undo
257 257
 	        <form action="options.php" method="post">
258 258
 	            <?php
259 259
 				
260
-				if( $active_tab == 'general_options' ) {
260
+				if ($active_tab == 'general_options') {
261 261
 					
262 262
 					settings_fields('xcloner_general_settings_group');
263 263
 					do_settings_sections('xcloner_settings_page');
264 264
 					
265
-				}elseif( $active_tab == 'mysql_options' ) {
265
+				}elseif ($active_tab == 'mysql_options') {
266 266
 					
267 267
 					settings_fields('xcloner_mysql_settings_group');
268 268
 					do_settings_sections('xcloner_mysql_settings_page');
269
-				}elseif( $active_tab == 'system_options' ) {
269
+				}elseif ($active_tab == 'system_options') {
270 270
 					
271 271
 					settings_fields('xcloner_system_settings_group');
272 272
 					do_settings_sections('xcloner_system_settings_page');
273
-				}elseif( $active_tab == 'cleanup_options' ) {
273
+				}elseif ($active_tab == 'cleanup_options') {
274 274
 					
275 275
 					settings_fields('xcloner_cleanup_settings_group');
276 276
 					do_settings_sections('xcloner_cleanup_settings_page');
Please login to merge, or discard this patch.