| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 | 4 | |
| 5 | +// 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. | |
| 5 | 6 | $css = ''; |
| 6 | 7 | |
| 7 | 8 | extract(shortcode_atts(array( |
| 8 | 9 | "show_title" => "yes", |
| @@ -24,17 +25,21 @@ | ||
| 24 | 25 | </style> |
| 25 | 26 | <?php |
| 26 | 27 | } |
| 27 | 28 | |
| 29 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- WPBakery/Visual Composer framework filter constant; the integration requires the framework hook name unchanged. WPBakery html_template local variable; this file is a framework-rendered view receiving $atts/$this, and PrefixAllGlobals sees it outside the framework render scope. | |
| 28 | 30 | $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); |
| 29 | 31 | |
| 32 | +// 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. | |
| 30 | 33 | $style = ''; |
| 31 | 34 | if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) ) |
| 32 | 35 | { |
| 36 | + // 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 | 37 | $style = ph_extract_font_style_from_salient_font_container( $font_container ); |
| 34 | 38 | } |
| 35 | 39 | |
| 40 | +// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The style fragment is built by ph_extract_font_style_from_salient_font_container() using safecss_filter_attr() and esc_attr(). | |
| 36 | 41 | echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>'; |
| 37 | 42 | |
| 38 | 43 | propertyhive_template_single_features(); |
| 39 | 44 | |
| 40 | -echo '</div>'; | |
| 45 | +echo '</div>'; | |