diff --git a/includes/class-admin.php b/includes/class-admin.php index ef89c8f9..fd4bcaec 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -95,8 +95,36 @@ public function render_page() { -

-

+

+

+ +   +

+ + + __( 'Essential — reset + design tokens only', 'slashed' ), + 'optimal' => __( 'Optimal — + layout, typography, states, forms (recommended)', 'slashed' ), + 'full' => __( 'Full — + utilities layer', 'slashed' ), + ); + foreach ( $bundles as $value => $label ) : + ?> + + + + + + + +

+

@@ -116,12 +144,10 @@ public function render_page() { esc_html( BRICKS_VERSION ) ); } else { - esc_html_e( 'Bricks Builder not detected — integration will have no effect until Bricks is installed.', 'slashed' ); + esc_html_e( 'Bricks Builder not detected.', 'slashed' ); } ?> - -  —  - +

@@ -133,36 +159,11 @@ public function render_page() { > -

+

-

-

- - - __( 'Essential — reset + design tokens only', 'slashed' ), - 'optimal' => __( 'Optimal — + layout, typography, states, forms (recommended)', 'slashed' ), - 'full' => __( 'Full — + utilities layer', 'slashed' ), - ); - foreach ( $bundles as $value => $label ) : - ?> - - - - - - - diff --git a/includes/class-core-enqueue.php b/includes/class-core-enqueue.php new file mode 100644 index 00000000..6803148f --- /dev/null +++ b/includes/class-core-enqueue.php @@ -0,0 +1,84 @@ +, not + // the surrounding wp-admin chrome. + $settings = Slashed_Token_Store::get_plugin_settings(); + $font_size = isset( $settings['html_font_size'] ) ? (string) $settings['html_font_size'] : ''; + if ( '100' === $font_size || '62.5' === $font_size ) { + wp_add_inline_style( 'slashed-framework', 'html { font-size: ' . $font_size . '% !important; }' ); + } + } +} diff --git a/includes/class-token-page.php b/includes/class-token-page.php index 93bde19a..90c9b5ea 100644 --- a/includes/class-token-page.php +++ b/includes/class-token-page.php @@ -97,14 +97,14 @@ public function enqueue_assets( $hook_suffix ) { $css_version = file_exists( $css_path ) ? (string) filemtime( $css_path ) : $js_version; wp_enqueue_style( - 'slashed-bricks-admin-app', + 'slashed-admin-app', $plugin_url . 'assets/admin-app/app.css', array(), $css_version ); wp_enqueue_script( - 'slashed-bricks-admin-app', + 'slashed-admin-app', $plugin_url . 'assets/admin-app/app.js', array(), $js_version, @@ -114,8 +114,8 @@ public function enqueue_assets( $hook_suffix ) { add_filter( 'script_loader_tag', array( $this, 'mark_as_module' ), 10, 3 ); wp_localize_script( - 'slashed-bricks-admin-app', - 'slashedBricksApp', + 'slashed-admin-app', + 'slashedApp', array( 'rest' => array( 'url' => esc_url_raw( rest_url( Slashed_REST_Controller::NAMESPACE ) ), @@ -156,7 +156,7 @@ public static function get_class_hints() { } public function mark_as_module( $tag, $handle, $src ) { - if ( 'slashed-bricks-admin-app' !== $handle ) { + if ( 'slashed-admin-app' !== $handle ) { return $tag; } return preg_replace( '/]*)>/', '