PluginProbe
Gutenify – Visual Site Builder Blocks & Starter Templates / 1.7.0
Gutenify – Visual Site Builder Blocks & Starter Templates v1.7.0
1.9.0 1.8.0 1.7.0 1.6.6 1.6.5 1.6.4 trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 74 releases
gutenify / core / dist / blocks / popup / block.json

block.json in Gutenify – Visual Site Builder Blocks & Starter Templates 1.7.0, at core/dist/blocks/popup/block.json

176 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "gutenify/popup",
5 "title": "Popup",
6 "description": "A trigger button that opens a popup with any blocks inside, for showing extra content without leaving the page.",
7 "category": "gutenify",
8 "version": "1",
9 "attributes": {
10 "blockClientId": {
11 "type": "string",
12 "default": ""
13 },
14 "buttonText": {
15 "type": "string",
16 "default": "Popup"
17 },
18 "placeholder": {
19 "type": "string",
20 "default": "Popup"
21 },
22 "hideButtonText": {
23 "type": "boolean",
24 "default": false
25 },
26 "blockAdvanceOptions": {
27 "type": "object",
28 "default": {
29 "button": {
30 "textColor": "",
31 "backgroundColor": "",
32 "backgroundGradient": "",
33 "borderColor": "",
34 "hoverTextColor": "",
35 "hoverBackgroundColor": "",
36 "hoverBackgroundGradient": "",
37 "hoverBorderColor": "",
38 "borderWidth": 0,
39 "borderRadius": 4,
40 "borderStyle": "solid",
41 "padding": {
42 "top": "10px",
43 "right": "20px",
44 "bottom": "10px",
45 "left": "20px"
46 },
47 "width": "",
48 "justify": "left"
49 },
50 "icon": {
51 "name": "",
52 "position": "left",
53 "size": 20
54 },
55 "pulse": {
56 "enabled": false,
57 "color": "",
58 "duration": 2,
59 "size": 10
60 }
61 }
62 },
63 "closeOnBgClick": {
64 "type": "boolean",
65 "default": true
66 },
67 "showCloseBtn": {
68 "type": "boolean",
69 "default": true
70 },
71 "closeButtonColor": {
72 "type": "string",
73 "default": ""
74 },
75 "modalAnimation": {
76 "type": "string",
77 "default": "mfp-fade"
78 },
79 "modalCloseAnimation": {
80 "type": "string",
81 "default": ""
82 },
83 "modalAnimationSpeed": {
84 "type": "number",
85 "default": 0
86 },
87 "modalAnimationEasing": {
88 "type": "string",
89 "default": ""
90 },
91 "modalSize": {
92 "type": "string",
93 "default": "medium"
94 },
95 "modalCustomWidth": {
96 "type": "number",
97 "default": 800
98 },
99 "modalMinHeight": {
100 "type": "string",
101 "default": ""
102 },
103 "modalMaxHeight": {
104 "type": "string",
105 "default": ""
106 },
107 "modalPosition": {
108 "type": "string",
109 "default": "center"
110 },
111 "modalPositionMode": {
112 "type": "string",
113 "default": "viewport"
114 },
115 "modalPositionOffset": {
116 "type": "number",
117 "default": 60
118 },
119 "anchorSide": {
120 "type": "string",
121 "default": "bottom"
122 },
123 "anchorOffset": {
124 "type": "number",
125 "default": 8
126 },
127 "modalBorderRadius": {
128 "type": "number",
129 "default": 4
130 },
131 "modalShadow": {
132 "type": "string",
133 "default": "none"
134 },
135 "modalBackgroundColor": {
136 "type": "string",
137 "default": ""
138 },
139 "overlayColor": {
140 "type": "string",
141 "default": ""
142 },
143 "overlayOpacity": {
144 "type": "number",
145 "default": 0.8
146 }
147 },
148 "supports": {
149 "html": false,
150 "anchor": true,
151 "align": [
152 "wide",
153 "full"
154 ]
155 },
156 "usesContext": [
157 "postId"
158 ],
159 "editorScript": [
160 "file:./index.js"
161 ],
162 "editorStyle": [
163 "file:./index.css"
164 ],
165 "style": [
166 "file:./style-index.css",
167 "jquery-magnific-popup"
168 ],
169 "script": [
170 "jquery-magnific-popup"
171 ],
172 "viewScript": [
173 "file:./view-script.js"
174 ],
175 "icon": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill-rule='evenodd' clip-rule='evenodd' d='M12 5C6 5 2 12 2 12C2 12 6 19 12 19C18 19 22 12 22 12C22 12 18 5 12 5ZM12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12C15.5 13.933 13.933 15.5 12 15.5Z' fill='#2196f3' /><circle cx='12' cy='12' r='1.6' fill='#2196f3' /></svg>"
176 }