| @@ -21,9 +21,9 @@ | ||
| 21 | 21 | <title><?php echo wp_kses_post($subject); ?></title> |
| 22 | 22 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 23 | 23 | </head> |
| 24 | 24 | |
| 25 | -<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 48px 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;"> | |
| 25 | +<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;"> | |
| 26 | 26 | <div id="wrapper" dir="ltr" style="max-width: 600px; width:calc(100% - 30px); background-color: #fff; margin: 0 auto;border: 1px solid #dedede;box-shadow: 0 1px 4px rgb(0 0 0 / 10%);"> |
| 27 | 27 | |
| 28 | 28 | <!-- header --> |
| 29 | 29 | <div class="header" style="background-color: #2671cb;padding: 48px 48px;color: #FFF;"> |
| @@ -40,12 +40,15 @@ | ||
| 40 | 40 | <?php echo wp_kses_post($data); ?> |
| 41 | 41 | <?php else : ?> |
| 42 | 42 | <?php foreach ($data as $key => $value) : ?> |
| 43 | 43 | <?php if (!empty($value)) : ?> |
| 44 | - <?php if (!is_string($value)) continue; ?> | |
| 44 | + <?php if (!is_string($value) && !is_intval($value)) continue; ?> | |
| 45 | 45 | <?php if ($key == 'subject') continue; ?> |
| 46 | 46 | <p> |
| 47 | - <strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 47 | + <strong><?php | |
| 48 | + // Dynamic field values are registered in the translation catalog separately. | |
| 49 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 50 | + echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 48 | 51 | </p> |
| 49 | 52 | <?php endif; ?> |
| 50 | 53 | <?php endforeach; ?> |
| 51 | 54 | <?php endif; ?> |