| 1 |
import { __ } from "@wordpress/i18n"; |
| 2 |
import { registerBlockType } from "@wordpress/blocks"; |
| 3 |
|
| 4 |
import Edit from "./edit"; |
| 5 |
import attributes from "./attributes"; |
| 6 |
import icon from "./icon"; |
| 7 |
|
| 8 |
registerBlockType("betterdocs/archive-header", { |
| 9 |
title: __("BetterDocs Archive Header", "betterdocs"), |
| 10 |
description: __( |
| 11 |
"Header For Archive Page", |
| 12 |
"betterdocs", |
| 13 |
), |
| 14 |
category: "betterdocs", |
| 15 |
attributes, |
| 16 |
icon, |
| 17 |
keywords: [ |
| 18 |
__("betterdocs", "betterdocs"), |
| 19 |
__("archive", "betterdocs"), |
| 20 |
__("header", "betterdocs"), |
| 21 |
__("archive header", "betterdpcs") |
| 22 |
], |
| 23 |
edit: Edit, |
| 24 |
save: () => null, |
| 25 |
example: { |
| 26 |
viewportWidth: 1200, |
| 27 |
}, |
| 28 |
}); |
| 29 |
|