1<?php 2/** 3 * 4 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 5 * The config manager is parsing this fucking file because they want 6 * to be able to use 60*60*24 ???? :( 7 * 8 * See {@link \dokuwiki\plugin\config\core\ConfigParser::parse()} 9 * 10 * Which means that only value can be given as: 11 * * key 12 * * and value 13 * The test test_plugin_default in plugin.test.php is checking that 14 * 15 * What fuck up is fucked up. 16 * 17 * The solution: 18 * * The literal value is copied 19 * * A link to the constant is placed before 20 */ 21 22 23use ComboStrap\Icon; 24use ComboStrap\Prism; 25 26 27/** 28 * Related UI components 29 */ 30$conf['maxLinks'] = 10; 31$conf['extra_pattern'] = '{{backlinks>.}}'; 32 33/** 34 * Disqus 35 * See {@link syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES} 36 */ 37$conf['disqusDefaultAttributes'] = 'shortName=""'; 38 39/** 40 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME} 41 */ 42$conf['ActionReaderFirst'] = 'GoToBestEndPageName'; 43 44/** 45 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME} 46 */ 47$conf['ActionReaderSecond'] = 'GoToBestPageName'; 48/** 49 * ie {@link action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE} 50 */ 51$conf['ActionReaderThird'] = 'GoToSearchEngine'; 52$conf['GoToEditMode'] = 1; 53$conf['ShowPageNameIsNotUnique'] = 1; 54$conf['ShowMessageClassic'] = 1; 55$conf['WeightFactorForSamePageName'] = 4; 56$conf['WeightFactorForStartPage'] = 3; 57$conf['WeightFactorForSameNamespace'] = 5; 58 59/** 60 * See {@link UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT_DEFAULT} 61 */ 62$conf['BestEndPageMinimalScoreForIdRedirect'] = 0; 63 64/** 65 * Does automatic canonical processing is on 66 */ 67$conf['MinimalNamesCountForAutomaticCanonical'] = 0; 68 69/** 70 * Icon Namespace 71 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE} 72 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE_DEFAULT} 73 */ 74$conf['icons_namespace'] = ":combostrap:icons"; 75 76/** 77 * Default library 78 * See {@link Icon::CONF_DEFAULT_ICON_LIBRARYE} 79 */ 80$conf['defaultIconLibrary'] = "md"; 81 82/** 83 * Css Optimization 84 * See {@link action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET} 85 * See {@link action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET} 86 */ 87$conf['enableMinimalFrontEndStylesheet'] = 0; 88$conf['disableDokuwikiStylesheet'] = 0; 89 90/** 91 * Metadata Viewer 92 * See {@link \ComboStrap\MetadataUtility::CONF_ENABLE_WHEN_EDITING 93 * See {@link \ComboStrap\MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES 94 * See {@link \ComboStrap\MetadataUtility::EXCLUDE_ATTRIBUTE 95 */ 96$conf['enableMetadataViewerWhenEditing'] = 1; 97$conf['metadataViewerDefaultAttributes'] = 'title="Metadata" exclude="tableofcontents"'; 98 99/** 100 * Badge 101 * See {@link syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY 102 */ 103$conf['defaultBadgeAttributes'] = 'type="info" rounded="true"'; 104 105/** 106 * Ads 107 * See {@link \ComboStrap\AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER 108 */ 109$conf['AdsInArticleShowPlaceholder'] = 0; 110 111/** 112 * Code 113 * See {@link syntax_plugin_combo_code::CONF_CODE_ENABLE} 114 * {@link Prism::CONF_PRISM_THEME} 115 */ 116$conf['codeEnable'] = 1; 117$conf['fileEnable'] = 1; 118$conf['prismTheme'] = "tomorrow"; 119$conf['bashPrompt'] = "#"; 120$conf['batchPrompt'] = 'C:\\'; 121$conf['powershellPrompt'] = 'PS C:\\'; 122 123/** 124 * SEO module 125 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE} 126 */ 127$conf['lowQualityPageProtectionEnable'] = 0; 128 129/** 130 * Page Protection Mode {@link \ComboStrap\PageProtection::CONF_PAGE_PROTECTION_MODE} 131 * Empty to be able to see if the value was set 132 * to override the old conf value {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE} 133 * 134 */ 135$conf['pageProtectionMode'] = ""; 136 137/** 138 * Preformatted mode disable 139 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE} 140 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_EMPTY_CONTENT_NOT_PRINTED_ENABLE} 141 */ 142$conf['preformattedEnable'] = 1; 143$conf['preformattedEmptyContentNotPrintedEnable'] = 1; 144 145/** 146 * {@link renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES} 147 */ 148$conf['mandatoryQualityRules'] = 'words_min,internal_backlinks_min,internal_links_min'; 149 150/** 151 * {@link action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE} 152 */ 153$conf['autoFrontMatterEnable'] = 1; 154 155/** 156 * {@link action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING} 157 * {@link action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING} 158 */ 159$conf['excludedQualityRulesFromDynamicMonitoring'] = 'words_by_section_avg_min,words_by_section_avg_max'; 160$conf['disableDynamicQualityMonitoring'] = 0; 161 162/** 163 * Link 164 * Class in link {@link \ComboStrap\LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME} 165 * Enable {@link syntax_plugin_combo_link::CONF_DISABLE_LINK} 166 * MultiLines {@link syntax_plugin_combo_link::CONF_ENABLE_MULTI_LINES_LINK} 167 */ 168$conf['useDokuwikiLinkClassName'] = 0; 169$conf['disableLink'] = 0; 170 171/** 172 * Twitter 173 * {@link action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE} 174 */ 175$conf['defaultTwitterImage'] = ":apple-touch-icon.png"; 176$conf['twitterSiteHandle'] = ""; 177$conf['twitterSiteId'] = ""; 178$conf['twitter:dnt'] = "on"; 179$conf['twitter:widgets:theme'] = "light"; 180$conf['twitter:widgets:border-color'] = "#55acee"; 181 182/** 183 * Page Image {@link Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE} 184 */ 185$conf['disableFirstImageAsPageImage'] = 0; 186 187/** 188 * Facebook 189 * {@link action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE} 190 */ 191$conf['defaultFacebookImage'] = ":logo-facebook.png"; 192 193/** 194 * Country 195 * {@link Site::CONF_SITE_ISO_COUNTRY} 196 */ 197$conf['siteIsoCountry'] = ""; 198 199/** 200 * 201 * See {@link \ComboStrap\Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE} 202 */ 203$conf['latePublicationProtectionEnable'] = 1; 204 205/** 206 * Default page type 207 * {@link Page::CONF_DEFAULT_PAGE_TYPE} 208 */ 209$conf["defaultPageType"] = "article"; 210 211/** 212 * Default shadow elevation 213 * {@link \ComboStrap\Shadow::CONF_DEFAULT_VALUE} 214 */ 215$conf["defaultShadowLevel"] = "medium"; 216 217 218/** 219 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_LAZY_LOAD_ENABLE} 220 */ 221$conf["svgLazyLoadEnable"] = 1; 222 223/** 224 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_SVG_INJECTION_ENABLE} 225 */ 226$conf["svgInjectionEnable"] = 1; 227 228/** 229 * Svg Optimization Disable {@link \ComboStrap\SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE} 230 */ 231$conf["svgOptimizationEnable"] = 1; 232 233/** 234 * Svg Inline Max size {@link \ComboStrap\SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG} 235 */ 236$conf["svgMaxInlineSizeKb"] = 2; 237 238/** 239 * The name of the group of user that can upload svg 240 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME} 241 */ 242$conf["svgUploadGroupName"] = ""; 243 244/** 245 * Svg Optimization 246 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP} 247 * The attribute to delete separates by a , 248 */ 249$conf["svgOptimizationNamespacesToKeep"] = ""; 250 251/** 252 * Svg Optimization 253 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE} 254 * The attribute to delete separates by a , 255 */ 256$conf["svgOptimizationAttributesToDelete"] = "id, style"; 257/** 258 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE} 259 */ 260$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc"; 261/** 262 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY} 263 */ 264$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs"; 265 266/** 267 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT} 268 */ 269 270$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice"; 271 272/** 273 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE} 274 */ 275$conf["rasterImageLazyLoadingEnable"] = 1; 276 277/** 278 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN} 279 */ 280$conf["responsiveImageMargin"] = "20px"; 281 282/** 283 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED} 284 */ 285$conf["retinaRasterImageEnable"] = 0; 286 287/** 288 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR 289 */ 290$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea"; 291 292 293/** 294 * {@link \ComboStrap\MediaLink::CONF_IMAGE_ENABLE} 295 */ 296$conf["imageEnable"] = 1; 297 298/** 299 * Default linking value 300 * {@link \ComboStrap\MediaLink::CONF_DEFAULT_LINKING} 301 */ 302$conf["defaultImageLinking"] = "direct"; 303 304/** 305 * Float 306 * {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT} 307 */ 308$conf["floatDefaultBreakpoint"] = "sm"; 309 310/** 311 * Outline Numbering 312 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE} 313 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2} 314 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3} 315 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4} 316 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5} 317 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6} 318 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR} 319 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX} 320 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX} 321 */ 322$conf["outlineNumberingEnable"] = 0; 323$conf["outlineNumberingCounterStyleLevel2"] = "decimal"; 324$conf["outlineNumberingCounterStyleLevel3"] = "decimal"; 325$conf["outlineNumberingCounterStyleLevel4"] = "decimal"; 326$conf["outlineNumberingCounterStyleLevel5"] = "decimal"; 327$conf["outlineNumberingCounterStyleLevel6"] = "decimal"; 328$conf["outlineNumberingCounterSeparator"] = "."; 329$conf["outlineNumberingPrefix"] = ""; 330$conf["outlineNumberingSuffix"] = " - "; 331 332/** 333 * Form 334 * {@link \ComboStrap\Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS} 335 * {@link action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM } 336 * {@link action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM } 337 * {@link action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM } 338 */ 339$conf["enableLogoOnIdentityForms"] = 1; 340$conf["enableLoginForm"] = 1; 341$conf["enableRegistrationForm"] = 1; 342$conf["enableResendPwdForm"] = 1; 343 344