| @@ -21,10 +21,10 @@ | ||
| 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;"> | |
| 26 | - <div id="wrapper" dir="ltr" style="width: 600px; background-color: #fff; margin: 0 auto;border: 1px solid #dedede;box-shadow: 0 1px 4px rgb(0 0 0 / 10%);"> | |
| 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 | + <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;"> |
| 30 | 30 | <h2 style="margin:0;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #ab79a1; color: #ffffff; background-color: inherit;""> |
| @@ -40,9 +40,12 @@ | ||
| 40 | 40 | <?php foreach ($data as $key => $value) : ?> |
| 41 | 41 | <?php if (!empty($value)) : ?> |
| 42 | 42 | <?php if ($key == 'subject') continue; ?> |
| 43 | 43 | <p> |
| 44 | - <strong><?php echo esc_html(ucfirst(str_replace('_', ' ', $key))); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 44 | + <strong><?php | |
| 45 | + // Dynamic field values are registered in the translation catalog separately. | |
| 46 | + // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText | |
| 47 | + echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> | |
| 45 | 48 | </p> |
| 46 | 49 | <?php endif; ?> |
| 47 | 50 | <?php endforeach; ?> |
| 48 | 51 | <?php endif; ?> |