WordPress Backup and Migrate Plugin – Backup Guard - Version 1.3.7

Version Description

  • Download button improvement
Download this release

Release Info

Developer BackupGuard
Plugin Icon 128x128 WordPress Backup and Migrate Plugin – Backup Guard
Version 1.3.7
Comparing to
See all releases

Code changes from version 1.3.6 to 1.3.7

Files changed (5) hide show
  1. README.txt +4 -1
  2. backup.php +2 -2
  3. public/backups.php +1 -1
  4. public/css/styles.css +4 -0
  5. public/js/main.js +29 -0
README.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://backup-guard.com/products/backup-wordpress
6
  Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
7
  Requires at least: 3.8
8
  Tested up to: 5.4.2
9
- Stable tag: 1.3.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -157,6 +157,9 @@ When you are facing an issue of any kind with any of our products, the first thi
157
  6. Site backup customization
158
 
159
  == Changelog ==
 
 
 
160
  = 1.3.6 =
161
  * Option Name Change
162
 
6
  Tags: backup, wordpress backup plugin, backup plugin, database backup, migrate, back up
7
  Requires at least: 3.8
8
  Tested up to: 5.4.2
9
+ Stable tag: 1.3.7
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
157
  6. Site backup customization
158
 
159
  == Changelog ==
160
+ = 1.3.7 =
161
+ * Download button improvement
162
+
163
  = 1.3.6 =
164
  * Option Name Change
165
 
backup.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Backup
5
  * Plugin URI: https://backup-guard.com/products/backup-wordpress
6
  * Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
7
- * Version: 1.3.6
8
  * Author: BackupGuard
9
  * Author URI: https://backup-guard.com/products/backup-wordpress
10
  * License: GPL-2.0+
@@ -16,7 +16,7 @@ if (function_exists('activate_backup_guard')) {
16
  }
17
 
18
  if (!defined('SG_BACKUP_GUARD_VERSION')) {
19
- define('SG_BACKUP_GUARD_VERSION', '1.3.6');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
4
  * Plugin Name: Backup
5
  * Plugin URI: https://backup-guard.com/products/backup-wordpress
6
  * Description: Backup Guard is the most complete site backup and restore plugin. We offer the easiest way to backup, restore or migrate your site. You can backup your files, database or both.
7
+ * Version: 1.3.7
8
  * Author: BackupGuard
9
  * Author URI: https://backup-guard.com/products/backup-wordpress
10
  * License: GPL-2.0+
16
  }
17
 
18
  if (!defined('SG_BACKUP_GUARD_VERSION')) {
19
+ define('SG_BACKUP_GUARD_VERSION', '1.3.7');
20
  }
21
 
22
  if (!defined('SG_BACKUP_GUARD_MAIN_FILE')) {
public/backups.php CHANGED
@@ -152,7 +152,7 @@ $pluginCapabilities = backupGuardGetCapabilities();
152
  <?php else: ?>
153
  <a href="javascript:void(0)" data-sgbackup-name="<?php echo htmlspecialchars($backup['name']);?>" data-remote="deleteBackup" class="btn btn-danger btn-xs sg-remove-backup" title="<?php _backupGuardT('Delete')?>">&nbsp;<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>&nbsp;</a>
154
  <div class="btn-group">
155
- <a href="javascript:void(0)" class="btn btn-primary dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false" title="<?php _backupGuardT('Download')?>">
156
  &nbsp;<i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i>&nbsp;
157
  <span class="caret"></span>
158
  </a>
152
  <?php else: ?>
153
  <a href="javascript:void(0)" data-sgbackup-name="<?php echo htmlspecialchars($backup['name']);?>" data-remote="deleteBackup" class="btn btn-danger btn-xs sg-remove-backup" title="<?php _backupGuardT('Delete')?>">&nbsp;<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>&nbsp;</a>
154
  <div class="btn-group">
155
+ <a href="javascript:void(0)" class="btn btn-primary sg-bg-download-button btn-xs" data-toggle="dropdown1" aria-expanded="false" title="<?php _backupGuardT('Download')?>">
156
  &nbsp;<i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i>&nbsp;
157
  <span class="caret"></span>
158
  </a>
public/css/styles.css CHANGED
@@ -337,3 +337,7 @@ select#product {
337
  .bg-license-content.sg-wrapper-less {
338
  margin-top: 0 !important;
339
  }
 
 
 
 
337
  .bg-license-content.sg-wrapper-less {
338
  margin-top: 0 !important;
339
  }
340
+
341
+ .sg-bg-show {
342
+ display: block !important;
343
+ }
public/js/main.js CHANGED
@@ -71,6 +71,35 @@ sgBackup.awake = function(){
71
  //SG init
72
  sgBackup.init = function(){
73
  sgBackup.initModals();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  };
75
 
76
  //SG Modal popup logic
71
  //SG init
72
  sgBackup.init = function(){
73
  sgBackup.initModals();
74
+ sgBackup.downloadButton();
75
+ };
76
+
77
+ sgBackup.downloadButton = function()
78
+ {
79
+ var downloadButtons = jQuery('.sg-bg-download-button');
80
+
81
+ if (!downloadButtons.length) {
82
+ return false;
83
+ }
84
+ var isOPen = false;
85
+ jQuery(window).bind('click', function () {
86
+ if (isOPen) {
87
+ jQuery('.sg-backup-table .dropdown-menu').removeClass('sg-bg-show');
88
+ isOPen = false;
89
+ }
90
+ });
91
+
92
+ downloadButtons.bind('click', function () {
93
+ var currentButton = jQuery(this);
94
+
95
+ if (!currentButton.length) {
96
+ return false;
97
+ }
98
+ setTimeout(function () {
99
+ currentButton.next().addClass('sg-bg-show');
100
+ isOPen = true;
101
+ }, 0);
102
+ });
103
  };
104
 
105
  //SG Modal popup logic