[ 'domain' => $domain, 'lang' => is_admin() ? get_user_locale() : get_locale(), ], ]; if (! empty($translations->headers['Plural-Forms'])) { $locale['']['plural_forms'] = $translations->headers['Plural-Forms']; } foreach ( $translations->entries as $msgid => $entry ) { $locale[ $msgid ] = $entry->translations; } return $locale; } add_action( 'admin_enqueue_scripts', function () { $theme = wp_get_theme(); wp_enqueue_media(); $deps = apply_filters('blocksy-options-scripts-dependencies', [ 'underscore', 'wp-color-picker', 'react', 'react-dom', 'wp-element', 'wp-components', 'wp-date', 'wp-i18n', // 'wp-polyfill' ]); global $wp_customize; if ( ! isset( $wp_customize ) ) { wp_enqueue_script( 'ct-options-scripts', get_template_directory_uri() . '/static/bundle/options.js', $deps, $theme->get( 'Version' ), true ); } $locale_data_ct = blocksy_get_jed_locale_data( 'blocksy' ); wp_add_inline_script( 'wp-i18n', 'wp.i18n.setLocaleData( ' . wp_json_encode( $locale_data_ct ) . ', "blocksy" );' ); wp_enqueue_style( 'ct-options-styles', get_template_directory_uri() . '/static/bundle/options.css', ['wp-color-picker'], $theme->get( 'Version' ) ); wp_localize_script( 'ct-options-scripts', 'ct_localizations', [ 'is_dev_mode' => !!(defined('BLOCKSY_DEVELOPMENT_MODE') && BLOCKSY_DEVELOPMENT_MODE), 'ajax_url' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ct-ajax-nonce' ), 'public_url' => get_template_directory_uri() . '/static/bundle/', 'static_public_url' => get_template_directory_uri() . '/static/', 'rest_url' => get_rest_url(), ] ); } ); add_action('admin_notices', function () { blocksy_output_companion_notice(); blocksy_output_header_builder_notice(); }); function blocksy_output_companion_notice() { if (! current_user_can('activate_plugins') ) return; if (get_option('dismissed-blocksy_plugin_notice', false)) return; $manager = new Blocksy_Plugin_Manager(); $status = $manager->get_plugin_status('blocksy-companion'); if ($status === 'active') return; $url = admin_url('themes.php?page=ct-dashboard'); $plugin_url = admin_url('admin.php?page=ct-dashboard'); $plugin_link = 'http://creativethemes.com/downloads/blocksy-companion.zip'; echo '
Plugin. .
'; echo 'We are in the process of rebuilding our Header option experience.
In the next update we will release the Header Builder module, it will give you the power and freedoom to build any kind of header in just a few minutes.
This means that you will have to rebuild your header from scratch (this won't touch the already configured logo and menu elements).