# ablocks/2.9.1/templates/email/email-table.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.9.1. 21 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/templates/email/email-table.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/templates/email/email-table.php
- Modified: 2025-04-22T12:59:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.9.1/code/templates/email/email-table.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>
<table>
<tr>
	<th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Label', 'ablocks' ); ?></th>
	<th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Value', 'ablocks' ); ?></th>
</tr>
<?php
foreach ( $data as $input_id => $attr ) : ?>
	<tr id="<?php echo esc_attr( $input_id ); ?>">
		<td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo \esc_html( ucfirst( preg_replace( '/[_-]/m', ' ', $input_id ) ) ); ?>: </td>
		<td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo \esc_html( $attr['value'] ); ?></td>
	</tr>
	<?php
endforeach;
?>
</table>

```
