xref: /plugin/combo/conf/default.php (revision e55e4e71208cf11ca8c608d736f6c1a20fb4c5c5)
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\MediaLink;
25use ComboStrap\Prism;
26
27
28/**
29 * Related UI components
30 */
31$conf['maxLinks'] = 10;
32$conf['extra_pattern'] = '{{backlinks>.}}';
33
34/**
35 * Disqus
36 * See {@link syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES}
37 */
38$conf['disqusDefaultAttributes'] = 'shortName=""';
39
40/**
41 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME}
42 */
43$conf['ActionReaderFirst'] = 'GoToBestEndPageName';
44
45/**
46 * ie {@link action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME}
47 */
48$conf['ActionReaderSecond'] = 'GoToBestPageName';
49/**
50 * ie {@link action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE}
51 */
52$conf['ActionReaderThird'] = 'GoToSearchEngine';
53$conf['GoToEditMode'] = 1;
54$conf['ShowPageNameIsNotUnique'] = 1;
55$conf['ShowMessageClassic'] = 1;
56$conf['WeightFactorForSamePageName'] = 4;
57$conf['WeightFactorForStartPage'] = 3;
58$conf['WeightFactorForSameNamespace'] = 5;
59
60/**
61 * See {@link UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT_DEFAULT}
62 */
63$conf['BestEndPageMinimalScoreForIdRedirect'] = 0;
64
65/**
66 * Does automatic canonical processing is on
67 */
68$conf['MinimalNamesCountForAutomaticCanonical'] = 0;
69
70/**
71 * Icon Namespace
72 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE}
73 * See {@link Icon::CONF_ICONS_MEDIA_NAMESPACE_DEFAULT}
74 */
75$conf['icons_namespace'] = ":combostrap:icons";
76
77/**
78 * Default library
79 * See {@link Icon::CONF_DEFAULT_ICON_LIBRARYE}
80 */
81$conf['defaultIconLibrary'] = "md";
82
83/**
84 * Css Optimization
85 * See {@link action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET}
86 * See {@link action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET}
87 */
88$conf['enableMinimalFrontEndStylesheet'] = 0;
89$conf['disableDokuwikiStylesheet'] = 0;
90
91/**
92 * Metadata Viewer
93 * See {@link \ComboStrap\MetadataUtility::CONF_ENABLE_WHEN_EDITING
94 * See {@link \ComboStrap\MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES
95 * See {@link \ComboStrap\MetadataUtility::EXCLUDE_ATTRIBUTE
96 */
97$conf['enableMetadataViewerWhenEditing'] = 1;
98$conf['metadataViewerDefaultAttributes'] = 'title="Metadata" exclude="tableofcontents"';
99
100/**
101 * Badge
102 * See {@link syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY
103 */
104$conf['defaultBadgeAttributes'] = 'type="info" rounded="true"';
105
106/**
107 * Ads
108 * See {@link \ComboStrap\AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER
109 */
110$conf['AdsInArticleShowPlaceholder'] = 0;
111
112/**
113 * Code
114 * See {@link syntax_plugin_combo_code::CONF_CODE_ENABLE}
115 * {@link Prism::CONF_PRISM_THEME}
116 */
117$conf['codeEnable'] = 1;
118$conf['fileEnable'] = 1;
119$conf['prismTheme'] = "tomorrow";
120$conf['bashPrompt'] = "#";
121$conf['batchPrompt'] = 'C:\\';
122$conf['powershellPrompt'] = 'PS C:\\';
123
124/**
125 * SEO module
126 * See {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE}
127 */
128$conf['lowQualityPageProtectionEnable'] = 0;
129
130/**
131 * Page Protection Mode {@link \ComboStrap\PageProtection::CONF_PAGE_PROTECTION_MODE}
132 * Empty to be able to see if the value was set
133 * to override the old conf value {@link \ComboStrap\LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE}
134 *
135 */
136$conf['pageProtectionMode'] = "";
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 * Enable {@link syntax_plugin_combo_link::CONF_DISABLE_LINK}
167 * MultiLines {@link syntax_plugin_combo_link::CONF_ENABLE_MULTI_LINES_LINK}
168 */
169$conf['useDokuwikiLinkClassName'] = 0;
170$conf['disableLink'] = 0;
171$conf['enableMultiLinesLink'] = 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 */
205$conf['latePublicationProtectionEnable'] = 1;
206
207/**
208 * Default page type
209 * {@link Page::CONF_DEFAULT_PAGE_TYPE}
210 */
211$conf["defaultPageType"] = "article";
212
213/**
214 * Default shadow elevation
215 * {@link \ComboStrap\Shadow::CONF_DEFAULT_VALUE}
216 */
217$conf["defaultShadowLevel"] = "medium";
218
219
220/**
221 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_LAZY_LOAD_ENABLE}
222 */
223$conf["svgLazyLoadEnable"] = 1;
224
225/**
226 * Lazy loading {@link \ComboStrap\SvgImageLink::CONF_SVG_INJECTION_ENABLE}
227 */
228$conf["svgInjectionEnable"] = 1;
229
230/**
231 * Svg Optimization Disable {@link \ComboStrap\SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE}
232 */
233$conf["svgOptimizationEnable"] = 1;
234
235/**
236 * Svg Inline Max size {@link \ComboStrap\SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG}
237 */
238$conf["svgMaxInlineSizeKb"] = 2;
239
240/**
241 * The name of the group of user that can upload svg
242 * {@link action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME}
243 */
244$conf["svgUploadGroupName"] = "";
245
246/**
247 * Svg Optimization
248 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP}
249 * The attribute to delete separates by a ,
250 */
251$conf["svgOptimizationNamespacesToKeep"] = "";
252
253/**
254 * Svg Optimization
255 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE}
256 * The attribute to delete separates by a ,
257 */
258$conf["svgOptimizationAttributesToDelete"] = "id, style";
259/**
260 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE}
261 */
262$conf["svgOptimizationElementsToDelete"] = "script, style, title, desc";
263/**
264 * {@link \ComboStrap\SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY}
265 */
266$conf["svgOptimizationElementsToDeleteIfEmpty"] = "metadata, defs";
267
268/**
269 * {@link \ComboStrap\SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT}
270 */
271
272$conf["svgPreserveAspectRatioDefault"] = "xMidYMid slice";
273
274/**
275 * Lazy loading {@link \ComboStrap\RasterImageLink::CONF_LAZY_LOADING_ENABLE}
276 */
277$conf["rasterImageLazyLoadingEnable"] = 1;
278
279/**
280 * {@link \ComboStrap\RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN}
281 */
282$conf["responsiveImageMargin"] = "20px";
283
284/**
285 * {@link \ComboStrap\RasterImageLink::CONF_RETINA_SUPPORT_ENABLED}
286 */
287$conf["retinaRasterImageEnable"] = 0;
288
289/**
290 * {@link \ComboStrap\LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR
291 */
292$conf["lazyLoadingPlaceholderColor"] = "#cbf1ea";
293
294
295/**
296 * {@link \ComboStrap\MediaLink::CONF_IMAGE_ENABLE}
297 */
298$conf["imageEnable"] = 1;
299
300/**
301 * Default linking value
302 * {@link \ComboStrap\MediaLink::CONF_DEFAULT_LINKING}
303 */
304$conf["defaultImageLinking"] = "direct";
305
306/**
307 * Float
308 *  {@link \ComboStrap\FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT}
309 */
310$conf["floatDefaultBreakpoint"] = "sm";
311
312/**
313 * Outline Numbering
314 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE}
315 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2}
316 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3}
317 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4}
318 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5}
319 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6}
320 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR}
321 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX}
322 * {@link action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX}
323 */
324$conf["outlineNumberingEnable"] = 0;
325$conf["outlineNumberingCounterStyleLevel2"] = "decimal";
326$conf["outlineNumberingCounterStyleLevel3"] = "decimal";
327$conf["outlineNumberingCounterStyleLevel4"] = "decimal";
328$conf["outlineNumberingCounterStyleLevel5"] = "decimal";
329$conf["outlineNumberingCounterStyleLevel6"] = "decimal";
330$conf["outlineNumberingCounterSeparator"] = ".";
331$conf["outlineNumberingPrefix"] = "";
332$conf["outlineNumberingSuffix"] = " - ";
333