private static function get_table_start($col1, $col2, $class = null, $double_it = false)
{
$class_string = '';
if (is_string($class) && '' !== $class) {
$class_string = ' class="' . esc_attr($class) . '"';
}
$output = '
<table' . $class_string . '>
<thead>
<tr>
<th>' . esc_html($col1) . '</th>
<th>' . esc_html($col2) . '</th>
</tr>
</thead>';
if (true === $double_it) {
$output .= '
<tfoot>
<tr>
<th>' . esc_html($col1) . '</th>
<th>' . esc_html($col2) . '</th>
</tr>
</tfoot>';
}
$output .= '
<tbody>';
return apply_filters('db_pretty_output_table_header', $output);
}