PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.13.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.13.0
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
← All changes | includes/admin/export.php +6 -1 2.10.02.13.0 View file →
@@ -7,8 +7,9 @@
7 7 }
8 8
9 9 use ABlocks\Admin\Settings\Base;
10 10 use ABlocks\Helper;
11 +use ABlocks\Classes\GlobalClasses;
11 12
12 13 class Export {
13 14
14 15 public static function init() {
@@ -63,9 +64,13 @@
63 64 'ablocks_global_h5_typography' => $this->process_ablocks_json_data( 'global_h5_typography' ),
64 65 'ablocks_global_h6_color' => Helper::get_settings( 'global_h6_color', $default_settings['global_h6_color'] ),
65 66 'ablocks_global_h6_typography' => $this->process_ablocks_json_data( 'global_h6_typography' ),
66 67 'ablocks_frontend_dashboard_page' => $this->process_ablocks_json_data( 'frontend_dashboard_page' ),
67 - 'ablocks_frontend_dashboard_sub_pages' => base64_encode( get_option( 'ablocks_frontend_dashboard_sub_pages', '' ) )
68 + 'ablocks_frontend_dashboard_sub_pages' => base64_encode( get_option( 'ablocks_frontend_dashboard_sub_pages', '' ) ),
69 + // The atomic global-class library. Blocks save only class ids, so
70 + // without this the imported blocks resolve them to nothing and
71 + // render unstyled — silently, since nothing errors.
72 + 'ablocks_global_classes' => base64_encode( wp_json_encode( GlobalClasses::get_all() ) ),
68 73 );
69 74
70 75 if ( class_exists( 'StoreEngine' ) ) {
71 76 $options['storeengine_shop_page'] = \StoreEngine\Utils\Helper::get_settings( 'shop_page' );