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-availability.php

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

63 lines 2.1 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 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 ) );