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-enroll-content / attributes.php

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

120 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 'blockVersion' => array(
24 'type' => 'number',
25 'default' => 2,
26 ),
27 'contentBg' => array(
28 'type' => 'string',
29 'default' => '#fff',
30 ),
31 'contentBgH' => array(
32 'type' => 'string',
33 'default' => '#fff',
34 ),
35 'iconColor' => array(
36 'type' => 'string',
37 'default' => '#595959',
38 ),
39 'iconColorH' => array(
40 'type' => 'string',
41 'default' => '#595959',
42 ),
43 'listColor' => array(
44 'type' => 'string',
45 'default' => '#595959',
46 ),
47 'listColorH' => array(
48 'type' => 'string',
49 'default' => '#595959',
50 ),
51 'shareColor' => array(
52 'type' => 'string',
53 'default' => '#444',
54 ),
55 'shareColorH' => array(
56 'type' => 'string',
57 'default' => '#444',
58 ),
59 'shareBg' => array(
60 'type' => 'string',
61 'default' => '#fff',
62 ),
63 'shareBgH' => array(
64 'type' => 'string',
65 'default' => '#fff',
66 ),
67 'wishlistColor' => array(
68 'type' => 'string',
69 'default' => '#fff',
70 ),
71 'wishlistColorH' => array(
72 'type' => 'string',
73 'default' => '#fff',
74 ),
75 'wishlistBg' => array(
76 'type' => 'string',
77 'default' => '#7b68ee',
78 ),
79 'wishlistBgH' => array(
80 'type' => 'string',
81 'default' => '#7b68ee',
82 ),
83
84 ];
85
86 $attributes = array_merge(
87 $attributes,
88 Typography::get_attribute( 'listTypography', true ),
89 Typography::get_attribute( 'shareTypography', true ),
90 Border::get_attribute( 'shareBorder', true ),
91 Dimensions::get_attribute( 'sharePadding', true ),
92 Range::get_attribute([
93 'attributeName' => 'contentTransition',
94 'attributeObjectKey' => 'value',
95 'isResponsive' => false,
96 'defaultValue' => 0,
97 'hasUnit' => false,
98 'unitDefaultValue' => 's',
99 ]),
100 Range::get_attribute([
101 'attributeName' => 'iconSize',
102 'attributeObjectKey' => 'value',
103 'isResponsive' => true,
104 'defaultValue' => 14,
105 'hasUnit' => true,
106 'unitDefaultValue' => 'px',
107 ]),
108 Range::get_attribute([
109 'attributeName' => 'buttonIconSize',
110 'attributeObjectKey' => 'value',
111 'isResponsive' => true,
112 'defaultValue' => 14,
113 'hasUnit' => true,
114 'unitDefaultValue' => 'px',
115 ]),
116 );
117
118 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
119
120