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

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

111 lines 2.1 KB
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
7 use ABlocks\Classes\BlockBaseAbstract;
8 use ABlocks\Classes\CssGenerator;
9 use ABlocks\Controls\Typography;
10 use ABlocks\Controls\Dimensions;
11 use ABlocks\Controls\Border;
12 use ABlocks\Controls\Icon;
13 use ABlocks\Controls\BoxShadow;
14 use ABlocks\Controls\Range;
15 use ABlocks\Controls\Alignment;
16 use ABlocks\Controls\TextStroke;
17 use ABlocks\Controls\Responsive;
18 use ABlocks\Controls\Color;
19 use ABlocks\Controls\Link;
20 use ABlocks\Controls\TextShadow;
21
22
23 $attributes = [
24 'block_id' => [
25 'type' => 'string',
26 'default' => '',
27 ],
28 'text' => [
29 'type' => 'string',
30 'default' => 'Add Your Curvy Text Here',
31 ],
32 'pathType' => [
33 'type' => 'string',
34 'default' => 'wave',
35 ],
36 'isShowIcon' => [
37 'type' => 'boolean',
38 'default' => true,
39 ],
40 'strokeColor' => [
41 'type' => 'string',
42 'default' => 'blue',
43 ],
44 'textColor' => [
45 'type' => 'string',
46 'default' => 'black',
47 'copyStyle' => true,
48 ],
49 'textColorH' => [
50 'type' => 'string',
51 'default' => '',
52 'copyStyle' => true,
53 ],
54 'textStrokeShow' => [
55 'type' => 'boolean',
56 'default' => false,
57 ],
58 'textStroke' => [
59 'type' => 'number',
60 'default' => 0,
61 ],
62 'strokeTextColor' => [
63 'type' => 'string',
64 'default' => 'black',
65 'copyStyle' => true,
66 ],
67 'offsetControl' => [
68 'type' => 'number',
69 'default' => 0,
70 ],
71 'transition' => [
72 'type' => 'number',
73 'default' => 1,
74 'copyStyle' => true,
75 ],
76 'strokeWidth' => [
77 'type' => 'number',
78 'default' => 1,
79 ],
80 'rotate' => [
81 'type' => 'number',
82 'default' => 0,
83 'copyStyle' => true,
84 ],
85 'iconSize' => [
86 'type' => 'number',
87 'default' => 250,
88 ],
89 'iconSvgPath' => [
90 'type' => 'string',
91 'default' => '',
92 ],
93 'iconSvgViewBox' => [
94 'type' => 'string',
95 'default' => '',
96 ],
97 'iconClass' => [
98 'type' => 'string',
99 'default' => ''
100 ],
101 ];
102
103 $attributes = array_merge(
104 $attributes,
105 Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
106 Typography::get_attribute( 'typography', true ),
107 TextShadow::get_attribute( 'textShadow' ),
108 Link::get_attribute( 'link' ),
109 );
110 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
111