add_section('footer_section', array( 'title' => esc_html__('Footer Settings','radix-multipurpose'), 'description' => esc_html__( 'Footer Settings:', 'radix-multipurpose' ), 'priority' => 10, 'panel' => 'honeypress_theme_panel', ) ); /************************* Eanble Footer *********************************/ $wp_customize->add_setting('footer_enable', array( 'default' => true, 'sanitize_callback' => 'radix_multipurpose_sanitize_checkbox' ) ); $wp_customize->add_control(new Honeypress_Toggle_Control( $wp_customize, 'footer_enable', array( 'label' => esc_html__( 'Hide/Show Footer', 'radix-multipurpose' ), 'section' => 'footer_section', 'type' => 'ios', 'priority' => 1, ) )); /************************* Copyright *********************************/ $wp_customize->add_setting('footer_copyright', array( 'default'=> '

'.__( 'Proudly powered by WordPress | Theme: Radix Multipurpose by SpiceThemes', 'radix-multipurpose' ).'

', 'capability' => 'edit_theme_options', 'sanitize_callback'=> 'radix_multipurpose_sanitize_text', ) ); $wp_customize->add_control('footer_copyright', array( 'label'=> esc_html__('Copyright Content','radix-multipurpose'), 'section'=> 'footer_section', 'type'=> 'textarea', 'priority'=> 2, 'active_callback'=> 'honeypress_footer_callback' ) ); } add_action('customize_register','radix_multipurpose_footer_customizer'); function radix_multipurpose_sanitize_checkbox( $checked ) { // Boolean check. return ( ( isset( $checked ) && true == $checked ) ? true : false ); } function radix_multipurpose_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); }