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\Canonical; 24use ComboStrap\Icon; 25use ComboStrap\Metadata; 26use ComboStrap\PageType; 27use ComboStrap\Prism; 28use ComboStrap\PageUrlType; 29use ComboStrap\Region; 30 31 32/** 33 * Related UI components 34 * {@link syntax_plugin_combo_related::MAX_LINKS_CONF} 35 * {@link syntax_plugin_combo_related::MAX_LINKS_CONF_DEFAULT} 36 */ 37$conf['maxLinks'] = 10; 38$conf['extra_pattern'] = '{{backlinks>.}}'; 39 40/** 41 * Disqus 42 * See {@link syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES} 43 */ 44$conf['disqusDefaultAttributes'] = 'shortName=""'; 45 46/** 47 * Enable ie {@link action_plugin_combo_router::ROUTER_ENABLE_CONF} 48 */ 49$conf['enableRouter'] = 1; 50/** 51 * ie {@link action_plugin_combo_router::GO_TO_BEST_END_PAGE_NAME} 52 */ 53$conf['ActionReaderFirst'] = 'GoToBestEndPageName'; 54 55/** 56 * ie {@link action_plugin_combo_router::GO_TO_BEST_PAGE_NAME} 57 */ 58$conf['ActionReaderSecond'] = 'GoToBestPageName'; 59/** 60 * ie {@link action_plugin_combo_router::GO_TO_SEARCH_ENGINE} 61 */ 62$conf['ActionReaderThird'] = 'GoToSearchEngine'; 63$conf['GoToEditMode'] = 1; 64$conf['ShowPageNameIsNotUnique'] = 1; 65$conf['ShowMessageClassic'] = 1; 66$conf['WeightFactorForSamePageName'] = 4; 67$conf['WeightFactorForStartPage'] = 3; 68$conf['WeightFactorForSameNamespace'] = 5; 69 70/** 71 * See {@link UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT_DEFAULT} 72 */ 73$conf['BestEndPageMinimalScoreForAliasCreation'] = 2; 74 75/** 76 * Does automatic canonical processing is on 77 * {@link Canonical::CONF_CANONICAL_LAST_NAMES_COUNT} 78 * 79 */ 80$conf['MinimalNamesCountForAutomaticCanonical'] = 0; 81/** 82 * Does the canonical is reported as the unique name of the page 83 * for google analytics 84 * {@link action_plugin_combo_canonical::CONF_CANONICAL_FOR_GA_PAGE_VIEW} 85 */ 86$conf['useCanonicalValueForGoogleAnalyticsPageView'] = 0; 87 88/** 89 * Icon Namespace 90 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE} 91 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE_DEFAULT} 92 */ 93$conf['icons_namespace'] = ":combostrap:icons"; 94 95/** 96 * Default library 97 * See {@link Icon::CONF_DEFAULT_ICON_LIBRARY} 98 * See {@link Icon::CONF_DEFAULT_ICON_LIBRARY_DEFAULT} 99 */ 100$conf['defaultIconLibrary'] = "mdi"; 101 102/** 103 * Css Optimization 104 * See {@link action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET} 105 * See {@link action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET} 106 */ 107$conf['enableMinimalFrontEndStylesheet'] = 0; 108$conf['disableDokuwikiStylesheet'] = 0; 109 110/** 111 * Metadata Viewer 112 * See {@link \ComboStrap\MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES 113 * See {@link \ComboStrap\MetadataUtility::EXCLUDE_ATTRIBUTE 114 */ 115$conf['metadataViewerDefaultAttributes'] = 'title="Metadata" exclude="tableofcontents"'; 116 117/** 118 * Badge 119 * See {@link syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY 120 */ 121$conf['defaultBadgeAttributes'] = 'type="info" rounded="true"'; 122 123/** 124 * Ads 125 * See {@link \ComboStrap\AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER 126 */ 127$conf['AdsInArticleShowPlaceholder'] = 0; 128 129/** 130 * Code 131 * See {@link syntax_plugin_combo_code::CONF_CODE_ENABLE} 132 * {@link Prism::CONF_PRISM_THEME} 133 */ 134$conf['codeEnable'] = 1; 135$conf['fileEnable'] = 1; 136$conf['prismTheme'] = "tomorrow"; 137$conf['bashPrompt'] = "#"; 138$conf['batchPrompt'] = 'C:\\'; 139$conf['powershellPrompt'] = 'PS C:\\'; 140 141/** 142 * Low Quality Page Protection 143 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE} 144 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE} 145 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_LINK_TYPE} 146 */ 147$conf['lowQualityPageProtectionEnable'] = 0; 148$conf['lowQualityPageProtectionMode'] = "robot"; 149$conf['lowQualityPageLinkType'] = "normal"; 150 151 152/** 153 * Preformatted mode disable 154 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE} 155 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_EMPTY_CONTENT_NOT_PRINTED_ENABLE} 156 */ 157$conf['preformattedEnable'] = 1; 158$conf['preformattedEmptyContentNotPrintedEnable'] = 1; 159 160/** 161 * {@link renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES} 162 */ 163$conf['mandatoryQualityRules'] = 'words_min,internal_backlinks_min,internal_links_min'; 164 165 166/** 167 * {@link action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING} 168 * {@link action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING} 169 */ 170$conf['excludedQualityRulesFromDynamicMonitoring'] = 'words_by_section_avg_min,words_by_section_avg_max'; 171$conf['disableDynamicQualityMonitoring'] = 0; 172 173/** 174 * Link 175 * Class in link {@link \ComboStrap\MarkupRef::CONF_USE_DOKUWIKI_CLASS_NAME} 176 * Preview on link {@link \ComboStrap\MarkupRef::CONF_PREVIEW_LINK} 177 * Enable {@link syntax_plugin_combo_link::CONF_DISABLE_LINK} 178 */ 179$conf['useDokuwikiLinkClassName'] = 0; 180$conf['disableLink'] = 0; 181$conf['previewLink'] = 0; 182 183/** 184 * Twitter 185 * {@link action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE} 186 */ 187$conf['defaultTwitterImage'] = ":apple-touch-icon.png"; 188$conf['twitterSiteHandle'] = ""; 189$conf['twitterSiteId'] = ""; 190$conf['twitter:dnt'] = "on"; 191$conf['twitter:widgets:theme'] = "light"; 192$conf['twitter:widgets:border-color'] = "#55acee"; 193 194/** 195 * Page Image {@link Metadata::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE} 196 */ 197$conf['disableFirstImageAsPageImage'] = 0; 198 199/** 200 * Facebook 201 * {@link action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE} 202 */ 203$conf['defaultFacebookImage'] = ":logo-facebook.png"; 204 205/** 206 * Country 207 * {@link Region::CONF_SITE_LANGUAGE_REGION} 208 */ 209$conf['siteLanguageRegion'] = ""; 210 211/** 212 * 213 * See {@link \ComboStrap\PagePublicationDate::CONF_LATE_PUBLICATION_PROTECTION_ENABLE} 214 * See {@link \ComboStrap\PagePublicationDate::CONF_LATE_PUBLICATION_PROTECTION_MODE} 215 */ 216$conf['latePublicationProtectionEnable'] = 1; 217$conf["latePublicationProtectionMode"] = "acl"; 218 219/** 220 * Default page type 221 * {@link PageType::CONF_DEFAULT_PAGE_TYPE} 222 */ 223$conf["defaultPageType"] = "article"; 224 225/** 226 * Default shadow elevation 227 * {@link \ComboStrap\Shadow::CONF_DEFAULT_VALUE} 228 */ 229$conf["defaultShadowLevel"] = "medium"; 230 231 232/** 233 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_LAZY_LOAD_ENABLE} 234 */ 235$conf["svgLazyLoadEnable"] = 1; 236 237/** 238 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_SVG_INJECTION_ENABLE} 239 */ 240$conf["svgInjectionEnable"] = 1; 241 242/** 243 * Svg Optimization Disable {@link \ComboStrap\SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE} 244 */ 245$conf["svgOptimizationEnable"] = 1; 246 247/** 248 * Svg Inline Max size {@link \ComboStrap\SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG} 249 * 2kb is too small for icon. 250 * For instance, the et:twitter is 2,600b 251 */ 252$conf["svgMaxInlineSizeKb"] = 3; 253 254/** 255 * The name of the group of user that can upload svg 256 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME} 257 */ 258$conf["svgUploadGroupName"] = ""; 259 260/** 261 * Svg Optimization 262 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP} 263 * The attribute to delete separates by a , 264 */ 265$conf["svgOptimizationNamespacesToKeep"] = ""; 266 267/** 268 * Svg Optimization 269 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE} 270 * The attribute to delete separates by a , 271 */ 272$conf["svgOptimizationAttributesToDelete"] = "id, style, class, data-name"; 273/** 274 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE} 275 */ 276$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc"; 277/** 278 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY} 279 */ 280$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs"; 281 282/** 283 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT} 284 */ 285 286$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice"; 287 288/** 289 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE} 290 */ 291$conf["rasterImageLazyLoadingEnable"] = 1; 292 293/** 294 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN} 295 */ 296$conf["responsiveImageMargin"] = "20px"; 297 298/** 299 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED} 300 */ 301$conf["retinaRasterImageEnable"] = 0; 302 303/** 304 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR 305 */ 306$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea"; 307 308 309/** 310 * {@link \ComboStrap\MediaLink::CONF_IMAGE_ENABLE} 311 */ 312$conf["imageEnable"] = 1; 313 314/** 315 * Default linking value 316 * {@link \ComboStrap\MediaLink::CONF_DEFAULT_LINKING} 317 */ 318$conf["defaultImageLinking"] = "direct"; 319 320/** 321 * Float 322 * {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT} 323 */ 324$conf["floatDefaultBreakpoint"] = "sm"; 325 326/** 327 * Outline Numbering 328 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE} 329 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2} 330 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3} 331 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4} 332 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5} 333 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6} 334 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR} 335 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX} 336 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX} 337 */ 338$conf["outlineNumberingEnable"] = 0; 339$conf["outlineNumberingCounterStyleLevel2"] = "decimal"; 340$conf["outlineNumberingCounterStyleLevel3"] = "decimal"; 341$conf["outlineNumberingCounterStyleLevel4"] = "decimal"; 342$conf["outlineNumberingCounterStyleLevel5"] = "decimal"; 343$conf["outlineNumberingCounterStyleLevel6"] = "decimal"; 344$conf["outlineNumberingCounterSeparator"] = "."; 345$conf["outlineNumberingPrefix"] = ""; 346$conf["outlineNumberingSuffix"] = " - "; 347 348/** 349 * Form 350 * {@link \ComboStrap\Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS} 351 * {@link action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM } 352 * {@link action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM } 353 * {@link action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM } 354 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_UPDATE_FORM } 355 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_DELETE_FORM } 356 */ 357$conf["enableLogoOnIdentityForms"] = 1; 358$conf["enableLoginForm"] = 1; 359$conf["enableRegistrationForm"] = 1; 360$conf["enableResendPwdForm"] = 1; 361$conf["enableProfileUpdateForm"] = 1; 362$conf["enableProfileDeleteForm"] = 1; 363 364/** 365 * {@link syntax_plugin_combo_comment::CONF_OUTPUT_COMMENT} 366 */ 367$conf['outputComment'] = 0; 368 369/** 370 * {@link action_plugin_combo_staticresource::CONF_STATIC_CACHE_ENABLED} 371 */ 372$conf["staticCacheEnabled"] = 1; 373 374 375/** 376 * {@link action_plugin_combo_linkwizard::CONF_ENABLE_ENHANCED_LINK_WIZARD} 377 */ 378$conf["enableEnhancedLinkWizard"] = 1; 379 380/** 381 * {@link PageUrlType::CONF_CANONICAL_URL_TYPE} 382 * {@link PageUrlType::CONF_CANONICAL_URL_TYPE_DEFAULT} 383 */ 384$conf["pageUrlType"] = "page path"; 385 386/** 387 * {@link syntax_plugin_combo_frontmatter::CONF_ENABLE_FRONT_MATTER_ON_SUBMIT} 388 * {@link syntax_plugin_combo_frontmatter::CONF_ENABLE_FRONT_MATTER_ON_SUBMIT_DEFAULT} 389 */ 390$conf["enableFrontMatterOnSubmit"] = 0; 391 392/** 393 * {@link syntax_plugin_combo_headingwiki::CONF_WIKI_HEADING_ENABLE} and 394 * {@link syntax_plugin_combo_headingwiki::CONF_DEFAULT_WIKI_ENABLE_VALUE} 395 */ 396$conf["headingWikiEnable"] = 1; 397/** 398 * Highlight 399 * {@link syntax_plugin_combo_highlightwiki::CONF_HIGHLIGHT_WIKI_ENABLE} 400 * {@link syntax_plugin_combo_highlightwiki::CONF_DEFAULT_HIGHLIGHT_WIKI_ENABLE_VALUE} 401 */ 402$conf["highlightWikiEnable"] = 1; 403 404/** 405 * {@link \ComboStrap\ColorRgb::BRANDING_COLOR_INHERITANCE_ENABLE_CONF} 406 */ 407$conf["brandingColorInheritanceEnable"] = 1; 408 409/** 410 * {@link \ComboStrap\ColorRgb::PRIMARY_COLOR_CONF} 411 * {@link \ComboStrap\ColorRgb::SECONDARY_COLOR_CONF} 412 */ 413$conf["primaryColor"] = ""; 414$conf["secondaryColor"] = ""; 415 416 417 418