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-review-list/attributes.php +134 -0 2.7.6 → 2.14.0 View file →
@@ -1,0 +1,134 @@
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 + 'authorColor' => array(
24 + 'type' => 'string',
25 + 'default' => '#111',
26 + ),
27 + 'blockVersion' => array(
28 + 'type' => 'number',
29 + 'default' => 2,
30 + ),
31 + 'authorHoverColor' => array(
32 + 'type' => 'string',
33 + 'default' => '#111',
34 + ),
35 + 'dateColor' => array(
36 + 'type' => 'string',
37 + 'default' => '#111',
38 + ),
39 + 'dateHoverColor' => array(
40 + 'type' => 'string',
41 + 'default' => '#111',
42 + ),
43 + 'desColor' => array(
44 + 'type' => 'string',
45 + 'default' => '#111',
46 + ),
47 + 'desHoverColor' => array(
48 + 'type' => 'string',
49 + 'default' => '#111',
50 + ),
51 + 'sumColor' => array(
52 + 'type' => 'string',
53 + 'default' => '#111',
54 + ),
55 + 'sumColorH' => array(
56 + 'type' => 'string',
57 + 'default' => '#111',
58 + ),
59 + 'iconColor' => array(
60 + 'type' => 'string',
61 + 'default' => '#f4c150',
62 + ),
63 + 'iconColorH' => array(
64 + 'type' => 'string',
65 + 'default' => '#f4c150',
66 + ),
67 +];
68 +
69 +$attributes = array_merge(
70 + $attributes,
71 + Typography::get_attribute( 'sumTypography', true ),
72 + Typography::get_attribute( 'authorTypography', true ),
73 + Typography::get_attribute( 'dateTypography', true ),
74 + Typography::get_attribute( 'desTypography', true ),
75 + Range::get_attribute([
76 + 'attributeName' => 'avatarHeight',
77 + 'attributeObjectKey' => 'value',
78 + 'isResponsive' => true,
79 + 'defaultValue' => 50,
80 + 'hasUnit' => true,
81 + 'unitDefaultValue' => 'px',
82 + ]),
83 + Range::get_attribute([
84 + 'attributeName' => 'avatarWidth',
85 + 'attributeObjectKey' => 'value',
86 + 'isResponsive' => true,
87 + 'defaultValue' => 50,
88 + 'hasUnit' => true,
89 + 'unitDefaultValue' => 'px',
90 + ]),
91 + Range::get_attribute([
92 + 'attributeName' => 'iconSize',
93 + 'attributeObjectKey' => 'value',
94 + 'isResponsive' => true,
95 + 'defaultValue' => 16,
96 + 'hasUnit' => true,
97 + 'unitDefaultValue' => 'px',
98 + ]),
99 + Range::get_attribute([
100 + 'attributeName' => 'authorTransition',
101 + 'attributeObjectKey' => 'value',
102 + 'isResponsive' => false,
103 + 'defaultValue' => 0,
104 + 'hasUnit' => false,
105 + 'unitDefaultValue' => 's',
106 + ]),
107 + Range::get_attribute([
108 + 'attributeName' => 'dateTransition',
109 + 'attributeObjectKey' => 'value',
110 + 'isResponsive' => false,
111 + 'defaultValue' => 0,
112 + 'hasUnit' => false,
113 + 'unitDefaultValue' => 's',
114 + ]),
115 + Range::get_attribute([
116 + 'attributeName' => 'desTransition',
117 + 'attributeObjectKey' => 'value',
118 + 'isResponsive' => false,
119 + 'defaultValue' => 0,
120 + 'hasUnit' => false,
121 + 'unitDefaultValue' => 's',
122 + ]),
123 + Range::get_attribute([
124 + 'attributeName' => 'sumTransition',
125 + 'attributeObjectKey' => 'value',
126 + 'isResponsive' => false,
127 + 'defaultValue' => 0,
128 + 'hasUnit' => false,
129 + 'unitDefaultValue' => 's',
130 + ]),
131 +);
132 +
133 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
134 +