ACF City Selector

'; if ( array_key_exists( 'error', $csv_info ) ) { if ( 'file_deleted' == $csv_info[ 'error' ] ) { echo '
'; echo '

'; echo sprintf( esc_html__( 'You either have errors in your CSV or there is no data. In case of an error, the file is deleted. Please check "%s".', 'acf-city-selector' ), $file_name ); echo '

'; echo ''; echo '
'; } elseif ( ! isset( $csv_info[ 'data' ] ) || ( isset( $csv_info[ 'data' ] ) && empty( $csv_info[ 'data' ] ) ) ) { echo '
'; echo esc_html__( 'There appears to be no data in the file. Are you sure it has content and you selected the correct delimiter ?', 'acf-city-selector' ); echo '
'; } } elseif ( isset( $csv_info[ 'data' ] ) && ! empty( $csv_info[ 'data' ] ) ) { echo '

' . esc_html__( 'CSV contents', 'acf-city-selector' ) . '

'; echo '

' . esc_html__( 'Table scrolls horizontally.', 'acf-city-selector' ) . '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $line_number = 0; foreach ( $csv_info[ 'data' ] as $line ) { $line_number++; echo ''; foreach ( $line as $column ) { echo ''; } echo ''; } echo ''; echo '
' . esc_html__( 'City', 'acf-city-selector' ) . '' . esc_html__( 'State code', 'acf-city-selector' ) . '' . esc_html__( 'State', 'acf-city-selector' ) . '' . esc_html__( 'Country code', 'acf-city-selector' ) . '' . esc_html__( 'Country', 'acf-city-selector' ) . '
'; echo stripslashes( htmlspecialchars( $column ) ); echo '
'; } echo '
'; } ?>