-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathreadme.txt
95 lines (66 loc) · 2.87 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
=== ACF Color Swatches ===
Contributors: nickforddesign
Tags: acf, advanced custom fields, color, swatch, color picker, select, options
Requires at least: 4.0
Tested up to: 5
Requires PHP: 5.6
Stable tag: 4.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
An add-on for Advanced Custom Fields to allow users to select from a list of color choices. Setting up the field works exactly like setting up a radio button list, the main difference being that the key will also be used to style the element.
This is useful for allowing users to pick from a limited selection of colors, rather than enter an arbitrary hex value or choose from a color picker.
Supports all of the following color formats:
* hex: #FF0000
* rgb: rgb(255,0,0)
* rgba: rgba(255,0,0, 1)
* hsl: hsl(0,100%,50%)
* hsla: hsla(0,100%,50%, 1)
* name: red
Note: you may also use `none` to show a transparent swatch with a checkerboard background.
== Compatibility ==
This ACF field type is compatible with:
* ACF 4
* ACF 5 (PRO version)
== Screenshots ==
1. Use the same syntax as defining ACF radio buttons
2. Users will see color swatches that act like radio buttons
== Installation ==
1. Make sure to have [Advanced Custom Fields](https://wordpress.org/plugins/advanced-custom-fields/ "ACF") plugin installed.
2. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
3. Activate the plugin through the 'Plugins' screen in WordPress
4. Use the plugin while creating custom fields
== Changelog ==
4/25/18 - v1.0.7
---
* [issue](https://github.com/nickforddesign/acf-swatch/issues/12) - Fixed bug with returning value instead of array
10/23/17 - v1.0.6
---
* [d57ec40](https://github.com/nickforddesign/acf-swatch/pull/11) - Match background-color syntax
* [4892d0e](https://github.com/nickforddesign/acf-swatch/pull/10) - Allow transparent values to be selected
10/23/17 - v1.0.5
---
* [fa93a8b](https://github.com/nickforddesign/acf-swatch/pull/9) - Add return value option
2/13/17 - v1.0.4
---
* [44912a6](https://github.com/nickforddesign/acf-swatch/pull/7) - Allow inclusion within theme
10/21/16 - v1.0.3-rc.1
---
* [7bdc1d2](https://github.com/nickforddesign/acf-swatch/pull/5) - Improved composer instructions
10/7/16 - v1.0.3
---
* [9d733d9](https://github.com/nickforddesign/acf-swatch/pull/4) - Add composer.json
* Added readme.txt for Wordpress plugin database
5/19/16 - v1.0.3-alpha
---
* [0b1b7f6](https://github.com/nickforddesign/acf-swatch/pull/2) - Added support for ACF5
11/9/15 - v1.0.2
---
* Added checkerboard pattern to indicate transparency
* Added subtle border to show swatches that match the background color
10/14/15 - v1.0.1
---
* Improved browser / OS support by replacing input elements with block elements
9/20/15 - v1.0.0
---
* Initial Release