block-template-panel.js
5 years ago
block.js
5 years ago
default-templates.js
6 years ago
helper.js
6 years ago
index.js
5 years ago
sidebar.js
5 years ago
sidebar.js
24 lines
| 1 | const { Fragment } = wp.element; |
| 2 | |
| 3 | const { PluginSidebar, PluginSidebarMoreMenuItem } = wp.editPost; |
| 4 | |
| 5 | const { __ } = wp.i18n; |
| 6 | |
| 7 | import BlockTemplatePanel from "./block-template-panel"; |
| 8 | |
| 9 | export default function() { |
| 10 | return ( |
| 11 | <Fragment> |
| 12 | <PluginSidebarMoreMenuItem target="vkbSidebar"> |
| 13 | { __("VK Blocks Templates", "vk-blocks") } |
| 14 | </PluginSidebarMoreMenuItem> |
| 15 | <PluginSidebar |
| 16 | name="vkbSidebar" |
| 17 | title={ __("VK Blocks Templates", "vk-blocks") } |
| 18 | > |
| 19 | <BlockTemplatePanel /> |
| 20 | </PluginSidebar> |
| 21 | </Fragment> |
| 22 | ); |
| 23 | } |
| 24 |