# propertyhive/2.2.5/includes/salient-widgets/property-map-html.php

Property Hive, version 2.2.5. 31 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.5/code/includes/salient-widgets/property-map-html.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.5/raw/includes/salient-widgets/property-map-html.php
- Modified: 2024-04-11T11:02:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.2.5/code/includes/salient-widgets/property-map-html.php#L10-L20`.

```php
<?php 

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

extract(shortcode_atts(array(
	'height' => '400',
	'zoom' => '14',
	'scrollwheel' => 'true',
), $atts));

global $property;

if ( !isset($property->id) ) {
	return;
}

$attributes = array();
if ( isset($atts['height']) && $atts['height'] != '' )
{
	$attributes['height'] = $atts['height'];
}
if ( isset($atts['zoom']) && isset($atts['zoom']['size']) && $atts['zoom']['size'] != '' )
{
	$attributes['zoom'] = $atts['zoom']['size'];
}
if ( isset($atts['scrollwheel']) && $atts['scrollwheel'] != '' )
{
	$attributes['scrollwheel'] = $atts['scrollwheel'];
}

get_property_map($attributes);
```
