Version Description
- 12th December 2019 =
- Fix - Responsive Ready Sites Importer plugin only works with Responsive theme
Download this release
Release Info
Developer | cyberchimps |
Plugin | Responsive Add Ons |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- admin/js/responsive-ready-sites-admin.js +23 -1
- readme.txt +4 -1
- responsive-add-ons.php +20 -2
admin/js/responsive-ready-sites-admin.js
CHANGED
@@ -198,6 +198,7 @@ var ResponsiveSitesAjaxQueue = (function() {
|
|
198 |
$( document ).on( 'click', '.responsive-demo-import-options-free', ResponsiveSitesAdmin._importSiteOptionsScreen );
|
199 |
$( document ).on( 'click', '.responsive-ready-sites-tooltip-icon', ResponsiveSitesAdmin._toggle_tooltip );
|
200 |
|
|
|
201 |
$( document ).on( 'responsive-ready-sites-install-start' , ResponsiveSitesAdmin._process_import );
|
202 |
|
203 |
$( document ).on( 'responsive-ready-sites-import-set-site-data-done' , ResponsiveSitesAdmin._installRequiredPlugins );
|
@@ -917,7 +918,7 @@ var ResponsiveSitesAjaxQueue = (function() {
|
|
917 |
var output = '<div class="current-importing-status-title"></div><div class="current-importing-status-description"></div>';
|
918 |
$( '.current-importing-status' ).html( output );
|
919 |
|
920 |
-
$( document ).trigger( 'responsive-
|
921 |
|
922 |
},
|
923 |
|
@@ -1538,6 +1539,27 @@ var ResponsiveSitesAjaxQueue = (function() {
|
|
1538 |
|
1539 |
}
|
1540 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1541 |
};
|
1542 |
|
1543 |
/**
|
198 |
$( document ).on( 'click', '.responsive-demo-import-options-free', ResponsiveSitesAdmin._importSiteOptionsScreen );
|
199 |
$( document ).on( 'click', '.responsive-ready-sites-tooltip-icon', ResponsiveSitesAdmin._toggle_tooltip );
|
200 |
|
201 |
+
$( document ).on( 'responsive-get-active-theme' , ResponsiveSitesAdmin._is_responsive_theme_active );
|
202 |
$( document ).on( 'responsive-ready-sites-install-start' , ResponsiveSitesAdmin._process_import );
|
203 |
|
204 |
$( document ).on( 'responsive-ready-sites-import-set-site-data-done' , ResponsiveSitesAdmin._installRequiredPlugins );
|
918 |
var output = '<div class="current-importing-status-title"></div><div class="current-importing-status-description"></div>';
|
919 |
$( '.current-importing-status' ).html( output );
|
920 |
|
921 |
+
$( document ).trigger( 'responsive-get-active-theme' );
|
922 |
|
923 |
},
|
924 |
|
1539 |
|
1540 |
}
|
1541 |
},
|
1542 |
+
|
1543 |
+
_is_responsive_theme_active: function() {
|
1544 |
+
$.ajax(
|
1545 |
+
{
|
1546 |
+
url: responsiveSitesAdmin.ajaxurl,
|
1547 |
+
type: 'POST',
|
1548 |
+
data: {
|
1549 |
+
'action': 'responsive-is-theme-active',
|
1550 |
+
},
|
1551 |
+
}
|
1552 |
+
)
|
1553 |
+
.done(
|
1554 |
+
function (result) {
|
1555 |
+
if (result.success) {
|
1556 |
+
$( document ).trigger( 'responsive-ready-sites-install-start' );
|
1557 |
+
} else {
|
1558 |
+
ResponsiveSitesAdmin._log_error( 'Responsive Ready Sites Importer plugin requires the Responsive theme. Please ensures that the Responsive theme is active.', true );
|
1559 |
+
}
|
1560 |
+
}
|
1561 |
+
);
|
1562 |
+
},
|
1563 |
};
|
1564 |
|
1565 |
/**
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor, Demo Importer, Templates, Starter Sites, Ready Websites
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -61,6 +61,9 @@ Absolutely not! Once you install the plugin, it will take care of all other depe
|
|
61 |
4. Your website is ready
|
62 |
|
63 |
== Changelog ==
|
|
|
|
|
|
|
64 |
= 2.1.0 - 27th November 2019 =
|
65 |
* Fix - Fatal Error when Analytics SDK is included in more than two plugins installed on same instance
|
66 |
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.1.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
61 |
4. Your website is ready
|
62 |
|
63 |
== Changelog ==
|
64 |
+
= 2.1.1 - 12th December 2019 =
|
65 |
+
* Fix - Responsive Ready Sites Importer plugin only works with Responsive theme
|
66 |
+
|
67 |
= 2.1.0 - 27th November 2019 =
|
68 |
* Fix - Fatal Error when Analytics SDK is included in more than two plugins installed on same instance
|
69 |
|
responsive-add-ons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Responsive Ready Sites Importer
|
4 |
Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
|
6 |
-
Version: 2.1.
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
@@ -52,7 +52,7 @@ if ( ! function_exists( 'ra_fs' ) ) {
|
|
52 |
'slug' => 'responsive-add-ons',
|
53 |
'product_name' => 'Responsive Ready Sites Importer',
|
54 |
'module_type' => 'plugin',
|
55 |
-
'version' => '2.1.
|
56 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
57 |
) );
|
58 |
}
|
@@ -96,6 +96,7 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
96 |
add_action( 'wp_ajax_responsive-ready-sites-required-plugin-activate', array(&$this, 'required_plugin_activate'));
|
97 |
add_action( 'wp_ajax_responsive-ready-sites-set-reset-data', array(&$this, 'set_reset_data'));
|
98 |
add_action( 'wp_ajax_responsive-ready-sites-backup-settings', array(&$this, 'backup_settings'));
|
|
|
99 |
|
100 |
//Dismiss admin notice
|
101 |
add_action( 'wp_ajax_responsive-notice-dismiss', array(&$this, 'dismiss_notice'));
|
@@ -981,6 +982,23 @@ if( !class_exists( 'Responsive_Addons' ) ) {
|
|
981 |
public function app_output_buffer() {
|
982 |
ob_start();
|
983 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
}
|
985 |
}
|
986 |
|
3 |
Plugin Name: Responsive Ready Sites Importer
|
4 |
Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
|
5 |
Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
|
6 |
+
Version: 2.1.1
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
52 |
'slug' => 'responsive-add-ons',
|
53 |
'product_name' => 'Responsive Ready Sites Importer',
|
54 |
'module_type' => 'plugin',
|
55 |
+
'version' => '2.1.1',
|
56 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
57 |
) );
|
58 |
}
|
96 |
add_action( 'wp_ajax_responsive-ready-sites-required-plugin-activate', array(&$this, 'required_plugin_activate'));
|
97 |
add_action( 'wp_ajax_responsive-ready-sites-set-reset-data', array(&$this, 'set_reset_data'));
|
98 |
add_action( 'wp_ajax_responsive-ready-sites-backup-settings', array(&$this, 'backup_settings'));
|
99 |
+
add_action( 'wp_ajax_responsive-is-theme-active', array(&$this, 'check_responsive_theme_active' ) );
|
100 |
|
101 |
//Dismiss admin notice
|
102 |
add_action( 'wp_ajax_responsive-notice-dismiss', array(&$this, 'dismiss_notice'));
|
982 |
public function app_output_buffer() {
|
983 |
ob_start();
|
984 |
}
|
985 |
+
|
986 |
+
/**
|
987 |
+
* Check if Responsive theme or Child theme of Responsive is Active
|
988 |
+
* @since 2.1.1
|
989 |
+
*/
|
990 |
+
public function check_responsive_theme_active() {
|
991 |
+
$current_theme = wp_get_theme();
|
992 |
+
if ( ( 'Responsive' === $current_theme->get( 'Name' ) ) || ( is_child_theme() && 'Responsive' === $current_theme->parent()->get( 'Name' ) ) ) {
|
993 |
+
wp_send_json_success(
|
994 |
+
array( 'success' => true )
|
995 |
+
);
|
996 |
+
} else {
|
997 |
+
wp_send_json_error(
|
998 |
+
array( 'success' => false )
|
999 |
+
);
|
1000 |
+
}
|
1001 |
+
}
|
1002 |
}
|
1003 |
}
|
1004 |
|