esc_html__( 'Base Colors', 'bloghash' ), 'panel' => 'bloghash_panel_general', 'priority' => 20, ); // Accent color. $options['setting']['bloghash_accent_color'] = array( 'transport' => 'postMessage', 'sanitize_callback' => 'bloghash_sanitize_color', 'control' => array( 'type' => 'bloghash-color', 'label' => esc_html__( 'Accent Color', 'bloghash' ), 'description' => esc_html__( 'The accent color is used subtly throughout your site, to call attention to key elements.', 'bloghash' ), 'section' => 'bloghash_section_colors', 'priority' => 10, 'opacity' => false, ), ); // Dark mode $options['setting']['bloghash_dark_mode'] = array( 'transport' => 'refresh', 'sanitize_callback' => 'bloghash_sanitize_toggle', 'control' => array( 'type' => 'bloghash-toggle', 'label' => esc_html__( 'Dark mode', 'bloghash' ), 'description' => esc_html__( 'Enable dark mode.', 'bloghash' ), 'section' => 'bloghash_section_colors', 'priority' => 11, ), ); // Body background heading. $options['setting']['bloghash_body_background_heading'] = array( 'transport' => 'postMessage', 'sanitize_callback' => 'bloghash_sanitize_toggle', 'control' => array( 'type' => 'bloghash-heading', 'priority' => 40, 'label' => esc_html__( 'Body Background', 'bloghash' ), 'section' => 'bloghash_section_colors', 'toggle' => false, ), ); return $options; } } endif; new Bloghash_Customizer_Colors();