| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
|
| 8 |
fusion_builder_map( array( |
| 9 |
'name' => esc_attr__( 'Property Availability', 'propertyhive' ), |
| 10 |
'shortcode' => 'avada_' . str_replace("-", "_", sanitize_title($widget)), |
| 11 |
'icon' => 'fusiona-flag', // 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' => 'radio_button_set', |
| 17 |
'heading' => esc_attr__( 'Alignment', 'propertyhive' ), |
| 18 |
'description' => esc_attr__( 'Choose to align the output left, right or center.', 'propertyhive' ), |
| 19 |
'param_name' => 'content_align', |
| 20 |
'responsive' => [ |
| 21 |
'state' => 'large', |
| 22 |
'default_value' => true, |
| 23 |
], |
| 24 |
'value' => [ |
| 25 |
'left' => esc_attr__( 'Left', 'propertyhive' ), |
| 26 |
'center' => esc_attr__( 'Center', 'propertyhive' ), |
| 27 |
'right' => esc_attr__( 'Right', 'propertyhive' ), |
| 28 |
], |
| 29 |
'default' => 'left', |
| 30 |
'group' => esc_attr__( 'Design', 'propertyhive' ), |
| 31 |
], |
| 32 |
[ |
| 33 |
'type' => 'typography', |
| 34 |
//'remove_from_atts' => true, |
| 35 |
'global' => true, |
| 36 |
'heading' => esc_attr__( 'Typography', 'propertyhive' ), |
| 37 |
'param_name' => 'main_typography', |
| 38 |
'group' => esc_attr__( 'Design', 'propertyhive' ), |
| 39 |
'choices' => [ |
| 40 |
'font-family' => 'availability_font', |
| 41 |
'font-size' => 'font_size', |
| 42 |
'line-height' => 'line_height', |
| 43 |
'letter-spacing' => 'letter_spacing', |
| 44 |
'text-transform' => 'text_transform', |
| 45 |
], |
| 46 |
'default' => [ |
| 47 |
'font-family' => '', |
| 48 |
'variant' => '', |
| 49 |
'font-size' => '', |
| 50 |
'line-height' => '', |
| 51 |
'letter-spacing' => '', |
| 52 |
'text-transform' => '', |
| 53 |
], |
| 54 |
], |
| 55 |
[ |
| 56 |
'type' => 'colorpickeralpha', |
| 57 |
'heading' => esc_attr__( 'Font Color', 'propertyhive' ), |
| 58 |
'param_name' => 'text_color', |
| 59 |
'value' => '', |
| 60 |
'group' => esc_attr__( 'Design', 'propertyhive' ), |
| 61 |
], |
| 62 |
), |
| 63 |
) ); |