| @@ -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' ); |