PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.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 / paragraph / attributes.php

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

46 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\Alignment;
4 use ABlocks\Controls\TextShadow;
5 use ABlocks\Controls\TextStroke;
6 use ABlocks\Controls\Typography;
7
8 $attributes = [
9 'block_id' => [
10 'type' => 'string',
11 'default' => ''
12 ],
13 'paragraph' => [
14 'type' => 'string',
15 'source' => 'html',
16 'selector' => '.ablocks-paragraph-text'
17 ],
18 'dropCaps' => [
19 'type' => 'boolean',
20 'default' => false,
21 ],
22 'dropCapsTextColor' => [
23 'type' => 'string',
24 'default' => '#0f2aff',
25 ],
26 'paragraphSize' => [
27 'type' => 'string',
28 'default' => 'md',
29 ],
30 'textColor' => [
31 'type' => 'string',
32 'default' => '#000000',
33 ]
34 ];
35
36 $attributes = array_merge(
37 $attributes,
38 Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
39 Typography::get_attribute( 'typography', true ),
40 TextShadow::get_attribute( 'textShadow' ),
41 TextStroke::get_attribute( 'textStroke', true ),
42 );
43
44 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
45
46