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[LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE] = array('multichoice', '_choices' => array( 117 PageProtection::CONF_VALUE_ROBOT, 118 PageProtection::CONF_VALUE_FEED, 119 PageProtection::CONF_VALUE_ACL, 120 PageProtection::CONF_VALUE_HIDDEN 121)); 122$meta[LowQualityPage::CONF_LOW_QUALITY_PAGE_LINK_TYPE] = array('multichoice', '_choices' => array( 123 PageProtection::PAGE_PROTECTION_LINK_NORMAL, 124 PageProtection::PAGE_PROTECTION_LINK_WARNING, 125 PageProtection::PAGE_PROTECTION_LINK_LOGIN, 126)); 127 128/** 129 * Preformatted mode enable 130 */ 131$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE] = array('onoff'); 132$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_EMPTY_CONTENT_NOT_PRINTED_ENABLE] = array('onoff'); 133 134/** 135 * The mandatory rules 136 */ 137$meta[renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 138 139/** 140 * Autofrontmatter mode enable 141 */ 142$meta[action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE] = array('onoff'); 143 144/** 145 * The quality rules excluded from monitoring 146 */ 147$meta[action_plugin_combo_qualitymessage::CONF_DISABLE_QUALITY_MONITORING] = array('onoff'); 148$meta[action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 149 150/** 151 * Link 152 */ 153$meta[LinkUtility::CONF_USE_DOKUWIKI_CLASS_NAME] = array('onoff'); 154$meta[LinkUtility::CONF_PREVIEW_LINK] = array('onoff'); 155$meta[syntax_plugin_combo_link::CONF_DISABLE_LINK] = array('onoff'); 156 157/** 158 * Twitter 159 */ 160$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_HANDLE] = array('string'); 161$meta[action_plugin_combo_metatwitter::CONF_TWITTER_SITE_ID] = array('string'); 162$meta[action_plugin_combo_metatwitter::CONF_DEFAULT_TWITTER_IMAGE] = array('string'); 163$meta[action_plugin_combo_metatwitter::CONF_DONT_NOT_TRACK] = array('multichoice', '_choices' => array( 164 action_plugin_combo_metatwitter::CONF_ON, 165 action_plugin_combo_metatwitter::CONF_OFF 166)); 167$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_THEME] = array('string'); 168$meta[syntax_plugin_combo_blockquote::CONF_TWEET_WIDGETS_BORDER] = array('string'); 169 170/** 171 * Page Image 172 */ 173$meta[Page::CONF_DISABLE_FIRST_IMAGE_AS_PAGE_IMAGE] = array('onoff'); 174 175/** 176 * Facebook 177 */ 178$meta[action_plugin_combo_metafacebook::CONF_DEFAULT_FACEBOOK_IMAGE] = array('string'); 179 180/** 181 * Site country 182 */ 183$meta[Site::CONF_SITE_ISO_COUNTRY] = array("string"); 184 185/** 186 * Late publication protection 187 */ 188$meta[Publication::CONF_LATE_PUBLICATION_PROTECTION_ENABLE] = array('onoff'); 189$meta[Publication::CONF_LATE_PUBLICATION_PROTECTION_MODE] = array('multichoice', '_choices' => array( 190 PageProtection::CONF_VALUE_ROBOT, 191 PageProtection::CONF_VALUE_FEED, 192 PageProtection::CONF_VALUE_ACL, 193 PageProtection::CONF_VALUE_HIDDEN 194)); 195 196/** 197 * Default Page Type 198 */ 199$meta[Page::CONF_DEFAULT_PAGE_TYPE] = array("string"); 200 201/** 202 * Default Shadow level 203 */ 204$meta[Shadow::CONF_DEFAULT_VALUE] = array('multichoice', '_choices' => array( 205 Shadow::CONF_SMALL_LEVEL_VALUE, 206 Shadow::CONF_MEDIUM_LEVEL_VALUE, 207 Shadow::CONF_LARGE_LEVEL_VALUE, 208 Shadow::CONF_EXTRA_LARGE_LEVEL_VALUE 209)); 210 211 212/** 213 * Big Svg Lazy load 214 */ 215require_once(__DIR__ . '/../class/SvgImageLink.php'); 216$meta[SvgImageLink::CONF_LAZY_LOAD_ENABLE] = array('onoff'); 217 218/** 219 * Big Svg Injection 220 */ 221$meta[SvgImageLink::CONF_SVG_INJECTION_ENABLE] = array('onoff'); 222 223/** 224 * Svg Optimization 225 */ 226$meta[SvgDocument::CONF_SVG_OPTIMIZATION_ENABLE] = array('onoff'); 227 228/** 229 * Svg Optimization Inline 230 */ 231$meta[SvgImageLink::CONF_MAX_KB_SIZE_FOR_INLINE_SVG] = array('string'); 232 233/** 234 * Svg Upload Group Name 235 */ 236$meta[action_plugin_combo_svg::CONF_SVG_UPLOAD_GROUP_NAME] = array('string'); 237 238/** 239 * Svg The attribute that are deleted with the optimization 240 * {@link SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE} 241 */ 242$meta[SvgDocument::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE] = array('string'); 243$meta[SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE] = array('string'); 244$meta[SvgDocument::CONF_OPTIMIZATION_ELEMENTS_TO_DELETE_IF_EMPTY] = array('string'); 245$meta[SvgDocument::CONF_OPTIMIZATION_NAMESPACES_TO_KEEP] = array('string'); 246$meta[SvgDocument::CONF_PRESERVE_ASPECT_RATIO_DEFAULT] = array('string'); 247 248/** 249 * Raster Lazy load image 250 */ 251$meta[RasterImageLink::CONF_LAZY_LOADING_ENABLE] = array('onoff'); 252$meta[RasterImageLink::CONF_RESPONSIVE_IMAGE_MARGIN] = array('string'); 253$meta[RasterImageLink::CONF_RETINA_SUPPORT_ENABLED] = array('onoff'); 254 255/** 256 * Lazy loading 257 */ 258$meta[LazyLoad::CONF_LAZY_LOADING_PLACEHOLDER_COLOR] = array("string"); 259 260/** 261 * Internal media 262 */ 263$meta[syntax_plugin_combo_media::CONF_IMAGE_ENABLE] = array('onoff'); 264 265/** 266 * Internal media default linking 267 */ 268$meta[MediaLink::CONF_DEFAULT_LINKING] = array('multichoice', '_choices' => array( 269 MediaLink::LINKING_DIRECT_VALUE, 270 MediaLink::LINKING_DETAILS_VALUE, 271 MediaLink::LINKING_LINKONLY_VALUE, 272 MediaLink::LINKING_NOLINK_VALUE, 273)); 274 275/** 276 * Default breakpoint 277 */ 278$meta[FloatAttribute::CONF_FLOAT_DEFAULT_BREAKPOINT] = array('multichoice', '_choices' => array( 279 "xs", 280 "sm", 281 "md", 282 "lg", 283 "xl", 284 "xxl" 285)); 286 287/** 288 * Outline Numbering 289 */ 290$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_ENABLE] = array("onoff"); 291$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL2] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 292$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL3] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 293$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL4] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 294$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL5] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 295$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_STYLE_LEVEL6] = array('multichoice', '_choices' => action_plugin_combo_outlinenumbering::CONF_COUNTER_STYLES_CHOICES); 296$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_COUNTER_SEPARATOR] = array("string"); 297$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_PREFIX] = array("string"); 298$meta[action_plugin_combo_outlinenumbering::CONF_OUTLINE_NUMBERING_SUFFIX] = array("string"); 299 300/** 301 * Identity form 302 */ 303$meta[Identity::CONF_ENABLE_LOGO_ON_IDENTITY_FORMS] = array("onoff"); 304$meta[action_plugin_combo_registration::CONF_ENABLE_REGISTER_FORM] = array("onoff"); 305$meta[action_plugin_combo_login::CONF_ENABLE_LOGIN_FORM] = array("onoff"); 306$meta[action_plugin_combo_resend::CONF_ENABLE_RESEND_PWD_FORM] = array("onoff"); 307$meta[action_plugin_combo_profile::CONF_ENABLE_PROFILE_UPDATE_FORM] = array("onoff"); 308$meta[action_plugin_combo_profile::CONF_ENABLE_PROFILE_DELETE_FORM] = array("onoff"); 309 310 311