PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.11.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.11.1
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 1.1.2 All 80 releases
ablocks / includes / blocks / academy-course-instructor / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.11.1, at includes/blocks/academy-course-instructor/attributes.php

107 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 $attributes = [
15 'block_id' => array(
16 'type' => 'string',
17 'default' => '',
18 ),
19 'blockVersion' => array(
20 'type' => 'number',
21 'default' => 2,
22 ),
23 'titleColorH' => array(
24 'type' => 'string',
25 'default' => '#999',
26 ),
27 'titleColor' => array(
28 'type' => 'string',
29 'default' => '#999',
30 ),
31 'textColorH' => array(
32 'type' => 'string',
33 'default' => '#111',
34 ),
35 'textColor' => array(
36 'type' => 'string',
37 'default' => '#111',
38 ),
39 'star_color' => array(
40 'type' => 'string',
41 'default' => '#f4c150',
42 ),
43 'star_colorH' => array(
44 'type' => 'string',
45 'default' => '#f4c150',
46 ),
47 'insColor' => array(
48 'type' => 'string',
49 'default' => '#111',
50 ),
51 'insColorH' => array(
52 'type' => 'string',
53 'default' => '#111',
54 ),
55
56 ];
57
58 $attributes = array_merge(
59 $attributes,
60 Typography::get_attribute( 'titleTypography', true ),
61 Typography::get_attribute( 'textTypography', true ),
62 Typography::get_attribute( 'insTypography', true ),
63 Range::get_attribute([
64 'attributeName' => 'titleTransition',
65 'attributeObjectKey' => 'value',
66 'isResponsive' => false,
67 'defaultValue' => 0,
68 'hasUnit' => false,
69 'unitDefaultValue' => 's',
70 ]),
71 Range::get_attribute([
72 'attributeName' => 'textTransition',
73 'attributeObjectKey' => 'value',
74 'isResponsive' => false,
75 'defaultValue' => 0,
76 'hasUnit' => false,
77 'unitDefaultValue' => 's',
78 ]),
79 Range::get_attribute([
80 'attributeName' => 'avatarH',
81 'attributeObjectKey' => 'value',
82 'isResponsive' => true,
83 'defaultValue' => 62,
84 'hasUnit' => true,
85 'unitDefaultValue' => 'px',
86 ]),
87 Range::get_attribute([
88 'attributeName' => 'avatarW',
89 'attributeObjectKey' => 'value',
90 'isResponsive' => true,
91 'defaultValue' => 62,
92 'hasUnit' => true,
93 'unitDefaultValue' => 'px',
94 ]),
95 Range::get_attribute([
96 'attributeName' => 'star_size',
97 'attributeObjectKey' => 'value',
98 'isResponsive' => true,
99 'defaultValue' => 14,
100 'hasUnit' => true,
101 'unitDefaultValue' => 'px',
102 ]),
103 );
104
105 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
106
107