{"id":65599,"date":"2018-02-14T15:35:26","date_gmt":"2018-02-14T15:35:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/acf-color-swatches\/"},"modified":"2018-11-29T16:41:25","modified_gmt":"2018-11-29T16:41:25","slug":"acf-color-swatches","status":"publish","type":"plugin","link":"https:\/\/es-cr.wordpress.org\/plugins\/acf-color-swatches\/","author":9845972,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.7","stable_tag":"trunk","tested":"","requires":"4.0","requires_php":"5.6","requires_plugins":"","header_name":"Advanced Custom Fields: Color Swatches","header_author":"Nick Ford","header_description":"","assets_banners_color":"","last_updated":"2018-11-29 16:41:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"#","header_author_uri":"http:\/\/nickforddesign.com","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":19112,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.7","2.0.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1822295","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1822295","resolution":"2","location":"assets"}},"screenshots":{"1":"Use the same syntax as defining ACF radio buttons","2":"Users will see color swatches that act like radio buttons"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,2217,1257,18838,153181],"plugin_category":[59],"plugin_contributors":[153182],"plugin_business_model":[],"class_list":["post-65599","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-advanced-custom-fields","plugin_tags-color","plugin_tags-color-picker","plugin_tags-swatch","plugin_category-utilities-and-tools","plugin_contributors-nickforddesign","plugin_committers-nickforddesign"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/acf-color-swatches.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/acf-color-swatches\/assets\/screenshot-1.png?rev=1822295","caption":"Use the same syntax as defining ACF radio buttons"},{"src":"https:\/\/ps.w.org\/acf-color-swatches\/assets\/screenshot-2.png?rev=1822295","caption":"Users will see color swatches that act like radio buttons"}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>Supports all of the following color formats:<\/p>\n\n<ul>\n<li>hex: #FF0000<\/li>\n<li>rgb: rgb(255,0,0)<\/li>\n<li>rgba: rgba(255,0,0, 1)<\/li>\n<li>hsl: hsl(0,100%,50%)<\/li>\n<li>hsla: hsla(0,100%,50%, 1)<\/li>\n<li>name: red<\/li>\n<\/ul>\n\n<p>Note: you may also use <code>none<\/code> to show a transparent swatch with a checkerboard background.<\/p>\n\n<h3>Compatibility<\/h3>\n\n<p>This ACF field type is compatible with:<\/p>\n\n<ul>\n<li>ACF 4<\/li>\n<li>ACF 5 (PRO version)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Make sure to have <a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\" title=\"ACF\">Advanced Custom Fields<\/a> plugin installed.<\/li>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the plugin while creating custom fields<\/li>\n<\/ol>\n\n<!--section=changelog-->\n4\/25\/18 - v1.0.7\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/issues\/12\">issue<\/a> - Fixed bug with returning value instead of array<\/li>\n<\/ul>\n\n10\/23\/17 - v1.0.6\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/11\">d57ec40<\/a> - Match background-color syntax<\/li>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/10\">4892d0e<\/a> - Allow transparent values to be selected<\/li>\n<\/ul>\n\n10\/23\/17 - v1.0.5\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/9\">fa93a8b<\/a> - Add return value option<\/li>\n<\/ul>\n\n2\/13\/17 - v1.0.4\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/7\">44912a6<\/a> - Allow inclusion within theme<\/li>\n<\/ul>\n\n10\/21\/16 - v1.0.3-rc.1\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/5\">7bdc1d2<\/a> - Improved composer instructions<\/li>\n<\/ul>\n\n10\/7\/16 - v1.0.3\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/4\">9d733d9<\/a> - Add composer.json<\/li>\n<li>Added readme.txt for Wordpress plugin database<\/li>\n<\/ul>\n\n5\/19\/16 - v1.0.3-alpha\n\n<ul>\n<li><a href=\"https:\/\/github.com\/nickforddesign\/acf-swatch\/pull\/2\">0b1b7f6<\/a> - Added support for ACF5<\/li>\n<\/ul>\n\n11\/9\/15 - v1.0.2\n\n<ul>\n<li>Added checkerboard pattern to indicate transparency<\/li>\n<li>Added subtle border to show swatches that match the background color<\/li>\n<\/ul>\n\n10\/14\/15 - v1.0.1\n\n<ul>\n<li>Improved browser \/ OS support by replacing input elements with block elements<\/li>\n<\/ul>\n\n9\/20\/15 - v1.0.0\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"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 &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/65599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=65599"}],"author":[{"embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nickforddesign"}],"wp:attachment":[{"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=65599"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=65599"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=65599"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=65599"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=65599"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-cr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=65599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}