xref: /plugin/combo/conf/default.php (revision 37748cd8654635afbeca80942126742f0f4cc346)
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 * Enable ie {@link action_plugin_combo_urlmanager::URL_MANAGER_ENABLE_CONF}
41 */
42$conf['enableUrlManager']=1;
43/**
44 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME}
45 */
46$conf['ActionReaderFirst'] = 'GoToBestEndPageName';
47
48/**
49 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME}
50 */
51$conf['ActionReaderSecond'] = 'GoToBestPageName';
52/**
53 * ie {@link action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE}
54 */
55$conf['ActionReaderThird'] = 'GoToSearchEngine';
56$conf['GoToEditMode'] = 1;
57$conf['ShowPageNameIsNotUnique'] = 1;
58$conf['ShowMessageClassic'] = 1;
59$conf['WeightFactorForSamePageName'] = 4;
60$conf['WeightFactorForStartPage'] = 3;
61$conf['WeightFactorForSameNamespace'] = 5;
62
63/**
64 * See {@link UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT_DEFAULT}
65 */
66$conf['BestEndPageMinimalScoreForIdRedirect'] = 0;
67
68/**
69 * Does automatic canonical processing is on
70 */
71$conf['MinimalNamesCountForAutomaticCanonical'] = 0;
72
73/**
74 * Icon Namespace
75 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE}
76 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE_DEFAULT}
77 */
78$conf['icons_namespace'] = ":combostrap:icons";
79
80/**
81 * Default library
82 * See {@link Icon::CONF_DEFAULT_ICON_LIBRARYE}
83 */
84$conf['defaultIconLibrary'] = "md";
85
86/**
87 * Css Optimization
88 * See {@link action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET}
89 * See {@link action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET}
90 */
91$conf['enableMinimalFrontEndStylesheet'] = 0;
92$conf['disableDokuwikiStylesheet'] = 0;
93
94/**
95 * Metadata Viewer
96 * See {@link \ComboStrap\MetadataUtility::CONF_ENABLE_WHEN_EDITING
97 * See {@link \ComboStrap\MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES
98 * See {@link \ComboStrap\MetadataUtility::EXCLUDE_ATTRIBUTE
99 */
100$conf['enableMetadataViewerWhenEditing'] = 1;
101$conf['metadataViewerDefaultAttributes'] = 'title="Metadata" exclude="tableofcontents"';
102
103/**
104 * Badge
105 * See {@link syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY
106 */
107$conf['defaultBadgeAttributes'] = 'type="info" rounded="true"';
108
109/**
110 * Ads
111 * See {@link \ComboStrap\AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER
112 */
113$conf['AdsInArticleShowPlaceholder'] = 0;
114
115/**
116 * Code
117 * See {@link syntax_plugin_combo_code::CONF_CODE_ENABLE}
118 * {@link Prism::CONF_PRISM_THEME}
119 */
120$conf['codeEnable'] = 1;
121$conf['fileEnable'] = 1;
122$conf['prismTheme'] = "tomorrow";
123$conf['bashPrompt'] = "#";
124$conf['batchPrompt'] = 'C:\\';
125$conf['powershellPrompt'] = 'PS C:\\';
126
127/**
128 * Low Quality Page Protection
129 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE}
130 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE}
131 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_LINK_TYPE}
132 */
133$conf['lowQualityPageProtectionEnable'] = 0;
134$conf['lowQualityPageProtectionMode'] = "robot";
135$conf['lowQualityPageLinkType'] = "normal";
136
137
138/**
139 * Preformatted mode disable
140 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE}
141 * See {@link syntax_plugin_combo_preformatted::CONF_PREFORMATTED_EMPTY_CONTENT_NOT_PRINTED_ENABLE}
142 */
143$conf['preformattedEnable'] = 1;
144$conf['preformattedEmptyContentNotPrintedEnable'] = 1;
145
146/**
147 * {@link renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES}
148 */
149$conf['mandatoryQualityRules'] = 'words_min,internal_backlinks_min,internal_links_min';
150
151/**
152 * {@link action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE}
153 */
154$conf['autoFrontMatterEnable'] = 1;
155
156/**
157 * {@link action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING}
158 * {@link action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING}
159 */
160$conf['excludedQualityRulesFromDynamicMonitoring'] = 'words_by_section_avg_min,words_by_section_avg_max';
161$conf['disableDynamicQualityMonitoring'] = 0;
162
163/**
164 * Link
165 * Class in link {@link \ComboStrap\LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME}
166 * Preview on link {@link \ComboStrap\LinkUtility::CONF_PREVIEW_LINK}
167 * Enable {@link syntax_plugin_combo_link::CONF_DISABLE_LINK}
168 */
169$conf['useDokuwikiLinkClassName'] = 0;
170$conf['disableLink'] = 0;
171$conf['previewLink'] = 0;
172
173/**
174 * Twitter
175 * {@link action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE}
176 */
177$conf['defaultTwitterImage'] = ":apple-touch-icon.png";
178$conf['twitterSiteHandle'] = "";
179$conf['twitterSiteId'] = "";
180$conf['twitter:dnt'] = "on";
181$conf['twitter:widgets:theme'] = "light";
182$conf['twitter:widgets:border-color'] = "#55acee";
183
184/**
185 * Page Image {@link Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE}
186 */
187$conf['disableFirstImageAsPageImage'] = 0;
188
189/**
190 * Facebook
191 * {@link action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE}
192 */
193$conf['defaultFacebookImage'] = ":logo-facebook.png";
194
195/**
196 * Country
197 * {@link Site::CONF_SITE_ISO_COUNTRY}
198 */
199$conf['siteIsoCountry'] = "";
200
201/**
202 *
203 * See {@link \ComboStrap\Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE}
204 * See {@link \ComboStrap\Publication::CONF_LATE_PUBLICATION_PROTECTION_MODE}
205 */
206$conf['latePublicationProtectionEnable'] = 1;
207$conf["latePublicationProtectionMode"] = "acl";
208
209/**
210 * Default page type
211 * {@link Page::CONF_DEFAULT_PAGE_TYPE}
212 */
213$conf["defaultPageType"] = "article";
214
215/**
216 * Default shadow elevation
217 * {@link \ComboStrap\Shadow::CONF_DEFAULT_VALUE}
218 */
219$conf["defaultShadowLevel"] = "medium";
220
221
222/**
223 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_LAZY_LOAD_ENABLE}
224 */
225$conf["svgLazyLoadEnable"] = 1;
226
227/**
228 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_SVG_INJECTION_ENABLE}
229 */
230$conf["svgInjectionEnable"] = 1;
231
232/**
233 * Svg Optimization Disable {@link \ComboStrap\SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE}
234 */
235$conf["svgOptimizationEnable"] = 1;
236
237/**
238 * Svg Inline Max size {@link \ComboStrap\SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG}
239 */
240$conf["svgMaxInlineSizeKb"] = 2;
241
242/**
243 * The name of the group of user that can upload svg
244 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME}
245 */
246$conf["svgUploadGroupName"] = "";
247
248/**
249 * Svg Optimization
250 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP}
251 * The attribute to delete separates by a ,
252 */
253$conf["svgOptimizationNamespacesToKeep"] = "";
254
255/**
256 * Svg Optimization
257 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE}
258 * The attribute to delete separates by a ,
259 */
260$conf["svgOptimizationAttributesToDelete"] = "id, style";
261/**
262 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE}
263 */
264$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc";
265/**
266 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY}
267 */
268$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs";
269
270/**
271 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT}
272 */
273
274$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice";
275
276/**
277 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE}
278 */
279$conf["rasterImageLazyLoadingEnable"] = 1;
280
281/**
282 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN}
283 */
284$conf["responsiveImageMargin"] = "20px";
285
286/**
287 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED}
288 */
289$conf["retinaRasterImageEnable"] = 0;
290
291/**
292 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR
293 */
294$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea";
295
296
297/**
298 * {@link \ComboStrap\MediaLink::CONF_IMAGE_ENABLE}
299 */
300$conf["imageEnable"] = 1;
301
302/**
303 * Default linking value
304 * {@link \ComboStrap\MediaLink::CONF_DEFAULT_LINKING}
305 */
306$conf["defaultImageLinking"] = "direct";
307
308/**
309 * Float
310 *  {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT}
311 */
312$conf["floatDefaultBreakpoint"] = "sm";
313
314/**
315 * Outline Numbering
316 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE}
317 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2}
318 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3}
319 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4}
320 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5}
321 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6}
322 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR}
323 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX}
324 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX}
325 */
326$conf["outlineNumberingEnable"] = 0;
327$conf["outlineNumberingCounterStyleLevel2"] = "decimal";
328$conf["outlineNumberingCounterStyleLevel3"] = "decimal";
329$conf["outlineNumberingCounterStyleLevel4"] = "decimal";
330$conf["outlineNumberingCounterStyleLevel5"] = "decimal";
331$conf["outlineNumberingCounterStyleLevel6"] = "decimal";
332$conf["outlineNumberingCounterSeparator"] = ".";
333$conf["outlineNumberingPrefix"] = "";
334$conf["outlineNumberingSuffix"] = " - ";
335
336/**
337 * Form
338 * {@link \ComboStrap\Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS}
339 * {@link action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM }
340 * {@link action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM }
341 * {@link action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM }
342 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_UPDATE_FORM }
343 * {@link action_plugin_combo_profile::CONF_ENABLE_PROFILE_DELETE_FORM }
344 */
345$conf["enableLogoOnIdentityForms"] = 1;
346$conf["enableLoginForm"] = 1;
347$conf["enableRegistrationForm"] = 1;
348$conf["enableResendPwdForm"] = 1;
349$conf["enableProfileUpdateForm"] = 1;
350$conf["enableProfileDeleteForm"] = 1;
351
352/**
353 * {@link syntax_plugin_combo_comment::CONF_OUTPUT_COMMENT}
354 */
355$conf['outputComment'] = 0;
356
357