wplemon / control-wcag-auto-textcolor
Gridd主题免费版本的文本颜色控制。Kirki框架(v4.0 API)的插件。
v0.5
2020-07-24 12:19 UTC
Requires
- php: >=5.6
- kirki-framework/control-base: *
- kirki-framework/field: *
- kirki-framework/url-getter: *
- dev-master
- v0.5
- v0.4
- 0.3
- v0.2.1
- v0.2
- v0.1
- dev-dependabot/npm_and_yarn/minimist-1.2.8
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/ajv-6.12.6
This package is auto-updated.
Last update: 2024-09-04 08:07:57 UTC
README
示例
new \WPLemon\Field\WCAGTextColor( [ 'settings' => 'my_setting', 'label' => esc_html__( 'My Color Control', 'textdomain' ), 'description' => esc_html__( 'A description here.', 'textdomain' ), 'section' => 'my_section', 'default' => '', 'transport' => 'postMessage', 'choices' => [ 'formComponent' => 'ChromePicker', 'backgroundColor' => 'test_accessible_textcolor_control_background', // setting-name or hardcoded color. 'textColor' => 'test_accessible_textcolor_control', // setting-name or hardcoded color. 'show' => [ 'auto' => false, 'recommended' => false, 'custom' => true, ], ], 'sanitize_callback' => 'sanitize_text_field', ] );