| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
extract(shortcode_atts(array( |
| 6 |
'height' => '400', |
| 7 |
), $atts)); |
| 8 |
|
| 9 |
global $property; |
| 10 |
|
| 11 |
if ( !isset($property->id) ) { |
| 12 |
return; |
| 13 |
} |
| 14 |
|
| 15 |
// 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. |
| 16 |
$attributes = array(); |
| 17 |
if ( isset($atts['height']) && $atts['height'] != '' ) |
| 18 |
{ |
| 19 |
// 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. |
| 20 |
$attributes['height'] = $atts['height']; |
| 21 |
} |
| 22 |
|
| 23 |
get_property_street_view($attributes); |