| 1 |
import { __ } from "@wordpress/i18n"; |
| 2 |
|
| 3 |
export const BETTERDOCS_SIDEBAR_TERMS_ORDERBY = [ |
| 4 |
{ label: __("Name", "betterdocs"), value: "name" }, |
| 5 |
{ label: __("Slug", "betterdocs"), value: "slug" }, |
| 6 |
{ label: __("Term Group", "betterdocs"), value: "term_group" }, |
| 7 |
{ label: __("ID", "betterdocs"), value: "id" }, |
| 8 |
{ label: __("Description", "betterdocs"), value: "description" }, |
| 9 |
{ label: __("Count", "betterdocs"), value: "count" }, |
| 10 |
{ |
| 11 |
label: __("BetterDocs Order", "betterdocs"), |
| 12 |
value: "doc_category_order", |
| 13 |
}, |
| 14 |
]; |
| 15 |
|
| 16 |
export const BETTERDOCS_SIDEBAR_DOCS_ORDERBY = [ |
| 17 |
{ label: __("No order", "betterdocs"), value: "none" }, |
| 18 |
{ label: __("Post ID", "betterdocs"), value: "id" }, |
| 19 |
{ label: __("Post Author", "betterdocs"), value: "author" }, |
| 20 |
{ label: __("Title", "betterdocs"), value: "title" }, |
| 21 |
{ label: __("Date", "betterdocs"), value: "date" }, |
| 22 |
{ label: __("Last Modified Date", "betterdocs"), value: "modified" }, |
| 23 |
{ label: __("Parent Id", "betterdocs"), value: "parent" }, |
| 24 |
{ label: __("Random", "betterdocs"), value: "rand" }, |
| 25 |
{ label: __("Comment Count", "betterdocs"), value: "comment_count" }, |
| 26 |
{ label: __("Menu Order", "betterdocs"), value: "menu_order" }, |
| 27 |
{ label: __("BetterDocs Order", "betterdocs"), value: "betterdocs_order" }, |
| 28 |
]; |
| 29 |
|
| 30 |
export const BETTERDOCS_SIDEBAR_DOCS_ORDER = [ |
| 31 |
{ label: __("Ascending", "betterdocs"), value: "asc" }, |
| 32 |
{ label: __("Descending", "betterdocs"), value: "desc" }, |
| 33 |
]; |
| 34 |
|
| 35 |
export const BETTERDOCS_SIDEBAR_TERMS_ORDER = [ |
| 36 |
{ label: __("Ascending", "betterdocs"), value: "asc" }, |
| 37 |
{ label: __("Descending", "betterdocs"), value: "desc" }, |
| 38 |
]; |
| 39 |
|
| 40 |
export const BETTERDOCS_SIDEBAR_LAYOUTS = [ |
| 41 |
{ label: __("Layout 1", "betterdocs"), value: "layout-1" }, |
| 42 |
{ label: __("Layout 2", "betterdocs"), value: "layout-2" }, |
| 43 |
{ label: __("Layout 3", "betterdocs"), value: "layout-3" }, |
| 44 |
{ label: __("Layout 4", "betterdocs"), value: "layout-4" }, |
| 45 |
{ label: __("Layout 5", "betterdocs"), value: "layout-5" }, |
| 46 |
{ label: __("Layout 6", "betterdocs"), value: "layout-6" }, |
| 47 |
{ label: __("Layout 7", "betterdocs"), value: "layout-7" }, |
| 48 |
{ label: __("Layout 8", "betterdocs"), value: "layout-8" }, |
| 49 |
]; |
| 50 |
|
| 51 |
export const POSTS_ORDER_BY = [ |
| 52 |
{ label: __("Doc ID", "betterdocs"), value: "id" }, |
| 53 |
{ label: __("Doc Author", "betterdocs"), value: "author" }, |
| 54 |
{ label: __("Title", "betterdocs"), value: "title" }, |
| 55 |
{ label: __("Date", "betterdocs"), value: "date" }, |
| 56 |
{ label: __("Last Modified Date", "betterdocs"), value: "modified" }, |
| 57 |
{ label: __("Parent Id", "betterdocs"), value: "parent" }, |
| 58 |
{ label: __("Random", "betterdocs"), value: "rand" }, |
| 59 |
{ label: __("Comment Count", "betterdocs"), value: "comment_count" }, |
| 60 |
{ label: __("Menu Order", "betterdocs"), value: "menu_order" }, |
| 61 |
{ label: __("BetterDocs Order", "betterdocs"), value: "betterdocs_order"} |
| 62 |
]; |
| 63 |
|
| 64 |
export const POSTS_ORDER = [ |
| 65 |
{ label: __("Ascending", "betterdocs"), value: "asc" }, |
| 66 |
{ label: __("Descending", "betterdocs"), value: "desc" }, |
| 67 |
]; |
| 68 |
|
| 69 |
export const CONTAINER_PADDING = 'container_padding'; |
| 70 |
export const CONTAINER_MARGIN = 'container_margin'; |
| 71 |
export const CONTAINER_BACKGROUND = 'container_background'; |
| 72 |
export const CONTAINER_HEIGHT = 'container_height'; |
| 73 |
export const CONTAINER_WIDTH = 'container_width'; |
| 74 |
export const BOX_PADDING_LAYOUT_1 = "box_padding_layout_1"; |
| 75 |
export const BOX_MARGIN_LAYOUT_1 = "box_margin_layout_1"; |
| 76 |
export const BOX_HEIGHT_LAYOUT_1 = "box_height_layout_1"; |
| 77 |
export const BOX_WIDTH_LAYOUT_1 = 'box_width_layout_1'; |
| 78 |
export const BOX_TITLE_BACKGROUND_LAYOUT_1 = "box_title_background_layout_1"; |
| 79 |
export const BOX_ACTIVE_TITLE_BACKGROUND = 'box_active_title_background'; |
| 80 |
export const BOX_TITLE_BACKGROUND = 'box_title_background'; |
| 81 |
export const BOX_SHADOW_LAYOUT_1 = "box_shadow_layout_1"; |
| 82 |
export const BOX_IMG_SIZE_LAYOUT_1 = "BOX_IMG_SIZE_LAYOUT_1"; |
| 83 |
export const BOX_TITLE_PADDING_LAYOUT_1 = "box_title_padding_layout_1"; |
| 84 |
export const BOX_TITLE_MARGIN_LAYOUT_1 = "box_title_margin_layout_1"; |
| 85 |
export const BOX_TITLE_BORDER_LAYOUT_1 = "box_title_border_layout_1"; |
| 86 |
export const BOX_COUNT_BORDER_LAYOUT_1 = "box_count_border_layout_1"; |
| 87 |
export const BOX_COUNT_BACKGROUND_LAYOUT_1 = 'box_count_background_layout_1'; |
| 88 |
export const BOX_COUNT_BACKGROUND_LAYOUT_6 = 'box_count_background_layout_6'; |
| 89 |
export const BOX_DOC_LIST_BACKGROUND_COLOR = "box_doc_list_background_color"; |
| 90 |
export const BOX_DOC_LIST_PADDING_LAYOUT_1 = "box_doc_list_padding_layout_1"; |
| 91 |
export const BOX_DOC_LIST_MARGIN_LAYOUT_1 = "box_doc_list_margin_layout_1"; |
| 92 |
export const BOX_DOC_LIST_ICON_SIZE_LAYOUT_1 = "box_doc_list_icon_size_layout_1"; |
| 93 |
export const BOX_DOC_LIST_ICON_SIZE_LAYOUT_7 = "box_doc_list_icon_size_layout_7"; |
| 94 |
export const BOX_DOC_LIST_ICON_SPACING_LAYOUT_1 = "box_doc_list_icon_spacing_layout_1"; |
| 95 |
export const BOX_DOC_LIST_SUB_ICON_SIZE_LAYOUT_1 = "box_doc_list_sub_icon_size_layout_1"; |
| 96 |
export const BOX_COUNT_BORDER_LAYOUT_6 = 'box_count_border_layout_6'; |
| 97 |
export const BOX_COUNT_ACTIVE_BACKGROUND_COLOR_LAYOUT_6 = 'box_count_active_background_color_layout_6'; |
| 98 |
export const BOX_ACTIVE_TITLE_BORDER_WIDTH_LAYOUT_6 = 'box_active_title_border_width_layout_6'; |
| 99 |
export const BOX_ACTIVE_LIST_BORDER_WIDTH_LAYOUT_6 = 'box_active_list_border_width_layout_6'; |
| 100 |
export const STICKY_TOC_WIDTH = 'sticky_toc_width'; |
| 101 |
|
| 102 |
|
| 103 |
export const BOX_PADDING_LAYOUT_7 = "box_padding_layout_7"; |
| 104 |
export const BOX_MARGIN_LAYOUT_7 = "box_margin_layout_7"; |
| 105 |
export const BOX_HEIGHT_LAYOUT_7 = "box_height_layout_7"; |
| 106 |
export const BOX_WIDTH_LAYOUT_7 = 'box_width_layout_7'; |
| 107 |
export const BOX_IMG_SIZE_LAYOUT_7 = 'BOX_IMG_SIZE_LAYOUT_7'; |
| 108 |
export const BOX_IMG_SIZE_LAYOUT_7_HEIGHT = 'BOX_IMG_SIZE_LAYOUT_7_HEIGHT'; |
| 109 |
export const BOX_TITLE_BACKGROUND_LAYOUT_7 = "box_title_background_layout_7"; |
| 110 |
export const BOX_SHADOW_LAYOUT_7 = "box_shadow_layout_7"; |
| 111 |
export const BOX_TITLE_PADDING_LAYOUT_7 = "box_title_padding_layout_7"; |
| 112 |
export const BOX_TITLE_MARGIN_LAYOUT_7 = "box_title_margin_layout_7"; |
| 113 |
export const BOX_TITLE_BORDER_LAYOUT_7 = "box_title_border_layout_7"; |
| 114 |
export const BOX_DOC_LIST_PADDING_LAYOUT_7 = "box_doc_list_padding_layout_7"; |
| 115 |
export const BOX_DOC_LIST_MARGIN_LAYOUT_7 = "box_doc_list_margin_layout_7"; |
| 116 |
export const BOX_DOC_LIST_SUB_ICON_SIZE_LAYOUT_7 = "box_doc_list_sub_icon_size_layout_7"; |
| 117 |
export const BOX_TITLE_BACKGROUND_7 = 'box_title_background_7'; |
| 118 |
export const TITLE_BACKGROUND_LAYOUT_8 = 'title_background_8'; |
| 119 |
export const BOX_COUNT_BACKGROUND_LAYOUT_7 = 'box_count_background_layout_7'; |
| 120 |
export const BOX_COUNT_BORDER_LAYOUT_7 = 'box_count_border_layout_7'; |
| 121 |
export const SEARCH_MODAL_FIELD_BACKGROUND = 'search_modal_field_background'; |
| 122 |
export const SEARCH_MODAL_CONTENT_TABS_ICON_SIZE_HEIGHT = 'search_modal_content_tabs_icon_size_height'; |
| 123 |
export const SEARCH_MODAL_CONTENT_TABS_ICON_SIZE_WIDTH = 'search_modal_content_tabs_icon_size_width'; |
| 124 |
export const SEARCH_MODAL_CONTENT_TABS_BORDER = 'search_modal_content_tabs_border'; |
| 125 |
export const SEARCH_MODAL_CONTENT_TABS_LIST_ICON_SIZE = 'search_modal_content_tabs_list_icon_size'; |
| 126 |
export const SEARCH_MODAL_CONTENT_TABS_LIST_BORDER = 'search_modal_content_tabs_list_border'; |
| 127 |
export const SEARCH_MODAL_CONTENT_TABS_LIST_CATEGORY_ICON_SIZE = 'search_modal_content_tabs_list_category_icon_size'; |
| 128 |
|
| 129 |
export const SIDEBAR_SEARCH_BACKGROUND_LAYOUT_7 = 'sidebar_search_background_layout_7' |
| 130 |
export const SIDEBAR_SEARCH_MAGNIFIER_SEARCH_LAYOUT_7_HEIGHT = 'sidebar_search_magnifier_layout_7_height'; |
| 131 |
export const SIDEBAR_SEARCH_MAGNIFIER_SEARCH_LAYOUT_7_WIDTH = 'sidebar_search_magnifier_layout_7_width'; |
| 132 |
export const SIDEBAR_SEARCH_IMAGE_SIZE_WIDTH_LAYOUT_7 = "sidebar_search_image_size_width_layout_7"; |
| 133 |
export const SIDEBAR_SEARCH_IMAGE_SIZE_HEIGHT_LAYOUT_7 = "sidebar_search_image_size_height_layout_7"; |
| 134 |
|
| 135 |
// Layout 8 (Slate Layout) Constants |
| 136 |
export const BOX_PADDING_LAYOUT_8 = "box_padding_layout_8"; |
| 137 |
export const BOX_MARGIN_LAYOUT_8 = "box_margin_layout_8"; |
| 138 |
export const BOX_WIDTH_LAYOUT_8 = 'box_width_layout_8'; |
| 139 |
export const BOX_IMG_SIZE_LAYOUT_8 = 'BOX_IMG_SIZE_LAYOUT_8'; |
| 140 |
export const BOX_TITLE_BACKGROUND_LAYOUT_8 = "box_title_background_layout_8"; |
| 141 |
export const BOX_SHADOW_LAYOUT_8 = "box_shadow_layout_8"; |
| 142 |
export const BOX_TITLE_PADDING_LAYOUT_8 = "box_title_padding_layout_8"; |
| 143 |
export const BOX_TITLE_MARGIN_LAYOUT_8 = "box_title_margin_layout_8"; |
| 144 |
export const BOX_DOC_LIST_PADDING_LAYOUT_8 = "box_doc_list_padding_layout_8"; |
| 145 |
export const BOX_DOC_LIST_MARGIN_LAYOUT_8 = "box_doc_list_margin_layout_8"; |
| 146 |
export const BOX_DOC_LIST_ICON_SIZE_LAYOUT_8 = "box_doc_list_icon_size_layout_8"; |
| 147 |
export const BOX_DOC_LIST_SUB_ICON_SIZE_LAYOUT_8 = "box_doc_list_sub_icon_size_layout_8"; |
| 148 |
export const BOX_COUNT_BACKGROUND_LAYOUT_8 = 'box_count_background_layout_8'; |
| 149 |
|
| 150 |
// Arrow Constants for layouts 2, 3, and 8 |
| 151 |
export const TITLE_ARROW_ICON_SIZE_LAYOUT_2 = 'title_arrow_icon_size_layout_2'; |
| 152 |
export const TITLE_ARROW_ICON_SIZE_LAYOUT_3 = 'title_arrow_icon_size_layout_3'; |
| 153 |
export const TITLE_ARROW_ICON_SIZE_LAYOUT_8 = 'title_arrow_icon_size_layout_8'; |
| 154 |
|
| 155 |
// Doc Sub List Arrow Constants |
| 156 |
export const DOC_SUB_LIST_ARROW_ICON_SIZE = 'doc_sub_list_arrow_icon_size'; |
| 157 |
|