| 1 |
<?php |
| 2 |
/** |
| 3 |
* Displays the table wrapper and includes the rest the table. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/charitable/tables/table.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' ) ) { exit; } |
| 15 |
|
| 16 |
if ( ! array_key_exists( 'helper', $view_args ) ) { |
| 17 |
return; |
| 18 |
} |
| 19 |
|
| 20 |
?> |
| 21 |
<table <?php echo $view_args['helper']->table_attributes() ?>> |
| 22 |
<thead> |
| 23 |
<?php charitable_template( 'tables/header.php', $view_args ) ?> |
| 24 |
</thead> |
| 25 |
<tbody> |
| 26 |
<?php array_walk( $view_args['helper']->data, array( $view_args['helper'], 'render_row' ) ) ?> |
| 27 |
</tbody> |
| 28 |
</table> |
| 29 |
|