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 ( 5b9b05...7631bb )
by Liuta
05:58
created
uninstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If uninstall not called from WordPress, then exit.
29
-if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
29
+if (!defined('WP_UNINSTALL_PLUGIN')) {
30 30
 	exit;
31 31
 }
Please login to merge, or discard this patch.
includes/class-xcloner-activator.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -35,22 +35,22 @@  discard block
 block discarded – undo
35 35
 	
36 36
 		global $wpdb;
37 37
 		
38
-		if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
38
+		if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
39 39
 		{
40
-			wp_die('<p>'.sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s"),Xcloner_Activator::xcloner_minimum_version, phpversion()).'</p>',  __("XCloner Activation Error"), array( 'response'=>500, 'back_link'=>TRUE ) );
40
+			wp_die('<p>'.sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s"), Xcloner_Activator::xcloner_minimum_version, phpversion()).'</p>', __("XCloner Activation Error"), array('response'=>500, 'back_link'=>TRUE));
41 41
 		}
42 42
 		
43 43
 		$charset_collate = $wpdb->get_charset_collate();	
44 44
 		
45
-		$installed_ver = get_option( "xcloner_db_version" );
45
+		$installed_ver = get_option("xcloner_db_version");
46 46
 		
47 47
 		$xcloner_db_version = Xcloner_Activator::xcloner_db_version;
48 48
 		
49
-		if($installed_ver != $xcloner_db_version)
49
+		if ($installed_ver != $xcloner_db_version)
50 50
 		{
51
-			$table_name = $wpdb->prefix . "xcloner_scheduler";
51
+			$table_name = $wpdb->prefix."xcloner_scheduler";
52 52
 		 
53
-			$xcloner_schedule_sql="CREATE TABLE IF NOT EXISTS `".$table_name."` (
53
+			$xcloner_schedule_sql = "CREATE TABLE IF NOT EXISTS `".$table_name."` (
54 54
 				  `id` int(11) NOT NULL AUTO_INCREMENT,
55 55
 				  `name` varchar(255) NOT NULL,
56 56
 				  `recurrence` varchar(10) NOT NULL,
@@ -63,49 +63,49 @@  discard block
 block discarded – undo
63 63
 				  PRIMARY KEY (`id`)
64 64
 				) ".$charset_collate.";
65 65
 				";
66
-			require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
67
-			dbDelta( $xcloner_schedule_sql );
66
+			require_once(ABSPATH.'wp-admin/includes/upgrade.php');
67
+			dbDelta($xcloner_schedule_sql);
68 68
 			
69
-			update_option( "xcloner_db_version", $xcloner_db_version );
69
+			update_option("xcloner_db_version", $xcloner_db_version);
70 70
 		}
71 71
 	
72
-		if(!get_option('xcloner_backup_compression_level'))
72
+		if (!get_option('xcloner_backup_compression_level'))
73 73
 			update_option('xcloner_backup_compression_level', 0);
74 74
 		
75
-		if(!get_option('xcloner_enable_log'))
75
+		if (!get_option('xcloner_enable_log'))
76 76
 			update_option('xcloner_enable_log', 1);
77 77
 			
78
-		if(!get_option('xcloner_enable_mysql_backup'))
78
+		if (!get_option('xcloner_enable_mysql_backup'))
79 79
 			update_option('xcloner_enable_mysql_backup', 1);
80 80
 		
81
-		if(!get_option('xcloner_system_settings_page'))
81
+		if (!get_option('xcloner_system_settings_page'))
82 82
 			update_option('xcloner_system_settings_page', 100);
83 83
 			
84
-		if(!get_option('xcloner_files_to_process_per_request'))
84
+		if (!get_option('xcloner_files_to_process_per_request'))
85 85
 			update_option('xcloner_files_to_process_per_request', 250);
86 86
 
87
-		if(!get_option('xcloner_database_records_per_request'))
87
+		if (!get_option('xcloner_database_records_per_request'))
88 88
 			update_option('xcloner_database_records_per_request', 10000);
89 89
 
90
-		if(!get_option('xcloner_exclude_files_larger_than_mb'))
90
+		if (!get_option('xcloner_exclude_files_larger_than_mb'))
91 91
 			update_option('xcloner_exclude_files_larger_than_mb', 0);
92 92
 		
93
-		if(!get_option('xcloner_split_backup_limit'))
93
+		if (!get_option('xcloner_split_backup_limit'))
94 94
 			update_option('xcloner_split_backup_limit', 2048);
95 95
 			
96
-		if(!get_option('xcloner_size_limit_per_request'))
96
+		if (!get_option('xcloner_size_limit_per_request'))
97 97
 			update_option('xcloner_size_limit_per_request', 50);
98 98
 			
99
-		if(!get_option('xcloner_cleanup_retention_limit_days'))
99
+		if (!get_option('xcloner_cleanup_retention_limit_days'))
100 100
 			update_option('xcloner_cleanup_retention_limit_days', 60);
101 101
 			
102
-		if(!get_option('xcloner_cleanup_retention_limit_archives'))
102
+		if (!get_option('xcloner_cleanup_retention_limit_archives'))
103 103
 			update_option('xcloner_cleanup_retention_limit_archives', 100);
104 104
 			
105
-		if(!get_option('xcloner_directories_to_scan_per_request'))
105
+		if (!get_option('xcloner_directories_to_scan_per_request'))
106 106
 			update_option('xcloner_directories_to_scan_per_request', 25);
107 107
 			
108
-		if(!get_option('xcloner_regex_exclude'))
108
+		if (!get_option('xcloner_regex_exclude'))
109 109
 			update_option('xcloner_regex_exclude', "(wp-content\/updraft|wp-content\/uploads\/wp_all_backup)(.*)$".PHP_EOL."(.*)\.(svn|git)(.*)$".PHP_EOL."wp-content\/cache(.*)$");
110 110
 
111 111
 	}
Please login to merge, or discard this patch.
includes/class-xcloner-i18n.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
 		load_plugin_textdomain(
38 38
 			'xcloner-backup-and-restore',
39 39
 			false,
40
-			dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
+			dirname(dirname(plugin_basename(__FILE__))).'/languages/'
41 41
 		);
42 42
 
43 43
 	}
Please login to merge, or discard this patch.
admin/partials/xcloner_generate_backups_page.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
 <h1><?= esc_html(get_admin_page_title()); ?></h1>
11 11
          
12 12
 <ul class="nav-tab-wrapper content row">
13
-	<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>
14
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
15
-		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options','xcloner-backup-and-restore')?></a></li>
13
+	<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>
14
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
15
+		<li><a href="#database_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Database Options', 'xcloner-backup-and-restore')?></a></li>
16 16
 	<?php endif?>
17
-	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options','xcloner-backup-and-restore')?></a></li>
18
-	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup','xcloner-backup-and-restore')?></a></li>
19
-	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup','xcloner-backup-and-restore')?></a></li>
17
+	<li><a href="#files_options" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Files Options', 'xcloner-backup-and-restore')?></a></li>
18
+	<li><a href="#generate_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Generate Backup', 'xcloner-backup-and-restore')?></a></li>
19
+	<li><a href="#schedule_backup" class="nav-tab col s12 m3 l2 "><?php echo ++$tab.". ".__('Schedule Backup', 'xcloner-backup-and-restore')?></a></li>
20 20
 </ul>
21 21
 
22 22
 <form action="" method="POST" id="generate_backup_form">
@@ -27,21 +27,21 @@  discard block
 block discarded – undo
27 27
 		        <div class="input-field inline col s12 m10 l6">
28 28
 					<i class="material-icons prefix">input</i>
29 29
 					<input name="backup_name" id="backup_name" type="text" value=<?php echo $xcloner_settings->get_default_backup_name() ?> >
30
-					<label for="backup_name"><?php echo __('Backup Name','xcloner-backup-and-restore')?></label>
30
+					<label for="backup_name"><?php echo __('Backup Name', 'xcloner-backup-and-restore')?></label>
31 31
 				</div>
32 32
 				<div class="hide-on-small-only m2">
33
-					<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>
33
+					<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 34
 				</div>
35 35
 		     </div>
36 36
 		     
37 37
 		     <div class="row">
38 38
 		        <div class="input-field inline col s12 m10 l6">
39 39
 					<i class="material-icons prefix">input</i>
40
-					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email');?>" >
41
-					<label for="email_notification"><?php echo __('Send Email Notification To','xcloner-backup-and-restore')?></label>
40
+					<input name="email_notification" id="email_notification" type="text" value="<?php echo get_option('admin_email'); ?>" >
41
+					<label for="email_notification"><?php echo __('Send Email Notification To', 'xcloner-backup-and-restore')?></label>
42 42
 				</div>
43 43
 				<div class="hide-on-small-only m2">
44
-					<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>
44
+					<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 45
 				</div>
46 46
 		     </div>
47 47
 		     
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 				<div class="input-field col s12 m10 l6">
50 50
 					<i class="material-icons prefix">input</i>
51 51
 					<textarea name="backup_comments" id="backup_comments" class="materialize-textarea"></textarea>
52
-					<label for="backup_comments"><?php echo __('Backup Comments','xcloner-backup-and-restore')?></label>
52
+					<label for="backup_comments"><?php echo __('Backup Comments', 'xcloner-backup-and-restore')?></label>
53 53
 				</div>
54 54
 				<div class="hide-on-small-only m2">
55
-					<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>
55
+					<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>
56 56
 				</div>
57 57
 		     </div>
58 58
 		     
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 			 </div>
64 64
 		</div>
65 65
 		
66
-		<?php if($xcloner_settings->get_enable_mysql_backup()):?>
66
+		<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
67 67
 		<div id="database_options" class="tab-content">
68 68
 			<h2><?php echo __('Select database data to include in the backup', 'xcloner-backup-and-restore')?>:
69
-				<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>
69
+				<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>
70 70
 			</h2>
71 71
 			
72 72
 			<!-- database/tables tree -->
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
 		<?php endif ?>
87 87
 		
88 88
 		<div id="files_options" class="tab-content">
89
-			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive','xcloner-backup-and-restore')?>:
90
-				<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>
89
+			<h2><?php echo __('Select from below the files/folders you want to exclude from your Backup Archive', 'xcloner-backup-and-restore')?>:
90
+				<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>
91 91
 			</h2>
92 92
 			
93 93
 			<!-- Files System Container -->
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 					<ul class="backup-status collapsible" data-collapsible="accordion">
116 116
 					    <li class="file-system">
117 117
 						      <div class="collapsible-header">
118
-									<i class="material-icons">folder</i><?php echo __('Scanning The File System...','xcloner-backup-and-restore')?>
118
+									<i class="material-icons">folder</i><?php echo __('Scanning The File System...', 'xcloner-backup-and-restore')?>
119 119
 									
120 120
 									<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>
121 121
 
@@ -129,12 +129,12 @@  discard block
 block discarded – undo
129 129
 								</div>	
130 130
 						      <div class="collapsible-body status-body"></div>
131 131
 					    </li>
132
-					    <?php if($xcloner_settings->get_enable_mysql_backup()):?>
132
+					    <?php if ($xcloner_settings->get_enable_mysql_backup()):?>
133 133
 					    <li class="database-backup">
134 134
 						      <div class="collapsible-header">
135
-									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...','xcloner-backup-and-restore')?>
135
+									<i class="material-icons">storage</i><?php echo __('Generating the Mysql Backup...', 'xcloner-backup-and-restore')?>
136 136
 									
137
-									<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>
137
+									<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>
138 138
 									
139 139
 									<div>
140 140
 										<p class="right"><span class="last-logged-table"></span></p>
@@ -158,9 +158,9 @@  discard block
 block discarded – undo
158 158
 					    <?php endif?>
159 159
 					    <li class="files-backup">
160 160
 						      <div class="collapsible-header">
161
-									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...','xcloner-backup-and-restore')?>
161
+									<i class="material-icons">archive</i><?php echo __('Adding Files to Archive...', 'xcloner-backup-and-restore')?>
162 162
 									
163
-									<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>
163
+									<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>
164 164
 
165 165
 									<div>
166 166
 										<p class="right"><span class="last-logged-file"></span></p>
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 						      <div class="collapsible-body status-body">
174 174
 									<div class="row">
175 175
 										<div class="col l3 s12">
176
-											<h2><?php echo __("Backup Parts",'xcloner-backup-and-restore')?>: </h2>
176
+											<h2><?php echo __("Backup Parts", 'xcloner-backup-and-restore')?>: </h2>
177 177
 										</div>	
178 178
 										<div class="col l9 s12">
179 179
 											<ul class="backup-name"></ul>
@@ -183,14 +183,14 @@  discard block
 block discarded – undo
183 183
 					    </li>
184 184
 					    <li class="backup-done">
185 185
 						      <div class="collapsible-header">
186
-									<i class="material-icons">done</i><?php echo __('Backup Done','xcloner-backup-and-restore')?>
186
+									<i class="material-icons">done</i><?php echo __('Backup Done', 'xcloner-backup-and-restore')?>
187 187
 									
188 188
 									<p class="right">
189
-										 <?php if(sizeof($available_storages)):?>
190
-											<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>
189
+										 <?php if (sizeof($available_storages)):?>
190
+											<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>
191 191
 										 <?php endif?>
192
-										 <a href="#" class="download" title="<?php echo __("Download Backup",'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
193
-										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content",'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
192
+										 <a href="#" class="download" title="<?php echo __("Download Backup", 'xcloner-backup-and-restore')?>"><i class="material-icons">file_download</i></a>
193
+										 <a href="#" class="list-backup-content" title="<?php echo __("List Backup Content", 'xcloner-backup-and-restore')?>"><i class="material-icons">folder_open</i></a>
194 194
 									</p>
195 195
 									
196 196
 									<div class="progress">
@@ -200,8 +200,8 @@  discard block
 block discarded – undo
200 200
 								</div>	
201 201
 						      <div class="collapsible-body center-align">
202 202
 									<div class="row">
203
-										<h5><?php echo __("Thank you for using XCloner.",'xcloner-backup-and-restore')?></h5>
204
-										<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>
203
+										<h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore')?></h5>
204
+										<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>
205 205
 										<a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow @thinkovi</a>
206 206
 										<script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
207 207
 									</div>
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 			<div class="row">
219 219
 				<div id="schedule_backup_success" class="col s12 l6 updated settings-error notice is-dismissible"> 
220 220
 					<p><strong><?php echo __('Schedule Saved', 'xcloner-backup-and-restore')?></strong></p>
221
-					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.','xcloner-backup-and-restore')?></span></button>
221
+					<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php echo __('(Dismiss this notice.', 'xcloner-backup-and-restore')?></span></button>
222 222
 				</div>
223 223
 			</div>
224 224
 			
@@ -238,11 +238,11 @@  discard block
 block discarded – undo
238 238
 			<div class="row">
239 239
 				 <div class="input-field inline col s12 m6 l4">
240 240
 					  <input type="datetime-local" id="datepicker" class="datepicker" name="schedule_start_date" >
241
-					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:','xcloner-backup-and-restore')?></label>
241
+					  <label for="datepicker"><?php echo __('Schedule Backup To Start On:', 'xcloner-backup-and-restore')?></label>
242 242
 				</div>
243 243
 				 <div class="input-field inline col s12 m4 l2">
244 244
 					  <input id="timepicker_ampm_dark" class="timepicker" type="time" name="schedule_start_time">
245
-					  <label for="timepicker_ampm_dark"><?php echo __('At:','xcloner-backup-and-restore')?></label>
245
+					  <label for="timepicker_ampm_dark"><?php echo __('At:', 'xcloner-backup-and-restore')?></label>
246 246
 				</div>
247 247
 			</div>
248 248
 			
@@ -250,22 +250,22 @@  discard block
 block discarded – undo
250 250
 				<div class="input-field col s12 m10 l6">
251 251
 					<select name="schedule_frequency" id="schedule_frequency" class="validate" required>
252 252
 						<option value="" disabled selected><?php echo __('please select', 'xcloner-backup-and-restore') ?></option>
253
-						<option value="single"><?php echo __("Don't Repeat",'xcloner-backup-and-restore')?></option>
254
-						<option value="hourly"><?php echo __("Hourly",'xcloner-backup-and-restore')?></option>
255
-						<option value="daily"><?php echo __("Daily",'xcloner-backup-and-restore')?></option>
256
-						<option value="weekly"><?php echo __("Weekly",'xcloner-backup-and-restore')?></option>
257
-						<option value="monthly"><?php echo __("Monthly",'xcloner-backup-and-restore')?></option>
253
+						<option value="single"><?php echo __("Don't Repeat", 'xcloner-backup-and-restore')?></option>
254
+						<option value="hourly"><?php echo __("Hourly", 'xcloner-backup-and-restore')?></option>
255
+						<option value="daily"><?php echo __("Daily", 'xcloner-backup-and-restore')?></option>
256
+						<option value="weekly"><?php echo __("Weekly", 'xcloner-backup-and-restore')?></option>
257
+						<option value="monthly"><?php echo __("Monthly", 'xcloner-backup-and-restore')?></option>
258 258
 						</select>
259 259
 						<label><?php echo __('Please Select Frequency to run', 'xcloner-backup-and-restore') ?></label>
260 260
 				</div>
261 261
 			</div>	
262 262
 
263
-			<?php if(sizeof($available_storages)):?>
263
+			<?php if (sizeof($available_storages)):?>
264 264
 			<div class="row">
265 265
 				<div class="input-field col s12 m10 l6">
266 266
 					<select name="schedule_storage" id="schedule_storage" class="validate">
267 267
 						<option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option>
268
-						<?php foreach($available_storages as $storage=>$text):?>
268
+						<?php foreach ($available_storages as $storage=>$text):?>
269 269
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
270 270
 						<?php endforeach?>
271 271
 						</select>
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 			<?php endif?>
276 276
 			<div class="row">
277 277
 				<div class="col s12 m10 l6">
278
-					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit" ,'xcloner-backup-and-restore')?>
278
+					<button class="right btn waves-effect waves-light submit_schedule" type="submit" name="action"><?php echo __("Submit", 'xcloner-backup-and-restore')?>
279 279
 						<i class="material-icons right">send</i>
280 280
 					</button>
281 281
 				</div>
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 		<textarea  class="body" rows="5"></textarea>
295 295
 	</div>
296 296
 	<div class="modal-footer">
297
-		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close','xcloner-backup-and-restore')?></a>
297
+		<a class=" modal-action modal-close waves-effect waves-green btn-flat  red darken-2"><?php echo __('Close', 'xcloner-backup-and-restore')?></a>
298 298
 	</div>
299 299
 </div>
300 300
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
 <div id="backup_cotent_modal" class="modal">
304 304
 	<div class="modal-content">
305
-		<h4><?php echo sprintf(__("Listing Backup Content ",'xcloner-backup-and-restore'), "")?></h4>
305
+		<h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "")?></h4>
306 306
 		<h5 class="backup-name"></h5>
307 307
 		
308 308
 		<div class="progress">
@@ -317,9 +317,9 @@  discard block
 block discarded – undo
317 317
 	<form method="POST" class="remote-storage-form">
318 318
 	<input type="hidden" name="file" class="backup_name">	  
319 319
 	<div class="modal-content">
320
-	  <h4><?php echo __("Remote Storage Transfer",'xcloner-backup-and-restore')?></h4>
320
+	  <h4><?php echo __("Remote Storage Transfer", 'xcloner-backup-and-restore')?></h4>
321 321
 	  <p>
322
-	  <?php if(sizeof($available_storages)):?>
322
+	  <?php if (sizeof($available_storages)):?>
323 323
 			<div class="row">
324 324
 				<div class="col s12 label">
325 325
 					<label><?php echo __(sprintf('Send %s to remote storage', "<span class='backup_name'></span>"), 'xcloner-backup-and-restore') ?></label>
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 				<div class="input-field col s8 m10">
328 328
 					<select name="transfer_storage" id="transfer_storage" class="validate" required >
329 329
 						<option value="" selected><?php echo __('please select...', 'xcloner-backup-and-restore') ?></option>
330
-						<?php foreach($available_storages as $storage=>$text):?>
330
+						<?php foreach ($available_storages as $storage=>$text):?>
331 331
 							<option value="<?php echo $storage?>"><?php echo $text?></option>
332 332
 						<?php endforeach?>
333 333
 						</select>
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 				</div>
339 339
 			</div>
340 340
 			<div class="row status">
341
-				<?php echo __("Uploading backup to the selected remote storage...",'xcloner-backup-and-restore')?> <span class="status-text"></span>
341
+				<?php echo __("Uploading backup to the selected remote storage...", 'xcloner-backup-and-restore')?> <span class="status-text"></span>
342 342
 				<div class="progress">
343 343
 					<div class="indeterminate"></div>
344 344
 				</div>
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 		}
412 412
 	});
413 413
 	
414
-	<?php if($xcloner_settings->get_enable_mysql_backup()):?>
414
+	<?php if ($xcloner_settings->get_enable_mysql_backup()):?>
415 415
 	jQuery('#jstree_database_container').jstree({
416 416
 			'core' : {
417 417
 				'check_callback' : true,
Please login to merge, or discard this patch.
includes/class-xcloner-file-transfer.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class Xcloner_File_Transfer extends Xcloner_File_System{
3
+class Xcloner_File_Transfer extends Xcloner_File_System {
4 4
 	
5 5
 	private $target_url;
6 6
 	private $transfer_limit = 1048576; //bytes 1MB= 1048576 300KB = 358400
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 	
9 9
 	public function set_target($target_url)
10 10
 	{
11
-		return $this->target_url= $target_url;
11
+		return $this->target_url = $target_url;
12 12
 	}
13 13
 	
14 14
 	public function get_target()
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	
20 20
 	public function transfer_file($file, $start = 0, $hash = "")
21 21
 	{
22
-		if(!$this->target_url)
22
+		if (!$this->target_url)
23 23
 			throw new Exception("Please setup a target url for upload");
24 24
 
25 25
 		
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		
28 28
 		fseek($fp, $start, SEEK_SET);
29 29
 		
30
-		$binary_data =  fread($fp, $this->transfer_limit);
30
+		$binary_data = fread($fp, $this->transfer_limit);
31 31
 		
32 32
 		$tmp_filename = "xcloner_upload_".substr(md5(time()), 0, 5);
33 33
 		
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 		$send_array = array();
39 39
 		
40 40
 		$send_array['file'] 	= $file;
41
-		$send_array['start'] 	= $start;
42
-		$send_array['action'] 	= "write_file";
41
+		$send_array['start'] = $start;
42
+		$send_array['action'] = "write_file";
43 43
 		$send_array['hash'] 	= $hash;
44 44
 		#$send_array['blob'] 	= $binary_data;
45
-		$send_array['blob'] 	= $this->curl_file_create($tmp_file_path,'application/x-binary',$tmp_filename);
45
+		$send_array['blob'] 	= $this->curl_file_create($tmp_file_path, 'application/x-binary', $tmp_filename);
46 46
 		
47 47
 		//$data = http_build_query($send_array);
48 48
 		
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 		
51 51
 		
52 52
 		$ch = curl_init();
53
-		curl_setopt($ch, CURLOPT_URL,$this->target_url);
53
+		curl_setopt($ch, CURLOPT_URL, $this->target_url);
54 54
 		
55 55
 		curl_setopt($ch, CURLOPT_POST, 1);
56 56
 		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
@@ -59,24 +59,24 @@  discard block
 block discarded – undo
59 59
         curl_setopt($ch, CURLOPT_TIMEOUT, 1200);
60 60
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
61 61
         
62
-		curl_setopt($ch, CURLOPT_POSTFIELDS, $send_array );
62
+		curl_setopt($ch, CURLOPT_POSTFIELDS, $send_array);
63 63
 		curl_setopt($ch, CURLOPT_VERBOSE, true);
64 64
 		
65
-		$original_result = curl_exec ($ch);
65
+		$original_result = curl_exec($ch);
66 66
 		
67 67
 		$this->get_tmp_filesystem()->delete($tmp_filename);
68 68
 		
69 69
 		$result = json_decode($original_result);
70 70
 				
71
-		if(!$result)
72
-			throw new Exception("We have received no valid response from the remote host, original message: ". $original_result);
71
+		if (!$result)
72
+			throw new Exception("We have received no valid response from the remote host, original message: ".$original_result);
73 73
 			
74
-		if($result->status != 200)
74
+		if ($result->status != 200)
75 75
 		{
76 76
 			throw new Exception($result->response);
77 77
 		}
78 78
 		
79
-		if(ftell($fp) >= $this->get_storage_filesystem()->getSize($file))
79
+		if (ftell($fp) >= $this->get_storage_filesystem()->getSize($file))
80 80
 		{
81 81
 			$this->get_logger()->info(sprintf("Upload done for file %s to target url %s, transferred a total of %s bytes", $file, $this->target_url, ftell($fp)));
82 82
 			$this->remove_tmp_filesystem();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	            . ($postname ?: basename($filename))
94 94
 	            . ($mimetype ? ";type=$mimetype" : '');
95 95
 		
96
-		}else{
96
+		} else {
97 97
 			
98 98
 			return curl_file_create($filename, $mimetype, $postname);	
99 99
 				
Please login to merge, or discard this patch.
xcloner.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
  */
27 27
 
28 28
 // If this file is called directly, abort.
29
-if ( ! defined( 'WPINC' ) ) {
29
+if (!defined('WPINC')) {
30 30
 	die;
31 31
 }
32 32
 
33 33
 //i will not load the plugin outside admin or cron
34
-if(!is_admin() and !defined('DOING_CRON'))
34
+if (!is_admin() and !defined('DOING_CRON'))
35 35
 	return;
36 36
 
37 37
 define("DS", DIRECTORY_SEPARATOR);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  */
43 43
 function activate_xcloner() 
44 44
 {
45
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';
45
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';
46 46
 	Xcloner_Activator::activate();
47 47
 }
48 48
 
@@ -52,31 +52,31 @@  discard block
 block discarded – undo
52 52
  */
53 53
 function deactivate_xcloner() 
54 54
 {
55
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php';
55
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php';
56 56
 	Xcloner_Deactivator::deactivate();
57 57
 }
58 58
 
59
-register_activation_hook( __FILE__, 'activate_xcloner' );
60
-register_deactivation_hook( __FILE__, 'deactivate_xcloner' );
59
+register_activation_hook(__FILE__, 'activate_xcloner');
60
+register_deactivation_hook(__FILE__, 'deactivate_xcloner');
61 61
 
62
-require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';	
62
+require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';	
63 63
 
64
-if(version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
64
+if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<'))
65 65
 {
66 66
 	?>
67 67
 	<div class="error notice">
68
-		<p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."),Xcloner_Activator::xcloner_minimum_version, phpversion())?></p>
68
+		<p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."), Xcloner_Activator::xcloner_minimum_version, phpversion())?></p>
69 69
 	</div>
70 70
 	<?php	
71
-	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
72
-	deactivate_plugins( plugin_basename( __FILE__ ) );
71
+	require_once(ABSPATH.'wp-admin/includes/plugin.php');
72
+	deactivate_plugins(plugin_basename(__FILE__));
73 73
 	return;
74 74
 }		
75 75
 		
76
-$db_installed_ver = get_option( "xcloner_db_version" );
76
+$db_installed_ver = get_option("xcloner_db_version");
77 77
 $xcloner_db_version = Xcloner_Activator::xcloner_db_version;
78 78
 
79
-if($db_installed_ver != $xcloner_db_version)
79
+if ($db_installed_ver != $xcloner_db_version)
80 80
 {
81 81
 	Xcloner_Activator::activate();
82 82
 }
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
 	wp_deregister_script('heartbeat');
92 92
 }
93 93
 
94
-if(isset($_GET['page']) and stristr($_GET['page'] ,  "xcloner_"))
94
+if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_"))
95 95
 {
96
-	add_action( 'init', 'stop_heartbeat', 1 );
96
+	add_action('init', 'stop_heartbeat', 1);
97 97
 }	
98 98
 
99 99
 /**
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
 
117 117
 }
118 118
 
119
-require_once(plugin_dir_path( __FILE__ )  . '/vendor/autoload.php');
120
-require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php';
119
+require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php');
120
+require plugin_dir_path(__FILE__).'includes/class-xcloner.php';
121 121
 
122
-try{
122
+try {
123 123
 	
124 124
 	$xcloner_plugin = run_xcloner();
125 125
 	
126
-}catch(Exception $e){
126
+}catch (Exception $e) {
127 127
 	
128 128
 	echo $e->getMessage();
129 129
 	
Please login to merge, or discard this patch.
admin/partials/xcloner_console_page.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-$xcloner_settings 	= $this->get_xcloner_container()->get_xcloner_settings();
4
-$logger				= $this->get_xcloner_container()->get_xcloner_logger();
5
-$logger_content 	= $logger->getLastDebugLines();
3
+$xcloner_settings = $this->get_xcloner_container()->get_xcloner_settings();
4
+$logger = $this->get_xcloner_container()->get_xcloner_logger();
5
+$logger_content = $logger->getLastDebugLines();
6 6
 ?>
7 7
 <div class="col s12 ">
8 8
 	<div>
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 				<?php echo __('XCloner Debugger Dashboard', 'xcloner-backup-and-restore') ?>
11 11
 		</h5>
12 12
 		
13
-		<?php if($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
13
+		<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) :?>
14 14
 		<ul class="collapsible xcloner-debugger" data-collapsible="accordion">
15 15
 			<li class="active">
16 16
 				<div class="collapsible-header active"><i class="material-icons">bug_report</i>XCloner Debugger</div>
17 17
 				<div class="collapsible-body">
18
-					<div class="console" id="xcloner-console"><?php if(isset($logger_content)) echo implode("<br />\n", $logger_content); ?></div>
18
+					<div class="console" id="xcloner-console"><?php if (isset($logger_content)) echo implode("<br />\n", $logger_content); ?></div>
19 19
 				</div>
20 20
 			</li>
21 21
 		</ul>
@@ -28,6 +28,6 @@  discard block
 block discarded – undo
28 28
 				}, 2000);*/
29 29
 			})
30 30
 		</script>
31
-		<?php endif;?>
31
+		<?php endif; ?>
32 32
 	</div>
33 33
 </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_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
 
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 					<div class="input-field col s12 l6">
104 104
 						<select name="schedule_frequency" id="schedule_frequency" class="validate" required>
105 105
 							<option value="" disabled selected><?php echo __('Schedule Recurrence', 'xcloner-backup-and-restore') ?></option>
106
-							<option value="single"><?php echo __("Don't Repeat",'xcloner-backup-and-restore')?></option>
107
-							<option value="hourly"><?php echo __("Hourly",'xcloner-backup-and-restore')?></option>
108
-							<option value="daily"><?php echo __("Daily",'xcloner-backup-and-restore')?></option>
109
-							<option value="weekly"><?php echo __("Weekly",'xcloner-backup-and-restore')?></option>
110
-							<option value="monthly"><?php echo __("Monthly",'xcloner-backup-and-restore')?></option>
106
+							<option value="single"><?php echo __("Don't Repeat", 'xcloner-backup-and-restore')?></option>
107
+							<option value="hourly"><?php echo __("Hourly", 'xcloner-backup-and-restore')?></option>
108
+							<option value="daily"><?php echo __("Daily", 'xcloner-backup-and-restore')?></option>
109
+							<option value="weekly"><?php echo __("Weekly", 'xcloner-backup-and-restore')?></option>
110
+							<option value="monthly"><?php echo __("Monthly", 'xcloner-backup-and-restore')?></option>
111 111
 						</select>
112 112
 					</div>
113 113
 				</div>
114 114
 				
115
-				<?php if(sizeof($available_storages)):?>
115
+				<?php if (sizeof($available_storages)):?>
116 116
 				<div class="row">
117 117
 					<div class="input-field col s12 l6">
118 118
 						<select name="schedule_storage" id="schedule_storage" class="validate" >
119 119
 							<option value="" selected><?php echo __('none', 'xcloner-backup-and-restore') ?></option>
120
-							<?php foreach($available_storages as $storage=>$text):?>
120
+							<?php foreach ($available_storages as $storage=>$text):?>
121 121
 								<option value="<?php echo $storage?>"><?php echo $text?></option>
122 122
 							<?php endforeach?>
123 123
 						</select>
Please login to merge, or discard this patch.
admin/partials/xcloner_remote_storage_page.php 1 patch
Spacing   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 
4 4
 $gdrive_auth_url = "";
5 5
 
6
-if(method_exists($remote_storage, "get_gdrive_auth_url"))
6
+if (method_exists($remote_storage, "get_gdrive_auth_url"))
7 7
 	$gdrive_auth_url = $remote_storage->get_gdrive_auth_url();
8 8
 
9 9
 $gdrive_construct = $remote_storage->gdrive_construct();
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 			<!-- FTP STORAGE-->
21 21
 			<li id="ftp">
22 22
 				<div class="collapsible-header">
23
-					<i class="material-icons">computer</i><?php echo __("FTP Storage",'xcloner-backup-and-restore')?>
23
+					<i class="material-icons">computer</i><?php echo __("FTP Storage", 'xcloner-backup-and-restore')?>
24 24
 					<div class="right">
25 25
 						<div class="switch">
26 26
 							<label>
27 27
 							Off
28
-							<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if(get_option("xcloner_ftp_enable")) echo "checked"?> \>
28
+							<input type="checkbox" name="xcloner_ftp_enable" class="status" value="1" <?php if (get_option("xcloner_ftp_enable")) echo "checked"?> \>
29 29
 							<span class="lever"></span>
30 30
 							On
31 31
 							</label>
@@ -35,96 +35,96 @@  discard block
 block discarded – undo
35 35
 				<div class="collapsible-body">
36 36
 					<div class="row">
37 37
 						<div class="col s12 m3 label">
38
-							<label for="ftp_host"><?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?></label>
38
+							<label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?></label>
39 39
 						</div>
40 40
 						<div class="col s12 m6">
41
-							<input placeholder="<?php echo __("Ftp Hostname",'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>">
41
+							<input placeholder="<?php echo __("Ftp Hostname", 'xcloner-backup-and-restore')?>" id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate" value="<?php echo get_option("xcloner_ftp_hostname")?>">
42 42
 				        </div>
43 43
 				        <div class=" col s12 m2">
44
-							<input placeholder="<?php echo __("Ftp Port",'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>">
44
+							<input placeholder="<?php echo __("Ftp Port", 'xcloner-backup-and-restore')?>" id="ftp_port" type="text" name="xcloner_ftp_port" class="validate" value="<?php echo get_option("xcloner_ftp_port", 21)?>">
45 45
 				        </div>
46 46
 			        </div>
47 47
 			        
48 48
 			        <div class="row">
49 49
 						<div class="col s12 m3 label">
50
-							<label for="ftp_username"><?php echo __("Ftp Username",'xcloner-backup-and-restore')?></label>
50
+							<label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore')?></label>
51 51
 						</div>	
52 52
 						<div class=" col s12 m6">
53
-							<input placeholder="<?php echo __("Ftp Username",'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" >
53
+							<input placeholder="<?php echo __("Ftp Username", 'xcloner-backup-and-restore')?>" id="ftp_username" type="text" name="xcloner_ftp_username" class="validate" value="<?php echo get_option("xcloner_ftp_username")?>" autocomplete="off" >
54 54
 				        </div>
55 55
 			        </div>
56 56
 			        
57 57
 			        
58 58
 			        <div class="row">
59 59
 						<div class="col s12 m3 label">
60
-							<label for="ftp_password"><?php echo __("Ftp Password",'xcloner-backup-and-restore')?></label>
60
+							<label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore')?></label>
61 61
 						</div>
62 62
 						<div class=" col s12 m6">
63
-							<input placeholder="<?php echo __("Ftp Password",'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" >
63
+							<input placeholder="<?php echo __("Ftp Password", 'xcloner-backup-and-restore')?>" id="ftp_password" type="password" name="xcloner_ftp_password" class="validate" value="<?php echo get_option("xcloner_ftp_password")?>" autocomplete="off" >
64 64
 				        </div>
65 65
 			        </div>
66 66
 			        
67 67
 			        <div class="row">
68 68
 						<div class="col s12 m3 label">
69
-							<label for="ftp_root"><?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?></label>
69
+							<label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?></label>
70 70
 						</div>
71 71
 						<div class=" col s12 m6">
72
-							<input placeholder="<?php echo __("Ftp Storage Folder",'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>">
72
+							<input placeholder="<?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore')?>" id="ftp_root" type="text" name="xcloner_ftp_path" class="validate" value="<?php echo get_option("xcloner_ftp_path")?>">
73 73
 						</div>	
74 74
 			        </div>
75 75
 			        
76 76
 			        <div class="row">
77 77
 						<div class="col s12 m3 label">
78
-							<label for="ftp_root"><?php echo __("Ftp Transfer Mode",'xcloner-backup-and-restore')?></label>
78
+							<label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore')?></label>
79 79
 						</div>
80 80
 						<div class=" col s12 m6 input-field inline">
81
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if(get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
82
-							<label for="passive"><?php echo __("Passive",'xcloner-backup-and-restore')?></label>
81
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="passive" value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
82
+							<label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore')?></label>
83 83
 
84
-							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if(!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
85
-							<label for="active"><?php echo __("Active",'xcloner-backup-and-restore')?></label>
84
+							<input name="xcloner_ftp_transfer_mode" type="radio" id="active" value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1)) echo "checked"?> />
85
+							<label for="active"><?php echo __("Active", 'xcloner-backup-and-restore')?></label>
86 86
 						</div>	
87 87
 			        </div>
88 88
 			        
89 89
 			        <div class="row">
90 90
 						<div class="col s12 m3 label">
91
-							<label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection",'xcloner-backup-and-restore')?></label>
91
+							<label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore')?></label>
92 92
 						</div>
93 93
 						<div class=" col s12 m6 input-field inline">
94
-							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if(!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
95
-							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable",'xcloner-backup-and-restore')?></label>
94
+							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive" value="0" <?php if (!get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
95
+							<label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore')?></label>
96 96
 
97
-							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if(get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
98
-							<label for="ftp_ssl_mode_active"><?php echo __("Enable",'xcloner-backup-and-restore')?></label>
97
+							<input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active" value="1" <?php if (get_option("xcloner_ftp_ssl_mode")) echo "checked"?> />
98
+							<label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore')?></label>
99 99
 						</div>	
100 100
 			        </div>
101 101
 			        
102 102
 			        <div class="row">
103 103
 						<div class="col s12 m3 label">
104
-							<label for="ftp_timeout"><?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?></label>
104
+							<label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?></label>
105 105
 						</div>
106 106
 						<div class=" col s12 m2">
107
-							<input placeholder="<?php echo __("Ftp Timeout",'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>">
107
+							<input placeholder="<?php echo __("Ftp Timeout", 'xcloner-backup-and-restore')?>" id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate" value="<?php echo get_option("xcloner_ftp_timeout", 30)?>">
108 108
 				        </div>
109 109
 			        </div>
110 110
 			        
111 111
 			        <div class="row">
112 112
 						<div class="col s12 m3 label">
113
-							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)",'xcloner-backup-and-restore')?></label>
113
+							<label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore')?></label>
114 114
 						</div>
115 115
 						<div class=" col s12 m6">
116
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>">
116
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days")?>">
117 117
 				        </div>
118 118
 			        </div>
119 119
 			        
120 120
 			        <div class="row">
121 121
 						<div class="col s6 m4">
122
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
122
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
123 123
 								<i class="material-icons right">save</i>
124 124
 							</button>
125 125
 						</div>	
126 126
 						<div class="col s6 m4">
127
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
127
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="ftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
128 128
 								<i class="material-icons right">import_export</i>
129 129
 							</button>
130 130
 						</div>
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 			<!-- SFTP STORAGE-->
136 136
 			<li id="sftp">
137 137
 				<div class="collapsible-header">
138
-					<i class="material-icons">computer</i><?php echo __("SFTP Storage",'xcloner-backup-and-restore')?>
138
+					<i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore')?>
139 139
 					<div class="right">
140 140
 						<div class="switch">
141 141
 							<label>
142 142
 							Off
143
-							<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if(get_option("xcloner_sftp_enable")) echo "checked"?> \>
143
+							<input type="checkbox" name="xcloner_sftp_enable" class="status" value="1" <?php if (get_option("xcloner_sftp_enable")) echo "checked"?> \>
144 144
 							<span class="lever"></span>
145 145
 							On
146 146
 							</label>
@@ -150,79 +150,79 @@  discard block
 block discarded – undo
150 150
 				<div class="collapsible-body">
151 151
 					<div class="row">
152 152
 						<div class="col s12 m3 label">
153
-							<label for="sftp_host"><?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?></label>
153
+							<label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?></label>
154 154
 						</div>
155 155
 						<div class="col s12 m6">
156
-							<input placeholder="<?php echo __("SFTP Hostname",'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>">
156
+							<input placeholder="<?php echo __("SFTP Hostname", 'xcloner-backup-and-restore')?>" id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate" value="<?php echo get_option("xcloner_sftp_hostname")?>">
157 157
 				        </div>
158 158
 				        <div class=" col s12 m2">
159
-							<input placeholder="<?php echo __("SFTP Port",'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>">
159
+							<input placeholder="<?php echo __("SFTP Port", 'xcloner-backup-and-restore')?>" id="sftp_port" type="text" name="xcloner_sftp_port" class="validate" value="<?php echo get_option("xcloner_sftp_port", 22)?>">
160 160
 				        </div>
161 161
 			        </div>
162 162
 			        
163 163
 			        <div class="row">
164 164
 						<div class="col s12 m3 label">
165
-							<label for="sftp_username"><?php echo __("SFTP Username",'xcloner-backup-and-restore')?></label>
165
+							<label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore')?></label>
166 166
 						</div>	
167 167
 						<div class=" col s12 m6">
168
-							<input placeholder="<?php echo __("SFTP Username",'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" >
168
+							<input placeholder="<?php echo __("SFTP Username", 'xcloner-backup-and-restore')?>" id="sftp_username" type="text" name="xcloner_sftp_username" class="validate" value="<?php echo get_option("xcloner_sftp_username")?>" autocomplete="off" >
169 169
 				        </div>
170 170
 			        </div>
171 171
 			        
172 172
 			        
173 173
 			        <div class="row">
174 174
 						<div class="col s12 m3 label">
175
-							<label for="sftp_password"><?php echo __("SFTP Password",'xcloner-backup-and-restore')?></label>
175
+							<label for="sftp_password"><?php echo __("SFTP Password", 'xcloner-backup-and-restore')?></label>
176 176
 						</div>
177 177
 						<div class=" col s12 m6">
178
-							<input placeholder="<?php echo __("SFTP Password",'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
178
+							<input placeholder="<?php echo __("SFTP Password", 'xcloner-backup-and-restore')?>" id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate" value="<?php echo get_option("xcloner_sftp_password")?>" autocomplete="off" >
179 179
 				        </div>
180 180
 			        </div>
181 181
 			        
182 182
 			        <div class="row">
183 183
 						<div class="col s12 m3 label">
184
-							<label for="sftp_private_key"><?php echo __("SFTP Private Key",'xcloner-backup-and-restore')?></label>
184
+							<label for="sftp_private_key"><?php echo __("SFTP Private Key", 'xcloner-backup-and-restore')?></label>
185 185
 						</div>
186 186
 						<div class=" col s12 m6">
187
-							<input placeholder="<?php echo __("SFTP Private Key",'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value="<?php echo get_option("xcloner_sftp_private_key")?>">
187
+							<input placeholder="<?php echo __("SFTP Private Key", 'xcloner-backup-and-restore')?>" id="sftp_private_key" type="text" name="xcloner_sftp_private_key" class="validate" value="<?php echo get_option("xcloner_sftp_private_key")?>">
188 188
 						</div>	
189 189
 			        </div>
190 190
 			        
191 191
 			        <div class="row">
192 192
 						<div class="col s12 m3 label">
193
-							<label for="sftp_root"><?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?></label>
193
+							<label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?></label>
194 194
 						</div>
195 195
 						<div class=" col s12 m6">
196
-							<input placeholder="<?php echo __("SFTP Storage Folder",'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>">
196
+							<input placeholder="<?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore')?>" id="sftp_root" type="text" name="xcloner_sftp_path" class="validate" value="<?php echo get_option("xcloner_sftp_path")?>">
197 197
 						</div>	
198 198
 			        </div>
199 199
 			        
200 200
 			        <div class="row">
201 201
 						<div class="col s12 m3 label">
202
-							<label for="sftp_timeout"><?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?></label>
202
+							<label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?></label>
203 203
 						</div>
204 204
 						<div class=" col s12 m2">
205
-							<input placeholder="<?php echo __("SFTP Timeout",'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>">
205
+							<input placeholder="<?php echo __("SFTP Timeout", 'xcloner-backup-and-restore')?>" id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate" value="<?php echo get_option("xcloner_sftp_timeout", 30)?>">
206 206
 				        </div>
207 207
 			        </div>
208 208
 			        
209 209
 			        <div class="row">
210 210
 						<div class="col s12 m3 label">
211
-							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)",'xcloner-backup-and-restore')?></label>
211
+							<label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore')?></label>
212 212
 						</div>
213 213
 						<div class=" col s12 m6">
214
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>">
214
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days" class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days")?>">
215 215
 				        </div>
216 216
 			        </div>
217 217
 			        
218 218
 			        <div class="row">
219 219
 						<div class="col s6 m4">
220
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
220
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
221 221
 								<i class="material-icons right">save</i>
222 222
 							</button>
223 223
 						</div>	
224 224
 						<div class="col s6 m4">
225
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
225
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="sftp" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
226 226
 								<i class="material-icons right">import_export</i>
227 227
 							</button>
228 228
 						</div>
@@ -234,12 +234,12 @@  discard block
 block discarded – undo
234 234
 			<!-- AWS STORAGE-->
235 235
 			<li id="aws">
236 236
 				<div class="collapsible-header">
237
-					<i class="material-icons">computer</i><?php echo __("AWS Storage",'xcloner-backup-and-restore')?>
237
+					<i class="material-icons">computer</i><?php echo __("AWS Storage", 'xcloner-backup-and-restore')?>
238 238
 					<div class="right">
239 239
 						<div class="switch">
240 240
 							<label>
241 241
 							Off
242
-							<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if(get_option("xcloner_aws_enable")) echo "checked"?> \>
242
+							<input type="checkbox" name="xcloner_aws_enable" class="status" value="1" <?php if (get_option("xcloner_aws_enable")) echo "checked"?> \>
243 243
 							<span class="lever"></span>
244 244
 							On
245 245
 							</label>
@@ -261,35 +261,35 @@  discard block
 block discarded – undo
261 261
 			        
262 262
 			        <div class="row">
263 263
 						<div class="col s12 m3 label">
264
-							<label for="aws_key"><?php echo __("AWS Key",'xcloner-backup-and-restore')?></label>
264
+							<label for="aws_key"><?php echo __("AWS Key", 'xcloner-backup-and-restore')?></label>
265 265
 						</div>	
266 266
 						<div class=" col s12 m6">
267
-							<input placeholder="<?php echo __("AWS Key",'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" >
267
+							<input placeholder="<?php echo __("AWS Key", 'xcloner-backup-and-restore')?>" id="aws_key" type="text" name="xcloner_aws_key" class="validate" value="<?php echo get_option("xcloner_aws_key")?>" autocomplete="off" >
268 268
 				        </div>
269 269
 			        </div>
270 270
 			        
271 271
 			        <div class="row">
272 272
 						<div class="col s12 m3 label">
273
-							<label for="aws_secret"><?php echo __("AWS Secret",'xcloner-backup-and-restore')?></label>
273
+							<label for="aws_secret"><?php echo __("AWS Secret", 'xcloner-backup-and-restore')?></label>
274 274
 						</div>	
275 275
 						<div class=" col s12 m6">
276
-							<input placeholder="<?php echo __("AWS Secret",'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" >
276
+							<input placeholder="<?php echo __("AWS Secret", 'xcloner-backup-and-restore')?>" id="aws_secret" type="text" name="xcloner_aws_secret" class="validate" value="<?php echo get_option("xcloner_aws_secret")?>" autocomplete="off" >
277 277
 				        </div>
278 278
 			        </div>
279 279
 			        
280 280
 			        <div class="row">
281 281
 						<div class="col s12 m3 label">
282
-							<label for="aws_region"><?php echo __("AWS Region",'xcloner-backup-and-restore')?></label>
282
+							<label for="aws_region"><?php echo __("AWS Region", 'xcloner-backup-and-restore')?></label>
283 283
 						</div>	
284 284
 						<div class=" col s12 m6">
285
-							<select placeholder="<?php echo __("example: us-east-1",'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" >
285
+							<select placeholder="<?php echo __("example: us-east-1", 'xcloner-backup-and-restore')?>" id="aws_region" type="text" name="xcloner_aws_region" class="validate" value="<?php echo get_option("xcloner_aws_region")?>" autocomplete="off" >
286 286
 							<option readonly value=""><?php echo __("Please Select AWS Region")?></option>
287 287
 							<?php 							
288 288
 							$aws_regions = $remote_storage->get_aws_regions();
289 289
 							
290
-							foreach($aws_regions as $key=>$region){
290
+							foreach ($aws_regions as $key=>$region) {
291 291
 								?>
292
-								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region')?"selected":"")?>><?php echo $region?> = <?php echo $key?></option>
292
+								<option value="<?php echo $key?>" <?php echo ($key == get_option('xcloner_aws_region') ? "selected" : "")?>><?php echo $region?> = <?php echo $key?></option>
293 293
 								<?php
294 294
 								}
295 295
 							?>
@@ -299,30 +299,30 @@  discard block
 block discarded – undo
299 299
 			        
300 300
 			        <div class="row">
301 301
 						<div class="col s12 m3 label">
302
-							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?></label>
302
+							<label for="aws_bucket_name"><?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?></label>
303 303
 						</div>	
304 304
 						<div class=" col s12 m6">
305
-							<input placeholder="<?php echo __("AWS Bucket Name",'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" >
305
+							<input placeholder="<?php echo __("AWS Bucket Name", 'xcloner-backup-and-restore')?>" id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate" value="<?php echo get_option("xcloner_aws_bucket_name")?>" autocomplete="off" >
306 306
 				        </div>
307 307
 			        </div>
308 308
 			        
309 309
 			        <div class="row">
310 310
 						<div class="col s12 m3 label">
311
-							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)",'xcloner-backup-and-restore')?></label>
311
+							<label for="aws_cleanup_days"><?php echo __("AWS Cleanup (days)", 'xcloner-backup-and-restore')?></label>
312 312
 						</div>
313 313
 						<div class=" col s12 m6">
314
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>">
314
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days" class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days")?>">
315 315
 				        </div>
316 316
 			        </div>
317 317
 			        
318 318
 			        <div class="row">
319 319
 						<div class="col s6 m4">
320
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
320
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
321 321
 								<i class="material-icons right">save</i>
322 322
 							</button>
323 323
 						</div>	
324 324
 						<div class="col s6 m4">
325
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
325
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="aws" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
326 326
 								<i class="material-icons right">import_export</i>
327 327
 							</button>
328 328
 						</div>
@@ -334,12 +334,12 @@  discard block
 block discarded – undo
334 334
 			<!-- DROPBOX STORAGE-->
335 335
 			<li id="dropbox">
336 336
 				<div class="collapsible-header">
337
-					<i class="material-icons">computer</i><?php echo __("Dropbox Storage",'xcloner-backup-and-restore')?>
337
+					<i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore')?>
338 338
 					<div class="right">
339 339
 						<div class="switch">
340 340
 							<label>
341 341
 							Off
342
-							<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if(get_option("xcloner_dropbox_enable")) echo "checked"?> \>
342
+							<input type="checkbox" name="xcloner_dropbox_enable" class="status" value="1" <?php if (get_option("xcloner_dropbox_enable")) echo "checked"?> \>
343 343
 							<span class="lever"></span>
344 344
 							On
345 345
 							</label>
@@ -361,49 +361,49 @@  discard block
 block discarded – undo
361 361
 			        
362 362
 			        <div class="row">
363 363
 						<div class="col s12 m3 label">
364
-							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?></label>
364
+							<label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?></label>
365 365
 						</div>	
366 366
 						<div class=" col s12 m6">
367
-							<input placeholder="<?php echo __("Dropbox Access Token",'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" >
367
+							<input placeholder="<?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore')?>" id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token" class="validate" value="<?php echo get_option("xcloner_dropbox_access_token")?>" autocomplete="off" >
368 368
 				        </div>
369 369
 			        </div>
370 370
 			        
371 371
 			        
372 372
 			        <div class="row">
373 373
 						<div class="col s12 m3 label">
374
-							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?></label>
374
+							<label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?></label>
375 375
 						</div>
376 376
 						<div class=" col s12 m6">
377
-							<input placeholder="<?php echo __("Dropbox App Secret",'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" >
377
+							<input placeholder="<?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore')?>" id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret" class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret")?>" autocomplete="off" >
378 378
 				        </div>
379 379
 			        </div>
380 380
 			        
381 381
 			        <div class="row">
382 382
 						<div class="col s12 m3 label">
383
-							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?></label>
383
+							<label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?></label>
384 384
 						</div>
385 385
 						<div class=" col s12 m6">
386
-							<input placeholder="<?php echo __("Dropbox Prefix",'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>">
386
+							<input placeholder="<?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore')?>" id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate" value="<?php echo get_option("xcloner_dropbox_prefix")?>">
387 387
 						</div>	
388 388
 			        </div>
389 389
 			        
390 390
 			        <div class="row">
391 391
 						<div class="col s12 m3 label">
392
-							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)",'xcloner-backup-and-restore')?></label>
392
+							<label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore')?></label>
393 393
 						</div>
394 394
 						<div class=" col s12 m6">
395
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>">
395
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days" class="validate" value="<?php echo get_option("xcloner_dropbox_cleanup_days")?>">
396 396
 				        </div>
397 397
 			        </div>
398 398
 			        
399 399
 			        <div class="row">
400 400
 						<div class="col s6 m4">
401
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
401
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
402 402
 								<i class="material-icons right">save</i>
403 403
 							</button>
404 404
 						</div>	
405 405
 						<div class="col s6 m4">
406
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
406
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="dropbox" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
407 407
 								<i class="material-icons right">import_export</i>
408 408
 							</button>
409 409
 						</div>
@@ -415,12 +415,12 @@  discard block
 block discarded – undo
415 415
 			<!-- AZURE STORAGE-->
416 416
 			<li id="azure">
417 417
 				<div class="collapsible-header">
418
-					<i class="material-icons">computer</i><?php echo __("Azure Blog Storage",'xcloner-backup-and-restore')?>
418
+					<i class="material-icons">computer</i><?php echo __("Azure Blog Storage", 'xcloner-backup-and-restore')?>
419 419
 					<div class="right">
420 420
 						<div class="switch">
421 421
 							<label>
422 422
 							Off
423
-							<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if(get_option("xcloner_azure_enable")) echo "checked"?> \>
423
+							<input type="checkbox" name="xcloner_azure_enable" class="status" value="1" <?php if (get_option("xcloner_azure_enable")) echo "checked"?> \>
424 424
 							<span class="lever"></span>
425 425
 							On
426 426
 							</label>
@@ -435,56 +435,56 @@  discard block
 block discarded – undo
435 435
 						</div>	
436 436
 						<div class=" col s12 m6">
437 437
 							<p>
438
-								<?php echo sprintf(__('Visit %s and get your "Api Key".','xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>')?>
438
+								<?php echo sprintf(__('Visit %s and get your "Api Key".', 'xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>')?>
439 439
 							</p>
440 440
 				        </div>
441 441
 			        </div>
442 442
 			        
443 443
 			        <div class="row">
444 444
 						<div class="col s12 m3 label">
445
-							<label for="azure_account_name"><?php echo __("Azure Account Name",'xcloner-backup-and-restore')?></label>
445
+							<label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?></label>
446 446
 						</div>	
447 447
 						<div class=" col s12 m6">
448
-							<input placeholder="<?php echo __("Azure Account Name",'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" >
448
+							<input placeholder="<?php echo __("Azure Account Name", 'xcloner-backup-and-restore')?>" id="azure_account_name" type="text" name="xcloner_azure_account_name" class="validate" value="<?php echo get_option("xcloner_azure_account_name")?>" autocomplete="off" >
449 449
 				        </div>
450 450
 			        </div>
451 451
 			        
452 452
 			        
453 453
 			        <div class="row">
454 454
 						<div class="col s12 m3 label">
455
-							<label for="azure_api_key"><?php echo __("Azure Api Key",'xcloner-backup-and-restore')?></label>
455
+							<label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?></label>
456 456
 						</div>
457 457
 						<div class=" col s12 m6">
458
-							<input placeholder="<?php echo __("Azure Api Key",'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" >
458
+							<input placeholder="<?php echo __("Azure Api Key", 'xcloner-backup-and-restore')?>" id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate" value="<?php echo get_option("xcloner_azure_api_key")?>" autocomplete="off" >
459 459
 				        </div>
460 460
 			        </div>
461 461
 			        
462 462
 			        <div class="row">
463 463
 						<div class="col s12 m3 label">
464
-							<label for="azure_container"><?php echo __("Azure Container",'xcloner-backup-and-restore')?></label>
464
+							<label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore')?></label>
465 465
 						</div>
466 466
 						<div class=" col s12 m6">
467
-							<input placeholder="<?php echo __("Azure Container",'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>">
467
+							<input placeholder="<?php echo __("Azure Container", 'xcloner-backup-and-restore')?>" id="azure_container" type="text" name="xcloner_azure_container" class="validate" value="<?php echo get_option("xcloner_azure_container")?>">
468 468
 						</div>	
469 469
 			        </div>
470 470
 			        
471 471
 			        <div class="row">
472 472
 						<div class="col s12 m3 label">
473
-							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)",'xcloner-backup-and-restore')?></label>
473
+							<label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore')?></label>
474 474
 						</div>
475 475
 						<div class=" col s12 m6">
476
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>">
476
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days" class="validate" value="<?php echo get_option("xcloner_azure_cleanup_days")?>">
477 477
 				        </div>
478 478
 			        </div>
479 479
 			        
480 480
 			        <div class="row">
481 481
 						<div class="col s6 m4">
482
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
482
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
483 483
 								<i class="material-icons right">save</i>
484 484
 							</button>
485 485
 						</div>	
486 486
 						<div class="col s6 m4">
487
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
487
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="azure" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
488 488
 								<i class="material-icons right">import_export</i>
489 489
 							</button>
490 490
 						</div>
@@ -496,12 +496,12 @@  discard block
 block discarded – undo
496 496
 			<!-- BACKBLAZE STORAGE-->
497 497
 			<li id="backblaze">
498 498
 				<div class="collapsible-header">
499
-					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage",'xcloner-backup-and-restore')?>
499
+					<i class="material-icons">computer</i><?php echo __("BackBlaze Storage", 'xcloner-backup-and-restore')?>
500 500
 					<div class="right">
501 501
 						<div class="switch">
502 502
 							<label>
503 503
 							Off
504
-							<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if(get_option("xcloner_backblaze_enable")) echo "checked"?> \>
504
+							<input type="checkbox" name="xcloner_backblaze_enable" class="status" value="1" <?php if (get_option("xcloner_backblaze_enable")) echo "checked"?> \>
505 505
 							<span class="lever"></span>
506 506
 							On
507 507
 							</label>
@@ -516,56 +516,56 @@  discard block
 block discarded – undo
516 516
 						</div>	
517 517
 						<div class=" col s12 m6">
518 518
 							<p>
519
-								<?php echo sprintf(__('Visit %s and get your Account Id and  Application Key.','xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>')?>
519
+								<?php echo sprintf(__('Visit %s and get your Account Id and  Application Key.', 'xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>')?>
520 520
 							</p>
521 521
 				        </div>
522 522
 			        </div>
523 523
 			        
524 524
 			        <div class="row">
525 525
 						<div class="col s12 m3 label">
526
-							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id",'xcloner-backup-and-restore')?></label>
526
+							<label for="backblaze_account_id"><?php echo __("BackBlaze Account Id", 'xcloner-backup-and-restore')?></label>
527 527
 						</div>	
528 528
 						<div class=" col s12 m6">
529
-							<input placeholder="<?php echo __("BackBlaze Account Id",'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" >
529
+							<input placeholder="<?php echo __("BackBlaze Account Id", 'xcloner-backup-and-restore')?>" id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id" class="validate" value="<?php echo get_option("xcloner_backblaze_account_id")?>" autocomplete="off" >
530 530
 				        </div>
531 531
 			        </div>
532 532
 			        
533 533
 			        
534 534
 			        <div class="row">
535 535
 						<div class="col s12 m3 label">
536
-							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key",'xcloner-backup-and-restore')?></label>
536
+							<label for="backblaze_application_key"><?php echo __("BackBlaze Application Key", 'xcloner-backup-and-restore')?></label>
537 537
 						</div>
538 538
 						<div class=" col s12 m6">
539
-							<input placeholder="<?php echo __("BackBlaze Application Key",'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" >
539
+							<input placeholder="<?php echo __("BackBlaze Application Key", 'xcloner-backup-and-restore')?>" id="backblaze_application_key" type="text" name="xcloner_backblaze_application_key" class="validate" value="<?php echo get_option("xcloner_backblaze_application_key")?>" autocomplete="off" >
540 540
 				        </div>
541 541
 			        </div>
542 542
 			        
543 543
 			        <div class="row">
544 544
 						<div class="col s12 m3 label">
545
-							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name",'xcloner-backup-and-restore')?></label>
545
+							<label for="backblaze_bucket_name"><?php echo __("BackBlaze Bucket Name", 'xcloner-backup-and-restore')?></label>
546 546
 						</div>
547 547
 						<div class=" col s12 m6">
548
-							<input placeholder="<?php echo __("BackBlaze Bucket Name",'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" >
548
+							<input placeholder="<?php echo __("BackBlaze Bucket Name", 'xcloner-backup-and-restore')?>" id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name" class="validate" value="<?php echo get_option("xcloner_backblaze_bucket_name")?>" autocomplete="off" >
549 549
 				        </div>
550 550
 			        </div>
551 551
 			        
552 552
 			        <div class="row">
553 553
 						<div class="col s12 m3 label">
554
-							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)",'xcloner-backup-and-restore')?></label>
554
+							<label for="backblaze_cleanup_days"><?php echo __("BackBlaze Cleanup (days)", 'xcloner-backup-and-restore')?></label>
555 555
 						</div>
556 556
 						<div class=" col s12 m6">
557
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>">
557
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days" class="validate" value="<?php echo get_option("xcloner_backblaze_cleanup_days")?>">
558 558
 				        </div>
559 559
 			        </div>
560 560
 			        
561 561
 			        <div class="row">
562 562
 						<div class="col s6 m4">
563
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
563
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
564 564
 								<i class="material-icons right">save</i>
565 565
 							</button>
566 566
 						</div>	
567 567
 						<div class="col s6 m4">
568
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
568
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="backblaze" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
569 569
 								<i class="material-icons right">import_export</i>
570 570
 							</button>
571 571
 						</div>
@@ -577,12 +577,12 @@  discard block
 block discarded – undo
577 577
 			<!-- WEBDAV STORAGE-->
578 578
 			<li id="webdav">
579 579
 				<div class="collapsible-header">
580
-					<i class="material-icons">computer</i><?php echo __("WebDAV Storage",'xcloner-backup-and-restore')?>
580
+					<i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore')?>
581 581
 					<div class="right">
582 582
 						<div class="switch">
583 583
 							<label>
584 584
 							Off
585
-							<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if(get_option("xcloner_webdav_enable")) echo "checked"?> \>
585
+							<input type="checkbox" name="xcloner_webdav_enable" class="status" value="1" <?php if (get_option("xcloner_webdav_enable")) echo "checked"?> \>
586 586
 							<span class="lever"></span>
587 587
 							On
588 588
 							</label>
@@ -604,57 +604,57 @@  discard block
 block discarded – undo
604 604
 			        
605 605
 			        <div class="row">
606 606
 						<div class="col s12 m3 label">
607
-							<label for="webdav_url"><?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?></label>
607
+							<label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?></label>
608 608
 						</div>	
609 609
 						<div class=" col s12 m6">
610
-							<input placeholder="<?php echo __("WebDAV Base Url",'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" >
610
+							<input placeholder="<?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore')?>" id="webdav_url" type="text" name="xcloner_webdav_url" class="validate" value="<?php echo get_option("xcloner_webdav_url")?>" autocomplete="off" >
611 611
 				        </div>
612 612
 			        </div>
613 613
 			        
614 614
 			        <div class="row">
615 615
 						<div class="col s12 m3 label">
616
-							<label for="webdav_username"><?php echo __("WebDAV Username",'xcloner-backup-and-restore')?></label>
616
+							<label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?></label>
617 617
 						</div>
618 618
 						<div class=" col s12 m6">
619
-							<input placeholder="<?php echo __("WebDAV Username",'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" >
619
+							<input placeholder="<?php echo __("WebDAV Username", 'xcloner-backup-and-restore')?>" id="webdav_username" type="text" name="xcloner_webdav_username" class="validate" value="<?php echo get_option("xcloner_webdav_username")?>" autocomplete="off" >
620 620
 				        </div>
621 621
 			        </div>
622 622
 			        
623 623
 			        <div class="row">
624 624
 						<div class="col s12 m3 label">
625
-							<label for="webdav_password"><?php echo __("WebDAV Password",'xcloner-backup-and-restore')?></label>
625
+							<label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?></label>
626 626
 						</div>
627 627
 						<div class=" col s12 m6">
628
-							<input placeholder="<?php echo __("WebDAV Password",'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" >
628
+							<input placeholder="<?php echo __("WebDAV Password", 'xcloner-backup-and-restore')?>" id="webdav_password" type="password" name="xcloner_webdav_password" class="validate" value="<?php echo get_option("xcloner_webdav_password")?>" autocomplete="off" >
629 629
 				        </div>
630 630
 			        </div>
631 631
 			        
632 632
 			        <div class="row">
633 633
 						<div class="col s12 m3 label">
634
-							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?></label>
634
+							<label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?></label>
635 635
 						</div>	
636 636
 						<div class=" col s12 m6">
637
-							<input placeholder="<?php echo __("WebDAV Target Folder",'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" >
637
+							<input placeholder="<?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore')?>" id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder" class="validate" value="<?php echo get_option("xcloner_webdav_target_folder")?>" autocomplete="off" >
638 638
 				        </div>
639 639
 			        </div>
640 640
 			        
641 641
 			        <div class="row">
642 642
 						<div class="col s12 m3 label">
643
-							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)",'xcloner-backup-and-restore')?></label>
643
+							<label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore')?></label>
644 644
 						</div>
645 645
 						<div class=" col s12 m6">
646
-							<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>">
646
+							<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days" class="validate" value="<?php echo get_option("xcloner_webdav_cleanup_days")?>">
647 647
 				        </div>
648 648
 			        </div>
649 649
 			        
650 650
 			        <div class="row">
651 651
 						<div class="col s6 m4">
652
-							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
652
+							<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
653 653
 								<i class="material-icons right">save</i>
654 654
 							</button>
655 655
 						</div>	
656 656
 						<div class="col s6 m4">
657
-							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
657
+							<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="webdav" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
658 658
 								<i class="material-icons right">import_export</i>
659 659
 							</button>
660 660
 						</div>
@@ -666,13 +666,13 @@  discard block
 block discarded – undo
666 666
 			<!-- Google DRIVE STORAGE-->
667 667
 			<li id="gdrive">
668 668
 				<div class="collapsible-header">
669
-					<i class="material-icons">computer</i><?php echo __("Google Drive Storage",'xcloner-backup-and-restore')?>
670
-					<?php if($gdrive_construct):?>
669
+					<i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore')?>
670
+					<?php if ($gdrive_construct):?>
671 671
 					<div class="right">
672 672
 						<div class="switch">
673 673
 							<label>
674 674
 							Off
675
-							<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if(get_option("xcloner_gdrive_enable")) echo "checked"?> \>
675
+							<input type="checkbox" name="xcloner_gdrive_enable" class="status" value="1" <?php if (get_option("xcloner_gdrive_enable")) echo "checked"?> \>
676 676
 							<span class="lever"></span>
677 677
 							On
678 678
 							</label>
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
 				</div>
683 683
 				<div class="collapsible-body">
684 684
 			        
685
-			        <?php if($gdrive_construct) : ?>
685
+			        <?php if ($gdrive_construct) : ?>
686 686
 			        
687 687
 				        <div class="row">
688 688
 							<div class="col s12 m3 label">
@@ -690,28 +690,28 @@  discard block
 block discarded – undo
690 690
 							</div>	
691 691
 							<div class=" col s12 m9">
692 692
 								<p>
693
-									<?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.','xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>')?>
693
+									<?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>')?>
694 694
 									<a href="https://youtu.be/YXUVPUVgG8k" target="_blank" class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" 
695
-									data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s','xcloner-backup-and-restore'),"<br />https://youtu.be/YXUVPUVgG8k")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
695
+									data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore'), "<br />https://youtu.be/YXUVPUVgG8k")?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
696 696
 								</p>
697 697
 					        </div>
698 698
 				        </div>
699 699
 			        
700 700
 						<div class="row">
701 701
 							<div class="col s12 m3 label">
702
-								<label for="gdrive_client_id"><?php echo __("Client ID",'xcloner-backup-and-restore')?></label>
702
+								<label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore')?></label>
703 703
 							</div>
704 704
 							<div class=" col s12 m6">
705
-								<input placeholder="<?php echo __("Google Client ID",'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>">
705
+								<input placeholder="<?php echo __("Google Client ID", 'xcloner-backup-and-restore')?>" id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id" class="validate" value="<?php echo get_option("xcloner_gdrive_client_id")?>">
706 706
 					        </div>
707 707
 				        </div>
708 708
 				        
709 709
 				        <div class="row">
710 710
 							<div class="col s12 m3 label">
711
-								<label for="gdrive_client_secret"><?php echo __("Client Secret",'xcloner-backup-and-restore')?></label>
711
+								<label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore')?></label>
712 712
 							</div>
713 713
 							<div class=" col s12 m6">
714
-								<input placeholder="<?php echo __("Google Client Secret",'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>">
714
+								<input placeholder="<?php echo __("Google Client Secret", 'xcloner-backup-and-restore')?>" id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret" class="validate" value="<?php echo get_option("xcloner_gdrive_client_secret")?>">
715 715
 					        </div>
716 716
 				        </div>
717 717
 				        
@@ -721,41 +721,41 @@  discard block
 block discarded – undo
721 721
 								&nbsp;
722 722
 							</div>	
723 723
 							<div class=" col s12 m6">
724
-									<a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive','xcloner-backup-and-restore'))?></a>
725
-									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here","xcloner-backup-and-restore")?>">
724
+									<a class="btn" target="_blank" id="gdrive_authorization_click" onclick="jQuery('#authentification_code').show()" href="<?php echo $gdrive_auth_url?>"><?php echo sprintf(__('Authorize Google Drive', 'xcloner-backup-and-restore'))?></a>
725
+									<input type="text" name="authentification_code" id="authentification_code" placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore")?>">
726 726
 					        </div>
727 727
 				        </div>
728 728
 				        
729 729
 				        <div class="row">
730 730
 							<div class="col s12 m3 label">
731
-								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path",'xcloner-backup-and-restore')?>
731
+								<label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore')?>
732 732
 									<a class="btn-floating tooltipped btn-small" data-position="right" data-delay="50" data-html="true" \
733 733
 									data-tooltip="<?php echo __('Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br />
734 734
 									If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/','xcloner-backup-and-restore')?>" data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>	
735 735
 								</label>
736 736
 							</div>	
737 737
 							<div class=" col s12 m6">
738
-								<input placeholder="<?php echo __("Target Folder ID or Root Path",'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" >
738
+								<input placeholder="<?php echo __("Target Folder ID or Root Path", 'xcloner-backup-and-restore')?>" id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder" class="validate" value="<?php echo get_option("xcloner_gdrive_target_folder")?>" autocomplete="off" >
739 739
 					        </div>
740 740
 				        </div>
741 741
 				        
742 742
 				        <div class="row">
743 743
 							<div class="col s12 m3 label">
744
-								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)",'xcloner-backup-and-restore')?></label>
744
+								<label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore')?></label>
745 745
 							</div>
746 746
 							<div class=" col s12 m6">
747
-								<input placeholder="<?php echo __("how many days to keep the backups for",'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>">
747
+								<input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore')?>" id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days" class="validate" value="<?php echo get_option("xcloner_gdrive_cleanup_days")?>">
748 748
 					        </div>
749 749
 				        </div>
750 750
 				        
751 751
 				        <div class="row">
752 752
 							<div class="col s6 m4">
753
-								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings",'xcloner-backup-and-restore')?>
753
+								<button class="btn waves-effect waves-light" type="submit" name="action" id="action"  value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore')?>
754 754
 									<i class="material-icons right">save</i>
755 755
 								</button>
756 756
 							</div>	
757 757
 							<div class="col s6 m4">
758
-								<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify",'xcloner-backup-and-restore')?>
758
+								<button class="btn waves-effect waves-light orange" type="submit" name="action" id="action"  value="gdrive" onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore')?>
759 759
 									<i class="material-icons right">import_export</i>
760 760
 								</button>
761 761
 							</div>
@@ -771,15 +771,15 @@  discard block
 block discarded – undo
771 771
 									<h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.")?></h6>
772 772
 									<h6><?php echo __("PHP 5.5 minimum version is required.")?></h6>
773 773
 									<br />
774
-									<a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url;?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0">
775
-										<?php echo sprintf(__('Install Now','xcloner-backup-and-restore'))?>
774
+									<a class="install-now btn" data-slug="xcloner-google-drive" href="<?php echo $url; ?>" aria-label="Install XCloner Google Drive 1.0.0 now" data-name="XCloner Google Drive 1.0.0">
775
+										<?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore'))?>
776 776
 									</a>
777 777
 									
778 778
 									<a href="<?php echo admin_url("plugin-install.php")?>?tab=plugin-information&amp;plugin=xcloner-google-drive&amp;TB_iframe=true&amp;width=772&amp;height=499" class="btn thickbox open-plugin-details-modal" aria-label="More information about Theme Check 20160523.1" data-title="Theme Check 20160523.1">
779 779
 									<!--
780 780
 									<a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip">
781 781
 									-->
782
-										<?php echo sprintf(__('More Details','xcloner-backup-and-restore'))?>
782
+										<?php echo sprintf(__('More Details', 'xcloner-backup-and-restore'))?>
783 783
 									</a>
784 784
 								</div>
785 785
 					        </div>
Please login to merge, or discard this patch.