Version Description
Download this release
Release Info
| Developer | creativethemeshq |
| Plugin | |
| Version | 1.7.47 |
| Comparing to | |
| See all releases | |
Code changes from version 1.7.46 to 1.7.47
- blocksy-companion.php +1 -1
- framework/extensions/affiliate-marketing/static/bundle/main.css +2 -2
- framework/extensions/cookies-consent/static/bundle/main.css +2 -2
- framework/extensions/mailchimp/static/bundle/main.css +2 -2
- framework/extensions/widgets/static/bundle/main.css +2 -2
- framework/features/demo-install/content-eraser.php +4 -0
- framework/features/demo-install/options-export.php +17 -0
- framework/features/demo-install/options-import.php +19 -0
- readme.txt +4 -1
- static/bundle/dashboard.css +2 -2
- static/bundle/options.css +2 -2
blocksy-companion.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
/*
|
| 4 |
Plugin Name: Blocksy Companion
|
| 5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
| 6 |
-
Version: 1.7.
|
| 7 |
Author: CreativeThemes
|
| 8 |
Author URI: https://creativethemes.com
|
| 9 |
Text Domain: blc
|
| 3 |
/*
|
| 4 |
Plugin Name: Blocksy Companion
|
| 5 |
Description: This plugin is the companion for the Blocksy theme, it runs and adds its enhacements only if the Blocksy theme is installed and active.
|
| 6 |
+
Version: 1.7.47
|
| 7 |
Author: CreativeThemes
|
| 8 |
Author URI: https://creativethemes.com
|
| 9 |
Text Domain: blc
|
framework/extensions/affiliate-marketing/static/bundle/main.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
framework/extensions/cookies-consent/static/bundle/main.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
framework/extensions/mailchimp/static/bundle/main.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
framework/extensions/widgets/static/bundle/main.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
framework/features/demo-install/content-eraser.php
CHANGED
|
@@ -44,8 +44,12 @@ class DemoInstallContentEraser {
|
|
| 44 |
"SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key='blocksy_demos_imported_post'"
|
| 45 |
);
|
| 46 |
|
|
|
|
|
|
|
| 47 |
foreach ($post_ids as $post_id) {
|
|
|
|
| 48 |
wp_delete_post($post_id, true);
|
|
|
|
| 49 |
}
|
| 50 |
}
|
| 51 |
|
| 44 |
"SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key='blocksy_demos_imported_post'"
|
| 45 |
);
|
| 46 |
|
| 47 |
+
$_GET['force_delete_kit'] = '1';
|
| 48 |
+
|
| 49 |
foreach ($post_ids as $post_id) {
|
| 50 |
+
ob_start();
|
| 51 |
wp_delete_post($post_id, true);
|
| 52 |
+
ob_get_clean();
|
| 53 |
}
|
| 54 |
}
|
| 55 |
|
framework/features/demo-install/options-export.php
CHANGED
|
@@ -79,6 +79,23 @@ class DemoInstallOptionsExport {
|
|
| 79 |
$data['wp_css'] = wp_get_custom_css();
|
| 80 |
}
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
return $data;
|
| 83 |
|
| 84 |
return serialize($data);
|
| 79 |
$data['wp_css'] = wp_get_custom_css();
|
| 80 |
}
|
| 81 |
|
| 82 |
+
/**
|
| 83 |
+
* Temporary work around until Elementor comes up with something better
|
| 84 |
+
*/
|
| 85 |
+
if (class_exists('\Elementor\Plugin')) {
|
| 86 |
+
$default_post_id = \Elementor\Plugin::$instance->kits_manager->get_active_id();
|
| 87 |
+
|
| 88 |
+
if (! empty($default_post_id)) {
|
| 89 |
+
$global_data = get_post_meta(
|
| 90 |
+
$default_post_id,
|
| 91 |
+
'_elementor_page_settings',
|
| 92 |
+
true
|
| 93 |
+
);
|
| 94 |
+
|
| 95 |
+
$data['elementor_active_kit_settings'] = $global_data;
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
return $data;
|
| 100 |
|
| 101 |
return serialize($data);
|
framework/features/demo-install/options-import.php
CHANGED
|
@@ -181,6 +181,25 @@ class DemoInstallOptionsInstaller {
|
|
| 181 |
) {
|
| 182 |
wp_update_custom_css_post($options['wp_css']);
|
| 183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
}
|
| 185 |
|
| 186 |
private function import_images($demo_content, $mods) {
|
| 181 |
) {
|
| 182 |
wp_update_custom_css_post($options['wp_css']);
|
| 183 |
}
|
| 184 |
+
|
| 185 |
+
/**
|
| 186 |
+
* Temporary work around until Elementor comes up with something better
|
| 187 |
+
*/
|
| 188 |
+
if (class_exists('\Elementor\Plugin')) {
|
| 189 |
+
$default_post_id = \Elementor\Plugin::$instance->kits_manager->get_active_id();
|
| 190 |
+
|
| 191 |
+
if (
|
| 192 |
+
! empty($default_post_id)
|
| 193 |
+
&&
|
| 194 |
+
isset($options['elementor_active_kit_settings'])
|
| 195 |
+
) {
|
| 196 |
+
update_post_meta(
|
| 197 |
+
$default_post_id,
|
| 198 |
+
'_elementor_page_settings',
|
| 199 |
+
$options['elementor_active_kit_settings']
|
| 200 |
+
);
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
}
|
| 204 |
|
| 205 |
private function import_images($demo_content, $mods) {
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Requires PHP: 7.0
|
|
| 5 |
Tested up to: 5.6
|
| 6 |
License: GPLv2 or later
|
| 7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
-
Stable tag: 1.7.
|
| 9 |
|
| 10 |
== Description ==
|
| 11 |
|
|
@@ -23,6 +23,9 @@ It runs and adds its enhancements only if the Blocksy theme is installed and act
|
|
| 23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
| 24 |
|
| 25 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 26 |
1.7.46: 2020-12-31
|
| 27 |
- Fix: Issue with affiliate marketing template
|
| 28 |
|
| 5 |
Tested up to: 5.6
|
| 6 |
License: GPLv2 or later
|
| 7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
+
Stable tag: 1.7.47
|
| 9 |
|
| 10 |
== Description ==
|
| 11 |
|
| 23 |
2. Activate the plugin by going to **Plugins** page in WordPress admin and clicking on **Activate** link.
|
| 24 |
|
| 25 |
== Changelog ==
|
| 26 |
+
1.7.47: 2021-01-05
|
| 27 |
+
- Improvement: Export/Import for current Elementor Kit
|
| 28 |
+
|
| 29 |
1.7.46: 2020-12-31
|
| 30 |
- Fix: Issue with affiliate marketing template
|
| 31 |
|
static/bundle/dashboard.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
static/bundle/options.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
-
* - v1.7.
|
| 3 |
*
|
| 4 |
-
* Copyright (c)
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
| 1 |
/**
|
| 2 |
+
* - v1.7.47
|
| 3 |
*
|
| 4 |
+
* Copyright (c) 2021
|
| 5 |
* Licensed GPLv2+
|
| 6 |
*/
|
| 7 |
|
