separator( $wp_customize, esc_html__( 'General', 'brisko' ), self::$section ); /** * Link Color */ $wp_customize->add_setting( 'link_color', array( 'capability' => 'manage_options', 'default' => '#000000', 'transport' => self::$transport, 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new \WP_Customize_Color_Control( $wp_customize, 'link_color', array( 'label' => esc_html__( 'Link Color', 'brisko' ), 'description' => esc_html__( 'Select a color', 'brisko' ), 'section' => self::$section, ) ) ); /** * Enable Smooth scroll */ ( new Control() )->header_title( $wp_customize, esc_html__( 'Smooth Scroll', 'brisko' ), self::$section ); $wp_customize->add_setting( 'enable_smooth_scroll', array( 'default' => false, 'capability' => 'edit_theme_options', 'transport' => self::$transport, 'sanitize_callback' => 'brisko_sanitize_checkbox', ) ); $wp_customize->add_control( 'enable_smooth_scroll', array( 'label' => esc_html__( 'Enable Smooth Scroll', 'brisko' ), 'section' => self::$section, 'type' => 'checkbox', ) ); } }