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

64 lines 1.1 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
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 $attributes = [
16 'block_id' => [
17 'type' => 'string',
18 'default' => '',
19 ],
20 'blockVersion' => [
21 'type' => 'number',
22 'default' => 2,
23 ],
24 'user_id' => [
25 'type' => 'number',
26 ],
27 'status' => [
28 'type' => 'string',
29 'default' => '',
30 ],
31 'show_label' => [
32 'type' => 'boolean',
33 'default' => true,
34 ],
35 'show_icon' => [
36 'type' => 'boolean',
37 'default' => true,
38 ],
39 'label_single' => [
40 'type' => 'string',
41 'default' => 'upvote',
42 ],
43 'label_plural' => [
44 'type' => 'string',
45 'default' => 'upvotes',
46 ],
47 'wrapper_class' => [
48 'type' => 'string',
49 'default' => 'claim-count-wrapper',
50 ],
51 'upvoteNumberColor' => [
52 'type' => 'string',
53 'default' => '',
54 ],
55 ];
56
57 $attributes = array_merge(
58 $attributes,
59 Alignment::get_attribute( 'countAlignment', true, [ 'value' => 'left' ] ),
60 );
61
62 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
63
64