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