1<?php 2/** 3 * The config manager is parsing this fucking file because they want 4 * to be able to use 60*60*24 ???? :( 5 * 6 * See {@link \dokuwiki\plugin\config\core\ConfigParser::parse()} 7 * 8 * Which means that only value can be given as: 9 * * key 10 * * and value 11 * The test test_plugin_default in plugin.test.php is checking that 12 * 13 * What fuck up is fucked up. 14 * 15 * The solution: 16 * * The literal value is copied 17 * * A link to the constant is placed before 18 */ 19 20 21use ComboStrap\IconUtility; 22use ComboStrap\MetadataUtility; 23use ComboStrap\Prism; 24 25 26/** 27 * Related UI components 28 */ 29$conf['maxLinks'] = 10; 30$conf['extra_pattern'] = '{{backlinks>.}}'; 31 32/** 33 * Disqus 34 * See {@link syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES} 35 */ 36$conf['disqusDefaultAttributes'] = 'shortName=""'; 37 38/** 39 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME} 40 */ 41$conf['ActionReaderFirst'] = 'GoToBestEndPageName'; 42 43/** 44 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME} 45 */ 46$conf['ActionReaderSecond'] = 'GoToBestPageName'; 47/** 48 * ie {@link action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE} 49 */ 50$conf['ActionReaderThird'] = 'GoToSearchEngine'; 51$conf['GoToEditMode'] = 1; 52$conf['ShowPageNameIsNotUnique'] = 1; 53$conf['ShowMessageClassic'] = 1; 54$conf['WeightFactorForSamePageName'] = 4; 55$conf['WeightFactorForStartPage'] = 3; 56$conf['WeightFactorForSameNamespace'] = 5; 57 58/** 59 * See {@link UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT_DEFAULT} 60 */ 61$conf['BestEndPageMinimalScoreForIdRedirect'] = 0; 62 63/** 64 * Does automatic canonical processing is on 65 */ 66$conf['MinimalNamesCountForAutomaticCanonical'] = 0; 67 68/** 69 * Icon Namespace 70 * See {@link IconUtility::CONF_ICONS_MEDIA_NAMESPACE} 71 * See {@link IconUtility::CONF_ICONS_MEDIA_NAMESPACE_DEFAULT} 72 */ 73$conf['icons_namespace'] = ":combostrap:icons"; 74 75/** 76 * Css Optimization 77 * See {@link action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET} 78 * See {@link action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET} 79 */ 80$conf['enableMinimalFrontEndStylesheet'] = 0; 81$conf['disableDokuwikiStylesheet'] = 0; 82 83/** 84 * Metadata Viewer 85 * See {@link \ComboStrap\MetadataUtility::CONF_ENABLE_WHEN_EDITING 86 * See {@link \ComboStrap\MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES 87 * See {@link \ComboStrap\MetadataUtility::EXCLUDE_ATTRIBUTE 88 */ 89$conf['enableMetadataViewerWhenEditing'] = 1; 90$conf['metadataViewerDefaultAttributes'] = 'title="Metadata" exclude="tableofcontents"'; 91 92/** 93 * Badge 94 * See {@link syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY 95 */ 96$conf['defaultBadgeAttributes'] = 'type="info" rounded="true"'; 97 98/** 99 * Ads 100 * See {@link \ComboStrap\AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER 101 */ 102$conf['AdsInArticleShowPlaceholder'] = 0; 103 104/** 105 * Code 106 * See {@link syntax_plugin_combo_code::CONF_CODE_ENABLE} 107 * {@link Prism::CONF_PRISM_THEME} 108 */ 109$conf['codeEnable'] = 1; 110$conf['fileEnable'] = 1; 111$conf['prismTheme'] = "tomorrow"; 112$conf['bashPrompt'] = "#"; 113$conf['batchPrompt'] = 'C:\\'; 114$conf['powershellPrompt'] = 'PS C:\\'; 115 116/** 117 * SEO module 118 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE} 119 */ 120$conf['lowQualityPageProtectionEnable'] = 0; 121 122/** 123 * Page Protection Mode {@link \ComboStrap\PageProtection::CONF_PAGE_PROTECTION_MODE} 124 * Empty to be able to see if the value was set 125 * to override the old conf value {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE} 126 * 127 */ 128$conf['pageProtectionMode'] = ""; 129 130/** 131 * Preformatted mode disable 132 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE} 133 */ 134$conf['preformattedEnable'] = 0; 135 136/** 137 * {@link renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES} 138 */ 139$conf['mandatoryQualityRules'] = 'words_min,internal_backlinks_min,internal_links_min'; 140 141/** 142 * {@link action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE} 143 */ 144$conf['autoFrontMatterEnable'] = 1; 145 146/** 147 * {@link action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING} 148 * {@link action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING} 149 */ 150$conf['excludedQualityRulesFromDynamicMonitoring'] = 'words_by_section_avg_min,words_by_section_avg_max'; 151$conf['disableDynamicQualityMonitoring'] = 0; 152 153/** 154 * Class in link {@link \ComboStrap\LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME} 155 */ 156$conf['useDokuwikiLinkClassName'] = 0; 157 158/** 159 * Twitter 160 * {@link action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE} 161 */ 162$conf['defaultTwitterImage'] = ":apple-touch-icon.png"; 163$conf['twitterSiteHandle'] = ""; 164$conf['twitterSiteId'] = ""; 165$conf['twitter:dnt'] = "on"; 166$conf['twitter:widgets:theme'] = "light"; 167$conf['twitter:widgets:border-color'] = "#55acee"; 168 169/** 170 * Page Image {@link Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE} 171 */ 172$conf['disableFirstImageAsPageImage'] = 0; 173 174/** 175 * Facebook 176 * {@link action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE} 177 */ 178$conf['defaultFacebookImage'] = ":logo-facebook.png"; 179 180/** 181 * Country 182 * {@link Site::CONF_SITE_ISO_COUNTRY} 183 */ 184$conf['siteIsoCountry'] = ""; 185 186/** 187 * 188 * See {@link \ComboStrap\Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE} 189 */ 190$conf['latePublicationProtectionEnable'] = 1; 191 192/** 193 * Default page type 194 * {@link Page::CONF_DEFAULT_PAGE_TYPE} 195 */ 196$conf["defaultPageType"] = "article"; 197