PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / blocks / categorygrid / src / constants.js

constants.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/blocks/categorygrid/src/constants.js

121 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2 import { Dashicon } from '@wordpress/components';
3
4 export const ORDER_BY = [
5 { label: __("Name", "betterdocs"), value: "name" },
6 { label: __("Slug", "betterdocs"), value: "slug" },
7 { label: __("Term Group", "betterdocs"), value: "term_group" },
8 { label: __("ID", "betterdocs"), value: "id" },
9 { label: __("Description", "betterdocs"), value: "description" },
10 {
11 label: __("BetterDocs Order", "betterdocs"),
12 value: "doc_category_order",
13 },
14 ];
15
16 export const POSTS_ORDER_BY = [
17 { label: __("Doc ID", "betterdocs"), value: "id" },
18 { label: __("Doc Author", "betterdocs"), value: "author" },
19 { label: __("Title", "betterdocs"), value: "title" },
20 { label: __("Date", "betterdocs"), value: "date" },
21 { label: __("Last Modified Date", "betterdocs"), value: "modified" },
22 { label: __("Parent Id", "betterdocs"), value: "parent" },
23 { label: __("Random", "betterdocs"), value: "rand" },
24 { label: __("Comment Count", "betterdocs"), value: "comment_count" },
25 { label: __("Menu Order", "betterdocs"), value: "menu_order" },
26 { label: __("BetterDocs Order", "betterdocs"), value: "betterdocs_order" },
27 ];
28
29 export const ORDER = [
30 { label: __("Ascending", "betterdocs"), value: "asc" },
31 { label: __("Descending", "betterdocs"), value: "desc" },
32 ];
33
34 export const LAYOUT = [
35 { label: __("Default", "betterdocs"), value: "default" },
36 { label: __("Layout 2", "betterdocs"), value: "layout-2" },
37 ];
38
39 export const LAYOUT_MODE = [
40 { label: __("Grid", "betterdocs"), value: "grid" },
41 { label: __("Masonry", "betterdocs"), value: "masonry" },
42 ];
43
44 export const HTML_TAGS = [
45 { label: __("H1", "betterdocs"), value: "h1" },
46 { label: __("H2", "betterdocs"), value: "h2" },
47 { label: __("H3", "betterdocs"), value: "h3" },
48 { label: __("H4", "betterdocs"), value: "h4" },
49 { label: __("H5", "betterdocs"), value: "h5" },
50 { label: __("H6", "betterdocs"), value: "h6" },
51 { label: __("span", "betterdocs"), value: "span" },
52 { label: __("p", "betterdocs"), value: "p" },
53 { label: __("div", "betterdocs"), value: "div" },
54 ];
55
56 export const BUTTON_POSITION = [
57 {
58 label: __(
59 <Dashicon icon={"editor-alignleft"} title={__("Left", "betterdocs")} />
60 ),
61 value: "left",
62 },
63 {
64 label: __(
65 <Dashicon
66 icon={"editor-aligncenter"}
67 title={__("Center", "betterdocs")}
68 />
69 ),
70 value: "center",
71 },
72 {
73 label: __(
74 <Dashicon icon={"editor-alignright"} title={__("Right", "betterdocs")} />
75 ),
76 value: "right",
77 },
78 ];
79
80 // responsive range controller
81 export const COLUMNS = "col";
82 export const GRID_SPACE = "gridSpace";
83 export const COUNT_SIZE = "countSize";
84 export const ICON_SIZE = "iconSize";
85 export const ICON_WIDTH = 'iconWidth';
86 export const ICON_HEIGHT = 'iconHeight';
87
88 // dimension control
89 export const GRID_MARGIN = "gridMargin";
90 export const GRID_PADDING = "gridPadding";
91 export const TITLE_MARGIN = "titleMargin";
92 export const TITLE_PADDING = "titlePadding";
93 export const TITLE_MARGIN_LAYOUT_2 = "titleMarginLayout2";
94 export const TITLE_PADDING_LAYOUT_2 = "titlePaddingLayout2";
95 export const LIST_MARGIN = "listMargin";
96 export const LIST_PADDING = "listPadding";
97 export const ICON_MARGIN = "iconMargin";
98 export const BTN_MARGIN = "btnMargin";
99 export const BTN_PADDING = "btnPadding";
100 export const WRAPPER_MARGIN = "wrpMargin";
101 export const CONTAINER_SECTION_MARGIN = 'containerSectionMargin'
102 export const CONTAINER_SECTION_PADDING = 'containerSectionPadding'
103
104 // background controls
105 export const GRID_BACKGROUND = "gridBack";
106 export const TITLE_BACKGROUND = "titleBack";
107 export const COUNT_BACKGROUND = "countBack";
108 export const COUNT_BACKGROUND_LAYOUT_2 = "countBackLayout2";
109 export const LIST_BACKGROUND = "listBack";
110 export const BTN_BACKGROUND = "btnBack";
111 export const CONTAINER_SECTION_BACKGROUND = 'containerSectionBackground';
112
113 // border shadow attriubtes
114 export const GRID_BORDER = "gridBrd";
115 export const TITLE_BORDER = "titleBrd";
116 export const COUNT_BORDER = "countBrd";
117 export const BTN_BORDER = "btnBrd";
118
119 export const COUNT_PADDING_LAYOUT_2 = 'countPaddingLayout2';
120 export const COUNT_MARGIN_LAYOUT_2 = 'countMarginLayout2';
121