| 1 |
import { registerBlockType } from "@wordpress/blocks"; |
| 2 |
import { __ } from "@wordpress/i18n"; |
| 3 |
|
| 4 |
import attributes from "./components/attributes"; |
| 5 |
import Edit from "./components/edit"; |
| 6 |
|
| 7 |
registerBlockType("notificationx/countdown", { |
| 8 |
title: __("NotificationX Countdown Timer", "notificationx"), |
| 9 |
description: __( |
| 10 |
"A due-date or evergreen countdown timer with full styling controls.", |
| 11 |
"notificationx" |
| 12 |
), |
| 13 |
category: "widgets", |
| 14 |
keywords: ["countdown", "timer", "notificationx", "nx", "sale", "offer"], |
| 15 |
icon: "clock", |
| 16 |
apiVersion: 2, |
| 17 |
attributes, |
| 18 |
supports: { |
| 19 |
html: false, |
| 20 |
}, |
| 21 |
edit: Edit, |
| 22 |
// Dynamic block — rendered server-side via render_callback in Blocks.php. |
| 23 |
save: () => null, |
| 24 |
}); |
| 25 |
|