$header) { if (!isset($header['requirement']) || $header['requirement']) { $header_data = ''; if (!empty($header['sort'])) { if (!empty($header['name'])) { $header_data = $paginator->sort($header['sort'], $header['name']); } else { $header_data = $paginator->sort($header['sort']); } } else { if (!empty($header['element']) && $header['element'] === 'selector') { $header_data = sprintf( '', empty($header['select_all_class']) ? 'select_all' : $header['select_all_class'], empty($header['select_all_function']) ? 'onclick="toggleAllAttributeCheckboxes(this);"' : 'onclick="' . $header['select_all_function'] . '"' ); } else { $header_data = h($header['name']); } } $headersHtml .= sprintf( '%s', $header_data ); } } if ($actions) { $headersHtml .= sprintf( '%s', __('Actions') ); } $thead = ''; $thead .= $headersHtml; $thead .= ''; echo $thead; ?>