get_setting( 'wheeloflife_color' )->default = '#ecf7ff'; } } add_action( 'customize_register', 'blossom_speaker_overide_values', 999 ); function blossom_speaker_customize_register( $wp_customize ){ /* THEME INFO */ $wp_customize->add_section( 'theme_info', array( 'title' => __( 'Demo & Documentation' , 'blossom-speaker' ), 'priority' => 6, ) ); /** Important Links */ $wp_customize->add_setting( 'theme_info_theme', array( 'default' => '', 'sanitize_callback' => 'wp_kses_post', ) ); $theme_info = '
'; $theme_info .= sprintf( __( 'Demo Link: %1$sClick here.%2$s', 'blossom-speaker' ), '', '' ); $theme_info .= '
'; $theme_info .= sprintf( __( 'Documentation Link: %1$sClick here.%2$s', 'blossom-speaker' ), '', '' ); $theme_info .= '
'; $wp_customize->add_control( new Blossom_Coach_Note_Control( $wp_customize, 'theme_info_theme', array( 'section' => 'theme_info', 'description' => $theme_info ) ) ); /** Site Title Font */ $wp_customize->add_setting( 'site_title_font', array( 'default' => array( 'font-family' => 'Montserrat', 'variant' => '700', ), 'sanitize_callback' => array( 'Blossom_Coach_Fonts', 'sanitize_typography' ) ) ); $wp_customize->add_control( new Blossom_Coach_Typography_Control( $wp_customize, 'site_title_font', array( 'label' => __( 'Site Title Font', 'blossom-speaker' ), 'description' => __( 'Site title and tagline font.', 'blossom-speaker' ), 'section' => 'title_tagline', 'priority' => 60, ) ) ); /** Site Title Font Size*/ $wp_customize->add_setting( 'site_title_font_size', array( 'default' => 40, 'sanitize_callback' => 'blossom_coach_sanitize_number_absint' ) ); $wp_customize->add_control( new Blossom_Coach_Slider_Control( $wp_customize, 'site_title_font_size', array( 'section' => 'title_tagline', 'label' => __( 'Site Title Font Size', 'blossom-speaker' ), 'description' => __( 'Change the font size of your site title.', 'blossom-speaker' ), 'priority' => 65, 'choices' => array( 'min' => 10, 'max' => 200, 'step' => 1, ) ) ) ); /** Typography */ $wp_customize->add_section( 'typography_settings', array( 'title' => __( 'Typography', 'blossom-speaker' ), 'priority' => 20, 'panel' => 'appearance_settings', ) ); /** Primary Font */ $wp_customize->add_setting( 'primary_font', array( 'default' => 'Open Sans', 'sanitize_callback' => 'blossom_coach_sanitize_select' ) ); $wp_customize->add_control( new Blossom_Coach_Select_Control( $wp_customize, 'primary_font', array( 'label' => __( 'Primary Font', 'blossom-speaker' ), 'description' => __( 'Primary font of the site.', 'blossom-speaker' ), 'section' => 'typography_settings', 'choices' => blossom_coach_get_all_fonts(), ) ) ); /** Secondary Font */ $wp_customize->add_setting( 'secondary_font', array( 'default' => 'Montserrat', 'sanitize_callback' => 'blossom_coach_sanitize_select' ) ); $wp_customize->add_control( new Blossom_Coach_Select_Control( $wp_customize, 'secondary_font', array( 'label' => __( 'Secondary Font', 'blossom-speaker' ), 'description' => __( 'Secondary font of the site.', 'blossom-speaker' ), 'section' => 'typography_settings', 'choices' => blossom_coach_get_all_fonts(), ) ) ); $wp_customize->add_control( new Blossom_Coach_Toggle_Control( $wp_customize, 'ed_localgoogle_fonts', array( 'section' => 'typography_settings', 'label' => __( 'Load Google Fonts Locally', 'blossom-speaker' ), 'description' => __( 'Enable to load google fonts from your own server instead from google\'s CDN. This solves privacy concerns with Google\'s CDN and their sometimes less-than-transparent policies.', 'blossom-speaker' ) ) ) ); $wp_customize->add_setting( 'ed_preload_local_fonts', array( 'default' => false, 'sanitize_callback' => 'blossom_coach_sanitize_checkbox', ) ); $wp_customize->add_control( new Blossom_Coach_Toggle_Control( $wp_customize, 'ed_preload_local_fonts', array( 'section' => 'typography_settings', 'label' => __( 'Preload Local Fonts', 'blossom-speaker' ), 'description' => __( 'Preloading Google fonts will speed up your website speed.', 'blossom-speaker' ), 'active_callback' => 'blossom_coach_ed_localgoogle_fonts' ) ) ); ob_start(); ?> add_setting( 'ed_flush_local_fonts', array( 'sanitize_callback' => 'wp_kses_post', ) ); $wp_customize->add_control( 'ed_flush_local_fonts', array( 'label' => __( 'Flush Local Fonts Cache', 'blossom-speaker' ), 'section' => 'typography_settings', 'description' => $blossom_speaker_flush_button, 'type' => 'hidden', 'active_callback' => 'blossom_coach_ed_localgoogle_fonts' ) ); } add_action( 'customize_register', 'blossom_speaker_customize_register', 40 ); function blossom_speaker_remove_header_customize_register() { global $wp_customize; $wp_customize->remove_setting( 'phone' ); $wp_customize->remove_control( 'phone' ); $wp_customize->remove_setting( 'email' ); $wp_customize->remove_control( 'email' ); } add_action( 'customize_register', 'blossom_speaker_remove_header_customize_register', 1000 ); function blossom_coach_header(){ $ed_cart = get_theme_mod( 'ed_shopping_cart', true ); $ed_search = get_theme_mod( 'ed_header_search', false ); ?>