Version Description
- Improvement: Added Astra Global Color Palette and Typography Preset options compatibility.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Import / Export Customizer Settings |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- astra-import-export.php +2 -2
- inc/classes/class-astra-import-export-loader.php +16 -2
- readme.txt +5 -2
astra-import-export.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Import / Export Customizer Settings
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: This plugin is an add-on for the Astra WordPress Theme. It will help in Import Export Customizer settings.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-import-export
|
@@ -18,7 +18,7 @@ if ( 'astra' !== get_template() ) {
|
|
18 |
/**
|
19 |
* Set constants.
|
20 |
*/
|
21 |
-
define( 'ASTRA_IMPORT_EXPORT_VER', '1.0.
|
22 |
define( 'ASTRA_IMPORT_EXPORT_FILE', __FILE__ );
|
23 |
define( 'ASTRA_IMPORT_EXPORT_BASE', plugin_basename( ASTRA_IMPORT_EXPORT_FILE ) );
|
24 |
define( 'ASTRA_IMPORT_EXPORT_DIR', plugin_dir_path( ASTRA_IMPORT_EXPORT_FILE ) );
|
3 |
* Plugin Name: Import / Export Customizer Settings
|
4 |
* Plugin URI: https://wpastra.com/
|
5 |
* Description: This plugin is an add-on for the Astra WordPress Theme. It will help in Import Export Customizer settings.
|
6 |
+
* Version: 1.0.5
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-import-export
|
18 |
/**
|
19 |
* Set constants.
|
20 |
*/
|
21 |
+
define( 'ASTRA_IMPORT_EXPORT_VER', '1.0.5' );
|
22 |
define( 'ASTRA_IMPORT_EXPORT_FILE', __FILE__ );
|
23 |
define( 'ASTRA_IMPORT_EXPORT_BASE', plugin_basename( ASTRA_IMPORT_EXPORT_FILE ) );
|
24 |
define( 'ASTRA_IMPORT_EXPORT_DIR', plugin_dir_path( ASTRA_IMPORT_EXPORT_FILE ) );
|
inc/classes/class-astra-import-export-loader.php
CHANGED
@@ -176,7 +176,11 @@ if ( ! class_exists( 'Astra_Import_Export_Loader' ) ) {
|
|
176 |
// Delete existing dynamic CSS cache.
|
177 |
delete_option( 'astra-settings' );
|
178 |
|
179 |
-
|
|
|
|
|
|
|
|
|
180 |
|
181 |
wp_safe_redirect(
|
182 |
wp_nonce_url(
|
@@ -210,7 +214,17 @@ if ( ! class_exists( 'Astra_Import_Export_Loader' ) ) {
|
|
210 |
}
|
211 |
|
212 |
// Get options from the Customizer API.
|
213 |
-
$theme_options['customizer-settings'] = Astra_Theme_Options::get_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
|
215 |
// Add Astra Addons to import.
|
216 |
if ( class_exists( 'Astra_Ext_Extension' ) ) {
|
176 |
// Delete existing dynamic CSS cache.
|
177 |
delete_option( 'astra-settings' );
|
178 |
|
179 |
+
if ( ! empty( $settings['customizer-settings'] ) ) {
|
180 |
+
foreach ( $settings['customizer-settings'] as $option => $value ) {
|
181 |
+
update_option( $option, $value );
|
182 |
+
}
|
183 |
+
}
|
184 |
|
185 |
wp_safe_redirect(
|
186 |
wp_nonce_url(
|
214 |
}
|
215 |
|
216 |
// Get options from the Customizer API.
|
217 |
+
$theme_options['customizer-settings']['astra-settings'] = Astra_Theme_Options::get_options();
|
218 |
+
|
219 |
+
// Get Global color palette option.
|
220 |
+
if ( function_exists( 'astra_get_palette_colors' ) ) {
|
221 |
+
$theme_options['customizer-settings']['astra-color-palettes'] = astra_get_palette_colors();
|
222 |
+
}
|
223 |
+
|
224 |
+
// Get Typography Presets option.
|
225 |
+
if ( function_exists( 'astra_get_typography_presets' ) ) {
|
226 |
+
$theme_options['customizer-settings']['astra-typography-presets'] = astra_get_typography_presets();
|
227 |
+
}
|
228 |
|
229 |
// Add Astra Addons to import.
|
230 |
if ( class_exists( 'Astra_Ext_Extension' ) ) {
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: brainstormforce
|
|
3 |
Donate link: https://www.brainstormforce.com/payment/
|
4 |
Requires at least: 4.4
|
5 |
Tags: astra addons export, import, settings, customizer settings, theme settings, theme options
|
6 |
-
Stable tag: 1.0.
|
7 |
Requires PHP: 5.4
|
8 |
-
Tested up to: 5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -42,6 +42,9 @@ Yes! Astra Pro settings that are available with customizer can be imported/expor
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.0.4 =
|
46 |
- Fix: Security hardening.
|
47 |
|
3 |
Donate link: https://www.brainstormforce.com/payment/
|
4 |
Requires at least: 4.4
|
5 |
Tags: astra addons export, import, settings, customizer settings, theme settings, theme options
|
6 |
+
Stable tag: 1.0.5
|
7 |
Requires PHP: 5.4
|
8 |
+
Tested up to: 5.9
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.0.5 =
|
46 |
+
- Improvement: Added Astra Global Color Palette and Typography Preset options compatibility.
|
47 |
+
|
48 |
= 1.0.4 =
|
49 |
- Fix: Security hardening.
|
50 |
|