add_panel( 'general_settings', array( 'priority' => 125, 'capability' => 'edit_theme_options', 'title' => __('General Settings', 'busi_prof'), ) ); /* Front Page section */ $wp_customize->add_section( 'front_page_section' , array( 'title' => __('Front Page', 'busi_prof'), 'panel' => 'general_settings', 'priority' => 0, ) ); // Enable Front Page $wp_customize->add_setting( 'busiprof_theme_options[front_page]', array( 'default' => 'yes', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'type'=>'option' )); $wp_customize->add_control( 'busiprof_theme_options[front_page]', array( 'label' => __( 'Enable Front Page', 'busi_prof' ), 'section' => 'front_page_section', 'type' => 'radio', 'choices' => array( 'yes'=>'ON', 'no'=>'OFF' ) )); /* custom logo section */ $wp_customize->add_section( 'logo_section' , array( 'title' => __('Custom Logo', 'busi_prof'), 'panel' => 'general_settings', 'priority' => 1, ) ); // Logo $wp_customize->add_setting( 'busiprof_theme_options[upload_image]',array('type' => 'option', 'sanitize_callback' => 'sanitize_text_field') ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'busiprof_theme_options[upload_image]', array( 'label' => __( 'Upload Logo', 'busi_prof' ), 'section' => 'logo_section', 'settings' => 'busiprof_theme_options[upload_image]', ) ) ); // width $wp_customize->add_setting( 'busiprof_theme_options[width]', array( 'default' => 115 , 'type' => 'option','sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'busiprof_theme_options[width]', array( 'label' => __( 'Width', 'busi_prof' ), 'section' => 'logo_section', 'type' => 'text', )); // height $wp_customize->add_setting( 'busiprof_theme_options[height]', array( 'default' => 40 , 'type' => 'option','sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'busiprof_theme_options[height]', array( 'label' => __( 'Height', 'busi_prof' ), 'section' => 'logo_section', 'type' => 'text', )); /* custom css section */ $wp_customize->add_section( 'custom_css_section' , array( 'title' => __('Custom CSS', 'busi_prof'), 'panel' => 'general_settings', 'priority' => 2, ) ); // custom css $wp_customize->add_setting( 'busiprof_theme_options[busiprof_custom_css]', array( 'default' => '' , 'type' => 'option', 'sanitize_callback' => 'wp_filter_nohtml_kses', 'sanitize_js_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'busiprof_theme_options[busiprof_custom_css]', array( 'label' => __( 'Custom CSS', 'busi_prof' ), 'section' => 'custom_css_section', 'type' => 'textarea', )); /* footer section */ $wp_customize->add_section( 'footer_copy_section' , array( 'title' => __('Copyright Text', 'busi_prof'), 'panel' => 'general_settings', 'priority' => 3, ) ); // copyright text $wp_customize->add_setting( 'busiprof_theme_options[footer_copyright_text]', array( 'default' => '
All Rights Reserved by BusiProf. Designed and Developed by WordPress Theme.
' , 'type' => 'option', 'sanitize_callback' => 'busiprof_copyright_sanitize_text', ) ); $wp_customize->add_control( 'busiprof_theme_options[footer_copyright_text]', array( 'label' => __( 'Footer Copyright Text', 'busi_prof' ), 'section' => 'footer_copy_section', 'type' => 'textarea', )); /* social icon section */ $wp_customize->add_section( 'social_icons_section' , array( 'title' => __('Social Icons', 'busi_prof'), 'panel' => 'general_settings', 'priority' => 4, ) ); //Layout Pro class busiprof_Customize_social_icon_upgrade extends WP_Customize_Control { public function render_content() { ?>