PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
← All changes | templates/emails/email-styles.php +6 -0 2.2.3 → 2.4.0 View file →
@@ -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 ?>