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