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
← All changes | includes/blocks/academy-course-reviews/attributes.php +211 -0 2.7.4 → 2.14.0 View file →
@@ -1,0 +1,211 @@
1 +<?php
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +use ABlocks\Controls\Typography;
8 +use ABlocks\Controls\Background;
9 +use ABlocks\Controls\Border;
10 +use ABlocks\Controls\Dimensions;
11 +use ABlocks\Controls\Range;
12 +use ABlocks\Controls\BoxShadow;
13 +
14 +
15 +$attributes = [
16 + 'block_id' => array(
17 + 'type' => 'string',
18 + 'default' => '',
19 + ),
20 + 'course_id' => array(
21 + 'type' => 'number',
22 + 'default' => 0,
23 + ),
24 + 'blockVersion' => array(
25 + 'type' => 'number',
26 + 'default' => 2,
27 + ),
28 + 'heading_color' => array(
29 + 'type' => 'string',
30 + 'default' => '#111',
31 + ),
32 + 'heading_hover_color' => array(
33 + 'type' => 'string',
34 + 'default' => '#111',
35 + ),
36 + 'section_bg_hover' => array(
37 + 'type' => 'string',
38 + 'default' => '#FFF',
39 + ),
40 + 'section_bg' => array(
41 + 'type' => 'string',
42 + 'default' => '#FFF',
43 + ),
44 + 'avg_color' => array(
45 + 'type' => 'string',
46 + 'default' => '#111',
47 + ),
48 + 'avg_color_hover' => array(
49 + 'type' => 'string',
50 + 'default' => '#111',
51 + ),
52 + 'rating_color_hover' => array(
53 + 'type' => 'string',
54 + 'default' => '#f4c150',
55 + ),
56 + 'rating_color' => array(
57 + 'type' => 'string',
58 + 'default' => '#f4c150',
59 + ),
60 + 'total_rating_color' => array(
61 + 'type' => 'string',
62 + 'default' => '#999',
63 + ),
64 + 'total_rating_hover' => array(
65 + 'type' => 'string',
66 + 'default' => '#999',
67 + ),
68 + 'listColor' => array(
69 + 'type' => 'string',
70 + 'default' => '#999',
71 + ),
72 + 'listColorH' => array(
73 + 'type' => 'string',
74 + 'default' => '#999',
75 + ),
76 + 'starColorH' => array(
77 + 'type' => 'string',
78 + 'default' => '#f4c150',
79 + ),
80 + 'starColor' => array(
81 + 'type' => 'string',
82 + 'default' => '#f4c150',
83 + ),
84 + 'fillBg' => array(
85 + 'type' => 'string',
86 + 'default' => '#e7e7e7',
87 + ),
88 + 'fillBgH' => array(
89 + 'type' => 'string',
90 + 'default' => '#e7e7e7',
91 + ),
92 + 'fillABg' => array(
93 + 'type' => 'string',
94 + 'default' => '#f4c150',
95 + ),
96 + 'fillABgH' => array(
97 + 'type' => 'string',
98 + 'default' => '#f4c150',
99 + ),
100 +
101 +];
102 +
103 +$attributes = array_merge(
104 + $attributes,
105 + Typography::get_attribute( 'heading_typography', true ),
106 + Typography::get_attribute( 'listTypography', true ),
107 + Typography::get_attribute( 'avg_typography', true ),
108 + Typography::get_attribute( 'total_typography', true ),
109 + Border::get_attribute( 'border', true ),
110 + Dimensions::get_attribute( 'padding', true ),
111 + BoxShadow::get_attribute( 'boxShadow', true ),
112 + Range::get_attribute([
113 + 'attributeName' => 'transition',
114 + 'attributeObjectKey' => 'value',
115 + 'isResponsive' => false,
116 + 'defaultValue' => 0,
117 + 'hasUnit' => false,
118 + 'unitDefaultValue' => 's',
119 + ]),
120 + Range::get_attribute([
121 + 'attributeName' => 'avg_transition',
122 + 'attributeObjectKey' => 'value',
123 + 'isResponsive' => false,
124 + 'defaultValue' => 0,
125 + 'hasUnit' => false,
126 + 'unitDefaultValue' => 's',
127 + ]),
128 + Range::get_attribute([
129 + 'attributeName' => 'startT',
130 + 'attributeObjectKey' => 'value',
131 + 'isResponsive' => false,
132 + 'defaultValue' => 0,
133 + 'hasUnit' => false,
134 + 'unitDefaultValue' => 's',
135 + ]),
136 + Range::get_attribute([
137 + 'attributeName' => 'rating_transition',
138 + 'attributeObjectKey' => 'value',
139 + 'isResponsive' => false,
140 + 'defaultValue' => 0,
141 + 'hasUnit' => false,
142 + 'unitDefaultValue' => 's',
143 + ]),
144 + Range::get_attribute([
145 + 'attributeName' => 'total_transition',
146 + 'attributeObjectKey' => 'value',
147 + 'isResponsive' => false,
148 + 'defaultValue' => 0,
149 + 'hasUnit' => false,
150 + 'unitDefaultValue' => 's',
151 + ]),
152 + Range::get_attribute([
153 + 'attributeName' => 'listT',
154 + 'attributeObjectKey' => 'value',
155 + 'isResponsive' => false,
156 + 'defaultValue' => 0,
157 + 'hasUnit' => false,
158 + 'unitDefaultValue' => 's',
159 + ]),
160 + Range::get_attribute([
161 + 'attributeName' => 'fillT',
162 + 'attributeObjectKey' => 'value',
163 + 'isResponsive' => false,
164 + 'defaultValue' => 0,
165 + 'hasUnit' => false,
166 + 'unitDefaultValue' => 's',
167 + ]),
168 + Range::get_attribute([
169 + 'attributeName' => 'fillAT',
170 + 'attributeObjectKey' => 'value',
171 + 'isResponsive' => false,
172 + 'defaultValue' => 0,
173 + 'hasUnit' => false,
174 + 'unitDefaultValue' => 's',
175 + ]),
176 + Range::get_attribute([
177 + 'attributeName' => 'rating_size',
178 + 'attributeObjectKey' => 'value',
179 + 'isResponsive' => true,
180 + 'defaultValue' => 16,
181 + 'hasUnit' => true,
182 + 'unitDefaultValue' => 'px',
183 + ]),
184 + Range::get_attribute([
185 + 'attributeName' => 'section_height',
186 + 'attributeObjectKey' => 'value',
187 + 'isResponsive' => true,
188 + 'defaultValue' => 100,
189 + 'hasUnit' => true,
190 + 'unitDefaultValue' => '%',
191 + ]),
192 + Range::get_attribute([
193 + 'attributeName' => 'section_width',
194 + 'attributeObjectKey' => 'value',
195 + 'isResponsive' => true,
196 + 'defaultValue' => 100,
197 + 'hasUnit' => true,
198 + 'unitDefaultValue' => '%',
199 + ]),
200 + Range::get_attribute([
201 + 'attributeName' => 'startSize',
202 + 'attributeObjectKey' => 'value',
203 + 'isResponsive' => true,
204 + 'defaultValue' => 12,
205 + 'hasUnit' => true,
206 + 'unitDefaultValue' => 'px',
207 + ]),
208 +);
209 +
210 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
211 +