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'] = "material-design"; 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$conf['enableMultiLinesLink'] = 0; 171 172/** 173 * Twitter 174 * {@link action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE} 175 */ 176$conf['defaultTwitterImage'] = ":apple-touch-icon.png"; 177$conf['twitterSiteHandle'] = ""; 178$conf['twitterSiteId'] = ""; 179$conf['twitter:dnt'] = "on"; 180$conf['twitter:widgets:theme'] = "light"; 181$conf['twitter:widgets:border-color'] = "#55acee"; 182 183/** 184 * Page Image {@link Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE} 185 */ 186$conf['disableFirstImageAsPageImage'] = 0; 187 188/** 189 * Facebook 190 * {@link action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE} 191 */ 192$conf['defaultFacebookImage'] = ":logo-facebook.png"; 193 194/** 195 * Country 196 * {@link Site::CONF_SITE_ISO_COUNTRY} 197 */ 198$conf['siteIsoCountry'] = ""; 199 200/** 201 * 202 * See {@link \ComboStrap\Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE} 203 */ 204$conf['latePublicationProtectionEnable'] = 1; 205 206/** 207 * Default page type 208 * {@link Page::CONF_DEFAULT_PAGE_TYPE} 209 */ 210$conf["defaultPageType"] = "article"; 211 212/** 213 * Default shadow elevation 214 * {@link \ComboStrap\Shadow::CONF_DEFAULT_VALUE} 215 */ 216$conf["defaultShadowLevel"] = "medium"; 217 218 219/** 220 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_LAZY_LOAD_ENABLE} 221 */ 222$conf["svgLazyLoadEnable"] = 1; 223 224/** 225 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_SVG_INJECTION_ENABLE} 226 */ 227$conf["svgInjectionEnable"] = 1; 228 229/** 230 * Svg Optimization Disable {@link \ComboStrap\SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE} 231 */ 232$conf["svgOptimizationEnable"] = 1; 233 234/** 235 * Svg Inline Max size {@link \ComboStrap\SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG} 236 */ 237$conf["svgMaxInlineSizeKb"] = 2; 238 239/** 240 * The name of the group of user that can upload svg 241 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME} 242 */ 243$conf["svgUploadGroupName"] = ""; 244 245/** 246 * Svg Optimization 247 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP} 248 * The attribute to delete separates by a , 249 */ 250$conf["svgOptimizationNamespacesToKeep"] = ""; 251 252/** 253 * Svg Optimization 254 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE} 255 * The attribute to delete separates by a , 256 */ 257$conf["svgOptimizationAttributesToDelete"] = "id, style"; 258/** 259 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE} 260 */ 261$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc"; 262/** 263 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY} 264 */ 265$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs"; 266 267/** 268 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT} 269 */ 270 271$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice"; 272 273/** 274 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE} 275 */ 276$conf["rasterImageLazyLoadingEnable"] = 1; 277 278/** 279 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN} 280 */ 281$conf["responsiveImageMargin"] = "20px"; 282 283/** 284 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED} 285 */ 286$conf["retinaRasterImageEnable"] = 0; 287 288/** 289 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR 290 */ 291$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea"; 292 293 294/** 295 * {@link \ComboStrap\InternalMediaLink::CONF_IMAGE_ENABLE} 296 */ 297$conf["imageEnable"] = 1; 298 299/** 300 * Default linking value 301 * {@link \ComboStrap\InternalMediaLink::CONF_DEFAULT_LINKING} 302 */ 303$conf["defaultImageLinking"] = "direct"; 304 305/** 306 * Float 307 * {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT} 308 */ 309$conf["floatDefaultBreakpoint"] = "sm"; 310