| @@ -11,14 +11,20 @@ | ||
| 11 | 11 | |
| 12 | 12 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 | 13 | |
| 14 | 14 | // Load colours |
| 15 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 15 | 16 | $bg = get_option( 'propertyhive_email_background_color' ); |
| 17 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 16 | 18 | $body = get_option( 'propertyhive_email_body_background_color' ); |
| 19 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 17 | 20 | $text = get_option( 'propertyhive_email_text_color' ); |
| 18 | 21 | |
| 22 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 19 | 23 | $bg_darker_10 = ph_hex_darker( $bg, 10 ); |
| 24 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 20 | 25 | $body_darker_10 = ph_hex_darker( $body, 10 ); |
| 26 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. | |
| 21 | 27 | $text_lighter_20 = ph_hex_lighter( $text, 20 ); |
| 22 | 28 | |
| 23 | 29 | // !important; is a gmail hack to prevent styles being stripped if it doesn't like something. |
| 24 | 30 | ?> |
| @@ -99,9 +105,9 @@ | ||
| 99 | 105 | font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 100 | 106 | font-size: 18px; |
| 101 | 107 | font-weight: bold; |
| 102 | 108 | line-height: 130%; |
| 103 | - margin: 16px 0 8px; | |
| 109 | + margin: 0 0 8px; | |
| 104 | 110 | text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 105 | 111 | } |
| 106 | 112 | |
| 107 | 113 | h3 { |
| @@ -110,9 +116,9 @@ | ||
| 110 | 116 | font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; |
| 111 | 117 | font-size: 16px; |
| 112 | 118 | font-weight: bold; |
| 113 | 119 | line-height: 130%; |
| 114 | - margin: 16px 0 8px; | |
| 120 | + margin: 0 0 8px; | |
| 115 | 121 | text-align: <?php echo is_rtl() ? 'right' : 'left'; ?>; |
| 116 | 122 | } |
| 117 | 123 | |
| 118 | 124 | a { |