PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / blocks / search-filter / block.js

block.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/blocks/search-filter/block.js

32 lines 700 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { registerBlockType } from "@wordpress/blocks";
2 import { isBlockEnabled } from "../../utils";
3 import { searchBlockIcon } from "./icons";
4
5 const options = {
6 apiVersion: 3,
7 icon: searchBlockIcon,
8 category: "sp-smart-post-show",
9 name: "sp-smart-post-show/search-filter",
10 parent: ["sp-smart-post-show/live-filter"],
11 title: "Keyword Search Filter",
12 description: "Search posts instantly by keywords.",
13 supports: {
14 align: ["wide", "full"],
15 },
16 example: {
17 attributes: {
18 isPreview: true,
19 },
20 },
21 edit: () => null,
22 save: () => null,
23 };
24
25 const registerBlockTypeFn = () => {
26 if (isBlockEnabled(options.name)) {
27 registerBlockType(options.name, options);
28 }
29 };
30
31 registerBlockTypeFn();
32