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 / ecm-claim-list / attributes.php

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

86 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 use ABlocks\Controls\Typography;
4 use ABlocks\Controls\Range;
5 use ABlocks\Controls\Dimensions;
6 use ABlocks\Controls\Border;
7 use ABlocks\Controls\BoxShadow;
8 use ABlocks\Controls\Alignment;
9 use ABlocks\Controls\TextShadow;
10 use ABlocks\Controls\TextStroke;
11
12
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17 $attributes = [
18 'block_id' => [
19 'type' => 'string',
20 'default' => '',
21 ],
22 'blockVersion' => [
23 'type' => 'number',
24 'default' => 2,
25 ],
26 'user_id' => [
27 'type' => 'number',
28 ],
29 'status' => [
30 'type' => 'string',
31 'default' => '',
32 ],
33 'not_found_text' => [
34 'type' => 'string',
35 'default' => '',
36 ],
37 'listStyle' => [
38 'type' => 'string',
39 'default' => 'disc',
40 ],
41 'listBackground' => [
42 'type' => 'string',
43 'default' => '',
44 ],
45 'titleColor' => [
46 'type' => 'string',
47 'default' => '',
48 ],
49 'desColor' => [
50 'type' => 'string',
51 'default' => '',
52 ],
53 'notFoundColor' => [
54 'type' => 'string',
55 'default' => '',
56 ],
57
58 ];
59
60 $attributes = array_merge(
61 $attributes,
62 Range::get_attribute([
63 'attributeName' => 'listWidth',
64 'attributeObjectKey' => 'value',
65 'isResponsive' => true,
66 'defaultValue' => 33,
67 'hasUnit' => false,
68 'unitDefaultValue' => '%',
69 ]),
70 Alignment::get_attribute( 'listAlignment', true, [ 'value' => 'left' ] ),
71 Alignment::get_attribute( 'notFoundAlignment', true, [ 'value' => 'center' ] ),
72 Dimensions::get_attribute( 'listPadding', true ),
73 Border::get_attribute( 'listBorder', true ),
74 BoxShadow::get_attribute( 'listBoxShadow', true ),
75 Typography::get_attribute( 'titleTypography', true ),
76 Typography::get_attribute( 'notFoundTypography', true ),
77 TextShadow::get_attribute( 'titleTextShadow' ),
78 TextStroke::get_attribute( 'titleTextStroke', true ),
79 Typography::get_attribute( 'desTypography', true ),
80 TextShadow::get_attribute( 'desTextShadow' ),
81 TextStroke::get_attribute( 'desTextStroke', true ),
82 );
83
84 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
85
86