| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the table header. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/tables/header.php |
| 6 |
* |
| 7 |
* @author Studio 164a |
| 8 |
* @package Charitable/Templates/Tables |
| 9 |
* @since 1.5.0 |
| 10 |
* @version 1.5.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
|
| 18 |
if ( ! array_key_exists( 'helper', $view_args ) ) { |
| 19 |
return; |
| 20 |
} |
| 21 |
|
| 22 |
?> |
| 23 |
<tr> |
| 24 |
<?php foreach ( $view_args['helper']->columns as $key => $header ) : ?> |
| 25 |
<th scope="col" class="charitable-table-header-<?php echo esc_attr( $key ) ?>"><?php echo $header ?></th> |
| 26 |
<?php endforeach ?> |
| 27 |
</tr> |
| 28 |
|