| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockspare/latest-posts-flash", |
| 5 |
"title": "Latest Posts Flash", |
| 6 |
"category": "blockspare-post", |
| 7 |
"description": "Urgent news and latest posts in a news-ticker layout.", |
| 8 |
"attributes": { |
| 9 |
"align": { |
| 10 |
"type": "string", |
| 11 |
"default": "wide" |
| 12 |
}, |
| 13 |
"categories": { |
| 14 |
"type": "array", |
| 15 |
"default": [] |
| 16 |
}, |
| 17 |
"postType": { |
| 18 |
"type": "string", |
| 19 |
"default": "post" |
| 20 |
}, |
| 21 |
"tags": { |
| 22 |
"type": "array", |
| 23 |
"default": [] |
| 24 |
}, |
| 25 |
"order": { |
| 26 |
"type": "string", |
| 27 |
"default": "desc" |
| 28 |
}, |
| 29 |
"orderBy": { |
| 30 |
"type": "string", |
| 31 |
"default": "date" |
| 32 |
}, |
| 33 |
"postTax": { |
| 34 |
"type": "boolean", |
| 35 |
"default": true |
| 36 |
}, |
| 37 |
"taxType": { |
| 38 |
"type": "string", |
| 39 |
"default": "category" |
| 40 |
}, |
| 41 |
"uniqueClass": { |
| 42 |
"type": "string", |
| 43 |
"default": "" |
| 44 |
}, |
| 45 |
"carouselType": { |
| 46 |
"type": "string", |
| 47 |
"default": "horizontal" |
| 48 |
}, |
| 49 |
"className": { |
| 50 |
"type": "string" |
| 51 |
}, |
| 52 |
"postsToShow": { |
| 53 |
"type": "number", |
| 54 |
"default": 4 |
| 55 |
}, |
| 56 |
"postTitleColor": { |
| 57 |
"type": "string", |
| 58 |
"default": "#000" |
| 59 |
}, |
| 60 |
"postTitleFontSize": { |
| 61 |
"type": "number", |
| 62 |
"default": 12 |
| 63 |
}, |
| 64 |
"titleFontFamily": { |
| 65 |
"type": "string", |
| 66 |
"default": "Default" |
| 67 |
}, |
| 68 |
"titleFontWeight": { |
| 69 |
"type": "string", |
| 70 |
"default": "600" |
| 71 |
}, |
| 72 |
"titleFontSubset": { |
| 73 |
"type": "string" |
| 74 |
}, |
| 75 |
"titleFontSizeType": { |
| 76 |
"type": "string", |
| 77 |
"default": "px" |
| 78 |
}, |
| 79 |
"titleFontSizeMobile": { |
| 80 |
"type": "number", |
| 81 |
"default": 12 |
| 82 |
}, |
| 83 |
"titleFontSizeTablet": { |
| 84 |
"type": "number", |
| 85 |
"default": 12 |
| 86 |
}, |
| 87 |
"titleLoadGoogleFonts": { |
| 88 |
"type": "boolean", |
| 89 |
"default": false |
| 90 |
}, |
| 91 |
"enableCount": { |
| 92 |
"type": "boolean", |
| 93 |
"default": false |
| 94 |
}, |
| 95 |
"countColor": { |
| 96 |
"type": "string", |
| 97 |
"default": "#fff" |
| 98 |
}, |
| 99 |
"exclusiveColor": { |
| 100 |
"type": "string", |
| 101 |
"default": "#222222" |
| 102 |
}, |
| 103 |
"exclusiveBgColor": { |
| 104 |
"type": "string", |
| 105 |
"default": "#FF9900" |
| 106 |
}, |
| 107 |
"offset": { |
| 108 |
"type": "number", |
| 109 |
"default": 0 |
| 110 |
}, |
| 111 |
"displayPostsBy": { |
| 112 |
"type": "string", |
| 113 |
"default": "blockspare-posts-block-post-by-category" |
| 114 |
}, |
| 115 |
"sectionTag": { |
| 116 |
"type": "string", |
| 117 |
"default": "section" |
| 118 |
}, |
| 119 |
"sectionTitle": { |
| 120 |
"type": "string" |
| 121 |
}, |
| 122 |
"imageSize": { |
| 123 |
"type": "string", |
| 124 |
"default": "thumbnail" |
| 125 |
}, |
| 126 |
"url": { |
| 127 |
"type": "string", |
| 128 |
"source": "attribute", |
| 129 |
"selector": "img", |
| 130 |
"attribute": "src" |
| 131 |
}, |
| 132 |
"id": { |
| 133 |
"type": "number" |
| 134 |
}, |
| 135 |
"marginTop": { |
| 136 |
"type": "number", |
| 137 |
"default": 0 |
| 138 |
}, |
| 139 |
"marginBottom": { |
| 140 |
"type": "number", |
| 141 |
"default": 0 |
| 142 |
}, |
| 143 |
"marginRight": { |
| 144 |
"type": "number", |
| 145 |
"default": 0 |
| 146 |
}, |
| 147 |
"marginLeft": { |
| 148 |
"type": "number", |
| 149 |
"default": 0 |
| 150 |
}, |
| 151 |
"paddingTop": { |
| 152 |
"type": "number", |
| 153 |
"default": 0 |
| 154 |
}, |
| 155 |
"paddingBottom": { |
| 156 |
"type": "number", |
| 157 |
"default": 0 |
| 158 |
}, |
| 159 |
"paddingRight": { |
| 160 |
"type": "number", |
| 161 |
"default": 0 |
| 162 |
}, |
| 163 |
"paddingLeft": { |
| 164 |
"type": "number", |
| 165 |
"default": 5 |
| 166 |
}, |
| 167 |
"backGroundColor": { |
| 168 |
"type": "string", |
| 169 |
"default": "transparent" |
| 170 |
}, |
| 171 |
"borderRadius": { |
| 172 |
"type": "number", |
| 173 |
"default": 0 |
| 174 |
}, |
| 175 |
"lineHeight": { |
| 176 |
"type": "number", |
| 177 |
"default": 1.3 |
| 178 |
}, |
| 179 |
"gutterSpace": { |
| 180 |
"type": "number", |
| 181 |
"default": 1 |
| 182 |
}, |
| 183 |
"enableAutoPlay": { |
| 184 |
"type": "boolean", |
| 185 |
"default": false |
| 186 |
}, |
| 187 |
"numberofSlideHorizontal": { |
| 188 |
"type": "number", |
| 189 |
"default": 4 |
| 190 |
}, |
| 191 |
"carouselSpeed": { |
| 192 |
"type": "number", |
| 193 |
"default": "800" |
| 194 |
}, |
| 195 |
"titleOnHover": { |
| 196 |
"type": "string", |
| 197 |
"default": "lpc-title-hover" |
| 198 |
}, |
| 199 |
"titleOnHoverColor": { |
| 200 |
"type": "string", |
| 201 |
"default": "#ce242c" |
| 202 |
}, |
| 203 |
"enableEqualHeight": { |
| 204 |
"type": "boolean", |
| 205 |
"default": true |
| 206 |
}, |
| 207 |
"animation": { |
| 208 |
"type": "string", |
| 209 |
"default": "" |
| 210 |
}, |
| 211 |
"blockHoverEffect": { |
| 212 |
"type": "string", |
| 213 |
"default": "" |
| 214 |
}, |
| 215 |
"layoutStyle": { |
| 216 |
"type": "string", |
| 217 |
"default": "flash-style-1" |
| 218 |
}, |
| 219 |
"exclusiveText": { |
| 220 |
"type": "string", |
| 221 |
"default": "Top Stories" |
| 222 |
}, |
| 223 |
"exclusiveSubtitle": { |
| 224 |
"type": "boolean", |
| 225 |
"default": false |
| 226 |
}, |
| 227 |
"exclusiveSubtitleText": { |
| 228 |
"type": "string", |
| 229 |
"default": "Exclusive" |
| 230 |
}, |
| 231 |
"spinner": { |
| 232 |
"type": "boolean", |
| 233 |
"default": false |
| 234 |
}, |
| 235 |
"spinnerOption": { |
| 236 |
"type": "string", |
| 237 |
"default": "spinner-option-1" |
| 238 |
}, |
| 239 |
"spinnerStyle": { |
| 240 |
"type": "string", |
| 241 |
"default": "spinner-style-2" |
| 242 |
}, |
| 243 |
"spinnerIcon": { |
| 244 |
"type": "string", |
| 245 |
"default": "fas fa-spinner" |
| 246 |
}, |
| 247 |
"animationStyle": { |
| 248 |
"type": "string", |
| 249 |
"default": "animation-style-2" |
| 250 |
}, |
| 251 |
"direction": { |
| 252 |
"type": "string", |
| 253 |
"default": "left" |
| 254 |
}, |
| 255 |
"animationSpeed": { |
| 256 |
"type": "number", |
| 257 |
"default": 60 |
| 258 |
}, |
| 259 |
"pauseOnHover": { |
| 260 |
"type": "boolean", |
| 261 |
"default": true |
| 262 |
}, |
| 263 |
"border": { |
| 264 |
"type": "boolean", |
| 265 |
"default": false |
| 266 |
}, |
| 267 |
"borderWidth": { |
| 268 |
"type": "number", |
| 269 |
"default": 3 |
| 270 |
}, |
| 271 |
"borderStyle": { |
| 272 |
"type": "string", |
| 273 |
"default": "solid" |
| 274 |
}, |
| 275 |
"borderColor": { |
| 276 |
"type": "string", |
| 277 |
"default": "#000" |
| 278 |
}, |
| 279 |
"imgBorderRadius": { |
| 280 |
"type": "number", |
| 281 |
"default": 0 |
| 282 |
}, |
| 283 |
"exclusiveFontSize": { |
| 284 |
"type": "number", |
| 285 |
"default": 16 |
| 286 |
}, |
| 287 |
"exclusiveFontFamily": { |
| 288 |
"type": "string", |
| 289 |
"default": "Default" |
| 290 |
}, |
| 291 |
"exclusiveFontWeight": { |
| 292 |
"type": "string", |
| 293 |
"default": "700" |
| 294 |
}, |
| 295 |
"exclusiveFontSubset": { |
| 296 |
"type": "string" |
| 297 |
}, |
| 298 |
"exclusiveFontSizeType": { |
| 299 |
"type": "string", |
| 300 |
"default": "px" |
| 301 |
}, |
| 302 |
"exclusiveFontSizeMobile": { |
| 303 |
"type": "number", |
| 304 |
"default": 16 |
| 305 |
}, |
| 306 |
"exclusiveFontSizeTablet": { |
| 307 |
"type": "number", |
| 308 |
"default": 16 |
| 309 |
}, |
| 310 |
"exclusiveLoadGoogleFonts": { |
| 311 |
"type": "boolean", |
| 312 |
"default": false |
| 313 |
}, |
| 314 |
"newsColor": { |
| 315 |
"type": "string", |
| 316 |
"default": "#fff" |
| 317 |
}, |
| 318 |
"newsBgColor": { |
| 319 |
"type": "string", |
| 320 |
"default": "#BB1919" |
| 321 |
}, |
| 322 |
"background": { |
| 323 |
"type": "boolean", |
| 324 |
"default": true |
| 325 |
}, |
| 326 |
"fixedWidth": { |
| 327 |
"type": "boolean", |
| 328 |
"default": true |
| 329 |
}, |
| 330 |
"postWidth": { |
| 331 |
"type": "number", |
| 332 |
"default": 275 |
| 333 |
}, |
| 334 |
"postTitleLineHeight": { |
| 335 |
"type": "number", |
| 336 |
"default": 1.5 |
| 337 |
}, |
| 338 |
"exclusiveSubtitleFontSize": { |
| 339 |
"type": "number", |
| 340 |
"default": 11 |
| 341 |
}, |
| 342 |
"exclusiveSubtitleFontFamily": { |
| 343 |
"type": "string", |
| 344 |
"default": "Default" |
| 345 |
}, |
| 346 |
"exclusiveSubtitleFontWeight": { |
| 347 |
"type": "string", |
| 348 |
"default": "" |
| 349 |
}, |
| 350 |
"exclusiveSubtitleFontSubset": { |
| 351 |
"type": "string" |
| 352 |
}, |
| 353 |
"exclusiveSubtitleFontSizeType": { |
| 354 |
"type": "string", |
| 355 |
"default": "px" |
| 356 |
}, |
| 357 |
"exclusiveSubtitleFontSizeMobile": { |
| 358 |
"type": "number", |
| 359 |
"default": 11 |
| 360 |
}, |
| 361 |
"exclusiveSubtitleFontSizeTablet": { |
| 362 |
"type": "number", |
| 363 |
"default": 11 |
| 364 |
}, |
| 365 |
"exclusiveSubtitleLoadGoogleFonts": { |
| 366 |
"type": "boolean", |
| 367 |
"default": false |
| 368 |
} |
| 369 |
}, |
| 370 |
"editorScript": "file:./index.js", |
| 371 |
"editorStyle": "file:./index.css", |
| 372 |
"style": "file:./style-index.css", |
| 373 |
"viewScript": "file:./view.js", |
| 374 |
"render": "file:./render.php" |
| 375 |
} |