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 +155 -0 2.7.7 → 2.14.0 View file →
@@ -1,0 +1,155 @@
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 +
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit;
11 +}
12 +
13 +$attributes = [
14 + 'block_id' => array(
15 + 'type' => 'string',
16 + 'default' => '',
17 + ),
18 + 'blockVersion' => array(
19 + 'type' => 'number',
20 + 'default' => 2,
21 + ),
22 + 'course_id' => array(
23 + 'type' => 'number',
24 + 'default' => 0,
25 + ),
26 + 'layout' => array(
27 + 'type' => 'string',
28 + 'default' => 'legacy',
29 + ),
30 + 'start_btn_color' => array(
31 + 'type' => 'string',
32 + 'default' => '#fff',
33 + ),
34 + 'enroll_btn_color' => array(
35 + 'type' => 'string',
36 + 'default' => '#fff',
37 + ),
38 + 'start_btn_color_hover' => array(
39 + 'type' => 'string',
40 + 'default' => '#fff',
41 + ),
42 + 'enroll_btn_color_hover' => array(
43 + 'type' => 'string',
44 + 'default' => '#fff',
45 + ),
46 + 'start_btn_bg_color' => array(
47 + 'type' => 'string',
48 + 'default' => '#7B68EE',
49 + ),
50 + 'enroll_btn_bg_color' => array(
51 + 'type' => 'string',
52 + 'default' => '#7B68EE',
53 + ),
54 + 'start_btn_bg_hover_color' => array(
55 + 'type' => 'string',
56 + 'default' => '#6F5DD6',
57 + ),
58 + 'enroll_btn_bg_hover_color' => array(
59 + 'type' => 'string',
60 + 'default' => '#6F5DD6',
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 +
119 +];
120 +
121 +$attributes = array_merge(
122 + $attributes,
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 ),
129 + Dimensions::get_attribute( 'start_btn_padding', true ),
130 + Dimensions::get_attribute( 'enroll_btn_padding', true ),
131 + Typography::get_attribute( 'enroll_btn_typography', true ),
132 + Border::get_attribute( 'start_btn_border', true ),
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 + ]),
152 +);
153 +
154 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
155 +