1<?php
2
3//configuration metadata describe properties of the settings as used by the Configuration Manager
4//https://www.dokuwiki.org/devel:configuration#configuration_metadata
5
6require_once(__DIR__ . '/../class/TplUtility.php');
7
8
9use ComboStrap\TplUtility;
10
11$meta[TplUtility::CONF_FOOTER_SLOT_PAGE_NAME] = array('string',
12    "_caution" => "warning", // Show a warning
13    "_pattern" => "/[a-zA-Z0-9]*/" // Only Accept alphanumeric characters
14);
15
16$meta[TplUtility::CONF_HEADER_SLOT_PAGE_NAME] = array('string',
17    "_caution" => "warning", // Show a warning
18    "_pattern" => "/[a-zA-Z0-9]*/" // Only Accept alphanumeric characters
19);
20
21$meta[TplUtility::CONF_SIDEKICK_SLOT_PAGE_NAME] = array('string',
22    "_caution" => "warning", // Show a warning
23    "_pattern" => "/[a-zA-Z0-9]*/" // Only Accept alphanumeric characters
24);
25
26
27/**
28 * Do we use CDN when possible
29 */
30$meta[TplUtility::CONF_USE_CDN] = array('onoff');
31
32/**
33 * Do we print debug statement
34 */
35$meta['debug'] = array('onoff');
36
37/**
38 * The size of 1 rem in pixel
39 */
40$meta[TplUtility::CONF_REM_SIZE] = array('string');
41
42
43$meta[TplUtility::CONF_GRID_COLUMNS] = array('multichoice', '_choices' => array('12', '16'));
44
45$meta['preloadCss'] = array('onoff');
46
47$meta[TplUtility::CONF_PRIVATE_RAIL_BAR] = array('onoff');
48$meta[TplUtility::CONF_BREAKPOINT_RAIL_BAR] = array('multichoice', '_choices' => array(
49    TplUtility::BREAKPOINT_EXTRA_SMALL_NAME,
50    TplUtility::BREAKPOINT_SMALL_NAME,
51    TplUtility::BREAKPOINT_MEDIUM_NAME,
52    TplUtility::BREAKPOINT_LARGE_NAME,
53    TplUtility::BREAKPOINT_EXTRA_LARGE_NAME,
54    TplUtility::BREAKPOINT_EXTRA_EXTRA_LARGE_NAME,
55    TplUtility::BREAKPOINT_NEVER_NAME
56));
57
58
59// $meta[TplUtility::CONF_BOOTSTRAP_VERSION] = array('multichoice', '_choices' => array('4.4.1', '4.5.0', '5.0.1'));
60
61
62$cssFiles = TplUtility::getStylesheetsForMetadataConfiguration();
63$meta[TplUtility::CONF_BOOTSTRAP_VERSION_STYLESHEET] = array('multichoice', '_choices' => $cssFiles);
64
65$meta[TplUtility::CONF_JQUERY_DOKU] = array('onoff');
66
67$meta[TplUtility::CONF_DISABLE_BACKEND_JAVASCRIPT] = array('onoff');
68
69?>
70