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