add_section( 'footer_settings', array( 'title' => __( 'Footer Settings', 'blossom-floral-pro' ), 'priority' => 199, 'capability' => 'edit_theme_options', ) ); /** Footer Copyright */ $wp_customize->add_setting( 'footer_copyright', array( 'default' => '', 'sanitize_callback' => 'wp_kses_post', 'transport' => 'postMessage' ) ); $wp_customize->add_control( 'footer_copyright', array( 'label' => __( 'Footer Copyright Text', 'blossom-floral-pro' ), 'description' => __( 'You can change footer copyright and use your own custom text from here. Use [the-year] shortcode to display current year & [the-site-link] shortcode to display site link.', 'blossom-floral-pro' ), 'section' => 'footer_settings', 'type' => 'textarea', ) ); $wp_customize->selective_refresh->add_partial( 'footer_copyright', array( 'selector' => '.site-info .copyright', 'render_callback' => 'blossom_floral_pro_get_footer_copyright', ) ); /** Hide Author Link */ $wp_customize->add_setting( 'ed_author_link', array( 'default' => false, 'sanitize_callback' => 'blossom_floral_pro_sanitize_checkbox', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Blossom_Floral_Pro_Toggle_Control( $wp_customize, 'ed_author_link', array( 'section' => 'footer_settings', 'label' => __( 'Hide Author Link', 'blossom-floral-pro' ), ) ) ); $wp_customize->selective_refresh->add_partial( 'ed_author_link', array( 'selector' => '.site-info .author-link', 'render_callback' => 'blossom_floral_pro_ed_author_link', ) ); /** Hide WordPress Link */ $wp_customize->add_setting( 'ed_wp_link', array( 'default' => false, 'sanitize_callback' => 'blossom_floral_pro_sanitize_checkbox', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new Blossom_Floral_Pro_Toggle_Control( $wp_customize, 'ed_wp_link', array( 'section' => 'footer_settings', 'label' => __( 'Hide WordPress Link', 'blossom-floral-pro' ), ) ) ); $wp_customize->selective_refresh->add_partial( 'ed_wp_link', array( 'selector' => '.site-info .wp-link', 'render_callback' => 'blossom_floral_pro_ed_wp_link', ) ); $wp_customize->add_setting( 'footer_bg_image', array( 'default' => get_template_directory_uri() . '/images/footer-bg-2.png', 'sanitize_callback' => 'blossom_floral_pro_sanitize_image', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'footer_bg_image', array( 'label' => __( 'Background Image', 'blossom-floral-pro' ), 'description'=> __( 'Choose background Image of your choice for footer section. The recommended size for image is 1920px by 566px in PNG format.', 'blossom-floral-pro' ), 'section' => 'footer_settings', ) ) ); $wp_customize->add_setting( 'footer_top_image', array( 'default' => get_template_directory_uri() . '/images/footer-right-flower.png', 'sanitize_callback' => 'blossom_floral_pro_sanitize_image', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'footer_top_image', array( 'label' => __( 'Footer Secondary Image', 'blossom-floral-pro' ), 'description'=> __( 'This will appear at the top right corner of footer section. The recommended size for image is 222px by 238px in PNG format.', 'blossom-floral-pro' ), 'section' => 'footer_settings', ) ) ); $wp_customize->add_setting( 'footer_bottom_image', array( 'default' => get_template_directory_uri() . '/images/footer-flower.png', 'sanitize_callback' => 'blossom_floral_pro_sanitize_image', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'footer_bottom_image', array( 'label' => __( 'Footer Tertiary Image', 'blossom-floral-pro' ), 'description'=> __( 'This will appear at the bottom left corner of footer section. The recommended size for image is 95px by 66px in PNG format.', 'blossom-floral-pro' ), 'section' => 'footer_settings', ) ) ); } add_action( 'customize_register', 'blossom_floral_pro_customize_register_footer' );