add_section( 'bootstrap_fitness_footer_section', array( 'title' => esc_html__( 'Footer Section', 'bootstrap-fitness' ), 'panel' => 'bootstrap_fitness_general_panel', 'priority' => 5, ) ); $wp_customize->add_setting( 'bootstrap_fitness_footer_layout', array( 'capability' => 'edit_theme_options', 'default' => '4', 'sanitize_callback' => 'bootstrap_fitness_sanitize_select', 'transport' => 'postMessage', ) ); $wp_customize->add_control( 'bootstrap_fitness_footer_layout', array( 'label' => esc_html__( 'Number of footer widgets', 'bootstrap-fitness' ), 'section' => 'bootstrap_fitness_footer_section', 'type' => 'select', 'default' => '4', 'choices' => array( '0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, ) ) ); $wp_customize->selective_refresh->add_partial( 'bootstrap_fitness_footer_layout', array( 'selector' => '#footer-widgets', 'settings' => array( 'bootstrap_fitness_footer_layout' ), 'render_callback' => 'bootstrap_fitness_footer_widgets', 'container_inclusive' => true, ) ); $wp_customize->add_setting( 'bf_copyright_text', array( 'transport' => 'postMessage', 'sanitize_callback' => 'wp_kses_post', 'default' => '' ) ); $wp_customize->add_control( 'bf_copyright_text', array( 'label' => esc_html__( 'Copyright :', 'bootstrap-fitness' ), 'section' => 'bootstrap_fitness_footer_section', 'type'=> 'textarea', ) ); $wp_customize->selective_refresh->add_partial( 'bf_copyright_text', array( 'selector' => '.footer .copyright span.editable', 'render_callback' => 'bootstrap_fitness_get_copyright' ) ); if ( fs_bootstrap_fitness()->is_free_plan() ) { $wp_customize->add_setting( 'bootstrap_fitness_footer_upgrade_to_pro', array( 'sanitize_callback' => null, ) ); $wp_customize->add_control( new Bootstrap_Fitness_Control_Upgrade_To_Pro( $wp_customize, 'bootstrap_fitness_footer_upgrade_to_pro', array( 'section' => 'bootstrap_fitness_footer_section', 'settings' => 'bootstrap_fitness_footer_upgrade_to_pro', 'title' => __( 'Want the full control over your copyright?', 'bootstrap-fitness' ), 'items' => array( 'one' => array( 'title' => __( 'Remove WordPress links from the copyright', 'bootstrap-fitness' ), ), ), 'button_url' => esc_url( 'https://thebootstrapthemes.com/fitness-gym/#free-vs-pro' ), 'button_text' => __( 'Upgrade Now', 'bootstrap-fitness' ), ) ) ); } }