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-enroll-form/attributes.php +89 -0 2.9.1 → 2.14.0 View file →
@@ -3,8 +3,9 @@
3 3 use ABlocks\Controls\Typography;
4 4 use ABlocks\Controls\Background;
5 5 use ABlocks\Controls\Border;
6 6 use ABlocks\Controls\Dimensions;
7 +use ABlocks\Controls\Range;
7 8
8 9 if ( ! defined( 'ABSPATH' ) ) {
9 10 exit;
10 11 }
@@ -13,12 +14,20 @@
13 14 'block_id' => array(
14 15 'type' => 'string',
15 16 'default' => '',
16 17 ),
18 + 'blockVersion' => array(
19 + 'type' => 'number',
20 + 'default' => 2,
21 + ),
17 22 'course_id' => array(
18 23 'type' => 'number',
19 24 'default' => 0,
20 25 ),
26 + 'layout' => array(
27 + 'type' => 'string',
28 + 'default' => 'legacy',
29 + ),
21 30 'start_btn_color' => array(
22 31 'type' => 'string',
23 32 'default' => '#fff',
24 33 ),
@@ -49,18 +58,98 @@
49 58 'enroll_btn_bg_hover_color' => array(
50 59 'type' => 'string',
51 60 'default' => '#6F5DD6',
52 61 ),
62 + 'massage_title_bg' => array(
63 + 'type' => 'string',
64 + 'default' => '',
65 + ),
66 + 'massage_title_color' => array(
67 + 'type' => 'string',
68 + 'default' => '',
69 + ),
70 + 'massage_title_hover_bg' => array(
71 + 'type' => 'string',
72 + 'default' => '',
73 + ),
74 + 'massage_title_hover_color' => array(
75 + 'type' => 'string',
76 + 'default' => '',
77 + ),
78 + 'list_color' => array(
79 + 'type' => 'string',
80 + 'default' => '',
81 + ),
82 + 'list_hover_color' => array(
83 + 'type' => 'string',
84 + 'default' => '',
85 + ),
86 + 'price_hover_color' => array(
87 + 'type' => 'string',
88 + 'default' => '#111',
89 + ),
90 + 'price_color' => array(
91 + 'type' => 'string',
92 + 'default' => '#111',
93 + ),
94 + 'price_title_hover_color' => array(
95 + 'type' => 'string',
96 + 'default' => '#111',
97 + ),
98 + 'price_title_color' => array(
99 + 'type' => 'string',
100 + 'default' => '#111',
101 + ),
102 + 'info_color_hover' => array(
103 + 'type' => 'string',
104 + 'default' => '#7b68ee',
105 + ),
106 + 'info_color' => array(
107 + 'type' => 'string',
108 + 'default' => '#7b68ee',
109 + ),
110 + 'info_bg_hover' => array(
111 + 'type' => 'string',
112 + 'default' => '#eae8fa',
113 + ),
114 + 'info_bg' => array(
115 + 'type' => 'string',
116 + 'default' => '#eae8fa',
117 + ),
118 +
53 119 ];
54 120
55 121 $attributes = array_merge(
56 122 $attributes,
57 123 Typography::get_attribute( 'start_btn_typography', true ),
124 + Typography::get_attribute( 'price_typography', true ),
125 + Typography::get_attribute( 'price_title_typography', true ),
126 + Typography::get_attribute( 'list_typography', true ),
127 + Typography::get_attribute( 'massage_title_typography', true ),
128 + Typography::get_attribute( 'info_typography', true ),
58 129 Dimensions::get_attribute( 'start_btn_padding', true ),
59 130 Dimensions::get_attribute( 'enroll_btn_padding', true ),
60 131 Typography::get_attribute( 'enroll_btn_typography', true ),
61 132 Border::get_attribute( 'start_btn_border', true ),
62 133 Border::get_attribute( 'enroll_btn_border', true ),
134 + Range::get_attribute([
135 + 'attributeName' => 'modalWidth',
136 + 'attributeObjectKey' => 'value',
137 + 'isResponsive' => true,
138 + 'defaultValue' => 150,
139 + 'defaultValueTablet' => 100,
140 + 'defaultValueMobile' => 80,
141 + 'hasUnit' => true,
142 + 'unitDefaultValue' => 'px',
143 + ]),
144 + Range::get_attribute([
145 + 'attributeName' => 'bg_transition',
146 + 'attributeObjectKey' => 'value',
147 + 'isResponsive' => false,
148 + 'defaultValue' => 0,
149 + 'hasUnit' => false,
150 + 'unitDefaultValue' => 's',
151 + ]),
63 152 );
64 153
65 154 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
66 155