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/single-property/property-thumbnails.php +9 -1 2.2.2 → 2.4.0 View file →
@@ -18,24 +18,32 @@
18 18
19 19 <ul class="slides">
20 20 <?php
21 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.
22 23 $loop = 0;
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.
23 25 $columns = apply_filters( 'propertyhive_property_thumbnails_columns', 3 );
24 26
27 + // 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.
25 28 foreach ($images as $image)
26 29 {
27 30
31 + // 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.
28 32 $classes = array();
29 33
30 34 if ( $loop == 0 || $loop % $columns == 0 )
35 + // 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.
31 36 $classes[] = 'first';
32 37
33 38 if ( ( $loop + 1 ) % $columns == 0 )
39 + // 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.
34 40 $classes[] = 'last';
35 41
42 + // 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.
36 43 $image_class = esc_attr( implode( ' ', $classes ) );
37 44
45 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The image producer escapes its attributes; preserve the trusted PHP thumbnail HTML filter.
38 46 echo '<li>' . apply_filters( 'propertyhive_single_property_image_thumbnail_html', $image['image'], ( isset($image['attachment_id']) ? $image['attachment_id'] : '' ) , $post->ID, $image_class ) . '</li>';
39 47
40 48 ++$loop;
41 49 }
@@ -44,5 +52,5 @@
44 52 </ul>
45 53
46 54 </div>
47 55 <?php
48 -}
56 +}