add_section( 'header_layout_settings', array( 'title' => __( 'Header Layout', 'blossom-floral-pro' ), 'priority' => 10, 'panel' => 'layout_settings', ) ); /** Page Sidebar layout */ $wp_customize->add_setting( 'header_layout', array( 'default' => 'one', 'sanitize_callback' => 'blossom_floral_pro_sanitize_radio' ) ); $wp_customize->add_control( new Blossom_Floral_Pro_Radio_Image_Control( $wp_customize, 'header_layout', array( 'section' => 'header_layout_settings', 'label' => __( 'Header Layout', 'blossom-floral-pro' ), 'description' => __( 'Choose the layout of the header for your site.', 'blossom-floral-pro' ), 'choices' => array( 'one' => get_template_directory_uri() . '/images/header/one.svg', 'two' => get_template_directory_uri() . '/images/header/two.svg', 'three' => get_template_directory_uri() . '/images/header/three.svg', 'four' => get_template_directory_uri() . '/images/header/four.svg', 'five' => get_template_directory_uri() . '/images/header/five.svg', 'six' => get_template_directory_uri() . '/images/header/six.svg', 'seven' => get_template_directory_uri() . '/images/header/seven.svg', 'eight' => get_template_directory_uri() . '/images/header/eight.svg', ) ) ) ); $wp_customize->add_setting( 'header_layout_text', array( 'default' => '', 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( new Blossom_Floral_Pro_Note_Control( $wp_customize, 'header_layout_text', array( 'section' => 'header_layout_settings', 'description' => sprintf( __( '%1$sClick here%2$s to configure header settings.', 'blossom-floral-pro' ), '', '' ), ) ) ); } add_action( 'customize_register', 'blossom_floral_pro_customize_register_layout_header' );