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

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

63 lines 1.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\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 use ABlocks\Controls\Link;
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 'not_found_text' => [
30 'type' => 'string',
31 'default' => 'Custom message when no bookmarks exist',
32 ],
33 'reactionUlStyle' => [
34 'type' => 'string',
35 'default' => '',
36 ],
37 'reacTitleColor' => [
38 'type' => 'string',
39 'default' => '#000000',
40 ],
41 'reacListColor' => [
42 'type' => 'string',
43 'default' => '#000000',
44 ],
45 'nobookmarksColor' => [
46 'type' => 'string',
47 'default' => '#000000',
48 ],
49 ];
50
51 $attributes = array_merge(
52 Alignment::get_attribute( 'reactionAlignment', true, [ 'value' => 'left' ] ),
53 Typography::get_attribute( 'reacTitleTypography', true ),
54 Typography::get_attribute( 'reacListTypography', true ),
55 Typography::get_attribute( 'nobookmarksTypography', true ),
56 TextShadow::get_attribute( 'textShadow' ),
57 TextStroke::get_attribute( 'textStroke', true ),
58 $attributes,
59 );
60
61 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
62
63