xref: /plugin/combo/conf/default.php (revision 370d7a6ca27033c1f10c64be6427a3f5960adef8)
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\LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME}
176 * Preview on link {@link \ComboStrap\LinkUtility::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 */
250$conf["svgMaxInlineSizeKb"] = 2;
251
252/**
253 * The name of the group of user that can upload svg
254 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME}
255 */
256$conf["svgUploadGroupName"] = "";
257
258/**
259 * Svg Optimization
260 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP}
261 * The attribute to delete separates by a ,
262 */
263$conf["svgOptimizationNamespacesToKeep"] = "";
264
265/**
266 * Svg Optimization
267 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE}
268 * The attribute to delete separates by a ,
269 */
270$conf["svgOptimizationAttributesToDelete"] = "id, style";
271/**
272 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE}
273 */
274$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc";
275/**
276 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY}
277 */
278$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs";
279
280/**
281 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT}
282 */
283
284$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice";
285
286/**
287 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE}
288 */
289$conf["rasterImageLazyLoadingEnable"] = 1;
290
291/**
292 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN}
293 */
294$conf["responsiveImageMargin"] = "20px";
295
296/**
297 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED}
298 */
299$conf["retinaRasterImageEnable"] = 0;
300
301/**
302 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR
303 */
304$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea";
305
306
307/**
308 * {@link \ComboStrap\MediaLink::CONF_IMAGE_ENABLE}
309 */
310$conf["imageEnable"] = 1;
311
312/**
313 * Default linking value
314 * {@link \ComboStrap\MediaLink::CONF_DEFAULT_LINKING}
315 */
316$conf["defaultImageLinking"] = "direct";
317
318/**
319 * Float
320 *  {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT}
321 */
322$conf["floatDefaultBreakpoint"] = "sm";
323
324/**
325 * Outline Numbering
326 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE}
327 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2}
328 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3}
329 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4}
330 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5}
331 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6}
332 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR}
333 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX}
334 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX}
335 */
336$conf["outlineNumberingEnable"] = 0;
337$conf["outlineNumberingCounterStyleLevel2"] = "decimal";
338$conf["outlineNumberingCounterStyleLevel3"] = "decimal";
339$conf["outlineNumberingCounterStyleLevel4"] = "decimal";
340$conf["outlineNumberingCounterStyleLevel5"] = "decimal";
341$conf["outlineNumberingCounterStyleLevel6"] = "decimal";
342$conf["outlineNumberingCounterSeparator"] = ".";
343$conf["outlineNumberingPrefix"] = "";
344$conf["outlineNumberingSuffix"] = " - ";
345
346/**
347 * Form
348 * {@link \ComboStrap\Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS}
349 * {@link action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM }
350 * {@link action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM }
351 * {@link action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM }
352 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_UPDATE_FORM }
353 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_DELETE_FORM }
354 */
355$conf["enableLogoOnIdentityForms"] = 1;
356$conf["enableLoginForm"] = 1;
357$conf["enableRegistrationForm"] = 1;
358$conf["enableResendPwdForm"] = 1;
359$conf["enableProfileUpdateForm"] = 1;
360$conf["enableProfileDeleteForm"] = 1;
361
362/**
363 * {@link syntax_plugin_combo_comment::CONF_OUTPUT_COMMENT}
364 */
365$conf['outputComment'] = 0;
366
367/**
368 * {@link action_plugin_combo_staticresource::CONF_STATIC_CACHE_ENABLED}
369 */
370$conf["staticCacheEnabled"] = 1;
371
372
373/**
374 * {@link action_plugin_combo_linkwizard::CONF_ENABLE_ENHANCED_LINK_WIZARD}
375 */
376$conf["enableEnhancedLinkWizard"] = 1;
377
378/**
379 * {@link PageUrlType::CONF_CANONICAL_URL_TYPE}
380 * {@link PageUrlType::CONF_CANONICAL_URL_TYPE_DEFAULT}
381 */
382$conf["pageUrlType"] = "page path";
383
384/**
385 * {@link syntax_plugin_combo_frontmatter::CONF_ENABLE_FRONT_MATTER_ON_SUBMIT}
386 * {@link syntax_plugin_combo_frontmatter::CONF_ENABLE_FRONT_MATTER_ON_SUBMIT_DEFAULT}
387 */
388$conf["enableFrontMatterOnSubmit"] = 0;
389
390/**
391 * {@link syntax_plugin_combo_headingwiki::CONF_WIKI_HEADING_ENABLE} and
392 * {@link syntax_plugin_combo_headingwiki::CONF_DEFAULT_WIKI_ENABLE_VALUE}
393 */
394$conf["headingWikiEnable"] = 1;
395