Kirki - Version 2.0.7

Version Description

January 19, 2016, dev time: 1 hour

  • FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
  • FIX: PHP warnings due to invalid callback method
  • FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

Files changed (111) hide show
  1. LICENSE +0 -0
  2. README.md +478 -468
  3. assets/css/customizer.css +0 -0
  4. assets/css/customizer.css.map +0 -0
  5. assets/css/customizer.min.css +0 -0
  6. assets/css/transparency-grid.png +0 -0
  7. assets/images/jquery.fs.stepper-arrows.png +0 -0
  8. assets/images/kirki-toolkit.png +0 -0
  9. assets/js/controls/checkbox.js +0 -0
  10. assets/js/controls/dimension.js +0 -0
  11. assets/js/controls/editor.js +0 -0
  12. assets/js/controls/multicheck.js +1 -1
  13. assets/js/controls/number.js +0 -0
  14. assets/js/controls/palette.js +0 -0
  15. assets/js/controls/preset.js +0 -0
  16. assets/js/controls/radio-buttonset.js +0 -0
  17. assets/js/controls/radio-image.js +0 -0
  18. assets/js/controls/radio.js +0 -0
  19. assets/js/controls/repeater.js +0 -0
  20. assets/js/controls/select.js +0 -0
  21. assets/js/controls/slider.js +0 -0
  22. assets/js/controls/sortable.js +0 -0
  23. assets/js/controls/spacing.js +0 -0
  24. assets/js/controls/switch.js +0 -0
  25. assets/js/controls/text.js +0 -0
  26. assets/js/controls/textarea.js +0 -0
  27. assets/js/controls/toggle.js +0 -0
  28. assets/js/controls/typography.js +0 -0
  29. assets/js/customizer.js +1 -1
  30. assets/js/customizer.min.js +1 -1
  31. assets/js/customizer.min.js.map +1 -1
  32. assets/js/vendor/serialize.js +0 -0
  33. assets/scss/controls/checkbox.scss +0 -0
  34. assets/scss/controls/code.scss +0 -0
  35. assets/scss/controls/color-alpha.scss +0 -0
  36. assets/scss/controls/color.scss +0 -0
  37. assets/scss/controls/dimension.scss +0 -0
  38. assets/scss/controls/multicheck.scss +0 -0
  39. assets/scss/controls/number.scss +0 -0
  40. assets/scss/controls/palette.scss +0 -0
  41. assets/scss/controls/radio-buttonset.scss +0 -0
  42. assets/scss/controls/radio-image.scss +0 -0
  43. assets/scss/controls/radio.scss +0 -0
  44. assets/scss/controls/repeater.scss +0 -0
  45. assets/scss/controls/select.scss +0 -0
  46. assets/scss/controls/slider.scss +0 -0
  47. assets/scss/controls/sortable.scss +0 -0
  48. assets/scss/controls/spacing.scss +0 -0
  49. assets/scss/controls/switch.scss +0 -0
  50. assets/scss/controls/textarea.scss +0 -0
  51. assets/scss/controls/toggle.scss +0 -0
  52. assets/scss/controls/typography.scss +0 -0
  53. assets/scss/customizer.scss +0 -0
  54. assets/scss/global.scss +0 -0
  55. includes/class-kirki-active-callback.php +0 -0
  56. includes/class-kirki-config.php +0 -0
  57. includes/class-kirki-control.php +0 -0
  58. includes/class-kirki-customize-control.php +0 -0
  59. includes/class-kirki-customizer-scripts-branding.php +0 -0
  60. includes/class-kirki-customizer-scripts-default-scripts.php +0 -0
  61. includes/class-kirki-customizer-scripts-enqueue.php +0 -0
  62. includes/class-kirki-customizer-scripts-icons.php +0 -0
  63. includes/class-kirki-customizer-scripts-loading.php +0 -6
  64. includes/class-kirki-customizer-scripts-postmessage.php +0 -0
  65. includes/class-kirki-customizer-scripts-tooltips.php +0 -0
  66. includes/class-kirki-customizer-scripts.php +0 -0
  67. includes/class-kirki-customizer.php +0 -0
  68. includes/class-kirki-field-sanitize.php +0 -0
  69. includes/class-kirki-field.php +2 -2
  70. includes/class-kirki-google-fonts-registry.php +0 -0
  71. includes/class-kirki-google-fonts-scripts.php +0 -0
  72. includes/class-kirki-init.php +0 -0
  73. includes/class-kirki-panel.php +0 -0
  74. includes/class-kirki-sanitize-values.php +0 -0
  75. includes/class-kirki-section.php +0 -0
  76. includes/class-kirki-settings.php +0 -0
  77. includes/class-kirki-styles-output-css.php +0 -0
  78. includes/class-kirki-toolkit.php +1 -1
  79. includes/class-kirki-values.php +0 -0
  80. includes/controls/class-kirki-controls-checkbox-control.php +0 -0
  81. includes/controls/class-kirki-controls-code-control.php +0 -0
  82. includes/controls/class-kirki-controls-color-alpha-control.php +0 -0
  83. includes/controls/class-kirki-controls-custom-control.php +0 -0
  84. includes/controls/class-kirki-controls-dimension-control.php +0 -0
  85. includes/controls/class-kirki-controls-editor-control.php +0 -0
  86. includes/controls/class-kirki-controls-multicheck-control.php +0 -0
  87. includes/controls/class-kirki-controls-number-control.php +0 -0
  88. includes/controls/class-kirki-controls-palette-control.php +0 -0
  89. includes/controls/class-kirki-controls-preset-control.php +0 -0
  90. includes/controls/class-kirki-controls-radio-buttonset-control.php +0 -0
  91. includes/controls/class-kirki-controls-radio-control.php +0 -0
  92. includes/controls/class-kirki-controls-radio-image-control.php +0 -0
  93. includes/controls/class-kirki-controls-repeater-control.php +0 -0
  94. includes/controls/class-kirki-controls-select-control.php +0 -0
  95. includes/controls/class-kirki-controls-slider-control.php +0 -0
  96. includes/controls/class-kirki-controls-sortable-control.php +0 -0
  97. includes/controls/class-kirki-controls-spacing-control.php +0 -0
  98. includes/controls/class-kirki-controls-switch-control.php +0 -0
  99. includes/controls/class-kirki-controls-text-control.php +0 -0
  100. includes/controls/class-kirki-controls-textarea-control.php +0 -0
  101. includes/controls/class-kirki-controls-toggle-control.php +0 -0
  102. includes/controls/class-kirki-controls-typography-control.php +0 -0
  103. includes/dynamic-css.php +0 -0
  104. includes/lib/class-kirki-colourlovers.php +0 -0
  105. includes/settings/class-kirki-settings-repeater-setting.php +0 -0
  106. kirki.php +1 -1
  107. languages/kirki.pot +2 -2
  108. readme.txt +12 -2
  109. tests/test-class-kirki-control.php +0 -0
  110. tests/test-class-kirki-customizer-scripts-postmessage.php +0 -0
  111. tests/test-kirki-field-sanitize.php +0 -0
LICENSE CHANGED
File without changes
README.md CHANGED
@@ -1,468 +1,478 @@
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.0
6
- **Tested up to:** 4.3
7
- **Stable tag:** 2.0.6
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
- Kirki is not a framework. It's 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.
17
-
18
- It does not replace the WordPress Customizer API, you can still use the default WordPress methods and we advise you to familiarize yourselves with them.
19
- An excellent handbook for the WordPress Customizer can be found on the [developer.wordpress.org](https://developer.wordpress.org/themes/advanced-topics/customizer-api/) website.
20
-
21
- What Kirki does is save you time... LOTS of time!
22
-
23
- [![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) [![Coverage Status](https://coveralls.io/repos/aristath/kirki/badge.svg?branch=master)](https://coveralls.io/r/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)
24
-
25
- **Configurations**
26
-
27
- Add your own Kirki configuration so that all the fields you create using Kirki inherit the configuration's properties.
28
- More information on configurations can be found on our [Wiki](https://github.com/aristath/kirki/wiki/Configuration).
29
-
30
- **Add Panels**
31
-
32
- Want to use Kirki to add your panels? Please look at the documentation on our [Wiki](https://github.com/aristath/kirki/wiki/Panels)
33
-
34
- **Add Sections**
35
-
36
- Want to use Kirki to add your sections? Please look at the documentation on our [Wiki](https://github.com/aristath/kirki/wiki/Sections)
37
-
38
- **Add Fields**
39
-
40
- Kirki allows you to create your fields easily and without any issues.
41
- There are 3 syntaxes you can use to do that, depending on your preferences and the project at hand. More info about how to add fields can be found on the [Wiki](https://github.com/aristath/kirki/wiki/Fields)
42
-
43
- **Automatic CSS calculations**
44
-
45
- Most of the options we create for our themes take care of CSS. We make that easy for you so you no longer have to write any custom PHP functions to create your CSS!
46
- All you have to do is use the `output` argument inside your fields and everything else is taken care of. More information on that can be found on our [Wiki page for the output argument](https://github.com/aristath/kirki/wiki/output)
47
-
48
- **Automatic JS generation for postMessage**
49
-
50
- If you want to use postMessage we've got you covered... Chances are you won't need to write your custom JS, we can auto-generate that for you if you use the `js_vars` argument in your fields. More info on that can be found on our [Wiki page for the js_vars argument](https://github.com/aristath/kirki/wiki/js_vars)
51
-
52
- **Style the customizer**
53
-
54
- Want to change colors? Perhaps the width of the customizer panel? What about adding a custom logo & description?
55
- No matter what you want we've got you covered.
56
- Go ahead and take a look at [styling the customizer](https://github.com/aristath/kirki/wiki/Styling-the-Customizer)
57
-
58
- **Google Fonts Integration**
59
-
60
- Kirki also integrates with Google Fonts, allowing you to use ALL google fonts and their variants in your themes. We take care of all the calculations for you, all you have to do is add your fields and let us handle the rest. Take a look at the [Google Fonts Integration](https://github.com/aristath/kirki/wiki/Google-Fonts-Integration) page for an example and instructions.
61
-
62
- **Add tooltips to your fields**
63
-
64
- Sometimes we need to add more info for our users... We've included a popup where you can add your help text using the `help` argument.
65
-
66
- **Extended Documentation**
67
-
68
- For documentation and examples on how to use the plugin please visit the [Kirki Wiki on Github](https://github.com/aristath/kirki/wiki).
69
- Feel free to improve them! :)
70
-
71
- **Available Control types:**
72
-
73
- * checkbox
74
- * code
75
- * color-alpha
76
- * color
77
- * custom
78
- * dimension
79
- * dropdown-pages
80
- * editor
81
- * image
82
- * multicheck
83
- * number
84
- * palette
85
- * radio-buttonset
86
- * radio-image
87
- * radio
88
- * repeater
89
- * select
90
- * slider
91
- * sortable
92
- * spacing
93
- * switch
94
- * text
95
- * textarea
96
- * toggle
97
- * typography
98
-
99
- All development is done on github on https://github.com/aristath/kirki
100
-
101
- If you wish to donate you can do so on http://kirki.org
102
-
103
- ## Installation ##
104
-
105
- **Method 1: Use as a plugin**
106
-
107
- From your dashboard go to Plugins => Add New.
108
- Search for "Kirki" and install it.
109
- Once you install it, activate it.
110
- For configuration instructions please visit the [Kirki Wiki on Github](https://github.com/aristath/kirki/wiki).
111
-
112
- **Method 2: Embed in your theme**
113
-
114
- Please visit https://github.com/aristath/kirki/wiki/Embedding-in-a-theme for documentation and instructions.
115
-
116
- ## Sample Theme ##
117
-
118
- To get an idea on how to include Kirki in your next project, you can take a look at the [Ornea theme](https://github.com/aristath/ornea).
119
-
120
- ## Changelog ##
121
-
122
- ### 2.0.6 ###
123
-
124
- * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
125
- * FIX: Correctly check current value of checkbox control. (props @andrezrv)
126
- * FIX: Bug in the sortable field (props @daviedR)
127
- * FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
128
- * NEW: Added an image sub-field to repeater fields (props @sayedwp)
129
- * NEW: Added a JS callback to js_vars (props @pingram3541)
130
- * TWEAK: Settings sanitization
131
- * TWEAK: Removed demo theme from the plugin. This is now provided separately on https://github.com/aristath/kirki-demo
132
-
133
- ### 2.0.5 ###
134
-
135
- December 23, 2015, dev time: 2.5 hours
136
-
137
- * FIX: Disabled the ajax-loading method for stylesheets. All styles are now added inline. Will be re-examined for a future release.
138
- * FIX: Number controls were not properly triggering changes
139
- * FIX: Styling for number controls
140
- * 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.
141
-
142
- ### 2.0.4 ###
143
-
144
- December 19, 2015, dev time: 3 hours
145
-
146
- * NEW: Added units support to the Typography field
147
- * NEW: Default methods of enqueuing styles in now inline.
148
- * NEW: Added 'inline_css' argument to config. set to false to add styles using AJAX.
149
- * FIX: HTML mode for CodeMirror now functional
150
- * FIX: PHP Notices when the config filter is used wrong
151
- * FIX: Monor bugfix for text inputs
152
- * FIX: Indentation & coding standards
153
- * FIX: failing PHPUNIT test.
154
- * TWEAK: Remove passing click event object
155
-
156
- ### 2.0.3 ###
157
-
158
- December 6, 2015, dev time: 45 minutes
159
-
160
- * Bugfix for updates
161
-
162
- ### 2.0.2 ###
163
-
164
- December 6, 2015, dev time: 30 minutes
165
-
166
- * FIX: Fatal error on update (not on new installations)
167
- * FIX: Typo
168
-
169
- ### 2.0.1 ###
170
-
171
- December 6, 2015, dev time: 10 minutes
172
-
173
- * FIX: Some configurations were failing with the new autoloader. Reverted to a simpler file structure.
174
-
175
- ### 2.0 ###
176
-
177
- December 6, 2015, dev time > 140 hours
178
-
179
- * NEW: Added support for `sanitize_callback` arguments on each item in the CSS `output`.
180
- * NEW: Added the ability to define an array as element in the `output`.
181
- * NEW: Auto-prefixing CSS output for cross-browser compatibilities.
182
- * NEW: Allow using arrays in settings.
183
- * NEW: Dimension Field.
184
- * NEW: Repeater Field.
185
- * NEW: Code Field using the ACE editor.
186
- * NEW: Typography Control.
187
- * NEW: Preset Field.
188
- * NEW: Demo theme.
189
- * NEW: Spacing Control.
190
- * REMOVED: Redux Framework compatibility.
191
- * FIX: Minor bugfixes to the Kirki_Color class.
192
- * FIX: kirki_get_option now uses Kirki::get_option().
193
- * FIX: Various bugfixes.
194
- * TWEAK: Converted the `checkbox` control to use the JS templating system.
195
- * TWEAK: Converted the `custom` control to use the JS templating system.
196
- * TWEAK: Converted the `multicheck` control to use the JS templating system.
197
- * TWEAK: Converted the `number` control to use the JS templating system.
198
- * TWEAK: Converted the `palette` control to use the JS templating system.
199
- * TWEAK: Converted the `radio-buttonset` control to use the JS templating system.
200
- * TWEAK: Converted the `radio-image` control to use the JS templating system.
201
- * TWEAK: Converted the `radio` control to use the JS templating system.
202
- * TWEAK: Converted the `select` control to use the JS templating system.
203
- * TWEAK: Converted the `slider` control to use the JS templating system.
204
- * TWEAK: Converted the `switch` control to use the JS templating system.
205
- * TWEAK: Converted the `textarea` control to use the JS templating system.
206
- * TWEAK: Converted the `toggle` control to use the JS templating system.
207
- * TWEAK: `radio-buttonset` controls are now CSS-only.
208
- * TWEAK: `radio-image` controls are now CSS-only.
209
- * TWEAK: `select` controls nopw use [selectize](http://brianreavis.github.io/selectize.js/) instead of [Select2](https://select2.github.io/).
210
- * TWEAK: Deprecated `select2` and `select2-multiple` controls. We now have a global `select` control. Previous implementations gracefully fallback to the current one.
211
- * TWEAK: `switch` controls are now CSS-only.
212
- * TWEAK: `toggle` controls are now CSS-only.
213
- * TWEAK: Sliders now use an HTML5 "range" input instead of jQuery-UI.
214
- * TWEAK: Better coding standards.
215
- * TWEAK: Descriptions styling.
216
- * TWEAK: Improved controls styling.
217
- * TWEAK: Compiled CSS & JS for improved performance.
218
- * TWEAK: Added prefix to the sanitized output array.
219
- * TWEAK: Updated google-fonts.
220
- * TWEAK: Grunt integration.
221
- * TWEAK: Some Code refactoring.
222
-
223
- ### 1.0.2 ###
224
-
225
- July 17, 2014, dev time: 5 minutes
226
-
227
- * NEW: Added 'disable_output' and 'disable_google_fonts' arguments to the configuration.
228
-
229
- ### 1.0.1 ###
230
-
231
- July 17, 2014, dev time: 1 hour
232
-
233
- * FIX: Issues when using serialized options instead of theme_mods or individual options.
234
- * FIX: Issues with the `output` argument on fields.
235
- * FIX: Other minor bugfixes
236
-
237
- ### 1.0.0 ###
238
-
239
- July 11, 2014, dev time: 177 hours
240
-
241
- * NEW: Added PHPUnit tests
242
- * NEW: Use wp_add_inline_style to add customizer styles
243
- * NEW: Rebuilt the background fields calculation
244
- * NEW: Now using Formstone for switches & toggles
245
- * NEW: Added a new API. See https://github.com/aristath/kirki/wiki for documentation.
246
- * NEW: Minimum PHP requirement is now PHP 5.2
247
- * NEW: Added a Select2 field type.
248
- * NEW: Introducing the Kirki::get_option() method to get values.
249
- * NEW: added 'media_query' argument to output.
250
- * NEW: Added ability to get variables for CSS preprocessors from the customizer values. See https://github.com/aristath/kirki/wiki/variables for documentation
251
- * NEW: now supporting 'units' to all outputs to support '!important'
252
- * NEW: Ability to create panels & sections using the new API.
253
- * NEW: added a get_posts method to the Kirki class.
254
- * NEW: Implement width argument in the styling options. See https://github.com/aristath/kirki/wiki/Styling-the-Customizer
255
- * NEW: add 'kirki/control_types' filter
256
- * FIX: Properly saving values in the db when using serialized options
257
- * FIX: Check if classes & functions exist before adding them (allows for better compatibility when embedded in a theme)
258
- * FIX: PHP Warnings & Notices
259
- * FIX: Other minor bugfixes
260
- * FIX: Now using consistently `option_type` instead of `options_type` everywhere
261
- * FIX: `Kirki::get_option()` method now works for all fields, including background fields.
262
- * FIX: avoid errors when Color is undefined in background fields
263
- * FIX: Use WP_Filesystem to get the google fonts array from a json file
264
- * FIX: Radio-Button styling
265
- * FIX: PHP Notices
266
- * FIX: Typos
267
- * FIX: Properly sanitizing rgba colors
268
- * FIX: Properly sanitize numbers
269
- * FIX: Make sure all variables are escaped on output
270
- * TWEAK: Simplify the Colourlovers integration.
271
- * TWEAK: Improve sanitization
272
- * TWEAK: Improve the Kirki_Styles_Customizer class
273
- * TWEAK: Code cleanups
274
- * TWEAK: Added more inline docs (lots of them)
275
- * TWEAK: Use active_callback for required arguments instead of custom JS
276
- * TWEAK: Updated translation files
277
- * TWEAK: Better color manipulation in the Kirki_Color class
278
- * TWEAK: Move secondary classes instantiation to the Kirki() function.
279
- * TWEAK: set a $kirki global
280
- * TWEAK: deprecate getOrThrow method in the Kirki_Config class.
281
- * TWEAK: Move sanitisation functions to a Kirki_Sanitize class.
282
- * TWEAK: Rename Kirki_Framework to Kirki_Toolkit.
283
- * TWEAK: Move variables to the new API
284
- * TWEAK: simplify Kirki_Controls class
285
- * TWEAK: move the kirki/fields & kirki/controls filters to the new API
286
- * REMOVED: remove the 'stylesheet_id' from the configuration.
287
-
288
- ### 0.8.4 ###
289
-
290
- April 6, 2014, dev time: 0.5 hours
291
-
292
- * FIX: Color sanitization was distorting 0 characters in the color hex.
293
- * FIX: Properly sanitizing ColorAlpha controls
294
- * FIX: Sanitizing more properties in the Fields class
295
- * FIX: removing remnant double-sanitization calls from the controls classes
296
-
297
- ### 0.8.3 ###
298
-
299
- April 5, 2014, dev time: 28 hours
300
-
301
- * NEW: Introduce a Field class
302
- * NEW: Introduce a Builder class
303
- * TWEAK: Code Cleanups
304
- * NEW: Added ability to use 'option' as the setting type
305
- * Fix : Bugs in the color calculation class
306
- * TWEAK: Everything gets sanitized in the "Field" class
307
- * FIX: Bugs in sortable field
308
- * FIX: Editor control had no description
309
- * NEW: Added a color-alpha control. To use it just set an rgba color as the default value.
310
- * TWEAK: SCSS & CSS improvements
311
- * FIX: Various PHP notices and warnings when no fields are defined
312
- * TWEAK: More efficient color sanitization method
313
- * TWEAK: Improved number control presentation
314
- * TWEAK: Improved the way background fields are handled
315
- * TWEAK: Checkboxes styling
316
- * NEW: Allow using rgba values for background colors
317
- * FIX: CSS fix - :focus color for active section
318
- * NEW: Add a static 'prepare' method to the ScriptRegistry class
319
- * FIX: Issues with the URL when Kirki is embedded in a theme
320
-
321
- ### 0.8.2 ###
322
-
323
- March 30, 2015, dev time: 5 minutes
324
-
325
- * FIX: Autoloader could not properly include files due to strtolower()
326
-
327
- ### 0.8.1 ###
328
-
329
- March 30, 2015, dev time: 30 minutes
330
-
331
- * FIX: Translation strings now overridable using the config filter.
332
-
333
- ### 0.8.0 ###
334
-
335
- March 30, 2015, dev time: 32 hours
336
-
337
- * Improvement: OOP redesign (props @vpratfr)
338
- * NEW: Added Palette control
339
- * NEW: Added Editor control (WYSIWYG - uses TinyMCE)
340
- * NEW: Added Custom control (free html)
341
- * NEW: Added a Kirki_Colourlovers class to use palettes from the colourlovers API
342
- * NEW: Added a composer file (props @vpratfr)
343
- * FIX: Wrong settings IDs
344
- * FIX: Color calculation on RGBA functions were off
345
- * TWEAK: Restructuring the plugin (props @vpratfr)
346
- * NEW: added a functional kirki_get_option() function
347
- * TWEAK: Simplified configuration options.
348
- * NEW: Turn Kirki into a singleton and a facade (props @vpratfr)
349
- * TWEAK: Completely re-written the customizer styles
350
- * NEW: Using SASS for customizer styles
351
- * TWEAK: Deprecating the group_title control in favor of the new custom control
352
- * TWEAK: Changed the CSS for checkboxes
353
-
354
- ### 0.7.1 ###
355
-
356
- March 15, 2015, dev time: 2 hours
357
-
358
- * REMOVED: Remove the `kirki_get_option` function that was introduced in 0.7 as it's not working properly yet.
359
- * FIX: Undefined index notice when a default value for the control was not defined
360
- * TWEAK: `logo_image` now injects an `img` element instead of a `div` with custom background
361
- * NEW: Added `description` argument in the kirki configuration (replaces the theme description)
362
-
363
- ### 0.7 ###
364
-
365
- March 14, 2015, dev time: 10 hours
366
-
367
- * FIX: Array to string conversion that happened conditionally when used with googlefonts. (props @groucho75)
368
- * FIX: Background opacity affects background-position of bg image
369
- * FIX: font-weight not being applied on google fonts
370
- * NEW: Added `kirki_get_option( $setting );` function that also gets default values
371
- * TWEAK: Singleton for main plugin class
372
- * FIX: Prevent empty help tooltips
373
- * NEW: Added `toggle` control
374
- * NEW: Added `switch` control
375
- * FIX: Color controls were not being reset to default:
376
- * TWEAK: Tooltips now loaded via jQuery
377
- * TWEAK: Renamed `setting` to settings for consistency with WordPress core
378
- * TWEAK: Renamed `description` to `help` and `subtitle` to `description for consistency with WordPress core
379
- * TWEAK: Backwards-compatibility improvements
380
- * NEW: Allow hiding background control elements by not including default values for them
381
- * TWEAK: Performance improvements
382
- * TWEAK: Using WordPress core controls instead of custom ones when those are available
383
- * TWEAK: Separate logic for multiple-type controls that were using the "mode" argument. This has been deprecated in favor of completely separate control types.
384
-
385
- ### 0.6.2 ###
386
-
387
- March 2, 2015, dev time: 3 hours
388
-
389
- * FIX: Frontend styles were not properly enqueued (props @dmgawel)
390
- * NEW: Allow multiple output styles per control defined as an array of arrays.
391
- * FIX: Background control styles
392
- * FIX: Serialise default values for the sortable control. Now you can define default values as an array.
393
- * FIX: Required script
394
- * FIX: \'_opacity\' was added to a lot of controls by mistake. Removed it and wrote a migration script.
395
-
396
- ### 0.6.1 ###
397
-
398
- February 25, 2015, dev time: 1 hours
399
-
400
- * FIX: Sortables controls had a JS conflict
401
- * FIX: Switches & Toggles were not properly working
402
-
403
- ### 0.6.0 ###
404
-
405
- February 25, 2015, dev time: 9 hours
406
-
407
- * FIX: Tooltips now properly working
408
- * NEW: Added checkbox switches
409
- * NEW: Added checkbox toggles
410
- * FIX: Generated CSS is not properly combined & minified
411
- * FIX: Re-structuring files hierarchy
412
- * FIX: Simplify the way controls are loaded
413
- * NEW: Only load control classes when they are needed
414
- * NEW: Introducing Kirki_Customize_Control class
415
- * FIX: CSS tweaks
416
- * NEW: Sortable control (creating one is identical to a select control, but with `\'type\' => \'sortable\'`)
417
- * FIX: Double output CSS (props @agusmu)
418
- * NEW: Google fonts now parsed from a json file.
419
-
420
- ### 0.5.1 ###
421
-
422
- January 22, 2015
423
-
424
- * FIX: Transport defaults to refresh instead of postMessage
425
- * FIX: undefined index notice.
426
-
427
- ### 0.5 ###
428
-
429
- January 21, 2015
430
-
431
- * NEW: Automatic output of styles for generic controls.
432
- * NEW: Automatic output of styles + scripts for fonts (including googlefonts )
433
- * NEW: The \'output\' argument on background controls is now an array for consistency with other controls. Older syntax is still compatible though. :)
434
- * NEW: Add the ability to auto-generate styles for colors.
435
- * FIX: Add a blank stylesheet if we need one and no stylesheet_id has been defined in the config options.
436
- * FIX: CSS-only tooltips. Fixes issue with tooltips now showing up on WP >= 4.1
437
- * FIX: Code cleanups
438
- * NEW: Added support for WordPress\'s transport arguments
439
- * FIX: All controls now have a sanitization callback. Users can override the default sanitizations by adding their own \'sanitize_callback\' argument.
440
- * FIX: OOP rewrite
441
- * FIX: Strip protocol from Google API link
442
- * FIX: Loading order for some files
443
- * FIX: Removed deprecated less_var argument
444
-
445
- ### 0.4 ###
446
-
447
- October 25, 2014
448
-
449
- * FIX: bugfix for selector
450
- * NEW: Change the Kirki theme based on which admin theme is selected.
451
- * FIX: Tranlsation domain issue
452
- * NEW: Added a \"group_title\" control
453
- * FIX: Updated the required script
454
- * FIX: Updating CSS
455
- * Other minor improvements and bugfixes
456
-
457
- ### 0.3 ###
458
-
459
- May 26, 2014
460
-
461
- * NEW: added background field
462
- * NEW: added \'output\' argument to directly output the CSS
463
-
464
- ### 0.2 ###
465
-
466
- May 9, 2014
467
-
468
- * 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.0
6
+ **Tested up to:** 4.3
7
+ **Stable tag:** 2.0.7
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
+ Kirki is not a framework. It's 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.
17
+
18
+ It does not replace the WordPress Customizer API, you can still use the default WordPress methods and we advise you to familiarize yourselves with them.
19
+ An excellent handbook for the WordPress Customizer can be found on the [developer.wordpress.org](https://developer.wordpress.org/themes/advanced-topics/customizer-api/) website.
20
+
21
+ What Kirki does is save you time... LOTS of time!
22
+
23
+ [![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) [![Coverage Status](https://coveralls.io/repos/aristath/kirki/badge.svg?branch=master)](https://coveralls.io/r/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)
24
+
25
+ **Configurations**
26
+
27
+ Add your own Kirki configuration so that all the fields you create using Kirki inherit the configuration's properties.
28
+ More information on configurations can be found on our [Wiki](https://github.com/aristath/kirki/wiki/Configuration).
29
+
30
+ **Add Panels**
31
+
32
+ Want to use Kirki to add your panels? Please look at the documentation on our [Wiki](https://github.com/aristath/kirki/wiki/Panels)
33
+
34
+ **Add Sections**
35
+
36
+ Want to use Kirki to add your sections? Please look at the documentation on our [Wiki](https://github.com/aristath/kirki/wiki/Sections)
37
+
38
+ **Add Fields**
39
+
40
+ Kirki allows you to create your fields easily and without any issues.
41
+ There are 3 syntaxes you can use to do that, depending on your preferences and the project at hand. More info about how to add fields can be found on the [Wiki](https://github.com/aristath/kirki/wiki/Fields)
42
+
43
+ **Automatic CSS calculations**
44
+
45
+ Most of the options we create for our themes take care of CSS. We make that easy for you so you no longer have to write any custom PHP functions to create your CSS!
46
+ All you have to do is use the `output` argument inside your fields and everything else is taken care of. More information on that can be found on our [Wiki page for the output argument](https://github.com/aristath/kirki/wiki/output)
47
+
48
+ **Automatic JS generation for postMessage**
49
+
50
+ If you want to use postMessage we've got you covered... Chances are you won't need to write your custom JS, we can auto-generate that for you if you use the `js_vars` argument in your fields. More info on that can be found on our [Wiki page for the js_vars argument](https://github.com/aristath/kirki/wiki/js_vars)
51
+
52
+ **Style the customizer**
53
+
54
+ Want to change colors? Perhaps the width of the customizer panel? What about adding a custom logo & description?
55
+ No matter what you want we've got you covered.
56
+ Go ahead and take a look at [styling the customizer](https://github.com/aristath/kirki/wiki/Styling-the-Customizer)
57
+
58
+ **Google Fonts Integration**
59
+
60
+ Kirki also integrates with Google Fonts, allowing you to use ALL google fonts and their variants in your themes. We take care of all the calculations for you, all you have to do is add your fields and let us handle the rest. Take a look at the [Google Fonts Integration](https://github.com/aristath/kirki/wiki/Google-Fonts-Integration) page for an example and instructions.
61
+
62
+ **Add tooltips to your fields**
63
+
64
+ Sometimes we need to add more info for our users... We've included a popup where you can add your help text using the `help` argument.
65
+
66
+ **Extended Documentation**
67
+
68
+ For documentation and examples on how to use the plugin please visit the [Kirki Wiki on Github](https://github.com/aristath/kirki/wiki).
69
+ Feel free to improve them! :)
70
+
71
+ **Available Control types:**
72
+
73
+ * checkbox
74
+ * code
75
+ * color-alpha
76
+ * color
77
+ * custom
78
+ * dimension
79
+ * dropdown-pages
80
+ * editor
81
+ * image
82
+ * multicheck
83
+ * number
84
+ * palette
85
+ * radio-buttonset
86
+ * radio-image
87
+ * radio
88
+ * repeater
89
+ * select
90
+ * slider
91
+ * sortable
92
+ * spacing
93
+ * switch
94
+ * text
95
+ * textarea
96
+ * toggle
97
+ * typography
98
+
99
+ All development is done on github on https://github.com/aristath/kirki
100
+
101
+ If you wish to donate you can do so on http://kirki.org
102
+
103
+ ## Installation ##
104
+
105
+ **Method 1: Use as a plugin**
106
+
107
+ From your dashboard go to Plugins => Add New.
108
+ Search for "Kirki" and install it.
109
+ Once you install it, activate it.
110
+ For configuration instructions please visit the [Kirki Wiki on Github](https://github.com/aristath/kirki/wiki).
111
+
112
+ **Method 2: Embed in your theme**
113
+
114
+ Please visit https://github.com/aristath/kirki/wiki/Embedding-in-a-theme for documentation and instructions.
115
+
116
+ ## Sample Theme ##
117
+
118
+ To get an idea on how to include Kirki in your next project, you can take a look at the [Ornea theme](https://github.com/aristath/ornea) or use our test theme from https://github.com/aristath/kirki-demo.
119
+
120
+ ## Changelog ##
121
+
122
+ ### 2.0.7 ###
123
+
124
+ January 19, 2016, dev time: 1 hour
125
+
126
+ * FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
127
+ * FIX: PHP warnings due to invalid callback method
128
+ * FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
129
+
130
+ ### 2.0.6 ###
131
+
132
+ January 18, 2016, dev time: 7 hours
133
+
134
+ * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
135
+ * FIX: Correctly check current value of checkbox control. (props @andrezrv)
136
+ * FIX: Bug in the sortable field (props @daviedR)
137
+ * FIX: Fixed some bugs that occured when using serialized options instead of theme_mods
138
+ * NEW: Added an image sub-field to repeater fields (props @sayedwp)
139
+ * NEW: Added a JS callback to js_vars (props @pingram3541)
140
+ * TWEAK: Settings sanitization
141
+ * TWEAK: Removed demo theme from the plugin. This is now provided separately on https://github.com/aristath/kirki-demo
142
+
143
+ ### 2.0.5 ###
144
+
145
+ December 23, 2015, dev time: 2.5 hours
146
+
147
+ * FIX: Disabled the ajax-loading method for stylesheets. All styles are now added inline. Will be re-examined for a future release.
148
+ * FIX: Number controls were not properly triggering changes
149
+ * FIX: Styling for number controls
150
+ * 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.
151
+
152
+ ### 2.0.4 ###
153
+
154
+ December 19, 2015, dev time: 3 hours
155
+
156
+ * NEW: Added units support to the Typography field
157
+ * NEW: Default methods of enqueuing styles in now inline.
158
+ * NEW: Added 'inline_css' argument to config. set to false to add styles using AJAX.
159
+ * FIX: HTML mode for CodeMirror now functional
160
+ * FIX: PHP Notices when the config filter is used wrong
161
+ * FIX: Monor bugfix for text inputs
162
+ * FIX: Indentation & coding standards
163
+ * FIX: failing PHPUNIT test.
164
+ * TWEAK: Remove passing click event object
165
+
166
+ ### 2.0.3 ###
167
+
168
+ December 6, 2015, dev time: 45 minutes
169
+
170
+ * Bugfix for updates
171
+
172
+ ### 2.0.2 ###
173
+
174
+ December 6, 2015, dev time: 30 minutes
175
+
176
+ * FIX: Fatal error on update (not on new installations)
177
+ * FIX: Typo
178
+
179
+ ### 2.0.1 ###
180
+
181
+ December 6, 2015, dev time: 10 minutes
182
+
183
+ * FIX: Some configurations were failing with the new autoloader. Reverted to a simpler file structure.
184
+
185
+ ### 2.0 ###
186
+
187
+ December 6, 2015, dev time > 140 hours
188
+
189
+ * NEW: Added support for `sanitize_callback` arguments on each item in the CSS `output`.
190
+ * NEW: Added the ability to define an array as element in the `output`.
191
+ * NEW: Auto-prefixing CSS output for cross-browser compatibilities.
192
+ * NEW: Allow using arrays in settings.
193
+ * NEW: Dimension Field.
194
+ * NEW: Repeater Field.
195
+ * NEW: Code Field using the ACE editor.
196
+ * NEW: Typography Control.
197
+ * NEW: Preset Field.
198
+ * NEW: Demo theme.
199
+ * NEW: Spacing Control.
200
+ * REMOVED: Redux Framework compatibility.
201
+ * FIX: Minor bugfixes to the Kirki_Color class.
202
+ * FIX: kirki_get_option now uses Kirki::get_option().
203
+ * FIX: Various bugfixes.
204
+ * TWEAK: Converted the `checkbox` control to use the JS templating system.
205
+ * TWEAK: Converted the `custom` control to use the JS templating system.
206
+ * TWEAK: Converted the `multicheck` control to use the JS templating system.
207
+ * TWEAK: Converted the `number` control to use the JS templating system.
208
+ * TWEAK: Converted the `palette` control to use the JS templating system.
209
+ * TWEAK: Converted the `radio-buttonset` control to use the JS templating system.
210
+ * TWEAK: Converted the `radio-image` control to use the JS templating system.
211
+ * TWEAK: Converted the `radio` control to use the JS templating system.
212
+ * TWEAK: Converted the `select` control to use the JS templating system.
213
+ * TWEAK: Converted the `slider` control to use the JS templating system.
214
+ * TWEAK: Converted the `switch` control to use the JS templating system.
215
+ * TWEAK: Converted the `textarea` control to use the JS templating system.
216
+ * TWEAK: Converted the `toggle` control to use the JS templating system.
217
+ * TWEAK: `radio-buttonset` controls are now CSS-only.
218
+ * TWEAK: `radio-image` controls are now CSS-only.
219
+ * TWEAK: `select` controls nopw use [selectize](http://brianreavis.github.io/selectize.js/) instead of [Select2](https://select2.github.io/).
220
+ * TWEAK: Deprecated `select2` and `select2-multiple` controls. We now have a global `select` control. Previous implementations gracefully fallback to the current one.
221
+ * TWEAK: `switch` controls are now CSS-only.
222
+ * TWEAK: `toggle` controls are now CSS-only.
223
+ * TWEAK: Sliders now use an HTML5 "range" input instead of jQuery-UI.
224
+ * TWEAK: Better coding standards.
225
+ * TWEAK: Descriptions styling.
226
+ * TWEAK: Improved controls styling.
227
+ * TWEAK: Compiled CSS & JS for improved performance.
228
+ * TWEAK: Added prefix to the sanitized output array.
229
+ * TWEAK: Updated google-fonts.
230
+ * TWEAK: Grunt integration.
231
+ * TWEAK: Some Code refactoring.
232
+
233
+ ### 1.0.2 ###
234
+
235
+ July 17, 2014, dev time: 5 minutes
236
+
237
+ * NEW: Added 'disable_output' and 'disable_google_fonts' arguments to the configuration.
238
+
239
+ ### 1.0.1 ###
240
+
241
+ July 17, 2014, dev time: 1 hour
242
+
243
+ * FIX: Issues when using serialized options instead of theme_mods or individual options.
244
+ * FIX: Issues with the `output` argument on fields.
245
+ * FIX: Other minor bugfixes
246
+
247
+ ### 1.0.0 ###
248
+
249
+ July 11, 2014, dev time: 177 hours
250
+
251
+ * NEW: Added PHPUnit tests
252
+ * NEW: Use wp_add_inline_style to add customizer styles
253
+ * NEW: Rebuilt the background fields calculation
254
+ * NEW: Now using Formstone for switches & toggles
255
+ * NEW: Added a new API. See https://github.com/aristath/kirki/wiki for documentation.
256
+ * NEW: Minimum PHP requirement is now PHP 5.2
257
+ * NEW: Added a Select2 field type.
258
+ * NEW: Introducing the Kirki::get_option() method to get values.
259
+ * NEW: added 'media_query' argument to output.
260
+ * NEW: Added ability to get variables for CSS preprocessors from the customizer values. See https://github.com/aristath/kirki/wiki/variables for documentation
261
+ * NEW: now supporting 'units' to all outputs to support '!important'
262
+ * NEW: Ability to create panels & sections using the new API.
263
+ * NEW: added a get_posts method to the Kirki class.
264
+ * NEW: Implement width argument in the styling options. See https://github.com/aristath/kirki/wiki/Styling-the-Customizer
265
+ * NEW: add 'kirki/control_types' filter
266
+ * FIX: Properly saving values in the db when using serialized options
267
+ * FIX: Check if classes & functions exist before adding them (allows for better compatibility when embedded in a theme)
268
+ * FIX: PHP Warnings & Notices
269
+ * FIX: Other minor bugfixes
270
+ * FIX: Now using consistently `option_type` instead of `options_type` everywhere
271
+ * FIX: `Kirki::get_option()` method now works for all fields, including background fields.
272
+ * FIX: avoid errors when Color is undefined in background fields
273
+ * FIX: Use WP_Filesystem to get the google fonts array from a json file
274
+ * FIX: Radio-Button styling
275
+ * FIX: PHP Notices
276
+ * FIX: Typos
277
+ * FIX: Properly sanitizing rgba colors
278
+ * FIX: Properly sanitize numbers
279
+ * FIX: Make sure all variables are escaped on output
280
+ * TWEAK: Simplify the Colourlovers integration.
281
+ * TWEAK: Improve sanitization
282
+ * TWEAK: Improve the Kirki_Styles_Customizer class
283
+ * TWEAK: Code cleanups
284
+ * TWEAK: Added more inline docs (lots of them)
285
+ * TWEAK: Use active_callback for required arguments instead of custom JS
286
+ * TWEAK: Updated translation files
287
+ * TWEAK: Better color manipulation in the Kirki_Color class
288
+ * TWEAK: Move secondary classes instantiation to the Kirki() function.
289
+ * TWEAK: set a $kirki global
290
+ * TWEAK: deprecate getOrThrow method in the Kirki_Config class.
291
+ * TWEAK: Move sanitisation functions to a Kirki_Sanitize class.
292
+ * TWEAK: Rename Kirki_Framework to Kirki_Toolkit.
293
+ * TWEAK: Move variables to the new API
294
+ * TWEAK: simplify Kirki_Controls class
295
+ * TWEAK: move the kirki/fields & kirki/controls filters to the new API
296
+ * REMOVED: remove the 'stylesheet_id' from the configuration.
297
+
298
+ ### 0.8.4 ###
299
+
300
+ April 6, 2014, dev time: 0.5 hours
301
+
302
+ * FIX: Color sanitization was distorting 0 characters in the color hex.
303
+ * FIX: Properly sanitizing ColorAlpha controls
304
+ * FIX: Sanitizing more properties in the Fields class
305
+ * FIX: removing remnant double-sanitization calls from the controls classes
306
+
307
+ ### 0.8.3 ###
308
+
309
+ April 5, 2014, dev time: 28 hours
310
+
311
+ * NEW: Introduce a Field class
312
+ * NEW: Introduce a Builder class
313
+ * TWEAK: Code Cleanups
314
+ * NEW: Added ability to use 'option' as the setting type
315
+ * Fix : Bugs in the color calculation class
316
+ * TWEAK: Everything gets sanitized in the "Field" class
317
+ * FIX: Bugs in sortable field
318
+ * FIX: Editor control had no description
319
+ * NEW: Added a color-alpha control. To use it just set an rgba color as the default value.
320
+ * TWEAK: SCSS & CSS improvements
321
+ * FIX: Various PHP notices and warnings when no fields are defined
322
+ * TWEAK: More efficient color sanitization method
323
+ * TWEAK: Improved number control presentation
324
+ * TWEAK: Improved the way background fields are handled
325
+ * TWEAK: Checkboxes styling
326
+ * NEW: Allow using rgba values for background colors
327
+ * FIX: CSS fix - :focus color for active section
328
+ * NEW: Add a static 'prepare' method to the ScriptRegistry class
329
+ * FIX: Issues with the URL when Kirki is embedded in a theme
330
+
331
+ ### 0.8.2 ###
332
+
333
+ March 30, 2015, dev time: 5 minutes
334
+
335
+ * FIX: Autoloader could not properly include files due to strtolower()
336
+
337
+ ### 0.8.1 ###
338
+
339
+ March 30, 2015, dev time: 30 minutes
340
+
341
+ * FIX: Translation strings now overridable using the config filter.
342
+
343
+ ### 0.8.0 ###
344
+
345
+ March 30, 2015, dev time: 32 hours
346
+
347
+ * Improvement: OOP redesign (props @vpratfr)
348
+ * NEW: Added Palette control
349
+ * NEW: Added Editor control (WYSIWYG - uses TinyMCE)
350
+ * NEW: Added Custom control (free html)
351
+ * NEW: Added a Kirki_Colourlovers class to use palettes from the colourlovers API
352
+ * NEW: Added a composer file (props @vpratfr)
353
+ * FIX: Wrong settings IDs
354
+ * FIX: Color calculation on RGBA functions were off
355
+ * TWEAK: Restructuring the plugin (props @vpratfr)
356
+ * NEW: added a functional kirki_get_option() function
357
+ * TWEAK: Simplified configuration options.
358
+ * NEW: Turn Kirki into a singleton and a facade (props @vpratfr)
359
+ * TWEAK: Completely re-written the customizer styles
360
+ * NEW: Using SASS for customizer styles
361
+ * TWEAK: Deprecating the group_title control in favor of the new custom control
362
+ * TWEAK: Changed the CSS for checkboxes
363
+
364
+ ### 0.7.1 ###
365
+
366
+ March 15, 2015, dev time: 2 hours
367
+
368
+ * REMOVED: Remove the `kirki_get_option` function that was introduced in 0.7 as it's not working properly yet.
369
+ * FIX: Undefined index notice when a default value for the control was not defined
370
+ * TWEAK: `logo_image` now injects an `img` element instead of a `div` with custom background
371
+ * NEW: Added `description` argument in the kirki configuration (replaces the theme description)
372
+
373
+ ### 0.7 ###
374
+
375
+ March 14, 2015, dev time: 10 hours
376
+
377
+ * FIX: Array to string conversion that happened conditionally when used with googlefonts. (props @groucho75)
378
+ * FIX: Background opacity affects background-position of bg image
379
+ * FIX: font-weight not being applied on google fonts
380
+ * NEW: Added `kirki_get_option( $setting );` function that also gets default values
381
+ * TWEAK: Singleton for main plugin class
382
+ * FIX: Prevent empty help tooltips
383
+ * NEW: Added `toggle` control
384
+ * NEW: Added `switch` control
385
+ * FIX: Color controls were not being reset to default:
386
+ * TWEAK: Tooltips now loaded via jQuery
387
+ * TWEAK: Renamed `setting` to settings for consistency with WordPress core
388
+ * TWEAK: Renamed `description` to `help` and `subtitle` to `description for consistency with WordPress core
389
+ * TWEAK: Backwards-compatibility improvements
390
+ * NEW: Allow hiding background control elements by not including default values for them
391
+ * TWEAK: Performance improvements
392
+ * TWEAK: Using WordPress core controls instead of custom ones when those are available
393
+ * TWEAK: Separate logic for multiple-type controls that were using the "mode" argument. This has been deprecated in favor of completely separate control types.
394
+
395
+ ### 0.6.2 ###
396
+
397
+ March 2, 2015, dev time: 3 hours
398
+
399
+ * FIX: Frontend styles were not properly enqueued (props @dmgawel)
400
+ * NEW: Allow multiple output styles per control defined as an array of arrays.
401
+ * FIX: Background control styles
402
+ * FIX: Serialise default values for the sortable control. Now you can define default values as an array.
403
+ * FIX: Required script
404
+ * FIX: \'_opacity\' was added to a lot of controls by mistake. Removed it and wrote a migration script.
405
+
406
+ ### 0.6.1 ###
407
+
408
+ February 25, 2015, dev time: 1 hours
409
+
410
+ * FIX: Sortables controls had a JS conflict
411
+ * FIX: Switches & Toggles were not properly working
412
+
413
+ ### 0.6.0 ###
414
+
415
+ February 25, 2015, dev time: 9 hours
416
+
417
+ * FIX: Tooltips now properly working
418
+ * NEW: Added checkbox switches
419
+ * NEW: Added checkbox toggles
420
+ * FIX: Generated CSS is not properly combined & minified
421
+ * FIX: Re-structuring files hierarchy
422
+ * FIX: Simplify the way controls are loaded
423
+ * NEW: Only load control classes when they are needed
424
+ * NEW: Introducing Kirki_Customize_Control class
425
+ * FIX: CSS tweaks
426
+ * NEW: Sortable control (creating one is identical to a select control, but with `\'type\' => \'sortable\'`)
427
+ * FIX: Double output CSS (props @agusmu)
428
+ * NEW: Google fonts now parsed from a json file.
429
+
430
+ ### 0.5.1 ###
431
+
432
+ January 22, 2015
433
+
434
+ * FIX: Transport defaults to refresh instead of postMessage
435
+ * FIX: undefined index notice.
436
+
437
+ ### 0.5 ###
438
+
439
+ January 21, 2015
440
+
441
+ * NEW: Automatic output of styles for generic controls.
442
+ * NEW: Automatic output of styles + scripts for fonts (including googlefonts )
443
+ * NEW: The \'output\' argument on background controls is now an array for consistency with other controls. Older syntax is still compatible though. :)
444
+ * NEW: Add the ability to auto-generate styles for colors.
445
+ * FIX: Add a blank stylesheet if we need one and no stylesheet_id has been defined in the config options.
446
+ * FIX: CSS-only tooltips. Fixes issue with tooltips now showing up on WP >= 4.1
447
+ * FIX: Code cleanups
448
+ * NEW: Added support for WordPress\'s transport arguments
449
+ * FIX: All controls now have a sanitization callback. Users can override the default sanitizations by adding their own \'sanitize_callback\' argument.
450
+ * FIX: OOP rewrite
451
+ * FIX: Strip protocol from Google API link
452
+ * FIX: Loading order for some files
453
+ * FIX: Removed deprecated less_var argument
454
+
455
+ ### 0.4 ###
456
+
457
+ October 25, 2014
458
+
459
+ * FIX: bugfix for selector
460
+ * NEW: Change the Kirki theme based on which admin theme is selected.
461
+ * FIX: Tranlsation domain issue
462
+ * NEW: Added a \"group_title\" control
463
+ * FIX: Updated the required script
464
+ * FIX: Updating CSS
465
+ * Other minor improvements and bugfixes
466
+
467
+ ### 0.3 ###
468
+
469
+ May 26, 2014
470
+
471
+ * NEW: added background field
472
+ * NEW: added \'output\' argument to directly output the CSS
473
+
474
+ ### 0.2 ###
475
+
476
+ May 9, 2014
477
+
478
+ * 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
@@ -10,7 +10,7 @@ wp.customize.controlConstructor['multicheck'] = wp.customize.Control.extend( {
10
  var compiled_value = [];
11
  var i = 0;
12
  jQuery.each( control.params.choices, function( key, value ) {
13
- if ( jQuery( 'input[value="' + key + '"' ).is( ':checked' ) ) {
14
  compiled_value[i] = key;
15
  i++;
16
  }
10
  var compiled_value = [];
11
  var i = 0;
12
  jQuery.each( control.params.choices, function( key, value ) {
13
+ if ( control.container.find( 'input[value="' + key + '"]' ).is( ':checked' ) ) {
14
  compiled_value[i] = key;
15
  i++;
16
  }
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/text.js CHANGED
File without changes
assets/js/controls/textarea.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
@@ -133,7 +133,7 @@ wp.customize.controlConstructor['multicheck'] = wp.customize.Control.extend( {
133
  var compiled_value = [];
134
  var i = 0;
135
  jQuery.each( control.params.choices, function( key, value ) {
136
- if ( jQuery( 'input[value="' + key + '"' ).is( ':checked' ) ) {
137
  compiled_value[i] = key;
138
  i++;
139
  }
133
  var compiled_value = [];
134
  var i = 0;
135
  jQuery.each( control.params.choices, function( key, value ) {
136
+ if ( control.container.find( 'input[value="' + key + '"]' ).is( ':checked' ) ) {
137
  compiled_value[i] = key;
138
  i++;
139
  }
assets/js/customizer.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function RepeaterRow(a,b){this.rowIndex=a,this.rowNumber=a+1,this.$el=b,this.$dragger=this.$el.find(".repeater-row-move"),this.$minimizer=this.$el.find(".repeater-row-minimize"),this.$remover=this.$el.find(".repeater-row-remove"),this.$number=this.$el.find(".repeater-row-number"),this.$fields=this.$el.find("input,select,textarea");var c=this;this.$minimizer.on("click",function(){c.toggleMinimize()}),this.$remover.on("click",function(){c.remove()}),this.$dragger.on("mousedown",function(){c.$el.trigger("row:start-dragging")}),this.$el.on("keyup change","input, select, textarea",function(a){c.$el.trigger("row:update",[c.getRowIndex(),jQuery(a.target).data("field"),a.target])}),this.renderNumber()}function kirkiArrayToObject(a){var b={};if(null!==a)for(var c=0;c<a.length;++c)void 0!==a[c]&&(b[c]=a[c]);return b}wp.customize.controlConstructor["kirki-checkbox"]=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor.code=wp.customize.Control.extend({ready:function(){var a=this,b=a.container.find("#kirki-codemirror-editor-"+a.id),c=CodeMirror.fromTextArea(b[0]);if("html"==a.params.choices.language)var d={name:"htmlmixed"};else d=a.params.choices.language;c.setOption("value",a.setting._value),c.setOption("mode",d),c.setOption("lineNumbers",!0),c.setOption("theme",a.params.choices.theme),c.setOption("height",a.params.choices.height+"px"),c.on("change",function(){a.setting.set(c.getValue())}),b.parents(".accordion-section").on("click",function(){c.refresh()})}}),wp.customize.controlConstructor["color-alpha"]=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find(".kirki-color-control");b.val();b.wpColorPicker({change:function(c,d){setTimeout(function(){a.setting.set(b.val())},100)}})}}),wp.customize.controlConstructor.dimension=wp.customize.Control.extend({ready:function(){var a=this,b=a.container.find("input[type=number]").val(),c=a.container.find("select").val();jQuery(".customize-control-dimension select").selectize(),this.container.on("change","input",function(){b=jQuery(this).val(),a.setting.set(b+c)}),this.container.on("change","select",function(){c=jQuery(this).val(),a.setting.set(b+c)})}}),function(a){wp.customizerCtrlEditor={init:function(){a(window).load(function(){a("textarea.wp-editor-area").each(function(){var b,c,d=a(this),e=d.attr("id"),f=tinyMCE.get(e);f&&f.onChange.add(function(a,e){a.save(),c=f.getContent(),clearTimeout(b),b=setTimeout(function(){d.val(c).trigger("change")},500)}),d.css({visibility:"visible"}).on("keyup",function(){c=d.val(),clearTimeout(b),b=setTimeout(function(){c.trigger("change")},500)})})})}},wp.customizerCtrlEditor.init()}(jQuery),wp.customize.controlConstructor.multicheck=wp.customize.Control.extend({ready:function(){var a=this;a.container.on("change","input",function(){var b=[],c=0;jQuery.each(a.params.choices,function(a,d){jQuery('input[value="'+a+'"').is(":checked")&&(b[c]=a,c++)}),a.setting.set(b),wp.customize.previewer.refresh()})}}),wp.customize.controlConstructor.number=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("input");if(jQuery(b).spinner(),a.params.choices.min&&jQuery(b).spinner("option","min",a.params.choices.min),a.params.choices.min&&jQuery(b).spinner("option","max",a.params.choices.max),a.params.choices.min){var c="any"==a.params.choises.step?"0.001":a.params.choices.step;jQuery(b).spinner("option","step",c)}this.container.on("change","input",function(){a.setting.set(jQuery(this).val())}),this.container.on("click","input",function(){a.setting.set(jQuery(this).val())}),this.container.on("keyup","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.palette=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.preset=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("select");jQuery(b).selectize(),this.container.on("change","select",function(){var b=jQuery(this).val();a.setting.set(b),jQuery.each(a.params.choices,function(a,c){b==a&&jQuery.each(c.settings,function(a,b){var c=wp.customize.settings.controls[a];if(void 0===typeof c)return!0;var d=c.type;if("checkbox"==d||"switch"==d||"toggle"==d||"kirki-checkbox"==d){var e=wp.customize.control(a).container.find("input");1==b?(jQuery(e).prop("checked",!0),wp.customize.instance(a).set(!0)):(jQuery(e).prop("checked",!1),wp.customize.instance(a).set(!1))}else if("select"==d||"select2"==d||"select2-multiple"==d||"kirki-select"==d){var e=wp.customize.control(a).container.find("select"),f=jQuery(e).selectize(),g=f[0].selectize;g.setValue(b,!0),wp.customize.instance(a).set(b)}else if("slider"==d){var e=wp.customize.control(a).container.find("input");jQuery(e).prop("value",b);var h=wp.customize.control(a).container.find(".kirki_range_value .value");jQuery(h).html(b),wp.customize.instance(a).set(b)}else if("textarea"==d||"kirki-textarea"==d){var e=wp.customize.control(a).container.find("textarea");jQuery(e).prop("value",b),wp.customize(a).set(b)}else if("color"==d||"kirki-color"==d)wp.customize.instance(a).set(b),wp.customize.control(a).container.find(".color-picker-hex").attr("data-default-color",b).data("default-color",b).wpColorPicker("color",b);else if("color-alpha"==d){var i=wp.customize.control(a).container.find(".kirki-color-control");i.attr("data-default-color",b).data("default-color",b).wpColorPicker("color",b),wp.customize.instance(a).set(b)}else if("dimension"==d){wp.customize.instance(a).set(b);var e=wp.customize.control(a).container.find("input[type=number]"),j=parseFloat(b);jQuery(e).prop("value",j);var k=wp.customize.control(a).container.find("select"),l=b.replace(parseFloat(b),"");jQuery(k).prop("value",l)}else if("multicheck"==d)for(wp.customize.instance(a).set(b),wp.customize.control(a).container.find("input").each(function(){jQuery(this).prop("checked",!1)}),index=0;index<b.length;index++){var e=wp.customize.control(a).container.find('input[value="'+b[index]+'"]');jQuery(e).prop("checked",!0)}else if("radio-buttonset"==d||"radio-image"==d||"radio"==d||"kirki-radio"==d){var e=wp.customize.control(a).container.find('input[value="'+b+'"]');jQuery(e).prop("checked",!0),wp.customize.instance(a).set(b)}else{var e=wp.customize.control(a).container.find("input");jQuery(e).prop("value",b),wp.customize.instance(a).set(b)}})}),wp.customize.previewer.refresh()})}}),wp.customize.controlConstructor["radio-buttonset"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["radio-image"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-radio"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change","input",function(){a.setting.set(jQuery(this).val())})}}),RepeaterRow.prototype.getRowIndex=function(){return this.rowIndex},RepeaterRow.prototype.getRowNumber=function(){return this.rowNumber},RepeaterRow.prototype.setRowNumber=function(a){this.rowNumber=a,this.renderNumber()},RepeaterRow.prototype.getElement=function(){return this.$el},RepeaterRow.prototype.setRowIndex=function(a){this.rowIndex=a,this.$el.attr("data-row",a),this.$el.data("row",a)},RepeaterRow.prototype.toggleMinimize=function(){this.$el.toggleClass("minimized"),this.$minimizer.find(".repeater-minimize").toggleClass("dashicons-arrow-up"),this.$minimizer.find(".repeater-minimize").toggleClass("dashicons-arrow-down")},RepeaterRow.prototype.minimize=function(){this.$el.addClass("minimized"),this.$minimizer.find(".repeater-minimize").removeClass("dashicons-arrow-up"),this.$minimizer.find(".repeater-minimize").addClass("dashicons-arrow-down")},RepeaterRow.prototype.remove=function(){confirm("Are you sure?")&&(this.$el.slideUp(300,function(){jQuery(this).detach()}),this.$el.trigger("row:remove",[this.getRowIndex()]))},RepeaterRow.prototype.renderNumber=function(){this.$number.text(this.getRowNumber())},wp.customize.controlConstructor.repeater=wp.customize.Control.extend({ready:function(){var a=this,b=this.params.value;if(this.settingField=this.container.find("[data-customize-setting-link]").first(),this.setValue([],!1),this.repeaterFieldsContainer=this.container.find(".repeater-fields").first(),this.currentIndex=0,this.rows=[],this.container.on("click","button.repeater-add",function(b){b.preventDefault(),a.addRow()}),this.container.on("click keypress",".repeater-field-image .upload-button",function(b){b.preventDefault(),a.$thisButton=jQuery(this),a.openFrame()}),this.container.on("click keypress",".repeater-field-image .remove-button",function(b){b.preventDefault(),a.$thisButton=jQuery(this),a.removeImage()}),this.repeaterTemplate=_.memoize(function(){var b,c={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(d){return(b=_.template(a.container.find(".customize-control-repeater-content").first().html(),null,c))(d)}}),b.length)for(var c=0;c<b.length;c++)a.addRow(b[c]);this.repeaterFieldsContainer.sortable({handle:".repeater-row-move",update:function(b,c){a.sort()}})},openFrame:function(){wp.customize.utils.isKeydownButNotEnterEvent(event)||(this.frame||this.initFrame(),this.frame.open())},initFrame:function(){var a=this;this.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",function(b){a.selectImage()})},selectImage:function(){var a=this.frame.state().get("selection").first().toJSON(),b=a.url,c=this.$thisButton.closest(".repeater-field-image");c.find(".kirki-image-attachment").html('<img src="'+b+'">').hide().slideDown("slow"),c.find(".hidden-field").val(b),this.$thisButton.text(this.$thisButton.data("alt-label")),c.find(".remove-button").show(),c.find("input, textarea").trigger("change")},removeImage:function(){if(!wp.customize.utils.isKeydownButNotEnterEvent(event)){var a=this.$thisButton.closest(".repeater-field-image"),b=a.find(".upload-button");a.find(".kirki-image-attachment").slideUp("fast",function(){jQuery(this).html("")}),a.find(".hidden-field").val(""),b.text(b.data("label")),this.$thisButton.hide()}},getValue:function(){return JSON.parse(decodeURI(this.setting.get()))},setValue:function(a,b){this.setting.set(encodeURI(JSON.stringify(a))),b&&this.settingField.trigger("change")},addRow:function(a){var b,c,d=this,e=d.repeaterTemplate(),f=this.getValue(),g={};if(e){if(c=jQuery.extend(!0,{},d.params.fields),a)for(b in a)a.hasOwnProperty(b)&&c.hasOwnProperty(b)&&(c[b]["default"]=a[b]);c.index=this.currentIndex,c.ControlId=this.id,e=e(c);var h=new RepeaterRow(d.currentIndex,jQuery(e).appendTo(d.repeaterFieldsContainer));h.getElement().one("row:remove",function(a,b){d.deleteRow(b)}),h.getElement().on("row:update",function(a,b,c,e){d.updateField.call(d,a,b,c,e)}),h.getElement().on("row:start-dragging",function(){for(b in d.rows)d.rows.hasOwnProperty(b)&&d.rows[b]&&d.rows[b].minimize()}),this.rows[this.currentIndex]=h;for(b in c)c.hasOwnProperty(b)&&(g[b]=c[b]["default"]);f[this.currentIndex]=g,this.setValue(f,!0),this.currentIndex++}},sort:function(){var a=this,b=this.repeaterFieldsContainer.find(".repeater-row"),c=[];b.each(function(a,b){c.push(jQuery(b).data("row"))});var d=a.getValue(),e=[],f=[];jQuery.each(c,function(b,c){e[b]=a.rows[c],e[b].setRowIndex(b),e[b].setRowNumber(b+1),f[b]=d[c]}),a.rows=e,a.setValue(f)},deleteRow:function(a){var b=this.getValue();if(b[a]){var c=this.rows[a];c&&(delete b[a],delete this.rows[a],this.setValue(b,!0))}var d=1;for(prop in this.rows)this.rows.hasOwnProperty(prop)&&this.rows[prop]&&(this.rows[prop].setRowNumber(d),d++)},updateField:function(a,b,c,d){if(this.rows[b]&&this.params.fields[c]){var e=this.params.fields[c].type,f=this.rows[b],g=this.getValue();d=jQuery(d),void 0!=typeof g[f.getRowIndex()][c]&&("checkbox"==e?g[f.getRowIndex()][c]=d.is(":checked"):g[f.getRowIndex()][c]=d.val(),this.setValue(g,!0))}}}),wp.customize.controlConstructor["kirki-select"]=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("select"),c=parseInt(b.data("multiple"));c>1?jQuery(b).selectize({maxItems:c,plugins:["remove_button","drag_drop"]}):jQuery(b).selectize(),this.container.on("change","select",function(){if(c>1)var b=kirkiArrayToObject(jQuery(this).val());else var b=jQuery(this).val();a.setting.set(b)})}}),jQuery(document).ready(function(a){a("input[type=range]").on("mousedown",function(){value=a(this).attr("value"),a(this).mousemove(function(){value=a(this).attr("value"),a(this).closest("label").find(".kirki_range_value .value").text(value)})}),a(".kirki-slider-reset").click(function(){var b=a(this).closest("label").find("input"),c=(b.data("customize-setting-link"),b.data("reset_value"));b.val(c),b.change(),a(this).closest("label").find(".kirki_range_value .value").text(c)})}),wp.customize.controlConstructor.slider=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.sortable=wp.customize.Control.extend({ready:function(){var a=this;this.settingField=this.container.find("[data-customize-setting-link]").first(),this.sortableContainer=this.container.find("ul.sortable").first(),this.setValue(this.setting.get(),!1),this.sortableContainer.sortable().disableSelection().on("sortstop",function(b,c){a.sort()}).find("li").each(function(){jQuery(this).find("i.visibility").click(function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")})}).click(function(){a.sort()})},sort:function(){var a=[];this.sortableContainer.find("li").each(function(){var b=jQuery(this);b.is(".invisible")||a.push(b.data("value"))}),this.setValue(a,!0)},getValue:function(){return unserialize(this.setting.get())},setValue:function(a,b){a=serialize(a),this.setting.set(a),this.settingField.val(a),b&&this.settingField.trigger("change")}}),wp.customize.controlConstructor.spacing=wp.customize.Control.extend({ready:function(){var a=this,b={};if(a.container.has(".top").size()&&(b.top=a.setting._value.top),a.container.has(".bottom").size()&&(b.bottom=a.setting._value.bottom),a.container.has(".left").size()&&(b.left=a.setting._value.left),a.container.has(".right").size()&&(b.right=a.setting._value.right),jQuery(".customize-control-spacing select").selectize(),a.container.has(".top").size()){var c=a.container.find(".top input[type=number]").val(),d=a.container.find(".top select").val();this.container.on("change",".top input",function(){c=jQuery(this).val(),b.top=c+d,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".top select",function(){d=jQuery(this).val(),b.top=c+d,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".bottom").size()){var e=a.container.find(".bottom input[type=number]").val(),f=a.container.find(".bottom select").val();this.container.on("change",".bottom input",function(){e=jQuery(this).val(),b.bottom=e+f,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".bottom select",function(){f=jQuery(this).val(),b.bottom=e+f,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".left").size()){var g=a.container.find(".left input[type=number]").val(),h=a.container.find(".left select").val();this.container.on("change",".left input",function(){g=jQuery(this).val(),b.left=g+h,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".left select",function(){h=jQuery(this).val(),b.left=g+h,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".right").size()){var i=a.container.find(".right input[type=number]").val(),j=a.container.find(".right select").val();this.container.on("change",".right input",function(){i=jQuery(this).val(),b.right=i+j,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".right select",function(){j=jQuery(this).val(),b.right=i+j,a.setting.set(b),wp.customize.previewer.refresh()})}}}),wp.customize.controlConstructor["switch"]=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor["kirki-text"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change keyup paste","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-textarea"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change keyup paste",".textarea",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.toggle=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor.typography=wp.customize.Control.extend({ready:function(){var a=this,b={};if(a.container.has(".bold").size()&&(b.bold=a.setting._value.bold),a.container.has(".italic").size()&&(b.italic=a.setting._value.italic),a.container.has(".underline").size()&&(b.underline=a.setting._value.underline),a.container.has(".strikethrough").size()&&(b.strikethrough=a.setting._value.strikethrough),a.container.has(".font-family").size()&&(b["font-family"]=a.setting._value["font-family"]),a.container.has(".font-size").size()&&(b["font-size"]=a.setting._value["font-size"]),a.container.has(".font-weight").size()&&(b["font-weight"]=a.setting._value["font-weight"]),a.container.has(".line-height").size()&&(b["line-height"]=a.setting._value["line-height"]),a.container.has(".letter-spacing").size()&&(b["letter-spacing"]=a.setting._value["letter-spacing"]),a.container.has(".color").size()&&(b.color=a.setting._value.color),jQuery(".customize-control-typography select").selectize(),a.container.has(".bold").size()&&this.container.on("change",".bold input",function(){jQuery(this).is(":checked")?b.bold=!0:b.bold=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".italic").size()&&this.container.on("change",".italic input",function(){jQuery(this).is(":checked")?b.italic=!0:b.italic=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".underline").size()&&this.container.on("change",".underline input",function(){jQuery(this).is(":checked")?b.underline=!0:b.underline=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".strikethrough").size()&&this.container.on("change",".strikethrough input",function(){jQuery(this).is(":checked")?b.strikethrough=!0:b.strikethrough=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".font-family").size()&&this.container.on("change",".font-family select",function(){b["font-family"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".font-size").size()){var c=a.container.find(".font-size input[type=number]").val(),d=a.container.find(".font-size select").val();this.container.on("change",".font-size input",function(){c=jQuery(this).val(),b["font-size"]=c+d,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".font-size select",function(){d=jQuery(this).val(),b["font-size"]=c+d,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".font-weight").size()&&this.container.on("change",".font-weight select",function(){b["font-weight"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".line-height").size()&&this.container.on("change",".line-height input",function(){b["line-height"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".letter-spacing").size()){var e=a.container.find(".letter-spacing input[type=number]").val(),f=a.container.find(".letter-spacing select").val();this.container.on("change",".letter-spacing input",function(){e=jQuery(this).val(),b["letter-spacing"]=e+f,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".letter-spacing select",function(){f=jQuery(this).val(),b["letter-spacing"]=e+f,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".color").size()){var g=this.container.find(".kirki-color-control");g.wpColorPicker({change:function(){setTimeout(function(){b.color=g.val(),a.setting.set(b),wp.customize.previewer.refresh()},100)}})}}});
2
  //# sourceMappingURL=customizer.min.js.map
1
+ function RepeaterRow(a,b){this.rowIndex=a,this.rowNumber=a+1,this.$el=b,this.$dragger=this.$el.find(".repeater-row-move"),this.$minimizer=this.$el.find(".repeater-row-minimize"),this.$remover=this.$el.find(".repeater-row-remove"),this.$number=this.$el.find(".repeater-row-number"),this.$fields=this.$el.find("input,select,textarea");var c=this;this.$minimizer.on("click",function(){c.toggleMinimize()}),this.$remover.on("click",function(){c.remove()}),this.$dragger.on("mousedown",function(){c.$el.trigger("row:start-dragging")}),this.$el.on("keyup change","input, select, textarea",function(a){c.$el.trigger("row:update",[c.getRowIndex(),jQuery(a.target).data("field"),a.target])}),this.renderNumber()}function kirkiArrayToObject(a){var b={};if(null!==a)for(var c=0;c<a.length;++c)void 0!==a[c]&&(b[c]=a[c]);return b}wp.customize.controlConstructor["kirki-checkbox"]=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor.code=wp.customize.Control.extend({ready:function(){var a=this,b=a.container.find("#kirki-codemirror-editor-"+a.id),c=CodeMirror.fromTextArea(b[0]);if("html"==a.params.choices.language)var d={name:"htmlmixed"};else d=a.params.choices.language;c.setOption("value",a.setting._value),c.setOption("mode",d),c.setOption("lineNumbers",!0),c.setOption("theme",a.params.choices.theme),c.setOption("height",a.params.choices.height+"px"),c.on("change",function(){a.setting.set(c.getValue())}),b.parents(".accordion-section").on("click",function(){c.refresh()})}}),wp.customize.controlConstructor["color-alpha"]=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find(".kirki-color-control");b.val();b.wpColorPicker({change:function(c,d){setTimeout(function(){a.setting.set(b.val())},100)}})}}),wp.customize.controlConstructor.dimension=wp.customize.Control.extend({ready:function(){var a=this,b=a.container.find("input[type=number]").val(),c=a.container.find("select").val();jQuery(".customize-control-dimension select").selectize(),this.container.on("change","input",function(){b=jQuery(this).val(),a.setting.set(b+c)}),this.container.on("change","select",function(){c=jQuery(this).val(),a.setting.set(b+c)})}}),function(a){wp.customizerCtrlEditor={init:function(){a(window).load(function(){a("textarea.wp-editor-area").each(function(){var b,c,d=a(this),e=d.attr("id"),f=tinyMCE.get(e);f&&f.onChange.add(function(a,e){a.save(),c=f.getContent(),clearTimeout(b),b=setTimeout(function(){d.val(c).trigger("change")},500)}),d.css({visibility:"visible"}).on("keyup",function(){c=d.val(),clearTimeout(b),b=setTimeout(function(){c.trigger("change")},500)})})})}},wp.customizerCtrlEditor.init()}(jQuery),wp.customize.controlConstructor.multicheck=wp.customize.Control.extend({ready:function(){var a=this;a.container.on("change","input",function(){var b=[],c=0;jQuery.each(a.params.choices,function(d,e){a.container.find('input[value="'+d+'"]').is(":checked")&&(b[c]=d,c++)}),a.setting.set(b),wp.customize.previewer.refresh()})}}),wp.customize.controlConstructor.number=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("input");if(jQuery(b).spinner(),a.params.choices.min&&jQuery(b).spinner("option","min",a.params.choices.min),a.params.choices.min&&jQuery(b).spinner("option","max",a.params.choices.max),a.params.choices.min){var c="any"==a.params.choises.step?"0.001":a.params.choices.step;jQuery(b).spinner("option","step",c)}this.container.on("change","input",function(){a.setting.set(jQuery(this).val())}),this.container.on("click","input",function(){a.setting.set(jQuery(this).val())}),this.container.on("keyup","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.palette=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.preset=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("select");jQuery(b).selectize(),this.container.on("change","select",function(){var b=jQuery(this).val();a.setting.set(b),jQuery.each(a.params.choices,function(a,c){b==a&&jQuery.each(c.settings,function(a,b){var c=wp.customize.settings.controls[a];if(void 0===typeof c)return!0;var d=c.type;if("checkbox"==d||"switch"==d||"toggle"==d||"kirki-checkbox"==d){var e=wp.customize.control(a).container.find("input");1==b?(jQuery(e).prop("checked",!0),wp.customize.instance(a).set(!0)):(jQuery(e).prop("checked",!1),wp.customize.instance(a).set(!1))}else if("select"==d||"select2"==d||"select2-multiple"==d||"kirki-select"==d){var e=wp.customize.control(a).container.find("select"),f=jQuery(e).selectize(),g=f[0].selectize;g.setValue(b,!0),wp.customize.instance(a).set(b)}else if("slider"==d){var e=wp.customize.control(a).container.find("input");jQuery(e).prop("value",b);var h=wp.customize.control(a).container.find(".kirki_range_value .value");jQuery(h).html(b),wp.customize.instance(a).set(b)}else if("textarea"==d||"kirki-textarea"==d){var e=wp.customize.control(a).container.find("textarea");jQuery(e).prop("value",b),wp.customize(a).set(b)}else if("color"==d||"kirki-color"==d)wp.customize.instance(a).set(b),wp.customize.control(a).container.find(".color-picker-hex").attr("data-default-color",b).data("default-color",b).wpColorPicker("color",b);else if("color-alpha"==d){var i=wp.customize.control(a).container.find(".kirki-color-control");i.attr("data-default-color",b).data("default-color",b).wpColorPicker("color",b),wp.customize.instance(a).set(b)}else if("dimension"==d){wp.customize.instance(a).set(b);var e=wp.customize.control(a).container.find("input[type=number]"),j=parseFloat(b);jQuery(e).prop("value",j);var k=wp.customize.control(a).container.find("select"),l=b.replace(parseFloat(b),"");jQuery(k).prop("value",l)}else if("multicheck"==d)for(wp.customize.instance(a).set(b),wp.customize.control(a).container.find("input").each(function(){jQuery(this).prop("checked",!1)}),index=0;index<b.length;index++){var e=wp.customize.control(a).container.find('input[value="'+b[index]+'"]');jQuery(e).prop("checked",!0)}else if("radio-buttonset"==d||"radio-image"==d||"radio"==d||"kirki-radio"==d){var e=wp.customize.control(a).container.find('input[value="'+b+'"]');jQuery(e).prop("checked",!0),wp.customize.instance(a).set(b)}else{var e=wp.customize.control(a).container.find("input");jQuery(e).prop("value",b),wp.customize.instance(a).set(b)}})}),wp.customize.previewer.refresh()})}}),wp.customize.controlConstructor["radio-buttonset"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["radio-image"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("click","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-radio"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change","input",function(){a.setting.set(jQuery(this).val())})}}),RepeaterRow.prototype.getRowIndex=function(){return this.rowIndex},RepeaterRow.prototype.getRowNumber=function(){return this.rowNumber},RepeaterRow.prototype.setRowNumber=function(a){this.rowNumber=a,this.renderNumber()},RepeaterRow.prototype.getElement=function(){return this.$el},RepeaterRow.prototype.setRowIndex=function(a){this.rowIndex=a,this.$el.attr("data-row",a),this.$el.data("row",a)},RepeaterRow.prototype.toggleMinimize=function(){this.$el.toggleClass("minimized"),this.$minimizer.find(".repeater-minimize").toggleClass("dashicons-arrow-up"),this.$minimizer.find(".repeater-minimize").toggleClass("dashicons-arrow-down")},RepeaterRow.prototype.minimize=function(){this.$el.addClass("minimized"),this.$minimizer.find(".repeater-minimize").removeClass("dashicons-arrow-up"),this.$minimizer.find(".repeater-minimize").addClass("dashicons-arrow-down")},RepeaterRow.prototype.remove=function(){confirm("Are you sure?")&&(this.$el.slideUp(300,function(){jQuery(this).detach()}),this.$el.trigger("row:remove",[this.getRowIndex()]))},RepeaterRow.prototype.renderNumber=function(){this.$number.text(this.getRowNumber())},wp.customize.controlConstructor.repeater=wp.customize.Control.extend({ready:function(){var a=this,b=this.params.value;if(this.settingField=this.container.find("[data-customize-setting-link]").first(),this.setValue([],!1),this.repeaterFieldsContainer=this.container.find(".repeater-fields").first(),this.currentIndex=0,this.rows=[],this.container.on("click","button.repeater-add",function(b){b.preventDefault(),a.addRow()}),this.container.on("click keypress",".repeater-field-image .upload-button",function(b){b.preventDefault(),a.$thisButton=jQuery(this),a.openFrame()}),this.container.on("click keypress",".repeater-field-image .remove-button",function(b){b.preventDefault(),a.$thisButton=jQuery(this),a.removeImage()}),this.repeaterTemplate=_.memoize(function(){var b,c={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(d){return(b=_.template(a.container.find(".customize-control-repeater-content").first().html(),null,c))(d)}}),b.length)for(var c=0;c<b.length;c++)a.addRow(b[c]);this.repeaterFieldsContainer.sortable({handle:".repeater-row-move",update:function(b,c){a.sort()}})},openFrame:function(){wp.customize.utils.isKeydownButNotEnterEvent(event)||(this.frame||this.initFrame(),this.frame.open())},initFrame:function(){var a=this;this.frame=wp.media({states:[new wp.media.controller.Library({library:wp.media.query({type:"image"}),multiple:!1,date:!1})]}),this.frame.on("select",function(b){a.selectImage()})},selectImage:function(){var a=this.frame.state().get("selection").first().toJSON(),b=a.url,c=this.$thisButton.closest(".repeater-field-image");c.find(".kirki-image-attachment").html('<img src="'+b+'">').hide().slideDown("slow"),c.find(".hidden-field").val(b),this.$thisButton.text(this.$thisButton.data("alt-label")),c.find(".remove-button").show(),c.find("input, textarea").trigger("change")},removeImage:function(){if(!wp.customize.utils.isKeydownButNotEnterEvent(event)){var a=this.$thisButton.closest(".repeater-field-image"),b=a.find(".upload-button");a.find(".kirki-image-attachment").slideUp("fast",function(){jQuery(this).html("")}),a.find(".hidden-field").val(""),b.text(b.data("label")),this.$thisButton.hide()}},getValue:function(){return JSON.parse(decodeURI(this.setting.get()))},setValue:function(a,b){this.setting.set(encodeURI(JSON.stringify(a))),b&&this.settingField.trigger("change")},addRow:function(a){var b,c,d=this,e=d.repeaterTemplate(),f=this.getValue(),g={};if(e){if(c=jQuery.extend(!0,{},d.params.fields),a)for(b in a)a.hasOwnProperty(b)&&c.hasOwnProperty(b)&&(c[b]["default"]=a[b]);c.index=this.currentIndex,c.ControlId=this.id,e=e(c);var h=new RepeaterRow(d.currentIndex,jQuery(e).appendTo(d.repeaterFieldsContainer));h.getElement().one("row:remove",function(a,b){d.deleteRow(b)}),h.getElement().on("row:update",function(a,b,c,e){d.updateField.call(d,a,b,c,e)}),h.getElement().on("row:start-dragging",function(){for(b in d.rows)d.rows.hasOwnProperty(b)&&d.rows[b]&&d.rows[b].minimize()}),this.rows[this.currentIndex]=h;for(b in c)c.hasOwnProperty(b)&&(g[b]=c[b]["default"]);f[this.currentIndex]=g,this.setValue(f,!0),this.currentIndex++}},sort:function(){var a=this,b=this.repeaterFieldsContainer.find(".repeater-row"),c=[];b.each(function(a,b){c.push(jQuery(b).data("row"))});var d=a.getValue(),e=[],f=[];jQuery.each(c,function(b,c){e[b]=a.rows[c],e[b].setRowIndex(b),e[b].setRowNumber(b+1),f[b]=d[c]}),a.rows=e,a.setValue(f)},deleteRow:function(a){var b=this.getValue();if(b[a]){var c=this.rows[a];c&&(delete b[a],delete this.rows[a],this.setValue(b,!0))}var d=1;for(prop in this.rows)this.rows.hasOwnProperty(prop)&&this.rows[prop]&&(this.rows[prop].setRowNumber(d),d++)},updateField:function(a,b,c,d){if(this.rows[b]&&this.params.fields[c]){var e=this.params.fields[c].type,f=this.rows[b],g=this.getValue();d=jQuery(d),void 0!=typeof g[f.getRowIndex()][c]&&("checkbox"==e?g[f.getRowIndex()][c]=d.is(":checked"):g[f.getRowIndex()][c]=d.val(),this.setValue(g,!0))}}}),wp.customize.controlConstructor["kirki-select"]=wp.customize.Control.extend({ready:function(){var a=this,b=this.container.find("select"),c=parseInt(b.data("multiple"));c>1?jQuery(b).selectize({maxItems:c,plugins:["remove_button","drag_drop"]}):jQuery(b).selectize(),this.container.on("change","select",function(){if(c>1)var b=kirkiArrayToObject(jQuery(this).val());else var b=jQuery(this).val();a.setting.set(b)})}}),jQuery(document).ready(function(a){a("input[type=range]").on("mousedown",function(){value=a(this).attr("value"),a(this).mousemove(function(){value=a(this).attr("value"),a(this).closest("label").find(".kirki_range_value .value").text(value)})}),a(".kirki-slider-reset").click(function(){var b=a(this).closest("label").find("input"),c=(b.data("customize-setting-link"),b.data("reset_value"));b.val(c),b.change(),a(this).closest("label").find(".kirki_range_value .value").text(c)})}),wp.customize.controlConstructor.slider=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.sortable=wp.customize.Control.extend({ready:function(){var a=this;this.settingField=this.container.find("[data-customize-setting-link]").first(),this.sortableContainer=this.container.find("ul.sortable").first(),this.setValue(this.setting.get(),!1),this.sortableContainer.sortable().disableSelection().on("sortstop",function(b,c){a.sort()}).find("li").each(function(){jQuery(this).find("i.visibility").click(function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")})}).click(function(){a.sort()})},sort:function(){var a=[];this.sortableContainer.find("li").each(function(){var b=jQuery(this);b.is(".invisible")||a.push(b.data("value"))}),this.setValue(a,!0)},getValue:function(){return unserialize(this.setting.get())},setValue:function(a,b){a=serialize(a),this.setting.set(a),this.settingField.val(a),b&&this.settingField.trigger("change")}}),wp.customize.controlConstructor.spacing=wp.customize.Control.extend({ready:function(){var a=this,b={};if(a.container.has(".top").size()&&(b.top=a.setting._value.top),a.container.has(".bottom").size()&&(b.bottom=a.setting._value.bottom),a.container.has(".left").size()&&(b.left=a.setting._value.left),a.container.has(".right").size()&&(b.right=a.setting._value.right),jQuery(".customize-control-spacing select").selectize(),a.container.has(".top").size()){var c=a.container.find(".top input[type=number]").val(),d=a.container.find(".top select").val();this.container.on("change",".top input",function(){c=jQuery(this).val(),b.top=c+d,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".top select",function(){d=jQuery(this).val(),b.top=c+d,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".bottom").size()){var e=a.container.find(".bottom input[type=number]").val(),f=a.container.find(".bottom select").val();this.container.on("change",".bottom input",function(){e=jQuery(this).val(),b.bottom=e+f,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".bottom select",function(){f=jQuery(this).val(),b.bottom=e+f,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".left").size()){var g=a.container.find(".left input[type=number]").val(),h=a.container.find(".left select").val();this.container.on("change",".left input",function(){g=jQuery(this).val(),b.left=g+h,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".left select",function(){h=jQuery(this).val(),b.left=g+h,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".right").size()){var i=a.container.find(".right input[type=number]").val(),j=a.container.find(".right select").val();this.container.on("change",".right input",function(){i=jQuery(this).val(),b.right=i+j,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".right select",function(){j=jQuery(this).val(),b.right=i+j,a.setting.set(b),wp.customize.previewer.refresh()})}}}),wp.customize.controlConstructor["switch"]=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor["kirki-text"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change keyup paste","input",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor["kirki-textarea"]=wp.customize.Control.extend({ready:function(){var a=this;this.container.on("change keyup paste",".textarea",function(){a.setting.set(jQuery(this).val())})}}),wp.customize.controlConstructor.toggle=wp.customize.Control.extend({ready:function(){var a=this,b=a.setting._value;this.container.on("change","input",function(){b=jQuery(this).is(":checked")?!0:!1,a.setting.set(b)})}}),wp.customize.controlConstructor.typography=wp.customize.Control.extend({ready:function(){var a=this,b={};if(a.container.has(".bold").size()&&(b.bold=a.setting._value.bold),a.container.has(".italic").size()&&(b.italic=a.setting._value.italic),a.container.has(".underline").size()&&(b.underline=a.setting._value.underline),a.container.has(".strikethrough").size()&&(b.strikethrough=a.setting._value.strikethrough),a.container.has(".font-family").size()&&(b["font-family"]=a.setting._value["font-family"]),a.container.has(".font-size").size()&&(b["font-size"]=a.setting._value["font-size"]),a.container.has(".font-weight").size()&&(b["font-weight"]=a.setting._value["font-weight"]),a.container.has(".line-height").size()&&(b["line-height"]=a.setting._value["line-height"]),a.container.has(".letter-spacing").size()&&(b["letter-spacing"]=a.setting._value["letter-spacing"]),a.container.has(".color").size()&&(b.color=a.setting._value.color),jQuery(".customize-control-typography select").selectize(),a.container.has(".bold").size()&&this.container.on("change",".bold input",function(){jQuery(this).is(":checked")?b.bold=!0:b.bold=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".italic").size()&&this.container.on("change",".italic input",function(){jQuery(this).is(":checked")?b.italic=!0:b.italic=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".underline").size()&&this.container.on("change",".underline input",function(){jQuery(this).is(":checked")?b.underline=!0:b.underline=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".strikethrough").size()&&this.container.on("change",".strikethrough input",function(){jQuery(this).is(":checked")?b.strikethrough=!0:b.strikethrough=!1,a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".font-family").size()&&this.container.on("change",".font-family select",function(){b["font-family"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".font-size").size()){var c=a.container.find(".font-size input[type=number]").val(),d=a.container.find(".font-size select").val();this.container.on("change",".font-size input",function(){c=jQuery(this).val(),b["font-size"]=c+d,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".font-size select",function(){d=jQuery(this).val(),b["font-size"]=c+d,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".font-weight").size()&&this.container.on("change",".font-weight select",function(){b["font-weight"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".line-height").size()&&this.container.on("change",".line-height input",function(){b["line-height"]=jQuery(this).val(),a.setting.set(b),wp.customize.previewer.refresh()}),a.container.has(".letter-spacing").size()){var e=a.container.find(".letter-spacing input[type=number]").val(),f=a.container.find(".letter-spacing select").val();this.container.on("change",".letter-spacing input",function(){e=jQuery(this).val(),b["letter-spacing"]=e+f,a.setting.set(b),wp.customize.previewer.refresh()}),this.container.on("change",".letter-spacing select",function(){f=jQuery(this).val(),b["letter-spacing"]=e+f,a.setting.set(b),wp.customize.previewer.refresh()})}if(a.container.has(".color").size()){var g=this.container.find(".kirki-color-control");g.wpColorPicker({change:function(){setTimeout(function(){b.color=g.val(),a.setting.set(b),wp.customize.previewer.refresh()},100)}})}}});
2
  //# sourceMappingURL=customizer.min.js.map
assets/js/customizer.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["customizer.js"],"names":["RepeaterRow","rowIndex","element","this","rowNumber","$el","$dragger","find","$minimizer","$remover","$number","$fields","self","on","toggleMinimize","remove","trigger","e","getRowIndex","jQuery","target","data","renderNumber","kirkiArrayToObject","arr","rv","i","length","undefined","wp","customize","controlConstructor","Control","extend","ready","control","checkbox_value","setting","_value","container","is","set","id","editor","CodeMirror","fromTextArea","params","choices","language","name","setOption","theme","height","getValue","parents","refresh","picker","val","wpColorPicker","change","event","ui","setTimeout","numeric_value","units_value","selectize","$","customizerCtrlEditor","init","window","load","each","setChange","content","tArea","attr","tinyMCE","get","onChange","add","ed","save","getContent","clearTimeout","css","visibility","compiled_value","key","value","previewer","spinner","min","max","control_step","choises","step","select_value","preset_setting","preset_setting_value","sub_control","settings","controls","sub_control_type","input_element","prop","instance","$select","setValue","numeric_element","html","alphaColorControl","parseFloat","select_element","replace","index","prototype","getRowNumber","setRowNumber","getElement","setRowIndex","toggleClass","minimize","addClass","removeClass","confirm","slideUp","detach","text","settingValue","settingField","first","repeaterFieldsContainer","currentIndex","rows","preventDefault","addRow","$thisButton","openFrame","removeImage","repeaterTemplate","_","memoize","compiled","options","evaluate","interpolate","escape","variable","template","sortable","handle","update","sort","utils","isKeydownButNotEnterEvent","frame","initFrame","open","media","states","controller","Library","library","query","type","multiple","date","selectImage","attachment","state","toJSON","image_src","url","$targetDiv","closest","hide","slideDown","show","$uploadButton","JSON","parse","decodeURI","newValue","encodeURI","stringify","templateData","newRowSetting","fields","hasOwnProperty","newRow","appendTo","one","deleteRow","fieldName","updateField","call","$rows","newOrder","push","newRows","newSettings","newPosition","oldPosition","currentSettings","row","fieldId","parseInt","maxItems","plugins","document","mousemove","click","$this_input","input_default","sortableContainer","disableSelection","$this","unserialize","serialize","has","size","top_numeric_value","top_units_value","bottom_numeric_value","bottom_units_value","left_numeric_value","left_units_value","right_numeric_value","right_units_value","font_size_numeric_value","font_size_units_value","letter_spacing_numeric_value","letter_spacing_units_value"],"mappings":"AAygBA,QAASA,aAAaC,EAAUC,GAC5BC,KAAKF,SAAWA,EAChBE,KAAKC,UAAYH,EAAW,EAC5BE,KAAKE,IAAMH,EACXC,KAAKG,SAAWH,KAAKE,IAAIE,KAAM,sBAC/BJ,KAAKK,WAAaL,KAAKE,IAAIE,KAAM,0BACjCJ,KAAKM,SAAWN,KAAKE,IAAIE,KAAM,wBAC/BJ,KAAKO,QAAUP,KAAKE,IAAIE,KAAM,wBAC9BJ,KAAKQ,QAAUR,KAAKE,IAAIE,KAAM,wBAE9B,IAAIK,GAAOT,IAEXA,MAAKK,WAAWK,GAAI,QAAS,WACzBD,EAAKE,mBAGTX,KAAKM,SAASI,GAAI,QAAS,WACvBD,EAAKG,WAGTZ,KAAKG,SAASO,GAAI,YAAa,WAC3BD,EAAKP,IAAIW,QAAS,wBAItBb,KAAKE,IAAIQ,GAAI,eAAgB,0BAA2B,SAAUI,GAC9DL,EAAKP,IAAIW,QAAS,cAAgBJ,EAAKM,cAAeC,OAAQF,EAAEG,QAASC,KAAM,SAAWJ,EAAEG,WAGhGjB,KAAKmB,eAy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lC,YAKzB,GAAKpB,EAAQI,UAAUoL,IAAK,UAAWC,OAAS,CAC/C,GAAIpK,GAASrD,KAAKoC,UAAUhC,KAAO,uBACnCiD,GAAOE,eACNC,OAAQ,WACPG,WAAa,WACZwB,EAAwB,MAAI9B,EAAOC,MACnCtB,EAAQE,QAAQI,IAAM6C,GACtBzD,GAAGC,UAAU2D,UAAUlC,WACrB","file":"customizer.min.js"}
1
+ {"version":3,"sources":["customizer.js"],"names":["RepeaterRow","rowIndex","element","this","rowNumber","$el","$dragger","find","$minimizer","$remover","$number","$fields","self","on","toggleMinimize","remove","trigger","e","getRowIndex","jQuery","target","data","renderNumber","kirkiArrayToObject","arr","rv","i","length","undefined","wp","customize","controlConstructor","Control","extend","ready","control","checkbox_value","setting","_value","container","is","set","id","editor","CodeMirror","fromTextArea","params","choices","language","name","setOption","theme","height","getValue","parents","refresh","picker","val","wpColorPicker","change","event","ui","setTimeout","numeric_value","units_value","selectize","$","customizerCtrlEditor","init","window","load","each","setChange","content","tArea","attr","tinyMCE","get","onChange","add","ed","save","getContent","clearTimeout","css","visibility","compiled_value","key","value","previewer","spinner","min","max","control_step","choises","step","select_value","preset_setting","preset_setting_value","sub_control","settings","controls","sub_control_type","input_element","prop","instance","$select","setValue","numeric_element","html","alphaColorControl","parseFloat","select_element","replace","index","prototype","getRowNumber","setRowNumber","getElement","setRowIndex","toggleClass","minimize","addClass","removeClass","confirm","slideUp","detach","text","settingValue","settingField","first","repeaterFieldsContainer","currentIndex","rows","preventDefault","addRow","$thisButton","openFrame","removeImage","repeaterTemplate","_","memoize","compiled","options","evaluate","interpolate","escape","variable","template","sortable","handle","update","sort","utils","isKeydownButNotEnterEvent","frame","initFrame","open","media","states","controller","Library","library","query","type","multiple","date","selectImage","attachment","state","toJSON","image_src","url","$targetDiv","closest","hide","slideDown","show","$uploadButton","JSON","parse","decodeURI","newValue","encodeURI","stringify","templateData","newRowSetting","fields","hasOwnProperty","newRow","appendTo","one","deleteRow","fieldName","updateField","call","$rows","newOrder","push","newRows","newSettings","newPosition","oldPosition","currentSettings","row","fieldId","parseInt","maxItems","plugins","document","mousemove","click","$this_input","input_default","sortableContainer","disableSelection","$this","unserialize","serialize","has","size","top_numeric_value","top_units_value","bottom_numeric_value","bottom_units_value","left_numeric_value","left_units_value","right_numeric_value","right_units_value","font_size_numeric_value","font_size_units_value","letter_spacing_numeric_value","letter_spacing_units_value"],"mappings":"AAygBA,QAASA,aAAaC,EAAUC,GAC5BC,KAAKF,SAAWA,EAChBE,KAAKC,UAAYH,EAAW,EAC5BE,KAAKE,IAAMH,EACXC,KAAKG,SAAWH,KAAKE,IAAIE,KAAM,sBAC/BJ,KAAKK,WAAaL,KAAKE,IAAIE,KAAM,0BACjCJ,KAAKM,SAAWN,KAAKE,IAAIE,KAAM,wBAC/BJ,KAAKO,QAAUP,KAAKE,IAAIE,KAAM,wBAC9BJ,KAAKQ,QAAUR,KAAKE,IAAIE,KAAM,wBAE9B,IAAIK,GAAOT,IAEXA,MAAKK,WAAWK,GAAI,QAAS,WACzBD,EAAKE,mBAGTX,KAAKM,SAASI,GAAI,QAAS,WACvBD,EAAKG,WAGTZ,KAAKG,SAASO,GAAI,YAAa,WAC3BD,EAAKP,IAAIW,QAAS,wBAItBb,KAAKE,IAAIQ,GAAI,eAAgB,0BAA2B,SAAUI,GAC9DL,EAAKP,IAAIW,QAAS,cAAgBJ,EAAKM,cAAeC,OAAQF,EAAEG,QAASC,KAAM,SAAWJ,EAAEG,WAGhGjB,KAAKmB,eAyZT,QAASC,oBAAoBC,GAC5B,GAAIC,KACJ,IAAK,OAASD,EACb,IAAM,GAAIE,GAAI,EAAGA,EAAIF,EAAIG,SAAUD,EAClBE,SAAXJ,EAAIE,KAAmBD,EAAGC,GAAKF,EAAIE,GAG1C,OAAOD,GAn8BRI,GAAGC,UAAUC,mBAAmB,kBAAoBF,GAAGC,UAAUE,QAAQC,QACxEC,MAAO,WACN,GAAIC,GAAUhC,KAGViC,EAAiBD,EAAQE,QAAQC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changes
assets/scss/controls/checkbox.scss CHANGED
File without changes
assets/scss/controls/code.scss CHANGED
File without changes
assets/scss/controls/color-alpha.scss CHANGED
File without changes
assets/scss/controls/color.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/textarea.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
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-customizer-scripts-branding.php CHANGED
File without changes
includes/class-kirki-customizer-scripts-default-scripts.php CHANGED
File without changes
includes/class-kirki-customizer-scripts-enqueue.php CHANGED
File without changes
includes/class-kirki-customizer-scripts-icons.php CHANGED
File without changes
includes/class-kirki-customizer-scripts-loading.php CHANGED
@@ -3,18 +3,12 @@
3
  if ( ! class_exists( 'Kirki_Customizer_Scripts_Loading' ) ) {
4
  class Kirki_Customizer_Scripts_Loading extends Kirki_Customizer {
5
  public function __construct() {
6
-
7
  /**
8
  * Add the "loading" icon
9
  */
10
  add_action( 'wp_footer', array( $this, 'add_loader_to_footer' ) );
11
  add_action( 'wp_head', array( $this, 'add_loader_styles_to_header' ), 99 );
12
  $this->remove_default_loading_styles();
13
- /**
14
- * Add custom JS to the customizer
15
- */
16
- add_action( 'wp_footer', array( $this, 'customizer_scripts' ) );
17
-
18
  }
19
 
20
  /**
3
  if ( ! class_exists( 'Kirki_Customizer_Scripts_Loading' ) ) {
4
  class Kirki_Customizer_Scripts_Loading extends Kirki_Customizer {
5
  public function __construct() {
 
6
  /**
7
  * Add the "loading" icon
8
  */
9
  add_action( 'wp_footer', array( $this, 'add_loader_to_footer' ) );
10
  add_action( 'wp_head', array( $this, 'add_loader_styles_to_header' ), 99 );
11
  $this->remove_default_loading_styles();
 
 
 
 
 
12
  }
13
 
14
  /**
includes/class-kirki-customizer-scripts-postmessage.php CHANGED
File without changes
includes/class-kirki-customizer-scripts-tooltips.php CHANGED
File without changes
includes/class-kirki-customizer-scripts.php CHANGED
File without changes
includes/class-kirki-customizer.php CHANGED
File without changes
includes/class-kirki-field-sanitize.php CHANGED
File without changes
includes/class-kirki-field.php CHANGED
@@ -33,11 +33,11 @@ if ( ! class_exists( 'Kirki_Field' ) ) {
33
  /**
34
  * Create the scripts for postMessage to properly work
35
  */
36
- // Kirki_Customizer_Scripts_PostMessage::generate_script( $this->args );
37
  /**
38
  * Create the scripts for tooltips.
39
  */
40
- // Kirki_Customizer_Scripts_Tooltips::generate_script( $this->args );
41
  }
42
 
43
  }
33
  /**
34
  * Create the scripts for postMessage to properly work
35
  */
36
+ Kirki_Customizer_Scripts_PostMessage::generate_script( $this->args );
37
  /**
38
  * Create the scripts for tooltips.
39
  */
40
+ Kirki_Customizer_Scripts_Tooltips::generate_script( $this->args );
41
  }
42
 
43
  }
includes/class-kirki-google-fonts-registry.php CHANGED
File without changes
includes/class-kirki-google-fonts-scripts.php CHANGED
File without changes
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-styles-output-css.php CHANGED
File without changes
includes/class-kirki-toolkit.php CHANGED
@@ -21,7 +21,7 @@ if ( ! class_exists( 'Kirki_Toolkit' ) ) {
21
  /** @var Kirki The only instance of this class */
22
  public static $instance = null;
23
 
24
- public static $version = '2.0.6';
25
 
26
  public $font_registry = null;
27
  public $scripts = null;
21
  /** @var Kirki The only instance of this class */
22
  public static $instance = null;
23
 
24
+ public static $version = '2.0.7';
25
 
26
  public $font_registry = null;
27
  public $scripts = null;
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
File without changes
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-text-control.php CHANGED
File without changes
includes/controls/class-kirki-controls-textarea-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/settings/class-kirki-settings-repeater-setting.php CHANGED
File without changes
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.0.6
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.0.7
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.0.6\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
7
- "POT-Creation-Date: 2016-01-17 22:55:02+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.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/kirki\n"
7
+ "POT-Creation-Date: 2016-01-18 22:11:18+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
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.0
6
  Tested up to: 4.3
7
- Stable tag: 2.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,12 +115,22 @@ Please visit https://github.com/aristath/kirki/wiki/Embedding-in-a-theme for doc
115
 
116
  == Sample Theme ==
117
 
118
- To get an idea on how to include Kirki in your next project, you can take a look at the [Ornea theme](https://github.com/aristath/ornea).
119
 
120
  == Changelog ==
121
 
 
 
 
 
 
 
 
 
122
  = 2.0.6 =
123
 
 
 
124
  * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
125
  * FIX: Correctly check current value of checkbox control. (props @andrezrv)
126
  * FIX: Bug in the sortable field (props @daviedR)
4
  Donate link: http://kirki.org/
5
  Requires at least: 4.0
6
  Tested up to: 4.3
7
+ Stable tag: 2.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Sample Theme ==
117
 
118
+ To get an idea on how to include Kirki in your next project, you can take a look at the [Ornea theme](https://github.com/aristath/ornea) or use our test theme from https://github.com/aristath/kirki-demo.
119
 
120
  == Changelog ==
121
 
122
+ = 2.0.7 =
123
+
124
+ January 19, 2016, dev time: 1 hour
125
+
126
+ * FIX: Narrow the scope of "multicheck" modification checker (props @chetzof)
127
+ * FIX: PHP warnings due to invalid callback method
128
+ * FIX: postMessage bug introduced in 2.0.6 (2 lines commented-out)
129
+
130
  = 2.0.6 =
131
 
132
+ January 18, 2016, dev time: 7 hours
133
+
134
  * FIX: Fix active callback for multidimensional arrays. (props @andrezrv)
135
  * FIX: Correctly check current value of checkbox control. (props @andrezrv)
136
  * FIX: Bug in the sortable field (props @daviedR)
tests/test-class-kirki-control.php CHANGED
File without changes
tests/test-class-kirki-customizer-scripts-postmessage.php CHANGED
File without changes
tests/test-kirki-field-sanitize.php CHANGED
File without changes