Bottom Area * * @uses $wp_customize->add_section() https://developer.wordpress.org/reference/classes/wp_customize_manager/add_section/ * @since 1.0.0 */ $wp_customize->add_section( new Blogbuster_Customize_Section ( $wp_customize, 'blogbuster_section_footer_bottom', array( 'priority' => 20, 'panel' => 'blogbuster_panel_footer', 'title' => __( 'Bottom Area', 'blogbuster' ), ) ) ); /** * Toggle option for footer bottom area * * Footer Settings > Bottom Area * * @since 1.0.0 */ $wp_customize->add_setting( 'blogbuster_footer_bottom_enable', array( 'default' => blogbuster_get_customizer_default( 'blogbuster_footer_bottom_enable' ), 'sanitize_callback' => 'blogbuster_sanitize_checkbox' ) ); $wp_customize->add_control( new Blogbuster_Control_Toggle( $wp_customize, 'blogbuster_footer_bottom_enable', array( 'priority' => 15, 'section' => 'blogbuster_section_footer_bottom', 'settings' => 'blogbuster_footer_bottom_enable', 'label' => __( 'Enable footer bottom area.', 'blogbuster' ) ) ) ); /** * Textarea field for copyright content * * Footer Settings > Bottom Area * * @since 1.0.0 */ $wp_customize->add_setting( 'blogbuster_footer_copyright_info', array( 'default' => blogbuster_get_customizer_default( 'blogbuster_footer_copyright_info' ), 'transport' => 'postMessage', 'sanitize_callback' => 'wp_kses_post' ) ); $wp_customize->add_control( 'blogbuster_footer_copyright_info', array( 'priority' => 25, 'section' => 'blogbuster_section_footer_bottom', 'settings' => 'blogbuster_footer_copyright_info', 'label' => __( 'Copyright Content', 'blogbuster' ), 'type' => 'textarea' ) ); } endif;