get_render_attribute_string( 'wrapper' ); ?>>
get_render_attribute_string( 'table' ); ?>>
get_table_cells( $table_head, 'head' ); ?>
get_table_cells( $table_body, 'body' ); ?>
_close_wrap();
}
/**
* Get table cells html.
*
* @param array $data Cells data.
* @param string $context Context: 'head' or 'body'.
*
* @return string
*/
public function get_table_cells( $data = array(), $context = 'head' ) {
$settings = $this->get_settings_for_display();
$sorting = ( isset( $settings['sorting_table'] ) && filter_var( $settings['sorting_table'], FILTER_VALIDATE_BOOLEAN ) ) ? true : false;
$html = '';
$is_first_row = true;
if ( 'head' === $context ) {
$html .= '