original_string: public function get_button_labels() {
  		// Get just the mime type and strip the mime subtype if present.
  		$mime_type = ! empty( $this->mime_type )
  			? strtok( ltrim( $this->mime_type, '/' ), '/' )
  			: 'default';
  
  		switch ( $mime_type ) {
  			case 'video':
  				return [
  					'select'       => esc_html__( 'Select video', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change video', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No video selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select video', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose video', 'wplibs-form' ),
  				];
  			case 'audio':
  				return [
  					'select'       => esc_html__( 'Select audio', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change audio', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No audio selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select audio', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose audio', 'wplibs-form' ),
  				];
  			case 'image':
  				return [
  					'select'       => esc_html__( 'Select image', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change image', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No image selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select image', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose image', 'wplibs-form' ),
  				];
  			default:
  				return [
  					'select'       => esc_html__( 'Select file', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change file', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No file selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select file', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose file', 'wplibs-form' ),
  				];
  		} // End switch().
  	}
code: public function get_button_labels() {
  		// Get just the mime type and strip the mime subtype if present.
  		$mime_type = ! empty( $this->mime_type )
  			? strtok( ltrim( $this->mime_type, '/' ), '/' )
  			: 'default';
  
  		switch ( $mime_type ) {
  			case 'video':
  				return [
  					'select'       => esc_html__( 'Select video', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change video', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No video selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select video', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose video', 'wplibs-form' ),
  				];
  			case 'audio':
  				return [
  					'select'       => esc_html__( 'Select audio', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change audio', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No audio selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select audio', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose audio', 'wplibs-form' ),
  				];
  			case 'image':
  				return [
  					'select'       => esc_html__( 'Select image', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change image', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No image selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select image', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose image', 'wplibs-form' ),
  				];
  			default:
  				return [
  					'select'       => esc_html__( 'Select file', 'wplibs-form' ),
  					'change'       => esc_html__( 'Change file', 'wplibs-form' ),
  					'default'      => esc_html__( 'Default', 'wplibs-form' ),
  					'remove'       => esc_html__( 'Remove', 'wplibs-form' ),
  					'placeholder'  => esc_html__( 'No file selected', 'wplibs-form' ),
  					'frame_title'  => esc_html__( 'Select file', 'wplibs-form' ),
  					'frame_button' => esc_html__( 'Choose file', 'wplibs-form' ),
  				];
  		} // End switch().
  	}
code_tokens: public function get_button_labels ( ) { // Get just the mime type and strip the mime subtype if present. $ mime_type = ! empty ( $ this -> mime_type ) ? strtok ( ltrim ( $ this -> mime_type , '/' ) , '/' ) : 'default' ; switch ( $ mime_type ) { case 'video' : return [ 'select' => esc_html__ ( 'Select video' , 'wplibs-form' ) , 'change' => esc_html__ ( 'Change video' , 'wplibs-form' ) , 'default' => esc_html__ ( 'Default' , 'wplibs-form' ) , 'remove' => esc_html__ ( 'Remove' , 'wplibs-form' ) , 'placeholder' => esc_html__ ( 'No video selected' , 'wplibs-form' ) , 'frame_title' => esc_html__ ( 'Select video' , 'wplibs-form' ) , 'frame_button' => esc_html__ ( 'Choose video' , 'wplibs-form' ) , ] ; case 'audio' : return [ 'select' => esc_html__ ( 'Select audio' , 'wplibs-form' ) , 'change' => esc_html__ ( 'Change audio' , 'wplibs-form' ) , 'default' => esc_html__ ( 'Default' , 'wplibs-form' ) , 'remove' => esc_html__ ( 'Remove' , 'wplibs-form' ) , 'placeholder' => esc_html__ ( 'No audio selected' , 'wplibs-form' ) , 'frame_title' => esc_html__ ( 'Select audio' , 'wplibs-form' ) , 'frame_button' => esc_html__ ( 'Choose audio' , 'wplibs-form' ) , ] ; case 'image' : return [ 'select' => esc_html__ ( 'Select image' , 'wplibs-form' ) , 'change' => esc_html__ ( 'Change image' , 'wplibs-form' ) , 'default' => esc_html__ ( 'Default' , 'wplibs-form' ) , 'remove' => esc_html__ ( 'Remove' , 'wplibs-form' ) , 'placeholder' => esc_html__ ( 'No image selected' , 'wplibs-form' ) , 'frame_title' => esc_html__ ( 'Select image' , 'wplibs-form' ) , 'frame_button' => esc_html__ ( 'Choose image' , 'wplibs-form' ) , ] ; default : return [ 'select' => esc_html__ ( 'Select file' , 'wplibs-form' ) , 'change' => esc_html__ ( 'Change file' , 'wplibs-form' ) , 'default' => esc_html__ ( 'Default' , 'wplibs-form' ) , 'remove' => esc_html__ ( 'Remove' , 'wplibs-form' ) , 'placeholder' => esc_html__ ( 'No file selected' , 'wplibs-form' ) , 'frame_title' => esc_html__ ( 'Select file' , 'wplibs-form' ) , 'frame_button' => esc_html__ ( 'Choose file' , 'wplibs-form' ) , ] ; } // End switch(). }
docstring: Get the button labels.
  
  Provides an array of the default button labels based on the mime type of the current control.
  
  @return array An associative array of default button labels.
docstring_tokens: Get the button labels .