PluginProbe
Property Hive / 2.3.0
Property Hive v2.3.0
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-features.php

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

73 lines 2.4 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 Features', 'propertyhive' ),
10 'shortcode' => 'avada_' . str_replace("-", "_", sanitize_title($widget)),
11 'icon' => 'fusiona-list-ul', // 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__( 'Show Title', 'propertyhive' ),
18 'param_name' => 'show_title',
19 'value' => [
20 'on' => esc_attr__( 'On', 'propertyhive' ),
21 'off' => esc_attr__( 'Off', 'propertyhive' ),
22 ],
23 'default' => 'on',
24 ],
25 [
26 'type' => 'radio_button_set',
27 'heading' => esc_attr__( 'Alignment', 'propertyhive' ),
28 'description' => esc_attr__( 'Choose to align the output left, right or center.', 'propertyhive' ),
29 'param_name' => 'content_align',
30 'responsive' => [
31 'state' => 'large',
32 'default_value' => true,
33 ],
34 'value' => [
35 'left' => esc_attr__( 'Left', 'propertyhive' ),
36 'center' => esc_attr__( 'Center', 'propertyhive' ),
37 'right' => esc_attr__( 'Right', 'propertyhive' ),
38 ],
39 'default' => 'left',
40 'group' => esc_attr__( 'Design', 'propertyhive' ),
41 ],
42 [
43 'type' => 'typography',
44 //'remove_from_atts' => true,
45 'global' => true,
46 'heading' => esc_attr__( 'Typography', 'propertyhive' ),
47 'param_name' => 'main_typography',
48 'group' => esc_attr__( 'Design', 'propertyhive' ),
49 'choices' => [
50 'font-family' => 'features_font',
51 'font-size' => 'font_size',
52 'line-height' => 'line_height',
53 'letter-spacing' => 'letter_spacing',
54 'text-transform' => 'text_transform',
55 ],
56 'default' => [
57 'font-family' => '',
58 'variant' => '',
59 'font-size' => '',
60 'line-height' => '',
61 'letter-spacing' => '',
62 'text-transform' => '',
63 ],
64 ],
65 [
66 'type' => 'colorpickeralpha',
67 'heading' => esc_attr__( 'Font Color', 'propertyhive' ),
68 'param_name' => 'text_color',
69 'value' => '',
70 'group' => esc_attr__( 'Design', 'propertyhive' ),
71 ],
72 ),
73 ) );