PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | templates/email/email-table.php +6 -4 2.9.1 → 2.14.0 View file →
@@ -4,16 +4,18 @@
4 4 }
5 5 ?>
6 6 <table>
7 7 <tr>
8 - <th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Label', 'ablocks' ); ?></th>
8 + <th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Name', 'ablocks' ); ?></th>
9 9 <th style="text-align:center;padding:5px;background:gray;color:white"><?php esc_html_e( 'Value', 'ablocks' ); ?></th>
10 10 </tr>
11 11 <?php
12 -foreach ( $data as $input_id => $attr ) : ?>
12 +foreach ( $data as $input_id => $attr ) :
13 + $attr = apply_filters( 'ablocks/form_email_field', $attr, $input_id );
14 + ?>
13 15 <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 + <td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo \esc_html( $input_id ); ?>: </td>
17 + <td style="text-align:center;padding:5px;border:solid 1px gray;"><?php echo ( is_iterable( $attr['value'] ) ? wp_kses_post( implode( ', ', $attr['value'] ) ) : \wp_kses_post( $attr['value'] ) ); ?></td>
16 18 </tr>
17 19 <?php
18 20 endforeach;
19 21 ?>