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/text-path/attributes.php +114 -0 2.7.62.13.0 View file →
@@ -1,0 +1,114 @@
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 + 'blockVersion' => array(
29 + 'type' => 'number',
30 + 'default' => '',
31 + ),
32 + 'text' => [
33 + 'type' => 'string',
34 + 'default' => 'Add Your Curvy Text Here',
35 + ],
36 + 'pathType' => [
37 + 'type' => 'string',
38 + 'default' => 'wave',
39 + ],
40 + 'isShowIcon' => [
41 + 'type' => 'boolean',
42 + 'default' => true,
43 + ],
44 + 'strokeColor' => [
45 + 'type' => 'string',
46 + 'default' => 'blue',
47 + ],
48 + 'textColor' => [
49 + 'type' => 'string',
50 + 'default' => 'black',
51 + 'copyStyle' => true,
52 + ],
53 + 'textColorH' => [
54 + 'type' => 'string',
55 + 'default' => '',
56 + 'copyStyle' => true,
57 + ],
58 + 'textStrokeShow' => [
59 + 'type' => 'boolean',
60 + 'default' => false,
61 + ],
62 + 'textStroke' => [
63 + 'type' => 'number',
64 + 'default' => 0,
65 + ],
66 + 'strokeTextColor' => [
67 + 'type' => 'string',
68 + 'default' => 'black',
69 + 'copyStyle' => true,
70 + ],
71 + 'offsetControl' => [
72 + 'type' => 'number',
73 + 'default' => 0,
74 + ],
75 + 'transition' => [
76 + 'type' => 'number',
77 + 'default' => 1,
78 + 'copyStyle' => true,
79 + ],
80 + 'strokeWidth' => [
81 + 'type' => 'number',
82 + 'default' => 1,
83 + ],
84 + 'rotate' => [
85 + 'type' => 'number',
86 + 'default' => 0,
87 + 'copyStyle' => true,
88 + ],
89 + 'iconSize' => [
90 + 'type' => 'number',
91 + 'default' => 250,
92 + ],
93 + 'iconSvgPath' => [
94 + 'type' => 'string',
95 + 'default' => '',
96 + ],
97 + 'iconSvgViewBox' => [
98 + 'type' => 'string',
99 + 'default' => '',
100 + ],
101 + 'iconClass' => [
102 + 'type' => 'string',
103 + 'default' => ''
104 + ],
105 +];
106 +
107 +$attributes = array_merge(
108 + $attributes,
109 + Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
110 + Typography::get_attribute( 'typography', true ),
111 + TextShadow::get_attribute( 'textShadow' ),
112 + Link::get_attribute( 'link' ),
113 +);
114 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );