1<?php 2 3use ComboStrap\AdsUtility; 4use ComboStrap\IconUtility; 5use ComboStrap\MetadataUtility; 6use ComboStrap\Prism; 7use ComboStrap\LowQualityPage; 8use ComboStrap\UrlManagerBestEndPage; 9 10require_once(__DIR__ . '/../syntax/related.php'); 11 12 13// https://www.dokuwiki.org/devel:configuration 14$meta[syntax_plugin_combo_related::MAX_LINKS_CONF] = array('numeric'); 15$meta[syntax_plugin_combo_related::EXTRA_PATTERN_CONF] = array('string'); 16 17/** 18 * Disqus 19 */ 20require_once(__DIR__ . '/../syntax/disqus.php'); 21$meta[syntax_plugin_combo_disqus::CONF_DEFAULT_ATTRIBUTES] = array('string'); 22 23 24/** 25 * Url Manager 26 */ 27$meta['ShowPageNameIsNotUnique'] = array('onoff'); 28$meta['ShowMessageClassic'] = array('onoff'); 29 30require_once(__DIR__ . '/../action/urlmanager.php'); 31$actionChoices = array('multichoice', '_choices' => array( 32 action_plugin_combo_urlmanager::NOTHING, 33 action_plugin_combo_urlmanager::GO_TO_BEST_END_PAGE_NAME, 34 action_plugin_combo_urlmanager::GO_TO_NS_START_PAGE, 35 action_plugin_combo_urlmanager::GO_TO_BEST_PAGE_NAME, 36 action_plugin_combo_urlmanager::GO_TO_BEST_NAMESPACE, 37 action_plugin_combo_urlmanager::GO_TO_SEARCH_ENGINE 38)); 39$meta['GoToEditMode'] = array('onoff'); 40$meta['ActionReaderFirst'] = $actionChoices; 41$meta['ActionReaderSecond'] = $actionChoices; 42$meta['ActionReaderThird'] = $actionChoices; 43$meta['WeightFactorForSamePageName'] = array('string'); 44$meta['WeightFactorForStartPage'] = array('string'); 45$meta['WeightFactorForSameNamespace'] = array('string'); 46require_once(__DIR__ . '/../class/UrlManagerBestEndPage.php'); 47$meta[UrlManagerBestEndPage::CONF_MINIMAL_SCORE_FOR_REDIRECT] = array('string'); 48 49$meta[action_plugin_combo_metacanonical::CANONICAL_LAST_NAMES_COUNT_CONF] = array('string'); 50 51/** 52 * Icon namespace where the downloaded icon are stored 53 */ 54require_once(__DIR__ . '/../syntax/icon.php'); 55$meta[IconUtility::CONF_ICONS_MEDIA_NAMESPACE] = array('string'); 56 57/** 58 * Css optimization 59 */ 60$meta[action_plugin_combo_css::CONF_ENABLE_MINIMAL_FRONTEND_STYLESHEET] = array('onoff'); 61$meta[action_plugin_combo_css::CONF_DISABLE_DOKUWIKI_STYLESHEET] = array('onoff'); 62 63/** 64 * Metadata Viewer 65 */ 66$meta[MetadataUtility::CONF_METADATA_DEFAULT_ATTRIBUTES] = array('string'); 67$meta[MetadataUtility::CONF_ENABLE_WHEN_EDITING] = array('onoff'); 68 69/** 70 * Badge 71 */ 72$meta[syntax_plugin_combo_badge::CONF_DEFAULT_ATTRIBUTES_KEY] = array('string'); 73 74/** 75 * Ads 76 */ 77require_once(__DIR__ . '/../class/AdsUtility.php'); 78$meta[AdsUtility::CONF_IN_ARTICLE_PLACEHOLDER] = array('onoff'); 79 80/** 81 * Code / File / Console 82 */ 83$meta[syntax_plugin_combo_code::CONF_CODE_ENABLE] = array('onoff'); 84$meta[Prism::CONF_PRISM_THEME] = array('multichoice', '_choices' => array_keys(Prism::THEMES_INTEGRITY)); 85$meta[Prism::CONF_BASH_PROMPT] = array('string'); 86$meta[Prism::CONF_BATCH_PROMPT] = array('string'); 87$meta[Prism::CONF_POWERSHELL_PROMPT] = array('string'); 88$meta[syntax_plugin_combo_file::CONF_FILE_ENABLE] = array('onoff'); 89 90/** 91 * Quality (SEO) 92 */ 93require_once(__DIR__ . '/../class/LowQualityPage.php'); 94$meta[LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_ENABLE] = array('onoff'); 95$meta[LowQualityPage::CONF_LOW_QUALITY_PAGE_PROTECTION_MODE] = array('multichoice', '_choices' => array( 96 LowQualityPage::ACL, 97 LowQualityPage::HIDDEN 98)); 99 100/** 101 * Preformatted mode enable 102 */ 103$meta[syntax_plugin_combo_preformatted::CONF_PREFORMATTED_ENABLE] = array('onoff'); 104 105/** 106 * The mandatory rules 107 */ 108$meta[renderer_plugin_combo_analytics::CONF_MANDATORY_QUALITY_RULES] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 109 110/** 111 * Autofrontmatter mode enable 112 */ 113$meta[action_plugin_combo_autofrontmatter::CONF_AUTOFRONTMATTER_ENABLE] = array('onoff'); 114 115/** 116 * The quality rules excluded from monitoring 117 */ 118$meta[action_plugin_combo_qualitymessage::CONF_EXCLUDED_QUALITY_RULES_FROM_DYNAMIC_MONITORING] = array('multicheckbox', '_choices' => renderer_plugin_combo_analytics::QUALITY_RULES); 119