add_panel( 'features_panel', array( 'priority' => 128, 'capability' => 'edit_theme_options', 'title' => __('Features Section', 'benzer'), ) ); // Features Settings Section // $wp_customize->add_section( 'features_setting', array( 'priority' => 1, 'title' => __('Settings','benzer'), 'panel' => 'features_panel', ) ); $wp_customize->add_setting( 'hide_show_features' , array( 'default' => __( 'on', 'benzer' ), 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_select', ) ); $wp_customize->add_control( 'hide_show_features' , array( 'label' => __( 'Hide / Show Section', 'benzer' ), 'section' => 'features_setting', 'settings' => 'hide_show_features', 'type' => 'radio', 'choices' => array( 'on' => __( 'Show', 'benzer' ), 'off' => __( 'Hide', 'benzer' ) ) ) ); // Features Header Section // $wp_customize->add_section( 'features_header', array( 'priority' => 2, 'title' => __('Header','benzer'), 'panel' => 'features_panel', ) ); // Features Title // $wp_customize->add_setting( 'features_title', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_html', ) ); $wp_customize->add_control( 'features_title', array( 'label' => __('Section Title','benzer'), 'section' => 'features_header', 'settings' => 'features_title', 'type' => 'text', ) ); // Features Description // $wp_customize->add_setting( 'features_description', array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_text', ) ); $wp_customize->add_control( 'features_description', array( 'label' => __('Section Description','benzer'), 'section' => 'features_header', 'settings' => 'features_description', 'type' => 'textarea', ) ); // Features Background Section // $wp_customize->add_section( 'features_background', array( 'priority' => 3, 'title' => __('Background','benzer'), 'panel' => 'features_panel', ) ); // Background Image // $wp_customize->add_setting( 'features_background_setting' , array( 'default' => '', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_url', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize , 'features_background_setting' , array( 'label' => __( 'Background Image', 'benzer' ), 'section' => 'features_background', 'settings' => 'features_background_setting', ) )); $wp_customize->add_setting( 'features_background_position' , array( 'default' => 'fixed', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'specia_sanitize_select', ) ); $wp_customize->add_control( 'features_background_position' , array( 'label' => __( 'Image Position', 'benzer' ), 'section' => 'features_background', 'settings' => 'features_background_position', 'type' => 'radio', 'choices' => array( 'fixed'=> __( 'Fixed', 'benzer' ), 'scroll' => __( 'Scroll', 'benzer' ) ) ) ); } add_action( 'customize_register', 'benzer_features_setting' ); ?>