Skip to content

Commit 25e483a

Browse files
committed
Checkpoint local style manager work
1 parent 8e759ce commit 25e483a

8 files changed

Lines changed: 4698 additions & 4 deletions

dist/js/customizer-rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/plans/2026-03-24-voice-tuner.md

Lines changed: 692 additions & 0 deletions
Large diffs are not rendered by default.

plans/font-palette-card-explorer.html

Lines changed: 845 additions & 0 deletions
Large diffs are not rendered by default.

plans/font-palette-live-preview.md

Lines changed: 478 additions & 0 deletions
Large diffs are not rendered by default.

plans/font-palette-preview-prototype.html

Lines changed: 484 additions & 0 deletions
Large diffs are not rendered by default.

plans/font-palette-selection-explorer.html

Lines changed: 1820 additions & 0 deletions
Large diffs are not rendered by default.

src/Provider/GeneralAssets.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ protected function register_assets() {
9898
* @return void
9999
*/
100100
protected function print_inline_scripts() {
101-
$advanced_palettes_output = $this->options->get( 'sm_advanced_palette_output', wp_json_encode( [] ) );
101+
$runtime_palette_payload = \sm_get_palette_runtime_payload();
102+
$palettes = $runtime_palette_payload['palettes'];
102103
if ( function_exists( '\get_current_screen' ) ) {
103104
$screen = \get_current_screen();
104105
}
@@ -107,7 +108,7 @@ protected function print_inline_scripts() {
107108

108109
<script id="style-manager-colors-config">
109110
window.styleManager = window.styleManager || {};
110-
window.styleManager.colorsConfig = <?php echo wp_json_encode( json_decode( $advanced_palettes_output ) ); ?>;
111+
window.styleManager.colorsConfig = <?php echo wp_json_encode( $palettes ); ?>;
111112
window.styleManager.siteColorVariation = <?php echo absint( $this->options->get( 'sm_site_color_variation', 1 ) ) ?>;
112113
window.styleManager.colorsCustomPropertiesUrl = "<?php echo $this->plugin->get_url( 'dist/css/sm-colors-custom-properties.css' ); ?>";
113114
<?php if ( ( ! empty( $screen ) && $screen->is_block_editor() ) || is_customizer()) { ?>

0 commit comments

Comments
 (0)