| @@ -211,8 +211,9 @@ | ||
| 211 | 211 | 'enable_print_icon' => true, |
| 212 | 212 | 'enable_tags' => true, |
| 213 | 213 | 'email_feedback' => true, |
| 214 | 214 | 'feedback_link_text' => __( 'Still stuck? How can we help?', 'betterdocs' ), |
| 215 | + 'reaction_feedback_text' => __( 'Thanks for your feedback', 'betterdocs'), | |
| 215 | 216 | 'feedback_url' => '', |
| 216 | 217 | 'feedback_form_title' => __( 'How can we help?', 'betterdocs' ), |
| 217 | 218 | 'email_address' => get_option( 'admin_email' ), |
| 218 | 219 | 'show_last_update_time' => true, |
| @@ -217,9 +218,9 @@ | ||
| 217 | 218 | 'email_address' => get_option( 'admin_email' ), |
| 218 | 219 | 'show_last_update_time' => true, |
| 219 | 220 | 'enable_navigation' => true, |
| 220 | 221 | 'enable_comment' => true, |
| 221 | - 'enable_credit' => true, | |
| 222 | + 'enable_credit' => false, | |
| 222 | 223 | 'enable_archive_sidebar' => true, |
| 223 | 224 | 'archive_nested_subcategory' => true, |
| 224 | 225 | 'enable_content_restriction' => false, |
| 225 | 226 | 'enable_reporting' => false, |
| @@ -228,9 +229,10 @@ | ||
| 228 | 229 | 'reporting_email' => get_option( 'admin_email' ), |
| 229 | 230 | 'enable_write_with_ai' => true, |
| 230 | 231 | 'enable_faq_write_with_ai' => true, |
| 231 | 232 | 'ai_autowrite_api_key' => '', |
| 232 | - 'ai_autowrite_max_token' => 1500 | |
| 233 | + 'ai_autowrite_max_token' => 1500, | |
| 234 | + 'enable_estimated_reading_time' => false | |
| 233 | 235 | ]; |
| 234 | 236 | |
| 235 | 237 | $_default = apply_filters( 'betterdocs_default_settings', $_default ); |
| 236 | 238 | // $_default = apply_filters_deprecated( |
| @@ -539,17 +541,17 @@ | ||
| 539 | 541 | 'type' => 'toggle', |
| 540 | 542 | 'label' => __( 'Built-in Documentation Page', 'betterdocs' ), |
| 541 | 543 | 'enable_disable_text_active' => true, |
| 542 | 544 | 'default' => 1, |
| 543 | - 'priority' => 2, | |
| 544 | - 'label_subtitle' => __( 'If you disable root slug for KB Archives, your individual knowledge base URL will be like this: https://example.com/knowledgebase-1', 'betterdocs' ) | |
| 545 | + 'priority' => 2 | |
| 545 | 546 | ], |
| 546 | 547 | 'breadcrumb_doc_title' => [ |
| 547 | 548 | 'name' => 'breadcrumb_doc_title', |
| 548 | 549 | 'type' => 'text', |
| 549 | 550 | 'label' => __( 'Documentation Page Title', 'betterdocs' ), |
| 550 | - 'default' => 'Docs', | |
| 551 | - 'priority' => 3 | |
| 551 | + 'default' => __( 'Docs', 'betterdocs' ), | |
| 552 | + 'priority' => 3, | |
| 553 | + 'rules' => Rules::is( 'builtin_doc_page', true ) | |
| 552 | 554 | ], |
| 553 | 555 | 'docs_slug' => [ |
| 554 | 556 | 'name' => 'docs_slug', |
| 555 | 557 | 'type' => 'text', |
| @@ -615,8 +617,17 @@ | ||
| 615 | 617 | 'default' => 'everyone', |
| 616 | 618 | 'priority' => 11, |
| 617 | 619 | 'is_pro' => true |
| 618 | 620 | ], |
| 621 | + 'unique_visitor_count' => [ | |
| 622 | + 'name' => 'unique_visitor_count', | |
| 623 | + 'type' => 'toggle', | |
| 624 | + 'label' => __( 'Unique Visitor Count', 'betterdocs' ), | |
| 625 | + 'enable_disable_text_active' => true, | |
| 626 | + 'default' => true, | |
| 627 | + 'priority' => 12, | |
| 628 | + 'is_pro' => true | |
| 629 | + ], | |
| 619 | 630 | 'exclude_bot_analytics' => [ |
| 620 | 631 | 'name' => 'exclude_bot_analytics', |
| 621 | 632 | 'type' => 'toggle', |
| 622 | 633 | 'label' => __( 'Exclude Bot Analytics', 'betterdocs' ), |
| @@ -621,9 +632,9 @@ | ||
| 621 | 632 | 'type' => 'toggle', |
| 622 | 633 | 'label' => __( 'Exclude Bot Analytics', 'betterdocs' ), |
| 623 | 634 | 'enable_disable_text_active' => true, |
| 624 | 635 | 'default' => true, |
| 625 | - 'priority' => 12, | |
| 636 | + 'priority' => 13, | |
| 626 | 637 | 'is_pro' => true |
| 627 | 638 | ] |
| 628 | 639 | ] |
| 629 | 640 | ] |
| @@ -825,9 +836,9 @@ | ||
| 825 | 836 | ] ), |
| 826 | 837 | 'child_category_exclude' => apply_filters( 'child_category_exclude', [ |
| 827 | 838 | 'name' => 'child_category_exclude', |
| 828 | 839 | 'type' => 'toggle', |
| 829 | - 'label' => __( 'Category Search', 'betterdocs' ), | |
| 840 | + 'label' => __( 'Exclude Child Terms In Category Search', 'betterdocs' ), | |
| 830 | 841 | 'enable_disable_text_active' => true, |
| 831 | 842 | 'default' => '', |
| 832 | 843 | 'priority' => 3, |
| 833 | 844 | 'is_pro' => true |
| @@ -999,9 +1010,9 @@ | ||
| 999 | 1010 | 'type' => 'section', |
| 1000 | 1011 | 'label' => __( 'General', 'betterdocs' ), |
| 1001 | 1012 | 'priority' => 5, |
| 1002 | 1013 | 'fields' => [ |
| 1003 | - 'enable_post_title' => [ | |
| 1014 | + 'enable_post_title' => [ | |
| 1004 | 1015 | 'name' => 'enable_post_title', |
| 1005 | 1016 | 'type' => 'toggle', |
| 1006 | 1017 | 'label' => __( 'Doc Title', 'betterdocs' ), |
| 1007 | 1018 | 'enable_disable_text_active' => true, |
| @@ -1007,9 +1018,9 @@ | ||
| 1007 | 1018 | 'enable_disable_text_active' => true, |
| 1008 | 1019 | 'default' => 1, |
| 1009 | 1020 | 'priority' => 1 |
| 1010 | 1021 | ], |
| 1011 | - 'enable_sidebar_cat_list' => [ | |
| 1022 | + 'enable_sidebar_cat_list' => [ | |
| 1012 | 1023 | 'name' => 'enable_sidebar_cat_list', |
| 1013 | 1024 | 'type' => 'toggle', |
| 1014 | 1025 | 'label' => __( 'Sidebar Category List', 'betterdocs' ), |
| 1015 | 1026 | 'enable_disable_text_active' => true, |
| @@ -1015,9 +1026,9 @@ | ||
| 1015 | 1026 | 'enable_disable_text_active' => true, |
| 1016 | 1027 | 'default' => 1, |
| 1017 | 1028 | 'priority' => 2 |
| 1018 | 1029 | ], |
| 1019 | - 'enable_print_icon' => [ | |
| 1030 | + 'enable_print_icon' => [ | |
| 1020 | 1031 | 'name' => 'enable_print_icon', |
| 1021 | 1032 | 'type' => 'toggle', |
| 1022 | 1033 | 'label' => __( 'Print Icon', 'betterdocs' ), |
| 1023 | 1034 | 'enable_disable_text_active' => true, |
| @@ -1023,9 +1034,9 @@ | ||
| 1023 | 1034 | 'enable_disable_text_active' => true, |
| 1024 | 1035 | 'default' => 1, |
| 1025 | 1036 | 'priority' => 3 |
| 1026 | 1037 | ], |
| 1027 | - 'enable_tags' => [ | |
| 1038 | + 'enable_tags' => [ | |
| 1028 | 1039 | 'name' => 'enable_tags', |
| 1029 | 1040 | 'type' => 'toggle', |
| 1030 | 1041 | 'label' => __( 'Tags', 'betterdocs' ), |
| 1031 | 1042 | 'enable_disable_text_active' => true, |
| @@ -1031,9 +1042,9 @@ | ||
| 1031 | 1042 | 'enable_disable_text_active' => true, |
| 1032 | 1043 | 'default' => 1, |
| 1033 | 1044 | 'priority' => 4 |
| 1034 | 1045 | ], |
| 1035 | - 'show_last_update_time' => [ | |
| 1046 | + 'show_last_update_time' => [ | |
| 1036 | 1047 | 'name' => 'show_last_update_time', |
| 1037 | 1048 | 'type' => 'toggle', |
| 1038 | 1049 | 'label' => __( 'Last Update Time', 'betterdocs' ), |
| 1039 | 1050 | 'enable_disable_text_active' => true, |
| @@ -1039,9 +1050,9 @@ | ||
| 1039 | 1050 | 'enable_disable_text_active' => true, |
| 1040 | 1051 | 'default' => 1, |
| 1041 | 1052 | 'priority' => 5 |
| 1042 | 1053 | ], |
| 1043 | - 'enable_navigation' => [ | |
| 1054 | + 'enable_navigation' => [ | |
| 1044 | 1055 | 'name' => 'enable_navigation', |
| 1045 | 1056 | 'type' => 'toggle', |
| 1046 | 1057 | 'label' => __( 'Navigation', 'betterdocs' ), |
| 1047 | 1058 | 'enable_disable_text_active' => true, |
| @@ -1047,9 +1058,9 @@ | ||
| 1047 | 1058 | 'enable_disable_text_active' => true, |
| 1048 | 1059 | 'default' => 1, |
| 1049 | 1060 | 'priority' => 6 |
| 1050 | 1061 | ], |
| 1051 | - 'enable_comment' => [ | |
| 1062 | + 'enable_comment' => [ | |
| 1052 | 1063 | 'name' => 'enable_comment', |
| 1053 | 1064 | 'type' => 'toggle', |
| 1054 | 1065 | 'label' => __( 'Comment', 'betterdocs' ), |
| 1055 | 1066 | 'enable_disable_text_active' => true, |
| @@ -1055,16 +1066,31 @@ | ||
| 1055 | 1066 | 'enable_disable_text_active' => true, |
| 1056 | 1067 | 'default' => '', |
| 1057 | 1068 | 'priority' => 7 |
| 1058 | 1069 | ], |
| 1059 | - 'enable_credit' => [ | |
| 1070 | + 'enable_credit' => [ | |
| 1060 | 1071 | 'name' => 'enable_credit', |
| 1061 | 1072 | 'type' => 'toggle', |
| 1062 | - 'label' => __( 'Credit', 'betterdocs' ), | |
| 1073 | + 'label' => __( 'Show Powered by BetterDocs', 'betterdocs' ), | |
| 1063 | 1074 | 'enable_disable_text_active' => true, |
| 1064 | - 'default' => 1, | |
| 1075 | + 'default' => '', | |
| 1065 | 1076 | 'priority' => 8 |
| 1066 | - ] | |
| 1077 | + ], | |
| 1078 | + 'enable_estimated_reading_time' => [ | |
| 1079 | + 'name' => 'enable_estimated_reading_time', | |
| 1080 | + 'type' => 'toggle', | |
| 1081 | + 'label' => __( 'Estimated Reading Time', 'betterdocs' ), | |
| 1082 | + 'enable_disable_text_active' => true, | |
| 1083 | + 'default' => 0, | |
| 1084 | + 'priority' => 9 | |
| 1085 | + ], | |
| 1086 | + 'reaction_feedback_text' => [ | |
| 1087 | + 'name' => 'reaction_feedback_text', | |
| 1088 | + 'type' => 'text', | |
| 1089 | + 'label' => __( 'Reaction Feedback Text', 'betterdocs' ), | |
| 1090 | + 'default' => __( 'Thanks for your feedback', 'betterdocs' ), | |
| 1091 | + 'priority' => 10, | |
| 1092 | + ], | |
| 1067 | 1093 | ] |
| 1068 | 1094 | ], |
| 1069 | 1095 | 'layout_single_doc_TOC' => [ |
| 1070 | 1096 | 'id' => 'layout_single_doc_TOC', |