PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.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 1.1.2 All 80 releases
ablocks / includes / blocks / marquee / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.9.0, at includes/blocks/marquee/attributes.php

62 lines 1021 B
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 use ABlocks\Controls\Range;
7
8
9 $attributes = [
10 'block_id' => [
11 'type' => 'string',
12 'default' => '',
13 ],
14 'blockVersion' => [
15 'type' => 'number',
16 'default' => '',
17 ],
18 'marqueeSlideLength' => [
19 'type' => 'number',
20 'default' => 0,
21 ],
22 'pauseOnHover' => [
23 'type' => 'boolean',
24 'default' => true,
25 ],
26 'marqueeDirection' => [
27 'type' => 'string',
28 'default' => 'left',
29 ],
30 'marqueeSpeed' => [
31 'type' => 'number',
32 'default' => 10,
33 ],
34 'loop' => [
35 'type' => 'boolean',
36 'default' => false,
37 ],
38 'enableShadow' => [
39 'type' => 'boolean',
40 'default' => true,
41 ],
42 'loopCount' => [
43 'type' => 'number',
44 'default' => 2,
45 ],
46
47 ];
48
49 $attributes = array_merge(
50 $attributes,
51 Range::get_attribute([
52 'attributeName' => 'gap',
53 'attributeObjectKey' => 'value',
54 'isResponsive' => true,
55 'hasUnit' => false,
56 'unitDefaultValue' => 'px',
57 'defaultValue' => 12,
58 ])
59 );
60
61 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
62