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
ablocks / includes / blocks / academy-addition-info / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.14.0, at includes/blocks/academy-addition-info/attributes.php

91 lines 1.9 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 use ABlocks\Controls\Typography;
7 use ABlocks\Controls\Background;
8 use ABlocks\Controls\Border;
9 use ABlocks\Controls\Dimensions;
10 use ABlocks\Controls\Range;
11 use ABlocks\Controls\BoxShadow;
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 $attributes = [
18 'block_id' => array(
19 'type' => 'string',
20 'default' => '',
21 ),
22 'course_id' => array(
23 'type' => 'number',
24 'default' => 0,
25 ),
26 'blockVersion' => array(
27 'type' => 'number',
28 'default' => 2,
29 ),
30 'headingColor' => array(
31 'type' => 'string',
32 'default' => '#111',
33 ),
34 'headingColorH' => array(
35 'type' => 'string',
36 'default' => '#111',
37 ),
38 'listColor' => array(
39 'type' => 'string',
40 'default' => '#999',
41 ),
42 'listColorH' => array(
43 'type' => 'string',
44 'default' => '#999',
45 ),
46 'tabColor' => array(
47 'type' => 'string',
48 'default' => '#999',
49 ),
50 'tabColorH' => array(
51 'type' => 'string',
52 'default' => '#999',
53 ),
54 ];
55
56 $attributes = array_merge(
57 $attributes,
58 Typography::get_attribute( 'headingTypography', true ),
59 Typography::get_attribute( 'listTypography', true ),
60 Typography::get_attribute( 'tabTypography', true ),
61 Border::get_attribute( 'listBorder', true ),
62 Dimensions::get_attribute( 'listMargin', true ),
63 Range::get_attribute([
64 'attributeName' => 'headingTransition',
65 'attributeObjectKey' => 'value',
66 'isResponsive' => false,
67 'defaultValue' => 0,
68 'hasUnit' => false,
69 'unitDefaultValue' => 's',
70 ]),
71 Range::get_attribute([
72 'attributeName' => 'listTransition',
73 'attributeObjectKey' => 'value',
74 'isResponsive' => false,
75 'defaultValue' => 0,
76 'hasUnit' => false,
77 'unitDefaultValue' => 's',
78 ]),
79 Range::get_attribute([
80 'attributeName' => 'tabTransition',
81 'attributeObjectKey' => 'value',
82 'isResponsive' => false,
83 'defaultValue' => 0,
84 'hasUnit' => false,
85 'unitDefaultValue' => 's',
86 ]),
87 );
88
89 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
90
91