PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.13.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.13.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
← All changes | includes/blocks/video/attributes.php +106 -0 2.7.62.13.0 View file →
@@ -1,0 +1,106 @@
1 +<?php
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +use ABlocks\Controls\CssFilter;
8 +
9 +$attributes = [
10 + 'block_id' => [
11 + 'type' => 'string',
12 + 'default' => '',
13 + ],
14 + 'blockVersion' => array(
15 + 'type' => 'number',
16 + 'default' => '',
17 + ),
18 + 'videoSource' => [
19 + 'type' => 'string',
20 + 'default' => 'youtube',
21 + ],
22 + 'videoStartTime' => [
23 + 'type' => 'number',
24 + 'default' => 0,
25 + ],
26 + 'videoEndTime' => [
27 + 'type' => 'number',
28 + 'default' => 0,
29 + ],
30 + 'videoUrl' => [
31 + 'type' => 'string',
32 + 'default' => '',
33 + ],
34 + 'selfHostedURL' => [
35 + 'type' => 'string',
36 + 'default' => ''
37 + ],
38 + 'externalLink' => [
39 + 'type' => 'boolean',
40 + 'default' => false,
41 + ],
42 + 'autoplay' => [
43 + 'type' => 'boolean',
44 + 'default' => false,
45 + ],
46 + 'mute' => [
47 + 'type' => 'boolean',
48 + 'default' => false,
49 + ],
50 + 'loop' => [
51 + 'type' => 'boolean',
52 + 'default' => false,
53 + ],
54 + 'playerControl' => [
55 + 'type' => 'boolean',
56 + 'default' => true,
57 + ],
58 + 'downloadButton' => [
59 + 'type' => 'boolean',
60 + 'default' => false,
61 + ],
62 + 'vimeoURL' => [
63 + 'type' => 'string',
64 + 'default' => 'https://vimeo.com/1034907087',
65 + ],
66 + 'youtubeURL' => [
67 + 'type' => 'string',
68 + 'default' => 'https://www.youtube.com/watch?v=oh0NDa_oVuI&ab_channel=aBlocks',
69 + ],
70 + 'privacyMode' => [
71 + 'type' => 'boolean',
72 + 'default' => false,
73 + ],
74 + 'introTitle' => [
75 + 'type' => 'boolean',
76 + 'default' => true,
77 + ],
78 + 'introPortrait' => [
79 + 'type' => 'boolean',
80 + 'default' => true,
81 + ],
82 + 'introByline' => [
83 + 'type' => 'boolean',
84 + 'default' => true,
85 + ],
86 + 'poster' => [
87 + 'type' => 'string',
88 + 'default' => '',
89 + ],
90 + 'preload' => [
91 + 'type' => 'string',
92 + 'default' => 'metadata',
93 + ],
94 + 'aspectRatio' => [
95 + 'type' => 'string',
96 + 'default' => '1.77777',
97 + ],
98 +];
99 +
100 +$attributes = array_merge(
101 + $attributes,
102 + CssFilter::get_attribute( 'cssFilter' )
103 +);
104 +
105 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
106 +