PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.12.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.12.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-course-curriculums / attributes.php

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

131 lines 2.6 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
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 'heading_color_hover' => array(
28 'type' => 'string',
29 'default' => '#000',
30 ),
31 'heading_color' => array(
32 'type' => 'string',
33 'default' => '#000',
34 ),
35 'buttonBackgroundH' => array(
36 'type' => 'string',
37 'default' => '',
38 ),
39 'buttonBackground' => array(
40 'type' => 'string',
41 'default' => '',
42 ),
43 'buttonColorH' => array(
44 'type' => 'string',
45 'default' => '',
46 ),
47 'buttonColor' => array(
48 'type' => 'string',
49 'default' => '#000',
50 ),
51 'contentColorH' => array(
52 'type' => 'string',
53 'default' => '#000',
54 ),
55 'contentColor' => array(
56 'type' => 'string',
57 'default' => '',
58 ),
59 'title_color' => array(
60 'type' => 'string',
61 'default' => '#000',
62 ),
63 'title_color_hover' => array(
64 'type' => 'string',
65 'default' => '#000',
66 ),
67 'lesson_list_hover' => array(
68 'type' => 'string',
69 'default' => '#fff',
70 ),
71 'lesson_list_bg' => array(
72 'type' => 'string',
73 'default' => '#fff',
74 ),
75 'read_icon_hover' => array(
76 'type' => 'string',
77 'default' => '#e12a2a',
78 ),
79 'read_icon_color' => array(
80 'type' => 'string',
81 'default' => '#e12a2a',
82 ),
83 'lock_icon_color' => array(
84 'type' => 'string',
85 'default' => '#000',
86 ),
87 'lock_icon_hover' => array(
88 'type' => 'string',
89 'default' => '#000',
90 ),
91 'title_bg' => array(
92 'type' => 'string',
93 'default' => '#fff',
94 ),
95 'title_bg_hover' => array(
96 'type' => 'string',
97 'default' => '#fff',
98 ),
99 ];
100
101 $attributes = array_merge(
102 $attributes,
103 Typography::get_attribute( 'buttonTypography', true ),
104 Typography::get_attribute( 'title_typography', true ),
105 Typography::get_attribute( 'contentTypography', true ),
106 Typography::get_attribute( 'heading_typography', true ),
107 Range::get_attribute([
108 'attributeName' => 'lock_icon_size',
109 'attributeObjectKey' => 'value',
110 'isResponsive' => true,
111 'defaultValue' => 16,
112 'defaultValueTablet' => 16,
113 'defaultValueMobile' => 12,
114 'hasUnit' => true,
115 'unitDefaultValue' => 'px',
116 ]),
117 Range::get_attribute([
118 'attributeName' => 'readIconSize',
119 'attributeObjectKey' => 'value',
120 'isResponsive' => true,
121 'defaultValue' => 16,
122 'defaultValueTablet' => 16,
123 'defaultValueMobile' => 12,
124 'hasUnit' => true,
125 'unitDefaultValue' => 'px',
126 ]),
127 );
128
129 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
130
131