Kirki - Version 2.2.1

Version Description

March 17, 2016, dev time: 3 hours

  • FIX: Alpha channel was always enabled for color controls
  • FIX: PHP Notices in the class-kirki-output-control-typography.php file
  • FIX: PHP Fatal error on PHP 5.2
  • FIX: PHP Notice in the class-kirki-field.php file
  • FIX: PHP Fatal error when using background-position in the output argument
  • TWEAK: Removed unused languages from CodeMirror to reduce the plugin's size
Download this release

Release Info

Developer aristath
Plugin Icon 128x128 Kirki
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

Files changed (102) hide show
  1. .codeclimate.yml +28 -0
  2. .coveralls.yml +3 -0
  3. .csslintrc +2 -0
  4. .gitignore +18 -0
  5. .simplecov +7 -0
  6. .travis.yml +48 -0
  7. LICENSE +0 -0
  8. README.md +477 -465
  9. assets/css/customizer.css +0 -0
  10. assets/css/customizer.css.map +0 -0
  11. assets/css/customizer.min.css +0 -0
  12. assets/css/transparency-grid.png +0 -0
  13. assets/images/jquery.fs.stepper-arrows.png +0 -0
  14. assets/images/kirki-toolkit.png +0 -0
  15. assets/js/controls/checkbox.js +0 -0
  16. assets/js/controls/dimension.js +0 -0
  17. assets/js/controls/editor.js +0 -0
  18. assets/js/controls/multicheck.js +0 -0
  19. assets/js/controls/number.js +0 -0
  20. assets/js/controls/palette.js +0 -0
  21. assets/js/controls/preset.js +0 -0
  22. assets/js/controls/radio-buttonset.js +0 -0
  23. assets/js/controls/radio-image.js +0 -0
  24. assets/js/controls/radio.js +0 -0
  25. assets/js/controls/repeater.js +0 -0
  26. assets/js/controls/select.js +0 -0
  27. assets/js/controls/slider.js +0 -0
  28. assets/js/controls/sortable.js +0 -0
  29. assets/js/controls/spacing.js +0 -0
  30. assets/js/controls/switch.js +0 -0
  31. assets/js/controls/toggle.js +0 -0
  32. assets/js/controls/typography.js +0 -0
  33. assets/js/customizer.js +0 -0
  34. assets/js/customizer.min.js +0 -0
  35. assets/js/customizer.min.js.map +0 -0
  36. assets/js/vendor/selectize.js +0 -0
  37. assets/js/vendor/serialize.js +0 -0
  38. assets/scss/controls/checkbox.scss +0 -0
  39. assets/scss/controls/code.scss +0 -0
  40. assets/scss/controls/dimension.scss +0 -0
  41. assets/scss/controls/multicheck.scss +0 -0
  42. assets/scss/controls/number.scss +0 -0
  43. assets/scss/controls/palette.scss +0 -0
  44. assets/scss/controls/radio-buttonset.scss +0 -0
  45. assets/scss/controls/radio-image.scss +0 -0
  46. assets/scss/controls/radio.scss +0 -0
  47. assets/scss/controls/repeater.scss +0 -0
  48. assets/scss/controls/select.scss +0 -0
  49. assets/scss/controls/slider.scss +0 -0
  50. assets/scss/controls/sortable.scss +0 -0
  51. assets/scss/controls/spacing.scss +0 -0
  52. assets/scss/controls/switch.scss +0 -0
  53. assets/scss/controls/toggle.scss +0 -0
  54. assets/scss/controls/typography.scss +0 -0
  55. assets/scss/customizer.scss +0 -0
  56. assets/scss/global.scss +0 -0
  57. autoloader.php +1 -1
  58. includes/class-kirki-active-callback.php +0 -0
  59. includes/class-kirki-config.php +0 -0
  60. includes/class-kirki-control.php +0 -0
  61. includes/class-kirki-customize-control.php +0 -0
  62. includes/class-kirki-field.php +5 -1
  63. includes/class-kirki-helper.php +3 -0
  64. includes/class-kirki-init.php +0 -0
  65. includes/class-kirki-panel.php +0 -0
  66. includes/class-kirki-sanitize-values.php +0 -0
  67. includes/class-kirki-section.php +0 -0
  68. includes/class-kirki-settings.php +0 -0
  69. includes/class-kirki-toolkit.php +1 -1
  70. includes/class-kirki-values.php +0 -0
  71. includes/controls/class-kirki-controls-checkbox-control.php +0 -0
  72. includes/controls/class-kirki-controls-code-control.php +0 -0
  73. includes/controls/class-kirki-controls-color-alpha-control.php +2 -1
  74. includes/controls/class-kirki-controls-custom-control.php +0 -0
  75. includes/controls/class-kirki-controls-dimension-control.php +0 -0
  76. includes/controls/class-kirki-controls-editor-control.php +0 -0
  77. includes/controls/class-kirki-controls-multicheck-control.php +0 -0
  78. includes/controls/class-kirki-controls-number-control.php +0 -0
  79. includes/controls/class-kirki-controls-palette-control.php +0 -0
  80. includes/controls/class-kirki-controls-preset-control.php +0 -0
  81. includes/controls/class-kirki-controls-radio-buttonset-control.php +0 -0
  82. includes/controls/class-kirki-controls-radio-control.php +0 -0
  83. includes/controls/class-kirki-controls-radio-image-control.php +0 -0
  84. includes/controls/class-kirki-controls-repeater-control.php +0 -0
  85. includes/controls/class-kirki-controls-select-control.php +0 -0
  86. includes/controls/class-kirki-controls-slider-control.php +0 -0
  87. includes/controls/class-kirki-controls-sortable-control.php +0 -0
  88. includes/controls/class-kirki-controls-spacing-control.php +0 -0
  89. includes/controls/class-kirki-controls-switch-control.php +0 -0
  90. includes/controls/class-kirki-controls-toggle-control.php +0 -0
  91. includes/controls/class-kirki-controls-typography-control.php +0 -0
  92. includes/dynamic-css.php +0 -0
  93. includes/lib/class-kirki-colourlovers.php +0 -0
  94. includes/output/class-kirki-output.php +1 -0
  95. includes/output/control/class-kirki-output-control-typography.php +2 -0
  96. includes/output/property/class-kirki-output-property-background-position.php +2 -2
  97. includes/settings/class-kirki-settings-repeater-setting.php +0 -0
  98. includes/styles/class-kirki-styles-frontend.php +2 -8
  99. kirki.php +1 -1
  100. languages/kirki.pot +2 -2
  101. package.json +1 -1
  102. readme.txt +12 -1
.codeclimate.yml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ engines:
3
+ csslint:
4
+ enabled: true
5
+ duplication:
6
+ enabled: false
7
+ config:
8
+ languages:
9
+ - javascript
10
+ - php
11
+ fixme:
12
+ enabled: true
13
+ phpmd:
14
+ enabled: true
15
+ checks:
16
+ Controversial/CamelCaseMethodName:
17
+ enabled: false
18
+ ratings:
19
+ paths:
20
+ - "**.css"
21
+ - "**.js"
22
+ - "**.php"
23
+ exclude_paths:
24
+ - assets/css/customizer-dynamic-css-colors.css
25
+ - assets/js/customizer.js
26
+ - assets/js/vendor/*
27
+ - tests/*
28
+ - bin/*
.coveralls.yml ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ coverage_clover: build/logs/clover.xml
2
+ service_name: travis-ci
3
+ json_path: tests/logs/coveralls-upload.json
.csslintrc ADDED
@@ -0,0 +1,2 @@
 
 
1
+ --exclude-exts=.min.css
2
+ --ignore=adjoining-classes,box-model,ids,order-alphabetical,unqualified-attributes
.gitignore ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # npm #
2
+ #######
3
+ node_modules
4
+ npm-debug.log
5
+
6
+ # grunt-contrib-sass #
7
+ ######################
8
+ .sass-cache
9
+
10
+ # OS generated files #
11
+ ######################
12
+ .DS_Store
13
+ .DS_Store?
14
+ ._*
15
+ .Spotlight-V100
16
+ .Trashes
17
+ ehthumbs.db
18
+ Thumbs.db
.simplecov ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
+ SimpleCov.start do
6
+ add_filter "/test/"
7
+ end
.travis.yml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ language: php
2
+
3
+ sudo: false
4
+
5
+ notifications:
6
+ on_success: never
7
+ on_failure: change
8
+
9
+ php:
10
+ - 7.0
11
+ - hhvm
12
+
13
+ env:
14
+ - WP_VERSION=latest WP_MULTISITE=0
15
+
16
+ matrix:
17
+ # include:
18
+ # - php: 5.6
19
+ # env: WP_VERSION=latest WP_MULTISITE=1
20
+ exclude:
21
+ - php: hhvm
22
+ env: WP_VERSION=latest WP_MULTISITE=1
23
+
24
+ defore_install:
25
+ - pip install --user codecov
26
+ - composer require phpunit/phpunit:4.8.* satooshi/php-coveralls:dev-master
27
+ - composer install --dev
28
+
29
+ before_script:
30
+ - bash tests/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
31
+ - curl -s http://getcomposer.org/installer | php
32
+ - php composer.phar install --dev --no-interaction
33
+
34
+ script:
35
+ - mkdir -p build/logs
36
+ - phpunit --coverage-clover=coverage.clover
37
+ - find . \( -name '*kirki*.php' \) -exec php -lf {} \;
38
+ - ./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml
39
+
40
+ after_script:
41
+ - php vendor/bin/coveralls
42
+ - wget https://scrutinizer-ci.com/ocular.phar
43
+ - php ocular.phar code-coverage:upload --format=php-clover coverage.clove
44
+
45
+ after_success:
46
+ - coveralls
47
+ - codecov
48
+ - bash <(curl -s https://codecov.io/bash)
LICENSE CHANGED
File without changes
README.md CHANGED
@@ -1,465 +1,477 @@
1
- # Kirki #
2
- **Contributors:** aristath, fovoc, igmoweb
3
- **Tags:** customizer,options framework, theme, mods, toolkit
4
- **Donate link:** http://kirki.org/
5
- **Requires at least:** 4.4
6
- **Tested up to:** 4.5
7
- **Stable tag:** 2.2.0
8
- **License:** GPLv2 or later
9
- **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- The ultimate toolkit for theme developers using the WordPress Customizer
12
-
13
-
14
- ## Description ##
15
-
16
- [![Build Status](https://travis-ci.org/aristath/kirki.svg?branch=master)](https://travis-ci.org/aristath/kirki) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/aristath/kirki/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/aristath/kirki/?branch=master) [![Code Climate](https://codeclimate.com/github/aristath/kirki/badges/gpa.svg)](https://codeclimate.com/github/aristath/kirki) [![codecov.io](https://codecov.io/github/aristath/kirki/coverage.svg?branch=master)](https://codecov.io/github/aristath/kirki?branch=master) [![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://raw.githubusercontent.com/aristath/kirki/master/LICENSE) [![Join the chat at https://gitter.im/aristath/kirki](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aristath/kirki?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
17
-
18
- Kirki is a Toolkit allowing WordPress developers to use the Customizer and take advantage of its advanced features and flexibility by abstracting the code and making it easier for everyone to create beautiful and meaningful user experiences.
19
-
20
- Kirki does not replace the WordPress Customizer API, you can still use the default WordPress methods and we advise you to familiarize yourselves with it. An excellent handbook for the WordPress Customizer can be found on the developer.wordpress.org website.
21
-
22
- What Kirki does is save you time… LOTS of time!
23
-
24
- Easily add configurations for your project, create panels, sections and add fields with ease.
25
-
26
- Automatically create CSS from your fields, and make the customizer’s preview instant with our automatic postMessage scripts creation!
27
-
28
- Add Google Fonts with our typography field, add tooltips to help your users and build awesome products!
29
-
30
- You can find detailed documentation on how to use Kirki on [https://kirki.org](https://kirki.org)
31
-
32
- ## Installation ##
33
-
34
- Simply install as a normal WordPress plugin and activate.
35
-
36
- If you want to integrate Kirki in your theme or plugin, please read the instructions on [our ducumentation site](https://kirki.org/docs/advanced/integration.html).
37
-
38
- ## Changelog ##
39
-
40
- ### 2.2.0 ###
41
-
42
- March 16, 2016, dev time: 120 hours
43
-
44
- * FIX: Improved & simplified the `number` control.
45
- * FIX: Improved & simplified the `spacing` control.
46
- * FIX: Minor bugfix on the `select` control.
47
- * FIX: WP Coding standards improvements.
48
- * FIX: Bugfix for radio controls.
49
- * FIX: Fixed repeater remove image not triggering save button to activate, and added a placeholder when the image is removed. (props @sayedwp)
50
- * FIX: Fixed bug when using negative numbers as min value in the `number` field
51
- * FIX: Typo in the textdomain for some strings (some strings were using "Kirki" instead of "kirki").
52
- * FIX: Complete refactor & rewrite of the google-fonts implementation.
53
- * FIX: IE11 bug on radio-image controls.
54
- * FIX: Radio-image bug when used with serialized options.
55
- * NEW: Complete refactor & rewrite of typography control.
56
- * NEW: Refactored the CSS output methods.
57
- * NEW: Added new mothods for detecting dependencies.
58
- * NEW: Added font-subsets in typography controls.
59
- * NEW: Google fonts now only show valid variants & subsets in typography controls.
60
- * NEW: Implemented partial refreshes for WP 4.5 using a "partial_refresh" argument (formatted as an array).
61
- * NEW: Better autoloader & improved file structure.
62
- * NEW: Deprecated the `Kirki_Field_Sanitize` class in favor of a more simplified & robust implementation.
63
- * NEW: Completely refactored the `Kirki_Field` class, we're migrating to a more OOP model.
64
- * NEW: Added a new `kirki-generic` control.
65
- * NEW: Deprecated the custom text control and used the new `kirki-generic` control instead.
66
- * NEW: Deprecated the custom textarea control and used the new `kirki-generic` control instead.
67
- * NEW: Renamed the `help` argument to `tooltip`. `help` will continue to work as an alias.
68
- * NEW: Merged the `color` & color-alpha` controls. We now use the `color-alpha` control for all colors, and just modify the `data-alpha` property it has.
69
- * NEW: Started an OOP rewrite of many classes
70
- * NEW: Started rewriting the PHPUNIT tests & tweaked them so they can now run on localhosts (like VVV) and not just on travis-ci.
71
- * TWEAK: Other code refactoring for improved performance
72
- * TWEAK: Updated `grunt` packages.
73
-
74
- ### 2.1.0.1 ###
75
-
76
- February 17, 2016, dev time: 5 minutes
77
-
78
- * FIX: PHP Notices (undefined index)
79
-
80
- ### 2.1.0 ###
81
-
82
- February 17, 2016, dev time: 4 hours
83
-
84
- * FIX: Image field issues inside the Repeater field (props @sayedwp)
85
- * NEW: Allow disabling output per-config
86
- * NEW: Introduce 'postMessage' => 'auto' option in config (will auto-create `js_vars` using the `output` argument)
87
- * NEW: New color control using a js-based template
88
- * TWEAK: Branding script rewrite
89
- * TWEAK: Color controls styling
90
- * TWEAK: Coding improvements & cleanups
91
-
92
- ### 2.0.9 ###
93
-
94
- February 13, 2016, dev time: 1 hour.
95
-
96
- * FIX: Google fonts bug (use double quotes when font name contains a space character)
97
- * FIX: Checkbox control bug (checkboxes were always displayed as checked, regardless of their actual value)
98
- * NEW: Intruducing KIRKI_NO_OUTPUT constant that disables CSS output completely when set to true.
99
-
100
- ### 2.0.8 ###
101
-
102
- February 10, 2016, dev time: 2 hours
103
-
104
- * FIX: Only load Kirki styles when in the customizer
105
- * FIX: Performance issue with Google Fonts
106
- * NEW: Added radio-image controls to repeaters
107
- * TWEAK: Better color handling in the Kirki_Color class
108
-
109
- ### 2.0.7 ###
110
-
111
- January 19, 2016, dev time: 1 hour
112
-
113
- * FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
114
- * FIX: PHP warnings due to invalid callback method
115
- * FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
116
-
117
- ### 2.0.6 ###
118
-
119
- January 18, 2016, dev time: 7 hours
120
-
121
- * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
122
- * FIX: Correctly check current value of checkbox control. (props @andrezrv)
123
- * FIX: Bug in the sortable field (props @daviedR)
124
- * FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
125
- * NEW: Added an image sub-field to repeater fields (props @sayedwp)
126
- * NEW: Added a JS callback to js_vars (props @pingram3541)
127
- * TWEAK: Settings sanitization
128
- * TWEAK: Removed demo theme from the plugin. This is now provided separately on https://github.com/aristath/kirki-demo
129
-
130
- ### 2.0.5 ###
131
-
132
- December 23, 2015, dev time: 2.5 hours
133
-
134
- * FIX: Disabled the ajax-loading method for stylesheets. All styles are now added inline. Will be re-examined for a future release.
135
- * FIX: Number controls were not properly triggering changes
136
- * FIX: Styling for number controls
137
- * FIX: In some cases the dynamic CSS was added before the main stylesheet. We now add them using a priority of 999 to ensure they are enqueued afterwards.
138
-
139
- ### 2.0.4 ###
140
-
141
- December 19, 2015, dev time: 3 hours
142
-
143
- * NEW: Added units support to the Typography field
144
- * NEW: Default methods of enqueuing styles in now inline.
145
- * NEW: Added 'inline_css' argument to config. set to false to add styles using AJAX.
146
- * FIX: HTML mode for CodeMirror now functional
147
- * FIX: PHP Notices when the config filter is used wrong
148
- * FIX: Monor bugfix for text inputs
149
- * FIX: Indentation & coding standards
150
- * FIX: failing PHPUNIT test.
151
- * TWEAK: Remove passing click event object
152
-
153
- ### 2.0.3 ###
154
-
155
- December 6, 2015, dev time: 45 minutes
156
-
157
- * Bugfix for updates
158
-
159
- ### 2.0.2 ###
160
-
161
- December 6, 2015, dev time: 30 minutes
162
-
163
- * FIX: Fatal error on update (not on new installations)
164
- * FIX: Typo
165
-
166
- ### 2.0.1 ###
167
-
168
- December 6, 2015, dev time: 10 minutes
169
-
170
- * FIX: Some configurations were failing with the new autoloader. Reverted to a simpler file structure.
171
-
172
- ### 2.0 ###
173
-
174
- December 6, 2015, dev time > 140 hours
175
-
176
- * NEW: Added support for `sanitize_callback` arguments on each item in the CSS `output`.
177
- * NEW: Added the ability to define an array as element in the `output`.
178
- * NEW: Auto-prefixing CSS output for cross-browser compatibilities.
179
- * NEW: Allow using arrays in settings.
180
- * NEW: Dimension Field.
181
- * NEW: Repeater Field.
182
- * NEW: Code Field using the ACE editor.
183
- * NEW: Typography Control.
184
- * NEW: Preset Field.
185
- * NEW: Demo theme.
186
- * NEW: Spacing Control.
187
- * REMOVED: Redux Framework compatibility.
188
- * FIX: Minor bugfixes to the Kirki_Color class.
189
- * FIX: kirki_get_option now uses Kirki::get_option().
190
- * FIX: Various bugfixes.
191
- * TWEAK: Converted the `checkbox` control to use the JS templating system.
192
- * TWEAK: Converted the `custom` control to use the JS templating system.
193
- * TWEAK: Converted the `multicheck` control to use the JS templating system.
194
- * TWEAK: Converted the `number` control to use the JS templating system.
195
- * TWEAK: Converted the `palette` control to use the JS templating system.
196
- * TWEAK: Converted the `radio-buttonset` control to use the JS templating system.
197
- * TWEAK: Converted the `radio-image` control to use the JS templating system.
198
- * TWEAK: Converted the `radio` control to use the JS templating system.
199
- * TWEAK: Converted the `select` control to use the JS templating system.
200
- * TWEAK: Converted the `slider` control to use the JS templating system.
201
- * TWEAK: Converted the `switch` control to use the JS templating system.
202
- * TWEAK: Converted the `textarea` control to use the JS templating system.
203
- * TWEAK: Converted the `toggle` control to use the JS templating system.
204
- * TWEAK: `radio-buttonset` controls are now CSS-only.
205
- * TWEAK: `radio-image` controls are now CSS-only.
206
- * TWEAK: `select` controls nopw use [selectize](http://brianreavis.github.io/selectize.js/) instead of [Select2](https://select2.github.io/).
207
- * TWEAK: Deprecated `select2` and `select2-multiple` controls. We now have a global `select` control. Previous implementations gracefully fallback to the current one.
208
- * TWEAK: `switch` controls are now CSS-only.
209
- * TWEAK: `toggle` controls are now CSS-only.
210
- * TWEAK: Sliders now use an HTML5 "range" input instead of jQuery-UI.
211
- * TWEAK: Better coding standards.
212
- * TWEAK: Descriptions styling.
213
- * TWEAK: Improved controls styling.
214
- * TWEAK: Compiled CSS & JS for improved performance.
215
- * TWEAK: Added prefix to the sanitized output array.
216
- * TWEAK: Updated google-fonts.
217
- * TWEAK: Grunt integration.
218
- * TWEAK: Some Code refactoring.
219
-
220
- ### 1.0.2 ###
221
-
222
- July 17, 2014, dev time: 5 minutes
223
-
224
- * NEW: Added 'disable_output' and 'disable_google_fonts' arguments to the configuration.
225
-
226
- ### 1.0.1 ###
227
-
228
- July 17, 2014, dev time: 1 hour
229
-
230
- * FIX: Issues when using serialized options instead of theme_mods or individual options.
231
- * FIX: Issues with the `output` argument on fields.
232
- * FIX: Other minor bugfixes
233
-
234
- ### 1.0.0 ###
235
-
236
- July 11, 2014, dev time: 177 hours
237
-
238
- * NEW: Added PHPUnit tests
239
- * NEW: Use wp_add_inline_style to add customizer styles
240
- * NEW: Rebuilt the background fields calculation
241
- * NEW: Now using Formstone for switches & toggles
242
- * NEW: Added a new API. See https://github.com/aristath/kirki/wiki for documentation.
243
- * NEW: Minimum PHP requirement is now PHP 5.2
244
- * NEW: Added a Select2 field type.
245
- * NEW: Introducing the Kirki::get_option() method to get values.
246
- * NEW: added 'media_query' argument to output.
247
- * NEW: Added ability to get variables for CSS preprocessors from the customizer values. See https://github.com/aristath/kirki/wiki/variables for documentation
248
- * NEW: now supporting 'units' to all outputs to support '!important'
249
- * NEW: Ability to create panels & sections using the new API.
250
- * NEW: added a get_posts method to the Kirki class.
251
- * NEW: Implement width argument in the styling options. See https://github.com/aristath/kirki/wiki/Styling-the-Customizer
252
- * NEW: add 'kirki/control_types' filter
253
- * FIX: Properly saving values in the db when using serialized options
254
- * FIX: Check if classes & functions exist before adding them (allows for better compatibility when embedded in a theme)
255
- * FIX: PHP Warnings & Notices
256
- * FIX: Other minor bugfixes
257
- * FIX: Now using consistently `option_type` instead of `options_type` everywhere
258
- * FIX: `Kirki::get_option()` method now works for all fields, including background fields.
259
- * FIX: avoid errors when Color is undefined in background fields
260
- * FIX: Use WP_Filesystem to get the google fonts array from a json file
261
- * FIX: Radio-Button styling
262
- * FIX: PHP Notices
263
- * FIX: Typos
264
- * FIX: Properly sanitizing rgba colors
265
- * FIX: Properly sanitize numbers
266
- * FIX: Make sure all variables are escaped on output
267
- * TWEAK: Simplify the Colourlovers integration.
268
- * TWEAK: Improve sanitization
269
- * TWEAK: Improve the Kirki_Styles_Customizer class
270
- * TWEAK: Code cleanups
271
- * TWEAK: Added more inline docs (lots of them)
272
- * TWEAK: Use active_callback for required arguments instead of custom JS
273
- * TWEAK: Updated translation files
274
- * TWEAK: Better color manipulation in the Kirki_Color class
275
- * TWEAK: Move secondary classes instantiation to the Kirki() function.
276
- * TWEAK: set a $kirki global
277
- * TWEAK: deprecate getOrThrow method in the Kirki_Config class.
278
- * TWEAK: Move sanitisation functions to a Kirki_Sanitize class.
279
- * TWEAK: Rename Kirki_Framework to Kirki_Toolkit.
280
- * TWEAK: Move variables to the new API
281
- * TWEAK: simplify Kirki_Controls class
282
- * TWEAK: move the kirki/fields & kirki/controls filters to the new API
283
- * REMOVED: remove the 'stylesheet_id' from the configuration.
284
-
285
- ### 0.8.4 ###
286
-
287
- April 6, 2014, dev time: 0.5 hours
288
-
289
- * FIX: Color sanitization was distorting 0 characters in the color hex.
290
- * FIX: Properly sanitizing ColorAlpha controls
291
- * FIX: Sanitizing more properties in the Fields class
292
- * FIX: removing remnant double-sanitization calls from the controls classes
293
-
294
- ### 0.8.3 ###
295
-
296
- April 5, 2014, dev time: 28 hours
297
-
298
- * NEW: Introduce a Field class
299
- * NEW: Introduce a Builder class
300
- * TWEAK: Code Cleanups
301
- * NEW: Added ability to use 'option' as the setting type
302
- * Fix : Bugs in the color calculation class
303
- * TWEAK: Everything gets sanitized in the "Field" class
304
- * FIX: Bugs in sortable field
305
- * FIX: Editor control had no description
306
- * NEW: Added a color-alpha control. To use it just set an rgba color as the default value.
307
- * TWEAK: SCSS & CSS improvements
308
- * FIX: Various PHP notices and warnings when no fields are defined
309
- * TWEAK: More efficient color sanitization method
310
- * TWEAK: Improved number control presentation
311
- * TWEAK: Improved the way background fields are handled
312
- * TWEAK: Checkboxes styling
313
- * NEW: Allow using rgba values for background colors
314
- * FIX: CSS fix - :focus color for active section
315
- * NEW: Add a static 'prepare' method to the ScriptRegistry class
316
- * FIX: Issues with the URL when Kirki is embedded in a theme
317
-
318
- ### 0.8.2 ###
319
-
320
- March 30, 2015, dev time: 5 minutes
321
-
322
- * FIX: Autoloader could not properly include files due to strtolower()
323
-
324
- ### 0.8.1 ###
325
-
326
- March 30, 2015, dev time: 30 minutes
327
-
328
- * FIX: Translation strings now overridable using the config filter.
329
-
330
- ### 0.8.0 ###
331
-
332
- March 30, 2015, dev time: 32 hours
333
-
334
- * Improvement: OOP redesign (props @vpratfr)
335
- * NEW: Added Palette control
336
- * NEW: Added Editor control (WYSIWYG - uses TinyMCE)
337
- * NEW: Added Custom control (free html)
338
- * NEW: Added a Kirki_Colourlovers class to use palettes from the colourlovers API
339
- * NEW: Added a composer file (props @vpratfr)
340
- * FIX: Wrong settings IDs
341
- * FIX: Color calculation on RGBA functions were off
342
- * TWEAK: Restructuring the plugin (props @vpratfr)
343
- * NEW: added a functional kirki_get_option() function
344
- * TWEAK: Simplified configuration options.
345
- * NEW: Turn Kirki into a singleton and a facade (props @vpratfr)
346
- * TWEAK: Completely re-written the customizer styles
347
- * NEW: Using SASS for customizer styles
348
- * TWEAK: Deprecating the group_title control in favor of the new custom control
349
- * TWEAK: Changed the CSS for checkboxes
350
-
351
- ### 0.7.1 ###
352
-
353
- March 15, 2015, dev time: 2 hours
354
-
355
- * REMOVED: Remove the `kirki_get_option` function that was introduced in 0.7 as it's not working properly yet.
356
- * FIX: Undefined index notice when a default value for the control was not defined
357
- * TWEAK: `logo_image` now injects an `img` element instead of a `div` with custom background
358
- * NEW: Added `description` argument in the kirki configuration (replaces the theme description)
359
-
360
- ### 0.7 ###
361
-
362
- March 14, 2015, dev time: 10 hours
363
-
364
- * FIX: Array to string conversion that happened conditionally when used with googlefonts. (props @groucho75)
365
- * FIX: Background opacity affects background-position of bg image
366
- * FIX: font-weight not being applied on google fonts
367
- * NEW: Added `kirki_get_option( $setting );` function that also gets default values
368
- * TWEAK: Singleton for main plugin class
369
- * FIX: Prevent empty help tooltips
370
- * NEW: Added `toggle` control
371
- * NEW: Added `switch` control
372
- * FIX: Color controls were not being reset to default:
373
- * TWEAK: Tooltips now loaded via jQuery
374
- * TWEAK: Renamed `setting` to settings for consistency with WordPress core
375
- * TWEAK: Renamed `description` to `help` and `subtitle` to `description for consistency with WordPress core
376
- * TWEAK: Backwards-compatibility improvements
377
- * NEW: Allow hiding background control elements by not including default values for them
378
- * TWEAK: Performance improvements
379
- * TWEAK: Using WordPress core controls instead of custom ones when those are available
380
- * TWEAK: Separate logic for multiple-type controls that were using the "mode" argument. This has been deprecated in favor of completely separate control types.
381
-
382
- ### 0.6.2 ###
383
-
384
- March 2, 2015, dev time: 3 hours
385
-
386
- * FIX: Frontend styles were not properly enqueued (props @dmgawel)
387
- * NEW: Allow multiple output styles per control defined as an array of arrays.
388
- * FIX: Background control styles
389
- * FIX: Serialise default values for the sortable control. Now you can define default values as an array.
390
- * FIX: Required script
391
- * FIX: \'_opacity\' was added to a lot of controls by mistake. Removed it and wrote a migration script.
392
-
393
- ### 0.6.1 ###
394
-
395
- February 25, 2015, dev time: 1 hours
396
-
397
- * FIX: Sortables controls had a JS conflict
398
- * FIX: Switches & Toggles were not properly working
399
-
400
- ### 0.6.0 ###
401
-
402
- February 25, 2015, dev time: 9 hours
403
-
404
- * FIX: Tooltips now properly working
405
- * NEW: Added checkbox switches
406
- * NEW: Added checkbox toggles
407
- * FIX: Generated CSS is not properly combined & minified
408
- * FIX: Re-structuring files hierarchy
409
- * FIX: Simplify the way controls are loaded
410
- * NEW: Only load control classes when they are needed
411
- * NEW: Introducing Kirki_Customize_Control class
412
- * FIX: CSS tweaks
413
- * NEW: Sortable control (creating one is identical to a select control, but with `\'type\' => \'sortable\'`)
414
- * FIX: Double output CSS (props @agusmu)
415
- * NEW: Google fonts now parsed from a json file.
416
-
417
- ### 0.5.1 ###
418
-
419
- January 22, 2015
420
-
421
- * FIX: Transport defaults to refresh instead of postMessage
422
- * FIX: undefined index notice.
423
-
424
- ### 0.5 ###
425
-
426
- January 21, 2015
427
-
428
- * NEW: Automatic output of styles for generic controls.
429
- * NEW: Automatic output of styles + scripts for fonts (including googlefonts )
430
- * NEW: The \'output\' argument on background controls is now an array for consistency with other controls. Older syntax is still compatible though. :)
431
- * NEW: Add the ability to auto-generate styles for colors.
432
- * FIX: Add a blank stylesheet if we need one and no stylesheet_id has been defined in the config options.
433
- * FIX: CSS-only tooltips. Fixes issue with tooltips now showing up on WP >= 4.1
434
- * FIX: Code cleanups
435
- * NEW: Added support for WordPress\'s transport arguments
436
- * FIX: All controls now have a sanitization callback. Users can override the default sanitizations by adding their own \'sanitize_callback\' argument.
437
- * FIX: OOP rewrite
438
- * FIX: Strip protocol from Google API link
439
- * FIX: Loading order for some files
440
- * FIX: Removed deprecated less_var argument
441
-
442
- ### 0.4 ###
443
-
444
- October 25, 2014
445
-
446
- * FIX: bugfix for selector
447
- * NEW: Change the Kirki theme based on which admin theme is selected.
448
- * FIX: Tranlsation domain issue
449
- * NEW: Added a \"group_title\" control
450
- * FIX: Updated the required script
451
- * FIX: Updating CSS
452
- * Other minor improvements and bugfixes
453
-
454
- ### 0.3 ###
455
-
456
- May 26, 2014
457
-
458
- * NEW: added background field
459
- * NEW: added \'output\' argument to directly output the CSS
460
-
461
- ### 0.2 ###
462
-
463
- May 9, 2014
464
-
465
- * Initial version
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Kirki #
2
+ **Contributors:** aristath, fovoc, igmoweb
3
+ **Tags:** customizer,options framework, theme, mods, toolkit
4
+ **Donate link:** http://kirki.org/
5
+ **Requires at least:** 4.4
6
+ **Tested up to:** 4.5
7
+ **Stable tag:** 2.2.1
8
+ **License:** GPLv2 or later
9
+ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ The ultimate toolkit for theme developers using the WordPress Customizer
12
+
13
+
14
+ ## Description ##
15
+
16
+ [![Build Status](https://travis-ci.org/aristath/kirki.svg?branch=master)](https://travis-ci.org/aristath/kirki) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/aristath/kirki/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/aristath/kirki/?branch=master) [![Code Climate](https://codeclimate.com/github/aristath/kirki/badges/gpa.svg)](https://codeclimate.com/github/aristath/kirki) [![codecov.io](https://codecov.io/github/aristath/kirki/coverage.svg?branch=master)](https://codecov.io/github/aristath/kirki?branch=master) [![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://raw.githubusercontent.com/aristath/kirki/master/LICENSE) [![Join the chat at https://gitter.im/aristath/kirki](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aristath/kirki?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
17
+
18
+ Kirki is a Toolkit allowing WordPress developers to use the Customizer and take advantage of its advanced features and flexibility by abstracting the code and making it easier for everyone to create beautiful and meaningful user experiences.
19
+
20
+ Kirki does not replace the WordPress Customizer API, you can still use the default WordPress methods and we advise you to familiarize yourselves with it. An excellent handbook for the WordPress Customizer can be found on the developer.wordpress.org website.
21
+
22
+ What Kirki does is save you time… LOTS of time!
23
+
24
+ Easily add configurations for your project, create panels, sections and add fields with ease.
25
+
26
+ Automatically create CSS from your fields, and make the customizer’s preview instant with our automatic postMessage scripts creation!
27
+
28
+ Add Google Fonts with our typography field, add tooltips to help your users and build awesome products!
29
+
30
+ You can find detailed documentation on how to use Kirki on [https://kirki.org](https://kirki.org)
31
+
32
+ ## Installation ##
33
+
34
+ Simply install as a normal WordPress plugin and activate.
35
+
36
+ If you want to integrate Kirki in your theme or plugin, please read the instructions on [our ducumentation site](https://kirki.org/docs/advanced/integration.html).
37
+
38
+ ## Changelog ##
39
+
40
+ ### 2.2.1 ###
41
+
42
+ March 17, 2016, dev time: 3 hours
43
+
44
+ * FIX: Alpha channel was always enabled for color controls
45
+ * FIX: PHP Notices in the class-kirki-output-control-typography.php file
46
+ * FIX: PHP Fatal error on PHP 5.2
47
+ * FIX: PHP Notice in the class-kirki-field.php file
48
+ * FIX: PHP Fatal error when using background-position in the output argument
49
+ * TWEAK: Removed unused languages from CodeMirror to reduce the plugin's size
50
+
51
+ ### 2.2.0 ###
52
+
53
+ March 16, 2016, dev time: 120 hours
54
+
55
+ * FIX: Improved & simplified the `number` control.
56
+ * FIX: Improved & simplified the `spacing` control.
57
+ * FIX: Minor bugfix on the `select` control.
58
+ * FIX: WP Coding standards improvements.
59
+ * FIX: Bugfix for radio controls.
60
+ * FIX: Fixed repeater remove image not triggering save button to activate, and added a placeholder when the image is removed. (props @sayedwp)
61
+ * FIX: Fixed bug when using negative numbers as min value in the `number` field
62
+ * FIX: Typo in the textdomain for some strings (some strings were using "Kirki" instead of "kirki").
63
+ * FIX: Complete refactor & rewrite of the google-fonts implementation.
64
+ * FIX: IE11 bug on radio-image controls.
65
+ * FIX: Radio-image bug when used with serialized options.
66
+ * NEW: Complete refactor & rewrite of typography control.
67
+ * NEW: Refactored the CSS output methods.
68
+ * NEW: Added new mothods for detecting dependencies.
69
+ * NEW: Added font-subsets in typography controls.
70
+ * NEW: Google fonts now only show valid variants & subsets in typography controls.
71
+ * NEW: Implemented partial refreshes for WP 4.5 using a "partial_refresh" argument (formatted as an array).
72
+ * NEW: Better autoloader & improved file structure.
73
+ * NEW: Deprecated the `Kirki_Field_Sanitize` class in favor of a more simplified & robust implementation.
74
+ * NEW: Completely refactored the `Kirki_Field` class, we're migrating to a more OOP model.
75
+ * NEW: Added a new `kirki-generic` control.
76
+ * NEW: Deprecated the custom text control and used the new `kirki-generic` control instead.
77
+ * NEW: Deprecated the custom textarea control and used the new `kirki-generic` control instead.
78
+ * NEW: Renamed the `help` argument to `tooltip`. `help` will continue to work as an alias.
79
+ * NEW: Merged the `color` & color-alpha` controls. We now use the `color-alpha` control for all colors, and just modify the `data-alpha` property it has.
80
+ * NEW: Started an OOP rewrite of many classes
81
+ * NEW: Started rewriting the PHPUNIT tests & tweaked them so they can now run on localhosts (like VVV) and not just on travis-ci.
82
+ * NEW: Included the ariColor library for color calculations (https://aristath.github.io/ariColor/)
83
+ * TWEAK: Other code refactoring for improved performance
84
+ * TWEAK: Updated `grunt` packages.
85
+
86
+ ### 2.1.0.1 ###
87
+
88
+ February 17, 2016, dev time: 5 minutes
89
+
90
+ * FIX: PHP Notices (undefined index)
91
+
92
+ ### 2.1.0 ###
93
+
94
+ February 17, 2016, dev time: 4 hours
95
+
96
+ * FIX: Image field issues inside the Repeater field (props @sayedwp)
97
+ * NEW: Allow disabling output per-config
98
+ * NEW: Introduce 'postMessage' => 'auto' option in config (will auto-create `js_vars` using the `output` argument)
99
+ * NEW: New color control using a js-based template
100
+ * TWEAK: Branding script rewrite
101
+ * TWEAK: Color controls styling
102
+ * TWEAK: Coding improvements & cleanups
103
+
104
+ ### 2.0.9 ###
105
+
106
+ February 13, 2016, dev time: 1 hour.
107
+
108
+ * FIX: Google fonts bug (use double quotes when font name contains a space character)
109
+ * FIX: Checkbox control bug (checkboxes were always displayed as checked, regardless of their actual value)
110
+ * NEW: Intruducing KIRKI_NO_OUTPUT constant that disables CSS output completely when set to true.
111
+
112
+ ### 2.0.8 ###
113
+
114
+ February 10, 2016, dev time: 2 hours
115
+
116
+ * FIX: Only load Kirki styles when in the customizer
117
+ * FIX: Performance issue with Google Fonts
118
+ * NEW: Added radio-image controls to repeaters
119
+ * TWEAK: Better color handling in the Kirki_Color class
120
+
121
+ ### 2.0.7 ###
122
+
123
+ January 19, 2016, dev time: 1 hour
124
+
125
+ * FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
126
+ * FIX: PHP warnings due to invalid callback method
127
+ * FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
128
+
129
+ ### 2.0.6 ###
130
+
131
+ January 18, 2016, dev time: 7 hours
132
+
133
+ * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
134
+ * FIX: Correctly check current value of checkbox control. (props @andrezrv)
135
+ * FIX: Bug in the sortable field (props @daviedR)
136
+ * FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
137
+ * NEW: Added an image sub-field to repeater fields (props @sayedwp)
138
+ * NEW: Added a JS callback to js_vars (props @pingram3541)
139
+ * TWEAK: Settings sanitization
140
+ * TWEAK: Removed demo theme from the plugin. This is now provided separately on https://github.com/aristath/kirki-demo
141
+
142
+ ### 2.0.5 ###
143
+
144
+ December 23, 2015, dev time: 2.5 hours
145
+
146
+ * FIX: Disabled the ajax-loading method for stylesheets. All styles are now added inline. Will be re-examined for a future release.
147
+ * FIX: Number controls were not properly triggering changes
148
+ * FIX: Styling for number controls
149
+ * FIX: In some cases the dynamic CSS was added before the main stylesheet. We now add them using a priority of 999 to ensure they are enqueued afterwards.
150
+
151
+ ### 2.0.4 ###
152
+
153
+ December 19, 2015, dev time: 3 hours
154
+
155
+ * NEW: Added units support to the Typography field
156
+ * NEW: Default methods of enqueuing styles in now inline.
157
+ * NEW: Added 'inline_css' argument to config. set to false to add styles using AJAX.
158
+ * FIX: HTML mode for CodeMirror now functional
159
+ * FIX: PHP Notices when the config filter is used wrong
160
+ * FIX: Monor bugfix for text inputs
161
+ * FIX: Indentation & coding standards
162
+ * FIX: failing PHPUNIT test.
163
+ * TWEAK: Remove passing click event object
164
+
165
+ ### 2.0.3 ###
166
+
167
+ December 6, 2015, dev time: 45 minutes
168
+
169
+ * Bugfix for updates
170
+
171
+ ### 2.0.2 ###
172
+
173
+ December 6, 2015, dev time: 30 minutes
174
+
175
+ * FIX: Fatal error on update (not on new installations)
176
+ * FIX: Typo
177
+
178
+ ### 2.0.1 ###
179
+
180
+ December 6, 2015, dev time: 10 minutes
181
+
182
+ * FIX: Some configurations were failing with the new autoloader. Reverted to a simpler file structure.
183
+
184
+ ### 2.0 ###
185
+
186
+ December 6, 2015, dev time > 140 hours
187
+
188
+ * NEW: Added support for `sanitize_callback` arguments on each item in the CSS `output`.
189
+ * NEW: Added the ability to define an array as element in the `output`.
190
+ * NEW: Auto-prefixing CSS output for cross-browser compatibilities.
191
+ * NEW: Allow using arrays in settings.
192
+ * NEW: Dimension Field.
193
+ * NEW: Repeater Field.
194
+ * NEW: Code Field using the ACE editor.
195
+ * NEW: Typography Control.
196
+ * NEW: Preset Field.
197
+ * NEW: Demo theme.
198
+ * NEW: Spacing Control.
199
+ * REMOVED: Redux Framework compatibility.
200
+ * FIX: Minor bugfixes to the Kirki_Color class.
201
+ * FIX: kirki_get_option now uses Kirki::get_option().
202
+ * FIX: Various bugfixes.
203
+ * TWEAK: Converted the `checkbox` control to use the JS templating system.
204
+ * TWEAK: Converted the `custom` control to use the JS templating system.
205
+ * TWEAK: Converted the `multicheck` control to use the JS templating system.
206
+ * TWEAK: Converted the `number` control to use the JS templating system.
207
+ * TWEAK: Converted the `palette` control to use the JS templating system.
208
+ * TWEAK: Converted the `radio-buttonset` control to use the JS templating system.
209
+ * TWEAK: Converted the `radio-image` control to use the JS templating system.
210
+ * TWEAK: Converted the `radio` control to use the JS templating system.
211
+ * TWEAK: Converted the `select` control to use the JS templating system.
212
+ * TWEAK: Converted the `slider` control to use the JS templating system.
213
+ * TWEAK: Converted the `switch` control to use the JS templating system.
214
+ * TWEAK: Converted the `textarea` control to use the JS templating system.
215
+ * TWEAK: Converted the `toggle` control to use the JS templating system.
216
+ * TWEAK: `radio-buttonset` controls are now CSS-only.
217
+ * TWEAK: `radio-image` controls are now CSS-only.
218
+ * TWEAK: `select` controls nopw use [selectize](http://brianreavis.github.io/selectize.js/) instead of [Select2](https://select2.github.io/).
219
+ * TWEAK: Deprecated `select2` and `select2-multiple` controls. We now have a global `select` control. Previous implementations gracefully fallback to the current one.
220
+ * TWEAK: `switch` controls are now CSS-only.
221
+ * TWEAK: `toggle` controls are now CSS-only.
222
+ * TWEAK: Sliders now use an HTML5 "range" input instead of jQuery-UI.
223
+ * TWEAK: Better coding standards.
224
+ * TWEAK: Descriptions styling.
225
+ * TWEAK: Improved controls styling.
226
+ * TWEAK: Compiled CSS & JS for improved performance.
227
+ * TWEAK: Added prefix to the sanitized output array.
228
+ * TWEAK: Updated google-fonts.
229
+ * TWEAK: Grunt integration.
230
+ * TWEAK: Some Code refactoring.
231
+
232
+ ### 1.0.2 ###
233
+
234
+ July 17, 2014, dev time: 5 minutes
235
+
236
+ * NEW: Added 'disable_output' and 'disable_google_fonts' arguments to the configuration.
237
+
238
+ ### 1.0.1 ###
239
+
240
+ July 17, 2014, dev time: 1 hour
241
+
242
+ * FIX: Issues when using serialized options instead of theme_mods or individual options.
243
+ * FIX: Issues with the `output` argument on fields.
244
+ * FIX: Other minor bugfixes
245
+
246
+ ### 1.0.0 ###
247
+
248
+ July 11, 2014, dev time: 177 hours
249
+
250
+ * NEW: Added PHPUnit tests
251
+ * NEW: Use wp_add_inline_style to add customizer styles
252
+ * NEW: Rebuilt the background fields calculation
253
+ * NEW: Now using Formstone for switches & toggles
254
+ * NEW: Added a new API. See https://github.com/aristath/kirki/wiki for documentation.
255
+ * NEW: Minimum PHP requirement is now PHP 5.2
256
+ * NEW: Added a Select2 field type.
257
+ * NEW: Introducing the Kirki::get_option() method to get values.
258
+ * NEW: added 'media_query' argument to output.
259
+ * NEW: Added ability to get variables for CSS preprocessors from the customizer values. See https://github.com/aristath/kirki/wiki/variables for documentation
260
+ * NEW: now supporting 'units' to all outputs to support '!important'
261
+ * NEW: Ability to create panels & sections using the new API.
262
+ * NEW: added a get_posts method to the Kirki class.
263
+ * NEW: Implement width argument in the styling options. See https://github.com/aristath/kirki/wiki/Styling-the-Customizer
264
+ * NEW: add 'kirki/control_types' filter
265
+ * FIX: Properly saving values in the db when using serialized options
266
+ * FIX: Check if classes & functions exist before adding them (allows for better compatibility when embedded in a theme)
267
+ * FIX: PHP Warnings & Notices
268
+ * FIX: Other minor bugfixes
269
+ * FIX: Now using consistently `option_type` instead of `options_type` everywhere
270
+ * FIX: `Kirki::get_option()` method now works for all fields, including background fields.
271
+ * FIX: avoid errors when Color is undefined in background fields
272
+ * FIX: Use WP_Filesystem to get the google fonts array from a json file
273
+ * FIX: Radio-Button styling
274
+ * FIX: PHP Notices
275
+ * FIX: Typos
276
+ * FIX: Properly sanitizing rgba colors
277
+ * FIX: Properly sanitize numbers
278
+ * FIX: Make sure all variables are escaped on output
279
+ * TWEAK: Simplify the Colourlovers integration.
280
+ * TWEAK: Improve sanitization
281
+ * TWEAK: Improve the Kirki_Styles_Customizer class
282
+ * TWEAK: Code cleanups
283
+ * TWEAK: Added more inline docs (lots of them)
284
+ * TWEAK: Use active_callback for required arguments instead of custom JS
285
+ * TWEAK: Updated translation files
286
+ * TWEAK: Better color manipulation in the Kirki_Color class
287
+ * TWEAK: Move secondary classes instantiation to the Kirki() function.
288
+ * TWEAK: set a $kirki global
289
+ * TWEAK: deprecate getOrThrow method in the Kirki_Config class.
290
+ * TWEAK: Move sanitisation functions to a Kirki_Sanitize class.
291
+ * TWEAK: Rename Kirki_Framework to Kirki_Toolkit.
292
+ * TWEAK: Move variables to the new API
293
+ * TWEAK: simplify Kirki_Controls class
294
+ * TWEAK: move the kirki/fields & kirki/controls filters to the new API
295
+ * REMOVED: remove the 'stylesheet_id' from the configuration.
296
+
297
+ ### 0.8.4 ###
298
+
299
+ April 6, 2014, dev time: 0.5 hours
300
+
301
+ * FIX: Color sanitization was distorting 0 characters in the color hex.
302
+ * FIX: Properly sanitizing ColorAlpha controls
303
+ * FIX: Sanitizing more properties in the Fields class
304
+ * FIX: removing remnant double-sanitization calls from the controls classes
305
+
306
+ ### 0.8.3 ###
307
+
308
+ April 5, 2014, dev time: 28 hours
309
+
310
+ * NEW: Introduce a Field class
311
+ * NEW: Introduce a Builder class
312
+ * TWEAK: Code Cleanups
313
+ * NEW: Added ability to use 'option' as the setting type
314
+ * Fix : Bugs in the color calculation class
315
+ * TWEAK: Everything gets sanitized in the "Field" class
316
+ * FIX: Bugs in sortable field
317
+ * FIX: Editor control had no description
318
+ * NEW: Added a color-alpha control. To use it just set an rgba color as the default value.
319
+ * TWEAK: SCSS & CSS improvements
320
+ * FIX: Various PHP notices and warnings when no fields are defined
321
+ * TWEAK: More efficient color sanitization method
322
+ * TWEAK: Improved number control presentation
323
+ * TWEAK: Improved the way background fields are handled
324
+ * TWEAK: Checkboxes styling
325
+ * NEW: Allow using rgba values for background colors
326
+ * FIX: CSS fix - :focus color for active section
327
+ * NEW: Add a static 'prepare' method to the ScriptRegistry class
328
+ * FIX: Issues with the URL when Kirki is embedded in a theme
329
+
330
+ ### 0.8.2 ###
331
+
332
+ March 30, 2015, dev time: 5 minutes
333
+
334
+ * FIX: Autoloader could not properly include files due to strtolower()
335
+
336
+ ### 0.8.1 ###
337
+
338
+ March 30, 2015, dev time: 30 minutes
339
+
340
+ * FIX: Translation strings now overridable using the config filter.
341
+
342
+ ### 0.8.0 ###
343
+
344
+ March 30, 2015, dev time: 32 hours
345
+
346
+ * Improvement: OOP redesign (props @vpratfr)
347
+ * NEW: Added Palette control
348
+ * NEW: Added Editor control (WYSIWYG - uses TinyMCE)
349
+ * NEW: Added Custom control (free html)
350
+ * NEW: Added a Kirki_Colourlovers class to use palettes from the colourlovers API
351
+ * NEW: Added a composer file (props @vpratfr)
352
+ * FIX: Wrong settings IDs
353
+ * FIX: Color calculation on RGBA functions were off
354
+ * TWEAK: Restructuring the plugin (props @vpratfr)
355
+ * NEW: added a functional kirki_get_option() function
356
+ * TWEAK: Simplified configuration options.
357
+ * NEW: Turn Kirki into a singleton and a facade (props @vpratfr)
358
+ * TWEAK: Completely re-written the customizer styles
359
+ * NEW: Using SASS for customizer styles
360
+ * TWEAK: Deprecating the group_title control in favor of the new custom control
361
+ * TWEAK: Changed the CSS for checkboxes
362
+
363
+ ### 0.7.1 ###
364
+
365
+ March 15, 2015, dev time: 2 hours
366
+
367
+ * REMOVED: Remove the `kirki_get_option` function that was introduced in 0.7 as it's not working properly yet.
368
+ * FIX: Undefined index notice when a default value for the control was not defined
369
+ * TWEAK: `logo_image` now injects an `img` element instead of a `div` with custom background
370
+ * NEW: Added `description` argument in the kirki configuration (replaces the theme description)
371
+
372
+ ### 0.7 ###
373
+
374
+ March 14, 2015, dev time: 10 hours
375
+
376
+ * FIX: Array to string conversion that happened conditionally when used with googlefonts. (props @groucho75)
377
+ * FIX: Background opacity affects background-position of bg image
378
+ * FIX: font-weight not being applied on google fonts
379
+ * NEW: Added `kirki_get_option( $setting );` function that also gets default values
380
+ * TWEAK: Singleton for main plugin class
381
+ * FIX: Prevent empty help tooltips
382
+ * NEW: Added `toggle` control
383
+ * NEW: Added `switch` control
384
+ * FIX: Color controls were not being reset to default:
385
+ * TWEAK: Tooltips now loaded via jQuery
386
+ * TWEAK: Renamed `setting` to settings for consistency with WordPress core
387
+ * TWEAK: Renamed `description` to `help` and `subtitle` to `description for consistency with WordPress core
388
+ * TWEAK: Backwards-compatibility improvements
389
+ * NEW: Allow hiding background control elements by not including default values for them
390
+ * TWEAK: Performance improvements
391
+ * TWEAK: Using WordPress core controls instead of custom ones when those are available
392
+ * TWEAK: Separate logic for multiple-type controls that were using the "mode" argument. This has been deprecated in favor of completely separate control types.
393
+
394
+ ### 0.6.2 ###
395
+
396
+ March 2, 2015, dev time: 3 hours
397
+
398
+ * FIX: Frontend styles were not properly enqueued (props @dmgawel)
399
+ * NEW: Allow multiple output styles per control defined as an array of arrays.
400
+ * FIX: Background control styles
401
+ * FIX: Serialise default values for the sortable control. Now you can define default values as an array.
402
+ * FIX: Required script
403
+ * FIX: \'_opacity\' was added to a lot of controls by mistake. Removed it and wrote a migration script.
404
+
405
+ ### 0.6.1 ###
406
+
407
+ February 25, 2015, dev time: 1 hours
408
+
409
+ * FIX: Sortables controls had a JS conflict
410
+ * FIX: Switches & Toggles were not properly working
411
+
412
+ ### 0.6.0 ###
413
+
414
+ February 25, 2015, dev time: 9 hours
415
+
416
+ * FIX: Tooltips now properly working
417
+ * NEW: Added checkbox switches
418
+ * NEW: Added checkbox toggles
419
+ * FIX: Generated CSS is not properly combined & minified
420
+ * FIX: Re-structuring files hierarchy
421
+ * FIX: Simplify the way controls are loaded
422
+ * NEW: Only load control classes when they are needed
423
+ * NEW: Introducing Kirki_Customize_Control class
424
+ * FIX: CSS tweaks
425
+ * NEW: Sortable control (creating one is identical to a select control, but with `\'type\' => \'sortable\'`)
426
+ * FIX: Double output CSS (props @agusmu)
427
+ * NEW: Google fonts now parsed from a json file.
428
+
429
+ ### 0.5.1 ###
430
+
431
+ January 22, 2015
432
+
433
+ * FIX: Transport defaults to refresh instead of postMessage
434
+ * FIX: undefined index notice.
435
+
436
+ ### 0.5 ###
437
+
438
+ January 21, 2015
439
+
440
+ * NEW: Automatic output of styles for generic controls.
441
+ * NEW: Automatic output of styles + scripts for fonts (including googlefonts )
442
+ * NEW: The \'output\' argument on background controls is now an array for consistency with other controls. Older syntax is still compatible though. :)
443
+ * NEW: Add the ability to auto-generate styles for colors.
444
+ * FIX: Add a blank stylesheet if we need one and no stylesheet_id has been defined in the config options.
445
+ * FIX: CSS-only tooltips. Fixes issue with tooltips now showing up on WP >= 4.1
446
+ * FIX: Code cleanups
447
+ * NEW: Added support for WordPress\'s transport arguments
448
+ * FIX: All controls now have a sanitization callback. Users can override the default sanitizations by adding their own \'sanitize_callback\' argument.
449
+ * FIX: OOP rewrite
450
+ * FIX: Strip protocol from Google API link
451
+ * FIX: Loading order for some files
452
+ * FIX: Removed deprecated less_var argument
453
+
454
+ ### 0.4 ###
455
+
456
+ October 25, 2014
457
+
458
+ * FIX: bugfix for selector
459
+ * NEW: Change the Kirki theme based on which admin theme is selected.
460
+ * FIX: Tranlsation domain issue
461
+ * NEW: Added a \"group_title\" control
462
+ * FIX: Updated the required script
463
+ * FIX: Updating CSS
464
+ * Other minor improvements and bugfixes
465
+
466
+ ### 0.3 ###
467
+
468
+ May 26, 2014
469
+
470
+ * NEW: added background field
471
+ * NEW: added \'output\' argument to directly output the CSS
472
+
473
+ ### 0.2 ###
474
+
475
+ May 9, 2014
476
+
477
+ * Initial version
assets/css/customizer.css CHANGED
File without changes
assets/css/customizer.css.map CHANGED
File without changes
assets/css/customizer.min.css CHANGED
File without changes
assets/css/transparency-grid.png CHANGED
File without changes
assets/images/jquery.fs.stepper-arrows.png CHANGED
File without changes
assets/images/kirki-toolkit.png CHANGED
File without changes
assets/js/controls/checkbox.js CHANGED
File without changes
assets/js/controls/dimension.js CHANGED
File without changes
assets/js/controls/editor.js CHANGED
File without changes
assets/js/controls/multicheck.js CHANGED
File without changes
assets/js/controls/number.js CHANGED
File without changes
assets/js/controls/palette.js CHANGED
File without changes
assets/js/controls/preset.js CHANGED
File without changes
assets/js/controls/radio-buttonset.js CHANGED
File without changes
assets/js/controls/radio-image.js CHANGED
File without changes
assets/js/controls/radio.js CHANGED
File without changes
assets/js/controls/repeater.js CHANGED
File without changes
assets/js/controls/select.js CHANGED
File without changes
assets/js/controls/slider.js CHANGED
File without changes
assets/js/controls/sortable.js CHANGED
File without changes
assets/js/controls/spacing.js CHANGED
File without changes
assets/js/controls/switch.js CHANGED
File without changes
assets/js/controls/toggle.js CHANGED
File without changes
assets/js/controls/typography.js CHANGED
File without changes
assets/js/customizer.js CHANGED
File without changes
assets/js/customizer.min.js CHANGED
File without changes
assets/js/customizer.min.js.map CHANGED
File without changes
assets/js/vendor/selectize.js CHANGED
File without changes
assets/js/vendor/serialize.js CHANGED
File without changes
assets/scss/controls/checkbox.scss CHANGED
File without changes
assets/scss/controls/code.scss CHANGED
File without changes
assets/scss/controls/dimension.scss CHANGED
File without changes
assets/scss/controls/multicheck.scss CHANGED
File without changes
assets/scss/controls/number.scss CHANGED
File without changes
assets/scss/controls/palette.scss CHANGED
File without changes
assets/scss/controls/radio-buttonset.scss CHANGED
File without changes
assets/scss/controls/radio-image.scss CHANGED
File without changes
assets/scss/controls/radio.scss CHANGED
File without changes
assets/scss/controls/repeater.scss CHANGED
File without changes
assets/scss/controls/select.scss CHANGED
File without changes
assets/scss/controls/slider.scss CHANGED
File without changes
assets/scss/controls/sortable.scss CHANGED
File without changes
assets/scss/controls/spacing.scss CHANGED
File without changes
assets/scss/controls/switch.scss CHANGED
File without changes
assets/scss/controls/toggle.scss CHANGED
File without changes
assets/scss/controls/typography.scss CHANGED
File without changes
assets/scss/customizer.scss CHANGED
File without changes
assets/scss/global.scss CHANGED
File without changes
autoloader.php CHANGED
@@ -28,7 +28,7 @@ if ( ! function_exists( 'kirki_autoload_classes' ) ) {
28
  foreach ( $paths as $path ) {
29
  $path = wp_normalize_path( $path );
30
  if ( file_exists( $path ) ) {
31
- include $path;
32
  return;
33
  }
34
  }
28
  foreach ( $paths as $path ) {
29
  $path = wp_normalize_path( $path );
30
  if ( file_exists( $path ) ) {
31
+ include_once $path;
32
  return;
33
  }
34
  }
includes/class-kirki-active-callback.php CHANGED
File without changes
includes/class-kirki-config.php CHANGED
File without changes
includes/class-kirki-control.php CHANGED
File without changes
includes/class-kirki-customize-control.php CHANGED
File without changes
includes/class-kirki-field.php CHANGED
@@ -180,7 +180,11 @@ if ( ! class_exists( 'Kirki_Field' ) ) {
180
  // Get defaults from the class
181
  $defaults = get_class_vars( __CLASS__ );
182
  // Get the config arguments, and merge them with the defaults
183
- $config_defaults = Kirki::$config[ $this->kirki_config ];
 
 
 
 
184
  foreach ( $config_defaults as $key => $value ) {
185
  if ( isset( $defaults[ $key ] ) ) {
186
  if ( ! empty( $value ) && $value != $defaults[ $key ] ) {
180
  // Get defaults from the class
181
  $defaults = get_class_vars( __CLASS__ );
182
  // Get the config arguments, and merge them with the defaults
183
+ $config_defaults = ( isset( Kirki::$config['global'] ) ) ? Kirki::$config['global'] : array();
184
+ if ( 'global' != $this->kirki_config && isset( Kirki::$config[ $this->kirki_config ] ) ) {
185
+ $config_defaults = Kirki::$config[ $this->kirki_config ];
186
+ }
187
+ $config_defaults = ( is_array( $config_defaults ) ) ? $config_defaults : array();
188
  foreach ( $config_defaults as $key => $value ) {
189
  if ( isset( $defaults[ $key ] ) ) {
190
  if ( ! empty( $value ) && $value != $defaults[ $key ] ) {
includes/class-kirki-helper.php CHANGED
@@ -27,6 +27,9 @@ if ( ! class_exists( 'Kirki_Helper' ) ) {
27
  * @return array
28
  */
29
  public static function array_replace_recursive( $array, $array1 ) {
 
 
 
30
  // handle the arguments, merge one by one
31
  $args = func_get_args();
32
  $array = $args[0];
27
  * @return array
28
  */
29
  public static function array_replace_recursive( $array, $array1 ) {
30
+ if ( function_exists( 'array_replace_recursive' ) ) {
31
+ return array_replace_recursive( $array, $array1 );
32
+ }
33
  // handle the arguments, merge one by one
34
  $args = func_get_args();
35
  $array = $args[0];
includes/class-kirki-init.php CHANGED
File without changes
includes/class-kirki-panel.php CHANGED
File without changes
includes/class-kirki-sanitize-values.php CHANGED
File without changes
includes/class-kirki-section.php CHANGED
File without changes
includes/class-kirki-settings.php CHANGED
File without changes
includes/class-kirki-toolkit.php CHANGED
@@ -30,7 +30,7 @@ if ( ! class_exists( 'Kirki_Toolkit' ) ) {
30
  * @access protected
31
  * @var string
32
  */
33
- protected static $version = '2.2.0';
34
 
35
  /**
36
  * Access the single instance of this class
30
  * @access protected
31
  * @var string
32
  */
33
+ protected static $version = '2.2.1';
34
 
35
  /**
36
  * Access the single instance of this class
includes/class-kirki-values.php CHANGED
File without changes
includes/controls/class-kirki-controls-checkbox-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-code-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-color-alpha-control.php CHANGED
@@ -26,6 +26,7 @@ if ( ! class_exists( 'Kirki_Controls_Color_Alpha_Control' ) ) {
26
  public function to_json() {
27
  parent::to_json();
28
  $this->json['palette'] = $this->palette;
 
29
  }
30
 
31
  protected function render() {
@@ -49,7 +50,7 @@ if ( ! class_exists( 'Kirki_Controls_Color_Alpha_Control' ) ) {
49
  <# if ( data.description ) { #>
50
  <span class="description customize-control-description">{{ data.description }}</span>
51
  <# } #>
52
- <input type="text" data-palette="{{ data.palette }}" data-default-color="{{ data.default }}" data-alpha="true" value="{{ data.value }}" class="kirki-color-control color-picker" {{{ data.link }}} />
53
  </label>
54
  <?php
55
  }
26
  public function to_json() {
27
  parent::to_json();
28
  $this->json['palette'] = $this->palette;
29
+ $this->choices['alpha'] = ( isset( $this->choices['alpha'] ) && $this->choices['alpha'] ) ? 'true' : 'false';
30
  }
31
 
32
  protected function render() {
50
  <# if ( data.description ) { #>
51
  <span class="description customize-control-description">{{ data.description }}</span>
52
  <# } #>
53
+ <input type="text" data-palette="{{ data.palette }}" data-default-color="{{ data.default }}" data-alpha="{{ data.choices['alpha'] }}" value="{{ data.value }}" class="kirki-color-control color-picker" {{{ data.link }}} />
54
  </label>
55
  <?php
56
  }
includes/controls/class-kirki-controls-custom-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-dimension-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-editor-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-multicheck-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-number-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-palette-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-preset-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-radio-buttonset-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-radio-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-radio-image-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-repeater-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-select-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-slider-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-sortable-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-spacing-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-switch-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-toggle-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-typography-control.php CHANGED
File without changes
includes/dynamic-css.php CHANGED
File without changes
includes/lib/class-kirki-colourlovers.php CHANGED
File without changes
includes/output/class-kirki-output.php CHANGED
@@ -35,6 +35,7 @@ class Kirki_Output {
35
  * @param $value string|array
36
  */
37
  public function __construct( $config_id, $output, $value ) {
 
38
  $this->config_id = $config_id;
39
  $this->value = $value;
40
  $this->output = $output;
35
  * @param $value string|array
36
  */
37
  public function __construct( $config_id, $output, $value ) {
38
+
39
  $this->config_id = $config_id;
40
  $this->value = $value;
41
  $this->output = $output;
includes/output/control/class-kirki-output-control-typography.php CHANGED
@@ -3,6 +3,8 @@
3
  class Kirki_Output_Control_Typography extends Kirki_Output {
4
 
5
  protected function process_output( $output, $value ) {
 
 
6
 
7
  // Take care of font-families
8
  if ( isset( $value['font-family'] ) ) {
3
  class Kirki_Output_Control_Typography extends Kirki_Output {
4
 
5
  protected function process_output( $output, $value ) {
6
+ $output['media_query'] = ( isset( $output['media_query'] ) ) ? $output['media_query'] : 'global';
7
+ $output['element'] = ( isset( $output['element'] ) ) ? $output['element'] : 'body';
8
 
9
  // Take care of font-families
10
  if ( isset( $value['font-family'] ) ) {
includes/output/property/class-kirki-output-property-background-position.php CHANGED
@@ -26,10 +26,10 @@ class Kirki_Output_Property_Background_Position extends Kirki_Output_Property {
26
 
27
  // If x is not left/center/right, we need to sanitize it.
28
  if ( ! in_array( $x, $x_dimensions ) ) {
29
- $x = Avada_Sanitize_Values::css_dimension( $x );
30
  }
31
  if ( ! in_array( $y, $y_dimensions ) ) {
32
- $y = Avada_Sanitize_Values::css_dimension( $y );
33
  }
34
  $this->value = $x . ' ' . $y;
35
  return;
26
 
27
  // If x is not left/center/right, we need to sanitize it.
28
  if ( ! in_array( $x, $x_dimensions ) ) {
29
+ $x = Kirki_Sanitize_Values::css_dimension( $x );
30
  }
31
  if ( ! in_array( $y, $y_dimensions ) ) {
32
+ $y = Kirki_Sanitize_Values::css_dimension( $y );
33
  }
34
  $this->value = $x . ' ' . $y;
35
  return;
includes/settings/class-kirki-settings-repeater-setting.php CHANGED
File without changes
includes/styles/class-kirki-styles-frontend.php CHANGED
@@ -105,16 +105,10 @@ if ( ! class_exists( 'Kirki_Styles_Frontend' ) ) {
105
 
106
  // Only continue if $field['output'] is set
107
  if ( isset( $field['output'] ) && ! empty( $field['output'] ) && 'background' != $field['type'] ) {
108
-
109
- // Fallback: the array_replace_recurcive function is not found on all system configurations.
110
- $array_replace_recursive = 'array_replace_recursive';
111
- if ( ! function_exists( 'array_replace_recursive' ) ) {
112
- $array_replace_recursive = array( 'Kirki_Helper', 'array_replace_recursive' );
113
- }
114
- $css = $array_replace_recursive( $css, Kirki_Styles_Output_CSS::css( $field ) );
115
  // Add the globals
116
  if ( isset( self::$css_array[ $config_id ] ) && ! empty( self::$css_array[ $config_id ] ) ) {
117
- $array_replace_recursive( $css, self::$css_array[ $config_id ] );
118
  }
119
 
120
  }
105
 
106
  // Only continue if $field['output'] is set
107
  if ( isset( $field['output'] ) && ! empty( $field['output'] ) && 'background' != $field['type'] ) {
108
+ $css = Kirki_Helper::array_replace_recursive( $css, Kirki_Styles_Output_CSS::css( $field ) );
 
 
 
 
 
 
109
  // Add the globals
110
  if ( isset( self::$css_array[ $config_id ] ) && ! empty( self::$css_array[ $config_id ] ) ) {
111
+ Kirki_Helper::array_replace_recursive( $css, self::$css_array[ $config_id ] );
112
  }
113
 
114
  }
kirki.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The ultimate WordPress Customizer Toolkit
6
  * Author: Aristeides Stathopoulos
7
  * Author URI: http://aristeides.com
8
- * Version: 2.2.0
9
  * Text Domain: kirki
10
  *
11
  * GitHub Plugin URI: aristath/kirki
5
  * Description: The ultimate WordPress Customizer Toolkit
6
  * Author: Aristeides Stathopoulos
7
  * Author URI: http://aristeides.com
8
+ * Version: 2.2.1
9
  * Text Domain: kirki
10
  *
11
  * GitHub Plugin URI: aristath/kirki
languages/kirki.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Kirki Toolkit package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Kirki Toolkit 2.2.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
7
- "POT-Creation-Date: 2016-03-16 16:31:26+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the same license as the Kirki Toolkit package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Kirki Toolkit 2.2.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
7
+ "POT-Creation-Date: 2016-03-17 18:25:01+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "kirki-toolkit",
3
- "version": "2.2.0",
4
  "author": "Aristeides Stathopoulos",
5
  "homepage": "http://kirki.org",
6
  "repository": {
1
  {
2
  "name": "kirki-toolkit",
3
+ "version": "2.2.1",
4
  "author": "Aristeides Stathopoulos",
5
  "homepage": "http://kirki.org",
6
  "repository": {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: customizer,options framework, theme, mods, toolkit
4
  Donate link: http://kirki.org/
5
  Requires at least: 4.4
6
  Tested up to: 4.5
7
- Stable tag: 2.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -37,6 +37,17 @@ If you want to integrate Kirki in your theme or plugin, please read the instruct
37
 
38
  == Changelog ==
39
 
 
 
 
 
 
 
 
 
 
 
 
40
  = 2.2.0 =
41
 
42
  March 16, 2016, dev time: 120 hours
4
  Donate link: http://kirki.org/
5
  Requires at least: 4.4
6
  Tested up to: 4.5
7
+ Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
37
 
38
  == Changelog ==
39
 
40
+ = 2.2.1 =
41
+
42
+ March 17, 2016, dev time: 3 hours
43
+
44
+ * FIX: Alpha channel was always enabled for color controls
45
+ * FIX: PHP Notices in the class-kirki-output-control-typography.php file
46
+ * FIX: PHP Fatal error on PHP 5.2
47
+ * FIX: PHP Notice in the class-kirki-field.php file
48
+ * FIX: PHP Fatal error when using background-position in the output argument
49
+ * TWEAK: Removed unused languages from CodeMirror to reduce the plugin's size
50
+
51
  = 2.2.0 =
52
 
53
  March 16, 2016, dev time: 120 hours