xref: /plugin/combo/conf/metadata.php (revision 5f891b7e09648e05e78f5882f3fdde1e9df9b0f1)
1<?php
2
3use ComboStrap\AdsUtility;
4use ComboStrap\IconUtility;
5use ComboStrap\LinkUtility;
6use ComboStrap\MetadataUtility;
7use ComboStrap\Page;
8use ComboStrap\PageProtection;
9use ComboStrap\Prism;
10use ComboStrap\LowQualityPage;
11use ComboStrap\Publication;
12use ComboStrap\Site;
13use ComboStrap\UrlManagerBestEndPage;
14
15require_once(__DIR__ . '/../syntax/related.php');
16
17
18// https://www.dokuwiki.org/devel:configuration
19$meta[syntax_plugin_combo_related::MAX_LINKS_CONF] = array('numeric');
20$meta[syntax_plugin_combo_related::EXTRA_PATTERN_CONF] = array('string');
21
22/**
23 * Disqus
24 */
25require_once(__DIR__ . '/../syntax/disqus.php');
26$meta[syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES] = array('string');
27
28
29/**
30 * Url Manager
31 */
32$meta['ShowPageNameIsNotUnique'] = array('onoff');
33$meta['ShowMessageClassic'] = array('onoff');
34
35require_once(__DIR__ . '/../action/urlmanager.php');
36$actionChoices = array('multichoice', '_choices' => array(
37    action_plugin_combo_urlmanager::NOTHING,
38    action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME,
39    action_plugin_combo_urlmanager::GO_TO_NS_START_PAGE,
40    action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME,
41    action_plugin_combo_urlmanager::GO_TO_BEST_NAMESPACE,
42    action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE
43));
44$meta['GoToEditMode'] = array('onoff');
45$meta['ActionReaderFirst'] = $actionChoices;
46$meta['ActionReaderSecond'] = $actionChoices;
47$meta['ActionReaderThird'] = $actionChoices;
48$meta['WeightFactorForSamePageName'] = array('string');
49$meta['WeightFactorForStartPage'] = array('string');
50$meta['WeightFactorForSameNamespace'] = array('string');
51require_once(__DIR__ . '/../class/UrlManagerBestEndPage.php');
52$meta[UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT] = array('string');
53
54$meta[action_plugin_combo_metacanonical::CANONICAL_LAST_NAMES_COUNT_CONF] = array('string');
55
56/**
57 * Icon namespace where the downloaded icon are stored
58 */
59require_once(__DIR__ . '/../syntax/icon.php');
60$meta[IconUtility::CONF_ICONS_MEDIA_NAMESPACE] = array('string');
61
62/**
63 * Css optimization
64 */
65$meta[action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET] = array('onoff');
66$meta[action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET] = array('onoff');
67
68/**
69 * Metadata Viewer
70 */
71$meta[MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES] = array('string');
72$meta[MetadataUtility::CONF_ENABLE_WHEN_EDITING] = array('onoff');
73
74/**
75 * Badge
76 */
77$meta[syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY] = array('string');
78
79/**
80 * Ads
81 */
82require_once(__DIR__ . '/../class/AdsUtility.php');
83$meta[AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER] = array('onoff');
84
85/**
86 * Code / File / Console
87 */
88$meta[syntax_plugin_combo_code::CONF_CODE_ENABLE] = array('onoff');
89$meta[Prism::CONF_PRISM_THEME] = array('multichoice', '_choices' => array_keys(Prism::THEMES_INTEGRITY));
90$meta[Prism::CONF_BASH_PROMPT] = array('string');
91$meta[Prism::CONF_BATCH_PROMPT] = array('string');
92$meta[Prism::CONF_POWERSHELL_PROMPT] = array('string');
93$meta[syntax_plugin_combo_file::CONF_FILE_ENABLE] = array('onoff');
94
95/**
96 * Quality (SEO)
97 */
98require_once(__DIR__ . '/../class/LowQualityPage.php');
99$meta[LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE] = array('onoff');
100$meta[PageProtection::CONF_PAGE_PROTECTION_MODE] = array('multichoice', '_choices' => array(
101    PageProtection::CONF_VALUE_ACL,
102    PageProtection::CONF_VALUE_HIDDEN
103));
104
105/**
106 * Preformatted mode enable
107 */
108$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE] = array('onoff');
109
110/**
111 * The mandatory rules
112 */
113$meta[renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES);
114
115/**
116 * Autofrontmatter mode enable
117 */
118$meta[action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE] = array('onoff');
119
120/**
121 * The quality rules excluded from monitoring
122 */
123$meta[action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING] = array('onoff');
124$meta[action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES);
125
126/**
127 * Dokuwiki Class Name
128 */
129$meta[LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME] = array('onoff');
130
131/**
132 * Twitter
133 */
134$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_HANDLE] = array('string');
135$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_ID] = array('string');
136$meta[action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE] = array('string');
137$meta[action_plugin_combo_metatwitter::CONF_DONT_NOT_TRACK] = array('multichoice', '_choices' => array(
138    action_plugin_combo_metatwitter::CONF_ON,
139    action_plugin_combo_metatwitter::CONF_OFF
140));
141$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_THEME] = array('string');
142$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_BORDER] = array('string');
143
144/**
145 * Page Image
146 */
147$meta[Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE] = array('onoff');
148
149/**
150 * Facebook
151 */
152$meta[action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE] = array('string');
153
154/**
155 * Site country
156 */
157$meta[Site::CONF_SITE_ISO_COUNTRY] = array("string");
158
159/**
160 * Late publication protection
161 */
162$meta[Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE] = array('onoff');
163
164/**
165 * Default Page Type
166 */
167$meta[Page::CONF_DEFAULT_PAGE_TYPE] = array("string");
168