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 / admin / pages / integrations / index.js

index.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/admin/pages/integrations/index.js

82 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import IntegrateCard from "./card";
2 import {
3 ElementorIcon,
4 DiviIcon,
5 WPBakeryIcon,
6 Oxygen,
7 Beaver,
8 Bricks,
9 } from "./icons";
10
11 const integrationData = {
12 elementor: {
13 Icon: ElementorIcon,
14 title: "Elementor",
15 text: "This addon lets you use Smart Post Gutenberg blocks in Elementor as reusable shortcodes with Saved Templates.",
16 // demoLink: "#",
17 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-elementor/",
18 },
19 divi: {
20 title: "Divi",
21 Icon: DiviIcon,
22 text: "This addon lets you use Smart Post Gutenberg blocks in Divi as reusable shortcodes with Saved Templates.",
23 // demoLink: "#",
24 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-divi/",
25 },
26 wpbakery: {
27 title: "WPBakery",
28 Icon: WPBakeryIcon,
29 text: "This addon lets you use Smart Post Gutenberg blocks in WPBakery as reusable shortcodes with Saved Templates.",
30 // demoLink: "#",
31 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-wpbakery/",
32 },
33 oxygen: {
34 title: "Oxygen",
35 Icon: Oxygen,
36 text: "This addon lets you use Smart Post Gutenberg blocks in Oxygen as reusable shortcodes with Saved Templates.",
37 // demoLink: "#",
38 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-oxygen/",
39 },
40 beaver: {
41 title: "Beaver Builder",
42 Icon: Beaver,
43 text: "This addon lets you use Smart Post Gutenberg blocks in Beaver as reusable shortcodes with Saved Templates.",
44 // demoLink: "#",
45 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-beaver-builder/",
46 },
47 bricks: {
48 title: "Bricks",
49 Icon: Bricks,
50 text: "This addon lets you use Smart Post Gutenberg blocks in Bricks as reusable shortcodes with Saved Templates.",
51 // demoLink: "#",
52 docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-bricks/",
53 },
54 };
55
56 const Integrations = ({ integrationOptions, blockShowHideHandler }) => {
57 return (
58 <>
59 <div className="sp-pcp-blocks-setting-modules-page">
60 <div className="sp-pcp-page-section-title">
61 <h3 className="sp-pcp-blocks-setting-title">Control Page Builder Addons</h3>
62 <span>Turn page builder addons on or off as needed to improve performance.</span>
63 </div>
64 {Object.entries(integrationData)?.map(([name, data]) => {
65 const toggleValue = integrationOptions.find((item) => item?.name === name)?.show;
66
67 return <IntegrateCard
68 key={name}
69 itemName={name}
70 data={data}
71 value={toggleValue}
72 integrationName={name}
73 blockShowHideHandler={blockShowHideHandler}
74 />;
75 })}
76 </div>
77 </>
78 );
79 };
80
81 export default Integrations;
82