| @@ -22,8 +22,9 @@ | ||
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if ( get_option('propertyhive_epcs_stored_as', '') == 'urls' ) |
| 25 | 25 | { |
| 26 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 26 | 27 | $epc_urls = $property->_epc_urls; |
| 27 | 28 | if ( is_array($epc_urls) && !empty( $epc_urls ) ) |
| 28 | 29 | { |
| 29 | 30 | echo '<div class="epcs">'; |
| @@ -29,8 +30,9 @@ | ||
| 29 | 30 | echo '<div class="epcs">'; |
| 30 | 31 | |
| 31 | 32 | echo '<h4>' . esc_html(__( 'EPCs', 'propertyhive' )) . '</h4>'; |
| 32 | 33 | |
| 34 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 33 | 35 | foreach ($epc_urls as $epc) |
| 34 | 36 | { |
| 35 | 37 | echo '<a href="' . esc_url($epc['url']) . '" data-fancybox="epcs" rel="nofollow"><img src="' . esc_url($epc['url']) . '" alt=""></a>'; |
| 36 | 38 | } |
| @@ -39,8 +41,9 @@ | ||
| 39 | 41 | } |
| 40 | 42 | } |
| 41 | 43 | else |
| 42 | 44 | { |
| 45 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 43 | 46 | $epc_attachment_ids = $property->get_epc_attachment_ids(); |
| 44 | 47 | |
| 45 | 48 | if ( !empty($epc_attachment_ids) ) |
| 46 | 49 | { |
| @@ -47,8 +50,9 @@ | ||
| 47 | 50 | echo '<div class="epcs">'; |
| 48 | 51 | |
| 49 | 52 | echo '<h4>' . esc_html(__( 'EPCs', 'propertyhive' )) . '</h4>'; |
| 50 | 53 | |
| 54 | + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 51 | 55 | foreach ( $epc_attachment_ids as $attachment_id ) |
| 52 | 56 | { |
| 53 | 57 | if ( wp_attachment_is_image($attachment_id) ) |
| 54 | 58 | { |