PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.2.13
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.2.13
3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 All 156 releases
notificationx / blocks / countdown / components / constants.js

constants.js in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar 3.2.13, at blocks/countdown/components/constants.js

43 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from "@wordpress/i18n";
2
3 // Dimension / border control-name constants (must be unique from one another).
4 export const BOX_PADDING = "nxCdBoxPadding";
5 export const BOX_BORDER = "nxCdBoxBorder";
6 export const DIGITS_PADDING = "nxCdDigitsPadding";
7 export const DIGITS_BORDER = "nxCdDigitsBorder";
8
9 // The four time units, used to generate per-unit attributes / styles / markup.
10 export const UNITS = ["days", "hours", "minutes", "seconds"];
11
12 export const COUNTDOWN_TYPES = [
13 { label: __("Default (Due Date)", "notificationx"), value: "due_date" },
14 { label: __("Evergreen Timer", "notificationx"), value: "evergreen" },
15 ];
16
17 export const LAYOUT_OPTIONS = [
18 { label: __("Grid View", "notificationx"), value: "grid" },
19 { label: __("List View", "notificationx"), value: "list" },
20 ];
21
22 export const LABEL_VIEW_OPTIONS = [
23 { label: __("Block", "notificationx"), value: "nx-countdown-label-block" },
24 { label: __("Inline", "notificationx"), value: "nx-countdown-label-inline" },
25 ];
26
27 export const SEPARATOR_OPTIONS = [
28 { label: __("Solid ( : )", "notificationx"), value: "solid" },
29 { label: __("Dotted ( · )", "notificationx"), value: "dotted" },
30 ];
31
32 export const ALIGN_OPTIONS = [
33 { label: __("Left", "notificationx"), value: "left" },
34 { label: __("Center", "notificationx"), value: "center" },
35 { label: __("Right", "notificationx"), value: "right" },
36 ];
37
38 export const EXPIRE_TYPES = [
39 { label: __("None", "notificationx"), value: "none" },
40 { label: __("Show Message", "notificationx"), value: "text" },
41 { label: __("Redirect to URL", "notificationx"), value: "url" },
42 ];
43