| @@ -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;"> |
| @@ -39,11 +39,17 @@ | ||
| 39 | 39 | <?php else : ?> |
| 40 | 40 | <?php foreach ($data as $key => $value) : ?> |
| 41 | 41 | <?php if (!empty($value)) : ?> |
| 42 | 42 | <?php if(filter_var($value, FILTER_VALIDATE_URL ) || strpos( $value, 'http' ) !== FALSE):?> |
| 43 | - <strong><?php echo esc_html(ucfirst(str_replace('_', ' ', $key))); ?>:</strong> <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br /> | |
| 43 | + <strong><?php | |
| 44 | + // Dynamic field values are registered in the translation catalog separately. | |
| 45 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 46 | + echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <a href="<?php echo esc_url($value);?>"><?php echo wp_kses_post($value); ?></a><br /> | |
| 44 | 47 | <?php else : ?> |
| 45 | - <strong><?php echo esc_html(ucfirst(str_replace('_', ' ', $key))); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 48 | + <strong><?php | |
| 49 | + // Dynamic field values are registered in the translation catalog separately. | |
| 50 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 51 | + echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 46 | 52 | <?php endif; ?> |
| 47 | 53 | <p> |
| 48 | 54 | |
| 49 | 55 | </p> |