'white' => __( 'White', 'jetpack' ),
* Sanitizing the Carousel backgound color selection.
* @param string $value The color string to sanitize.
* @return string Sanitized value, 'white' or 'black'.
public function carousel_background_color_sanitize( $value ) {
return ( 'white' === $value ) ? 'white' : 'black';
* Callback to display text for the carousel_enable_it settings field.
public function carousel_enable_it_callback() {
$this->settings_checkbox( 'carousel_enable_it', __( 'Display images in full-size carousel slideshow.', 'jetpack' ) );
* Sanitize input for the `carousel_enable_it` setting.
* @param mixed $value User input.
* @return int Sanitized value, only 1 or 0.
public function carousel_enable_it_sanitize( $value ) {
return $this->sanitize_1or0_option( $value );