| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/post-carousel", |
| 6 |
"description": "Displays posts in a scrolling carousel.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Post Carousel", |
| 9 |
"supports": { |
| 10 |
"html": false, |
| 11 |
"align": [ |
| 12 |
"wide", |
| 13 |
"full" |
| 14 |
] |
| 15 |
}, |
| 16 |
"attributes": { |
| 17 |
"postTemplate": { |
| 18 |
"type": "string" |
| 19 |
}, |
| 20 |
"postsToShow": { |
| 21 |
"type": "number", |
| 22 |
"default": 5 |
| 23 |
}, |
| 24 |
"offset": { |
| 25 |
"type": "number", |
| 26 |
"default": 0 |
| 27 |
}, |
| 28 |
"ignoreSticky": { |
| 29 |
"type": "boolean", |
| 30 |
"default": true |
| 31 |
}, |
| 32 |
"filterById": { |
| 33 |
"type": "string" |
| 34 |
}, |
| 35 |
"excludeById": { |
| 36 |
"type": "string" |
| 37 |
}, |
| 38 |
"excludeCurrentPost": { |
| 39 |
"type": "boolean", |
| 40 |
"default": false |
| 41 |
}, |
| 42 |
"childPagesCurrentPage": { |
| 43 |
"type": "boolean", |
| 44 |
"default": false |
| 45 |
}, |
| 46 |
"parentPageId": { |
| 47 |
"type": "string" |
| 48 |
}, |
| 49 |
"postType": { |
| 50 |
"type": "string", |
| 51 |
"default": "post" |
| 52 |
}, |
| 53 |
"taxonomy": { |
| 54 |
"type": "array", |
| 55 |
"items": { |
| 56 |
"type": "string" |
| 57 |
} |
| 58 |
}, |
| 59 |
"terms": { |
| 60 |
"type": "array", |
| 61 |
"items": { |
| 62 |
"type": "string" |
| 63 |
} |
| 64 |
}, |
| 65 |
"relation": { |
| 66 |
"type": "string", |
| 67 |
"default": "AND" |
| 68 |
}, |
| 69 |
"order": { |
| 70 |
"type": "string", |
| 71 |
"default": "desc" |
| 72 |
}, |
| 73 |
"orderBy": { |
| 74 |
"type": "string", |
| 75 |
"default": "date" |
| 76 |
}, |
| 77 |
"sliderSlidesToShowDesktop": { |
| 78 |
"type": "string", |
| 79 |
"default": "2" |
| 80 |
}, |
| 81 |
"sliderSlidesToShowLaptop": { |
| 82 |
"type": "string", |
| 83 |
"default": "1" |
| 84 |
}, |
| 85 |
"sliderSlidesToShowTablet": { |
| 86 |
"type": "string", |
| 87 |
"default": "1" |
| 88 |
}, |
| 89 |
"sliderSlidesToShowMobile": { |
| 90 |
"type": "string", |
| 91 |
"default": "1" |
| 92 |
}, |
| 93 |
"sliderSlidesToScroll": { |
| 94 |
"type": "string", |
| 95 |
"default": "1" |
| 96 |
}, |
| 97 |
"sliderAutoplay": { |
| 98 |
"type": "boolean", |
| 99 |
"default": false |
| 100 |
}, |
| 101 |
"sliderPauseOnHover": { |
| 102 |
"type": "boolean", |
| 103 |
"default": false |
| 104 |
}, |
| 105 |
"sliderAutoplaySpeed": { |
| 106 |
"type": "string", |
| 107 |
"default": "6000" |
| 108 |
}, |
| 109 |
"sliderInfinite": { |
| 110 |
"type": "boolean", |
| 111 |
"default": true |
| 112 |
}, |
| 113 |
"sliderAnimationSpeed": { |
| 114 |
"type": "string", |
| 115 |
"default": "800" |
| 116 |
}, |
| 117 |
"sliderCenterMode": { |
| 118 |
"type": "boolean", |
| 119 |
"default": false |
| 120 |
}, |
| 121 |
"sliderSpacing": { |
| 122 |
"type": "string", |
| 123 |
"default": "small" |
| 124 |
}, |
| 125 |
"sliderArrows": { |
| 126 |
"type": "string", |
| 127 |
"default": "inside" |
| 128 |
}, |
| 129 |
"sliderDots": { |
| 130 |
"type": "string", |
| 131 |
"default": "outside" |
| 132 |
}, |
| 133 |
"className": { |
| 134 |
"type": "string" |
| 135 |
}, |
| 136 |
"metaQuery": { |
| 137 |
"type": "array", |
| 138 |
"default": [] |
| 139 |
} |
| 140 |
}, |
| 141 |
"editorScript": [ |
| 142 |
"jquery", |
| 143 |
"slick", |
| 144 |
"imagesloaded", |
| 145 |
"file:./index.js" |
| 146 |
], |
| 147 |
"editorStyle": "file:./index.css", |
| 148 |
"style": [ |
| 149 |
"slick", |
| 150 |
"slick-theme", |
| 151 |
"file:./style-index.css" |
| 152 |
], |
| 153 |
"viewScript": [ |
| 154 |
"jquery", |
| 155 |
"slick", |
| 156 |
"imagesloaded", |
| 157 |
"file:./view.js" |
| 158 |
] |
| 159 |
} |