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

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

142 lines 3.0 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
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11
12 $attributes = [
13 'block_id' => array(
14 'type' => 'string',
15 'default' => '',
16 ),
17 'blockVersion' => [
18 'type' => 'number',
19 'default' => 2,
20 ],
21 'course_count' => array(
22 'type' => 'number',
23 'default' => 3,
24 ),
25 'course_columns' => array(
26 'type' => 'number',
27 'default' => 3,
28 ),
29 'show_pagination' => array(
30 'type' => 'boolean',
31 'default' => true,
32
33 ),
34 'difficulty_levels' => array(
35 'type' => 'array',
36 'default' => array(),
37 ),
38 'price_types' => array(
39 'type' => 'array',
40 'default' => array(),
41 ),
42 'order_by' => array(
43 'type' => 'string',
44 'default' => 'date',
45 ),
46 'course_order' => array(
47 'type' => 'string',
48 'default' => 'DESC',
49 ),
50 'course_ids' => array(
51 'type' => 'array',
52 'default' => array(),
53 ),
54 'course_categories' => array(
55 'type' => 'array',
56 'default' => array(),
57 ),
58 'course_tags' => array(
59 'type' => 'array',
60 'default' => array(),
61 ),
62 'course_exclude_ids' => array(
63 'type' => 'array',
64 'default' => array(),
65 ),
66 'course_exclude_categories' => array(
67 'type' => 'array',
68 'default' => array(),
69 ),
70 'course_exclude_tags' => array(
71 'type' => 'array',
72 'default' => array(),
73 ),
74 'category_color' => array(
75 'type' => 'string',
76 'default' => '#333',
77 ),
78 'category_hover_color' => array(
79 'type' => 'string',
80 'default' => '#333',
81 ),
82 'title_color' => array(
83 'type' => 'string',
84 'default' => '#000',
85 ),
86 'title_hover_color' => array(
87 'type' => 'string',
88 'default' => '#000',
89 ),
90 'author_color' => array(
91 'type' => 'string',
92 'default' => '#000',
93 ),
94 'author_hover_color' => array(
95 'type' => 'string',
96 'default' => '#000',
97 ),
98 'rating_color' => array(
99 'type' => 'string',
100 'default' => '#5a3d00',
101 ),
102 'rating_hover_color' => array(
103 'type' => 'string',
104 'default' => '#5a3d00',
105 ),
106 'price_color' => array(
107 'type' => 'string',
108 'default' => '#1a1a1a',
109 ),
110 'price_hover_color' => array(
111 'type' => 'string',
112 'default' => '#1a1a1a',
113 ),
114 'wish_icon_color' => array(
115 'type' => 'string',
116 'default' => '#999',
117 ),
118 'wish_icon_hover_color' => array(
119 'type' => 'string',
120 'default' => '#999',
121 ),
122 ];
123
124 $attributes = array_merge(
125 $attributes,
126 Typography::get_attribute( 'cat_typography', true ),
127 Typography::get_attribute( 'title_typography', true ),
128 Typography::get_attribute( 'author_typography', true ),
129 Typography::get_attribute( 'rating_typography', true ),
130 Typography::get_attribute( 'price_typography', true ),
131 Background::get_attribute( 'card_background', true ),
132 Border::get_attribute( 'card_border', true ),
133 Dimensions::get_attribute( 'card_margin', true ),
134 Dimensions::get_attribute( 'card_hover_margin', true ),
135 Dimensions::get_attribute( 'card_padding', true ),
136 Dimensions::get_attribute( 'card_hover_padding', true ),
137 Background::get_attribute( 'wish_icon_background', true )
138 );
139
140 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
141
142