separator( $wp_customize, esc_html__( 'Footer', 'brisko' ), self::$section ); // Copyright section . $wp_customize->add_setting( 'footer_copyright', array( 'default' => wp_kses_post( 'Copyright © 2020 ' . get_bloginfo( 'name' ) . '.' ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'footer_copyright', array( 'label' => esc_html__( 'Copyright Text', 'brisko' ), 'description' => esc_html__( 'edit footer section', 'brisko' ), 'section' => self::$section, 'settings' => 'footer_copyright', ) ); // Powered By. $wp_customize->add_setting( 'poweredby', array( 'default' => wp_kses_post( ' | Powered by Brisko WordPress Theme' ), 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'wp_kses_post', ) ); $wp_customize->add_control( 'poweredby', array( 'label' => esc_html__( 'Powered By', 'brisko' ), 'description' => esc_html__( 'edit Powered by section, html can be used', 'brisko' ), 'section' => self::$section, 'settings' => 'poweredby', 'type' => 'textarea', ) ); /** * Top Margin. */ ( new Control() )->header_title( $wp_customize, esc_html__( 'Top Margin', 'brisko' ), self::$section ); // Remove Top Margin. $wp_customize->add_setting( 'footer_remove_top_margin', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'brisko_sanitize_checkbox', ) ); $wp_customize->add_control( 'footer_remove_top_margin', array( 'label' => esc_html__( 'Remove Top Margin', 'brisko' ), 'description' => esc_html__( 'removes the top margin for footer section', 'brisko' ), 'section' => self::$section, 'type' => 'checkbox', ) ); // footer width . } }