| 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 |
) ); |