PluginProbe
Property Hive / 2.2.3
Property Hive v2.2.3
2.3.1 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 All 261 releases
propertyhive / includes / avada-widgets / property-image.php

property-image.php in Property Hive 2.2.3, at includes/avada-widgets/property-image.php

43 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 fusion_builder_map( array(
4 'name' => esc_attr__( $widget, 'propertyhive' ),
5 'shortcode' => 'avada_' . str_replace("-", "_", sanitize_title($widget)),
6 'icon' => 'fusiona-image', // Use a Fusion icon
7 //'preview' => dirname( PH_PLUGIN_FILE ) . '/includes/avada-widgets/' . sanitize_title($widget) . '-preview.php',
8 //'preview_id' => 'fusion-builder-block-module-' . sanitize_title($widget) . '-preview-template',
9 'params' => array(
10 [
11 'type' => 'textfield',
12 'heading' => esc_attr__( 'Image #', 'fusion-builder' ),
13 'param_name' => 'image_number',
14 'input_type' => 'number',
15 'value' => '1',
16 ],
17 [
18 'type' => 'radio_button_set',
19 'heading' => esc_attr__( 'Image Size', 'fusion-builder' ),
20 'param_name' => 'image_size',
21 'value' => [
22 'thumbnail' => __( 'Thumbnail', 'propertyhive' ),
23 'medium' => __( 'Medium', 'propertyhive' ),
24 'large' => __( 'Large', 'propertyhive' ),
25 'full' => __( 'Full', 'propertyhive' ),
26 ],
27 'default' => 'large',
28 ],
29 [
30 'type' => 'radio_button_set',
31 'heading' => esc_attr__( 'Output Ratio', 'fusion-builder' ),
32 'param_name' => 'output_ratio',
33 'value' => [
34 '' => __( 'Uploaded Ratio', 'propertyhive' ),
35 '3:2' => __( '3:2', 'propertyhive' ),
36 '4:3' => __( '4:3', 'propertyhive' ),
37 '16:9' => __( '16:9', 'propertyhive' ),
38 '1:1' => __( 'Square', 'propertyhive' ),
39 ],
40 'default' => '',
41 ],
42 ),
43 ) );