' );
if ( $this->settings['header_text'] ) {
fwrite( $this->handle, '' );
}
if( apply_filters( "woe_html_header_print_table", true) )
fwrite( $this->handle, '
' );
if ( $this->settings['display_column_names'] && count( $this->rows ) < 2 || count( $this->rows ) < 1 ) {
$this->rows[] = array( '' . __( 'No results', 'woo-order-export-lite' ) .' | ' );
}
foreach ( $this->rows as $num => $rec ) {
if ( $num == 0 AND ! empty( $this->settings['display_column_names'] ) ) {
fwrite( $this->handle,
'' . join( ' | ', $rec ) . " |
\n" );
} else {
fwrite( $this->handle, '' . join( ' | ', $rec ) . " |
\n" );
}
}
if (! empty( $this->settings['display_column_names'] ) && ! empty( $this->settings['repeat_header_last_line'] ) && $this->table_header_row) {
fwrite( $this->handle, '' . join( ' | ', $this->table_header_row ) . " |
\n" );
}
if( apply_filters( "woe_html_header_print_table", true) )
fwrite( $this->handle, '
' );
if ( $this->settings['footer_text'] ) {
fwrite( $this->handle, '' );
}
fwrite( $this->handle, '
' );
} else {
do_action( "woe_{$this->format}_print_footer", $this->handle, $this );
$this->table_header_row = $this->get_table_header_row();
if (! empty( $this->settings['display_column_names'] ) && ! empty( $this->settings['repeat_header_last_line'] ) && $this->table_header_row) {
if ( ! apply_filters( "woe_{$this->format}_custom_output_func", false, $this->handle, $this->table_header_row, true ) ) {
fwrite( $this->handle, '