PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
ablocks / includes / blocks / academy-review-form / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.14.0, at includes/blocks/academy-review-form/attributes.php

166 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use ABlocks\Controls\Typography;
4 use ABlocks\Controls\Background;
5 use ABlocks\Controls\Border;
6 use ABlocks\Controls\Dimensions;
7 use ABlocks\Controls\Range;
8 use ABlocks\Controls\BoxShadow;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 $attributes = [
15 'block_id' => array(
16 'type' => 'string',
17 'default' => '',
18 ),
19 'course_id' => array(
20 'type' => 'number',
21 'default' => 0,
22 ),
23 'review_bg' => array(
24 'type' => 'string',
25 'default' => '#fff',
26 ),
27 'blockVersion' => array(
28 'type' => 'number',
29 'default' => 2,
30 ),
31 'review_bg_hover' => array(
32 'type' => 'string',
33 'default' => '#fff',
34 ),
35 'review_btn' => array(
36 'type' => 'string',
37 'default' => '#fff',
38 ),
39 'review_btn_hover' => array(
40 'type' => 'string',
41 'default' => '#fff',
42 ),
43 'review_btn_bg' => array(
44 'type' => 'string',
45 'default' => '#7b68ee',
46 ),
47 'review_btn_bg_hover' => array(
48 'type' => 'string',
49 'default' => '#7b68ee',
50 ),
51 'starColor' => array(
52 'type' => 'string',
53 'default' => '#f4c150',
54 ),
55 'starColorH' => array(
56 'type' => 'string',
57 'default' => '#f4c150',
58 ),
59 'formColor' => array(
60 'type' => 'string',
61 'default' => '#444',
62 ),
63 'formColorH' => array(
64 'type' => 'string',
65 'default' => '#444',
66 ),
67 'formBg' => array(
68 'type' => 'string',
69 'default' => '#E5E4E6',
70 ),
71 'formBgH' => array(
72 'type' => 'string',
73 'default' => '#E5E4E6',
74 ),
75 'formBtnColor' => array(
76 'type' => 'string',
77 'default' => '#fff',
78 ),
79 'formBtnColorH' => array(
80 'type' => 'string',
81 'default' => '#fff',
82 ),
83 'formBtnBg' => array(
84 'type' => 'string',
85 'default' => '#7b68ee',
86 ),
87 'formBtnBgH' => array(
88 'type' => 'string',
89 'default' => '#7b68ee',
90 ),
91
92 ];
93
94 $attributes = array_merge(
95 $attributes,
96 Typography::get_attribute( 'review_btn_typography', true ),
97 Typography::get_attribute( 'formTypography', true ),
98 Typography::get_attribute( 'review_btn_typography', true ),
99 Typography::get_attribute( 'formBtnTypography', true ),
100 Border::get_attribute( 'border', true ),
101 Border::get_attribute( 'formBorder', true ),
102 Dimensions::get_attribute( 'padding', true ),
103 Dimensions::get_attribute( 'formBtnPadding', true ),
104 Dimensions::get_attribute( 'button_padding', true ),
105 BoxShadow::get_attribute( 'boxShadow', true ),
106 Range::get_attribute([
107 'attributeName' => 'box_width',
108 'attributeObjectKey' => 'value',
109 'isResponsive' => true,
110 'defaultValue' => 100,
111 'hasUnit' => true,
112 'unitDefaultValue' => '%',
113 ]),
114 Range::get_attribute([
115 'attributeName' => 'startSize',
116 'attributeObjectKey' => 'value',
117 'isResponsive' => true,
118 'defaultValue' => 16,
119 'hasUnit' => true,
120 'unitDefaultValue' => 'px',
121 ]),
122 Range::get_attribute([
123 'attributeName' => 'box_transition',
124 'attributeObjectKey' => 'value',
125 'isResponsive' => false,
126 'defaultValue' => 0,
127 'hasUnit' => false,
128 'unitDefaultValue' => 's',
129 ]),
130 Range::get_attribute([
131 'attributeName' => 'btn_transition',
132 'attributeObjectKey' => 'value',
133 'isResponsive' => false,
134 'defaultValue' => 0,
135 'hasUnit' => false,
136 'unitDefaultValue' => 's',
137 ]),
138 Range::get_attribute([
139 'attributeName' => 'startT',
140 'attributeObjectKey' => 'value',
141 'isResponsive' => false,
142 'defaultValue' => 0,
143 'hasUnit' => false,
144 'unitDefaultValue' => 's',
145 ]),
146 Range::get_attribute([
147 'attributeName' => 'formTransition',
148 'attributeObjectKey' => 'value',
149 'isResponsive' => false,
150 'defaultValue' => 0,
151 'hasUnit' => false,
152 'unitDefaultValue' => 's',
153 ]),
154 Range::get_attribute([
155 'attributeName' => 'formBtnT',
156 'attributeObjectKey' => 'value',
157 'isResponsive' => false,
158 'defaultValue' => 0,
159 'hasUnit' => false,
160 'unitDefaultValue' => 's',
161 ]),
162 );
163
164 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
165
166