| @@ -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 | 'map_link_type' => '_blank', |
| @@ -20,18 +21,23 @@ | ||
| 20 | 21 | { |
| 21 | 22 | return; |
| 22 | 23 | } |
| 23 | 24 | |
| 25 | +// 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. | |
| 24 | 26 | $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts ); |
| 25 | 27 | |
| 28 | +// 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 | 29 | $style = ''; |
| 27 | 30 | if ( ! empty( $atts['font_container'] ) && isset($atts['font_container']) ) |
| 28 | 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. | |
| 29 | 33 | $style = ph_extract_font_style_from_salient_font_container( $font_container ); |
| 30 | 34 | } |
| 31 | 35 | |
| 36 | +// 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(). | |
| 32 | 37 | echo '<div class="' . esc_attr( $css_class ) . '" ' . $style . '>'; |
| 33 | 38 | |
| 39 | + // 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. | |
| 34 | 40 | $link_type = ( isset($atts['map_link_type']) && !empty($atts['map_link_type']) ) ? $atts['map_link_type'] : '_blank'; |
| 35 | 41 | |
| 36 | 42 | switch ($link_type) |
| 37 | 43 | { |
| @@ -41,9 +47,9 @@ | ||
| 41 | 47 | break; |
| 42 | 48 | } |
| 43 | 49 | case "embedded": |
| 44 | 50 | { |
| 45 | - echo '<a href="#map_lightbox" data-fancybox>' . __( 'View Map', 'propertyhive' ) . '</a>'; | |
| 51 | + echo '<a href="#map_lightbox" data-fancybox>' . esc_html__( 'View Map', 'propertyhive' ) . '</a>'; | |
| 46 | 52 | |
| 47 | 53 | echo '<div id="map_lightbox" style="display:none; width:90%; max-width:800px;">'; |
| 48 | 54 | echo do_shortcode('[property_map]'); |
| 49 | 55 | echo '</div>'; |
| @@ -60,5 +66,5 @@ | ||
| 60 | 66 | break; |
| 61 | 67 | } |
| 62 | 68 | } |
| 63 | 69 | |
| 64 | -echo '</div>'; | |
| 70 | +echo '</div>'; | |