PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 1.4.62 All 260 releases
propertyhive / includes / avada-widgets / property-map.php

property-map.php in Property Hive 2.3.0, at includes/avada-widgets/property-map.php

40 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7
8 fusion_builder_map( array(
9 'name' => esc_attr__( 'Property Map', 'propertyhive' ),
10 'shortcode' => 'avada_' . str_replace("-", "_", sanitize_title($widget)),
11 'icon' => 'fusiona-map', // Use a Fusion icon
12 //'preview' => dirname( PH_PLUGIN_FILE ) . '/includes/avada-widgets/' . sanitize_title($widget) . '-preview.php',
13 //'preview_id' => 'fusion-builder-block-module-' . sanitize_title($widget) . '-preview-template',
14 'params' => array(
15 [
16 'type' => 'textfield',
17 'heading' => esc_attr__( 'Height (px)', 'propertyhive' ),
18 'param_name' => 'height',
19 'input_type' => 'number',
20 'value' => 400,
21 ],
22 [
23 'type' => 'textfield',
24 'heading' => esc_attr__( 'Zoom', 'propertyhive' ),
25 'param_name' => 'zoom',
26 'input_type' => 'number',
27 'value' => 14,
28 ],
29 [
30 'type' => 'radio_button_set',
31 'heading' => esc_attr__( 'Scrollwheel Zoom', 'propertyhive' ),
32 'param_name' => 'scrollwheel',
33 'value' => [
34 'yes' => __( 'Yes', 'propertyhive' ),
35 'no' => __( 'No', 'propertyhive' ),
36 ],
37 'default' => 'yes',
38 ],
39 ),
40 ) );