| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
|
| 8 |
fusion_builder_map( array( |
| 9 |
'name' => esc_attr__( 'Property Image', 'propertyhive' ), |
| 10 |
'shortcode' => 'avada_' . str_replace("-", "_", sanitize_title($widget)), |
| 11 |
'icon' => 'fusiona-image', // 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__( 'Image #', 'propertyhive' ), |
| 18 |
'param_name' => 'image_number', |
| 19 |
'input_type' => 'number', |
| 20 |
'value' => '1', |
| 21 |
], |
| 22 |
[ |
| 23 |
'type' => 'radio_button_set', |
| 24 |
'heading' => esc_attr__( 'Image Size', 'propertyhive' ), |
| 25 |
'param_name' => 'image_size', |
| 26 |
'value' => [ |
| 27 |
'thumbnail' => __( 'Thumbnail', 'propertyhive' ), |
| 28 |
'medium' => __( 'Medium', 'propertyhive' ), |
| 29 |
'large' => __( 'Large', 'propertyhive' ), |
| 30 |
'full' => __( 'Full', 'propertyhive' ), |
| 31 |
], |
| 32 |
'default' => 'large', |
| 33 |
], |
| 34 |
[ |
| 35 |
'type' => 'radio_button_set', |
| 36 |
'heading' => esc_attr__( 'Output Ratio', 'propertyhive' ), |
| 37 |
'param_name' => 'output_ratio', |
| 38 |
'value' => [ |
| 39 |
'' => __( 'Uploaded Ratio', 'propertyhive' ), |
| 40 |
'3:2' => __( '3:2', 'propertyhive' ), |
| 41 |
'4:3' => __( '4:3', 'propertyhive' ), |
| 42 |
'16:9' => __( '16:9', 'propertyhive' ), |
| 43 |
'1:1' => __( 'Square', 'propertyhive' ), |
| 44 |
], |
| 45 |
'default' => '', |
| 46 |
], |
| 47 |
), |
| 48 |
) ); |