add_section( 'homepage_layout_manager_section' ,
array(
'title' => __('Manage Sections', 'busi_prof'),
'priority' => 130,
) );
//Layout Pro
class busiprof_Customize_section_upgrade extends WP_Customize_Control {
public function render_content() { ?>
add_setting( 'layout_upgrade', array(
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_filter_nohtml_kses',
));
$wp_customize->add_control(
new busiprof_Customize_section_upgrade(
$wp_customize,
'layout_upgrade',
array(
'label' => __('Busiprof Upgrade','busi_prof'),
'section' => 'homepage_layout_manager_section',
'settings' => 'layout_upgrade',
)
)
);
// section 1
$wp_customize->add_setting( 'busiprof_pro_theme_options[busi_layout_section1]', array( 'default' => 'slider' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[busi_layout_section1]',
array(
'label' => __( 'Section 1', 'busi_prof' ),
'section' => 'homepage_layout_manager_section',
'type' => 'select',
'choices' => array(
'slider'=>'slider',
)
));
// section 2
$wp_customize->add_setting( 'busiprof_pro_theme_options[busi_layout_section2]', array( 'default' => 'Service Section' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[busi_layout_section2]',
array(
'label' => __( 'Section 2', 'busi_prof' ),
'section' => 'homepage_layout_manager_section',
'type' => 'select',
'choices' => array(
'Service Section'=>'Service Section',
)
));
// section 3
$wp_customize->add_setting( 'busiprof_pro_theme_options[busi_layout_section3]', array( 'default' => 'Project Section' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[busi_layout_section3]',
array(
'label' => __( 'Section 3', 'busi_prof' ),
'section' => 'homepage_layout_manager_section',
'type' => 'select',
'choices' => array(
'Project Section'=>'Project Section',
)
));
// section 4
$wp_customize->add_setting( 'busiprof_pro_theme_options[busi_layout_section4]', array( 'default' => 'Testimonials section' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[busi_layout_section4]',
array(
'label' => __( 'Section 4', 'busi_prof' ),
'section' => 'homepage_layout_manager_section',
'type' => 'select',
'choices' => array(
'Testimonials section'=>'Testimonials section',
)
));
// section 5
$wp_customize->add_setting( 'busiprof_pro_theme_options[busi_layout_section5]', array( 'default' => 'Client strip' , 'type'=>'option', 'sanitize_callback' => 'sanitize_text_field' ) );
$wp_customize->add_control( 'busiprof_pro_theme_options[busi_layout_section5]',
array(
'label' => __( 'Section 5', 'busi_prof' ),
'section' => 'homepage_layout_manager_section',
'type' => 'select',
'choices' => array(
'Client strip'=>'Client strip',
)
));
}
add_action( 'customize_register', 'busiprof_home_page_manager_settings' );