1<?php 2 3use ComboStrap\AdsUtility; 4use ComboStrap\FloatAttribute; 5use ComboStrap\Icon; 6use ComboStrap\Identity; 7use ComboStrap\MediaLink; 8use ComboStrap\LazyLoad; 9use ComboStrap\RasterImageLink; 10use ComboStrap\LinkUtility; 11use ComboStrap\MetadataUtility; 12use ComboStrap\Page; 13use ComboStrap\PageProtection; 14use ComboStrap\Prism; 15use ComboStrap\LowQualityPage; 16use ComboStrap\Publication; 17use ComboStrap\Shadow; 18use ComboStrap\Site; 19use ComboStrap\SvgDocument; 20use ComboStrap\SvgImageLink; 21use ComboStrap\UrlManagerBestEndPage; 22 23/** 24 * Load all class via Plugin Utility 25 */ 26require_once (__DIR__.'/../class/PluginUtility.php'); 27 28 29require_once(__DIR__ . '/../syntax/related.php'); 30 31 32// https://www.dokuwiki.org/devel:configuration 33$meta[syntax_plugin_combo_related::MAX_LINKS_CONF] = array('numeric'); 34$meta[syntax_plugin_combo_related::EXTRA_PATTERN_CONF] = array('string'); 35 36/** 37 * Disqus 38 */ 39require_once(__DIR__ . '/../syntax/disqus.php'); 40$meta[syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES] = array('string'); 41 42 43/** 44 * Url Manager 45 */ 46$meta['ShowPageNameIsNotUnique'] = array('onoff'); 47$meta['ShowMessageClassic'] = array('onoff'); 48 49require_once(__DIR__ . '/../action/urlmanager.php'); 50$actionChoices = array('multichoice', '_choices' => array( 51 action_plugin_combo_urlmanager::NOTHING, 52 action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME, 53 action_plugin_combo_urlmanager::GO_TO_NS_START_PAGE, 54 action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME, 55 action_plugin_combo_urlmanager::GO_TO_BEST_NAMESPACE, 56 action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE 57)); 58$meta['GoToEditMode'] = array('onoff'); 59$meta['ActionReaderFirst'] = $actionChoices; 60$meta['ActionReaderSecond'] = $actionChoices; 61$meta['ActionReaderThird'] = $actionChoices; 62$meta['WeightFactorForSamePageName'] = array('string'); 63$meta['WeightFactorForStartPage'] = array('string'); 64$meta['WeightFactorForSameNamespace'] = array('string'); 65require_once(__DIR__ . '/../class/UrlManagerBestEndPage.php'); 66$meta[UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT] = array('string'); 67 68$meta[action_plugin_combo_metacanonical::CANONICAL_LAST_NAMES_COUNT_CONF] = array('string'); 69 70/** 71 * Icon namespace where the downloaded icon are stored 72 */ 73require_once(__DIR__ . '/../syntax/icon.php'); 74$meta[Icon::CONF_ICONS_MEDIA_NAMESPACE] = array('string'); 75$meta[Icon::CONF_DEFAULT_ICON_LIBRARY] = array('multichoice', '_choices' => array_keys(Icon::LIBRARY_ACRONYM)); 76 77 78/** 79 * Css optimization 80 */ 81$meta[action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET] = array('onoff'); 82$meta[action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET] = array('onoff'); 83 84/** 85 * Metadata Viewer 86 */ 87$meta[MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES] = array('string'); 88$meta[MetadataUtility::CONF_ENABLE_WHEN_EDITING] = array('onoff'); 89 90/** 91 * Badge 92 */ 93$meta[syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY] = array('string'); 94 95/** 96 * Ads 97 */ 98require_once(__DIR__ . '/../class/AdsUtility.php'); 99$meta[AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER] = array('onoff'); 100 101/** 102 * Code / File / Console 103 */ 104$meta[syntax_plugin_combo_code::CONF_CODE_ENABLE] = array('onoff'); 105$meta[Prism::CONF_PRISM_THEME] = array('multichoice', '_choices' => array_keys(Prism::THEMES_INTEGRITY)); 106$meta[Prism::CONF_BASH_PROMPT] = array('string'); 107$meta[Prism::CONF_BATCH_PROMPT] = array('string'); 108$meta[Prism::CONF_POWERSHELL_PROMPT] = array('string'); 109$meta[syntax_plugin_combo_file::CONF_FILE_ENABLE] = array('onoff'); 110 111/** 112 * Quality (SEO) 113 */ 114require_once(__DIR__ . '/../class/LowQualityPage.php'); 115$meta[LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE] = array('onoff'); 116$meta[PageProtection::CONF_PAGE_PROTECTION_MODE] = array('multichoice', '_choices' => array( 117 PageProtection::CONF_VALUE_ACL, 118 PageProtection::CONF_VALUE_HIDDEN 119)); 120 121/** 122 * Preformatted mode enable 123 */ 124$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE] = array('onoff'); 125$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_EMPTY_CONTENT_NOT_PRINTED_ENABLE] = array('onoff'); 126 127/** 128 * The mandatory rules 129 */ 130$meta[renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 131 132/** 133 * Autofrontmatter mode enable 134 */ 135$meta[action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE] = array('onoff'); 136 137/** 138 * The quality rules excluded from monitoring 139 */ 140$meta[action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING] = array('onoff'); 141$meta[action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 142 143/** 144 * Link 145 */ 146$meta[LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME] = array('onoff'); 147$meta[syntax_plugin_combo_link::CONF_DISABLE_LINK] = array('onoff'); 148 149/** 150 * Twitter 151 */ 152$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_HANDLE] = array('string'); 153$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_ID] = array('string'); 154$meta[action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE] = array('string'); 155$meta[action_plugin_combo_metatwitter::CONF_DONT_NOT_TRACK] = array('multichoice', '_choices' => array( 156 action_plugin_combo_metatwitter::CONF_ON, 157 action_plugin_combo_metatwitter::CONF_OFF 158)); 159$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_THEME] = array('string'); 160$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_BORDER] = array('string'); 161 162/** 163 * Page Image 164 */ 165$meta[Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE] = array('onoff'); 166 167/** 168 * Facebook 169 */ 170$meta[action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE] = array('string'); 171 172/** 173 * Site country 174 */ 175$meta[Site::CONF_SITE_ISO_COUNTRY] = array("string"); 176 177/** 178 * Late publication protection 179 */ 180$meta[Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE] = array('onoff'); 181 182/** 183 * Default Page Type 184 */ 185$meta[Page::CONF_DEFAULT_PAGE_TYPE] = array("string"); 186 187/** 188 * Default Shadow level 189 */ 190$meta[Shadow::CONF_DEFAULT_VALUE] = array('multichoice', '_choices' => array( 191 Shadow::CONF_SMALL_LEVEL_VALUE, 192 Shadow::CONF_MEDIUM_LEVEL_VALUE, 193 Shadow::CONF_LARGE_LEVEL_VALUE, 194 Shadow::CONF_EXTRA_LARGE_LEVEL_VALUE 195)); 196 197 198/** 199 * Big Svg Lazy load 200 */ 201require_once(__DIR__ . '/../class/SvgImageLink.php'); 202$meta[SvgImageLink::CONF_LAZY_LOAD_ENABLE] = array('onoff'); 203 204/** 205 * Big Svg Injection 206 */ 207$meta[SvgImageLink::CONF_SVG_INJECTION_ENABLE] = array('onoff'); 208 209/** 210 * Svg Optimization 211 */ 212$meta[SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE] = array('onoff'); 213 214/** 215 * Svg Optimization Inline 216 */ 217$meta[SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG] = array('string'); 218 219/** 220 * Svg Upload Group Name 221 */ 222$meta[action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME] = array('string'); 223 224/** 225 * Svg The attribute that are deleted with the optimization 226 * {@link SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE} 227 */ 228$meta[SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE] = array('string'); 229$meta[SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE] = array('string'); 230$meta[SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY] = array('string'); 231$meta[SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP] = array('string'); 232$meta[SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT] = array('string'); 233 234/** 235 * Raster Lazy load image 236 */ 237$meta[RasterImageLink::CONF_LAZY_LOADING_ENABLE] = array('onoff'); 238$meta[RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN] = array('string'); 239$meta[RasterImageLink::CONF_RETINA_SUPPORT_ENABLED] = array('onoff'); 240 241/** 242 * Lazy loading 243 */ 244$meta[LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR] = array("string"); 245 246/** 247 * Internal media 248 */ 249$meta[syntax_plugin_combo_media::CONF_IMAGE_ENABLE] = array('onoff'); 250 251/** 252 * Internal media default linking 253 */ 254$meta[MediaLink::CONF_DEFAULT_LINKING] = array('multichoice', '_choices' => array( 255 MediaLink::LINKING_DIRECT_VALUE, 256 MediaLink::LINKING_DETAILS_VALUE, 257 MediaLink::LINKING_LINKONLY_VALUE, 258 MediaLink::LINKING_NOLINK_VALUE, 259)); 260 261/** 262 * Default breakpoint 263 */ 264$meta[FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT] = array('multichoice', '_choices' => array( 265 "xs", 266 "sm", 267 "md", 268 "lg", 269 "xl", 270 "xxl" 271)); 272 273/** 274 * Outline Numbering 275 */ 276$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE] = array("onoff"); 277$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 278$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 279$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 280$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 281$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 282$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR] = array("string"); 283$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX] = array("string"); 284$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX] = array("string"); 285 286/** 287 * Identity form 288 */ 289$meta[Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS] = array("onoff"); 290$meta[action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM] = array("onoff"); 291$meta[action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM] = array("onoff"); 292$meta[action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM] = array("onoff"); 293 294 295