| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
?> |
| 6 |
<table> |
| 7 |
<tr> |
| 8 |
<th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Label', 'ablocks' ); ?></th> |
| 9 |
<th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Value', 'ablocks' ); ?></th> |
| 10 |
</tr> |
| 11 |
<?php |
| 12 |
foreach ( $data as $input_id => $attr ) : ?> |
| 13 |
<tr id="<?php echo esc_attr( $input_id ); ?>"> |
| 14 |
<td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo \esc_html( ucfirst( preg_replace( '/[_-]/m', ' ', $input_id ) ) ); ?>: </td> |
| 15 |
<td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo \esc_html( $attr['value'] ); ?></td> |
| 16 |
</tr> |
| 17 |
<?php |
| 18 |
endforeach; |
| 19 |
?> |
| 20 |
</table> |
| 21 |
|