Customify – A Theme Customizer Booster - Version 2.5.2

Version Description

  • Improved the predictability and resilience of the Style Manager controls.
Download this release

Release Info

Developer pixelgrade
Plugin Icon Customify – A Theme Customizer Booster
Version 2.5.2
Comparing to
See all releases

Code changes from version 2.5.1 to 2.5.2

customify.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Customify
4
  * Plugin URI: https://wordpress.org/plugins/customify/
5
  * Description: A Theme Customizer Booster to easily and consistently customize Fonts, Colors, and other options for your site.
6
- * Version: 2.5.1
7
  * Author: Pixelgrade
8
  * Author URI: https://pixelgrade.com
9
  * Author Email: contact@pixelgrade.com
@@ -32,7 +32,7 @@ require_once 'includes/extras.php';
32
  function PixCustomifyPlugin() {
33
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php';
34
 
35
- return PixCustomifyPlugin::instance( __FILE__, '2.5.1' );
36
  }
37
 
38
  // Now get the party started
3
  * Plugin Name: Customify
4
  * Plugin URI: https://wordpress.org/plugins/customify/
5
  * Description: A Theme Customizer Booster to easily and consistently customize Fonts, Colors, and other options for your site.
6
+ * Version: 2.5.2
7
  * Author: Pixelgrade
8
  * Author URI: https://pixelgrade.com
9
  * Author Email: contact@pixelgrade.com
32
  function PixCustomifyPlugin() {
33
  require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixcustomify.php';
34
 
35
+ return PixCustomifyPlugin::instance( __FILE__, '2.5.2' );
36
  }
37
 
38
  // Now get the party started
includes/class-customify-style-manager.php CHANGED
@@ -536,7 +536,7 @@ if ( ! class_exists( 'Customify_Style_Manager' ) ) {
536
  );
537
  foreach ( $options_to_remove as $option_key ) {
538
  if ( isset( $color_palettes_options[ $option_key ] ) ) {
539
- unset( $color_palettes_options[ $option_key ] );
540
  }
541
  }
542
 
536
  );
537
  foreach ( $options_to_remove as $option_key ) {
538
  if ( isset( $color_palettes_options[ $option_key ] ) ) {
539
+ $color_palettes_options[ $option_key ]['type'] = 'hidden_control';
540
  }
541
  }
542
 
includes/lib/class-customify-array.php CHANGED
@@ -283,11 +283,14 @@ if ( ! class_exists( 'Customify_Array' ) ) {
283
  $append = array( $append );
284
  }
285
  foreach ( $append as $key => $value ) {
286
- if ( ! array_key_exists( $key, $base ) and ! is_numeric( $key ) ) {
287
  $base[ $key ] = $append[ $key ];
288
  continue;
289
  }
290
- if ( is_array( $value ) or ( array_key_exists( $key, $base ) and is_array( $base[ $key ] ) ) ) {
 
 
 
291
  $base[ $key ] = self::array_merge_recursive_distinct( $base[ $key ], $append[ $key ] );
292
  } else if ( is_numeric( $key ) ) {
293
  if ( ! in_array( $value, $base ) ) {
283
  $append = array( $append );
284
  }
285
  foreach ( $append as $key => $value ) {
286
+ if ( ! array_key_exists( $key, $base ) && ! is_numeric( $key ) ) {
287
  $base[ $key ] = $append[ $key ];
288
  continue;
289
  }
290
+ if ( is_array( $value ) || ( array_key_exists( $key, $base ) && is_array( $base[ $key ] ) ) ) {
291
+ if ( ! isset( $base[ $key ] ) ) {
292
+ $base[ $key ] = array();
293
+ }
294
  $base[ $key ] = self::array_merge_recursive_distinct( $base[ $key ], $append[ $key ] );
295
  } else if ( is_numeric( $key ) ) {
296
  if ( ! in_array( $value, $base ) ) {
js/customizer/color-palettes.js CHANGED
@@ -779,10 +779,21 @@ let ColorPalettes = (function ($, exports, wp) {
779
  }
780
 
781
  const reloadConnectedFields = () => {
782
- let tempSettings = JSON.parse(JSON.stringify(window.settingsClone))
 
 
783
 
784
- if (typeof $('[name*="sm_color_diversity"]:checked').data('default') === 'undefined'
785
- || typeof $('[name*="sm_coloration_level"]:checked').data('default') === 'undefined') {
 
 
 
 
 
 
 
 
 
786
  const primaryRatio = $(primary_color_selector).val() / 100
787
  const secondaryRatio = $(secondary_color_selector).val() / 100
788
  const tertiaryRatio = $(tertiary_color_selector).val() / 100
@@ -791,15 +802,14 @@ let ColorPalettes = (function ($, exports, wp) {
791
  tempSettings = moveConnectedFields(tempSettings, 'sm_dark_secondary', 'sm_color_secondary', secondaryRatio)
792
  tempSettings = moveConnectedFields(tempSettings, 'sm_dark_tertiary', 'sm_color_tertiary', tertiaryRatio)
793
 
794
- var diversity = $('[name*="sm_color_diversity"]:checked').val()
795
- var diversity_variation = getSwapMap('color_diversity_low')
796
- tempSettings = swapConnectedFields(tempSettings, diversity_variation)
797
 
798
- if (diversity === 'medium') {
799
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_primary', 'sm_color_secondary', 0.5)
800
  }
801
 
802
- if (diversity === 'high') {
803
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_primary', 'sm_color_secondary', 0.67)
804
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_secondary', 'sm_color_tertiary', 0.50)
805
  }
779
  }
780
 
781
  const reloadConnectedFields = () => {
782
+ var tempSettings = JSON.parse(JSON.stringify(window.settingsClone));
783
+ var diversityOptions = $('[name*="sm_color_diversity"]');
784
+ var colorationOptions = $('[name*="sm_coloration_level"]');
785
 
786
+ var hasDiversityOption = !! diversityOptions.length;
787
+ var isDefaultDiversitySelected = typeof diversityOptions.filter( 'checked' ).data( 'default' ) !== 'undefined';
788
+ var isDefaultDiversity = hasDiversityOption ? isDefaultDiversitySelected : true;
789
+
790
+ var hasColorationOptions = !! colorationOptions.length;
791
+ var isDefaultColorationSelected = typeof $('[name*="sm_coloration_level"]:checked').data('default') !== 'undefined';
792
+ var isDefaultColoration = hasColorationOptions ? isDefaultColorationSelected : true;
793
+
794
+ var selectedDiversity = hasDiversityOption ? $('[name*="sm_color_diversity"]:checked').val() : wp.customize( 'sm_color_diversity' )();
795
+
796
+ if ( ! isDefaultDiversity || ! isDefaultColoration ) {
797
  const primaryRatio = $(primary_color_selector).val() / 100
798
  const secondaryRatio = $(secondary_color_selector).val() / 100
799
  const tertiaryRatio = $(tertiary_color_selector).val() / 100
802
  tempSettings = moveConnectedFields(tempSettings, 'sm_dark_secondary', 'sm_color_secondary', secondaryRatio)
803
  tempSettings = moveConnectedFields(tempSettings, 'sm_dark_tertiary', 'sm_color_tertiary', tertiaryRatio)
804
 
805
+ var diversity_variation = getSwapMap('color_diversity_low');
806
+ tempSettings = swapConnectedFields(tempSettings, diversity_variation);
 
807
 
808
+ if (selectedDiversity === 'medium') {
809
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_primary', 'sm_color_secondary', 0.5)
810
  }
811
 
812
+ if (selectedDiversity === 'high') {
813
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_primary', 'sm_color_secondary', 0.67)
814
  tempSettings = moveConnectedFields(tempSettings, 'sm_color_secondary', 'sm_color_tertiary', 0.50)
815
  }
readme.txt CHANGED
@@ -1,316 +1,319 @@
1
- === Customify - A Theme Customizer Booster ===
2
- Contributors: pixelgrade, vlad.olaru, babbardel, razvanonofrei
3
- Tags: customizer, css, editor, gutenberg, live, preview, customizer
4
- Requires at least: 4.9.9
5
- Tested up to: 5.2.2
6
- Stable tag: 2.5.0
7
- License: GPLv2 or later
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
-
10
- Customify is a Theme Customizer Booster to easily customize Fonts, Colors, and other options for your site.
11
-
12
- == Description ==
13
-
14
- With [Customify](https://github.com/pixelgrade/customify), developers can easily create **advanced theme-specific options** inside the WordPress Customizer. Using those options, a user can make presentational changes without having to know or edit the theme code.
15
-
16
- **[Types of Fields](https://github.com/pixelgrade/customify#list_of_fields)**
17
-
18
- * **Color.** A color picker used to control any text or background color of an element.
19
-
20
- * **Font.** A real font selector which includes a flexible library of fonts(Fonto, google fonts or added via fliter) and allows you to customize, with live preview, properties like font-weight, size, letter spacing, text align, text decoration etc.
21
-
22
- * **Typography.** (Deprecated) A series of typographic options that allow you to access the massive **Google Fonts library** and make them available inside your theme customizer.
23
-
24
- * **CSS Editor.** A powerful **Live CSS Editor** directly into your customizer! Useful for better control over the appearance of your theme without the need to create a child theme or worry about theme updates overwriting your customizations.
25
-
26
- * **Text Field.** A simple text field that allows you to customize elements like Site Title or Footer Credits.
27
-
28
- * **Select Dropdown.** A drop-down menu selector to be used when you have to choose from multiple options.
29
-
30
- * **Range.** The html5 range element can be used to select number values.
31
-
32
- * **[Preset](https://github.com/pixelgrade/customify/blob/master/README.md#presets_title).** A field which allows you to change a group of Customify fields.
33
-
34
- * **And more others [this is the full list](https://github.com/pixelgrade/customify#list_of_fields)
35
-
36
- **Made with love by Pixelgrade**
37
-
38
- == Credits ==
39
-
40
- * [Select2](https://select2.github.io) JavaScript library - License: MIT
41
- * [CSSOM.js](https://github.com/NV/CSSOM) JavaScript library - License: MIT
42
- * [Ace Editor](https://ace.c9.io/) JavaScript editor - License: BSD
43
- * [jQuery React](https://github.com/natedavisolds/jquery-react) JavaScript jQuery plugin - License: MIT
44
- * Default [image](https://unsplash.com/photos/OgM4RKdr2kY) for Style Manager Color Palette control - License: (Unsplash)[https://unsplash.com/license]
45
-
46
- == Changelog ==
47
-
48
- = 2.5.1 =
49
- * Styling improvements to the Style Manager controls.
50
- * Fixed a strange bug that would result in a fatal error upon activation.
51
-
52
- = 2.5.0 =
53
- * JavaScript cleanup and performance enhancements
54
- * Fixed some bugs with the Style Manager.
55
- * Fixed some rare bugs with the plugin config merge.
56
-
57
- = 2.4.0 =
58
- * Big performance enhancements related to how customization settings and configurations get loaded.
59
- * Fixed a nasty regression that caused customization settings saved in a option to not be loaded, causing styles to be missing.
60
- * Pretty important code refactoring and cleanup to make things more predictable and stable.
61
-
62
- = 2.3.5.1 =
63
- * Minor configuration fix.
64
-
65
- = 2.3.5 =
66
- * Minor refactoring.
67
- * Fixed issues where customization values were not stored properly.
68
-
69
- = 2.3.4 =
70
- * Fixed warnings that were appearing when PHP has version 7.2.0+.
71
-
72
- = 2.3.3 =
73
- * Fixed Google Fonts not working in the new block editor (Gutenberg).
74
-
75
- = 2.3.2 =
76
- * Fixed the fact that Customizer style changes were not reflected in the live preview. A problem introduced in the previous update.
77
-
78
- = 2.3.1 =
79
- * Fixed some warnings that appeared in certain situations.
80
-
81
- = 2.3.0 =
82
- * Improved support for the new **Gutenberg block editor.** Compatible with the latest WordPress 5.0 beta version.
83
- * Big **performance improvements** both in the frontend and also in the Customizer.
84
- * Cleanup regarding old and deprecated features.
85
-
86
- = 2.2.0 =
87
- * Added support for the new **Gutenberg block editor.**
88
-
89
- = 2.1.3 =
90
- * Improve Customizer section grouping in the Theme Options Panel
91
- * Fix Font Palettes giving huge sizes to font options set in ems
92
-
93
- = 2.1.2 =
94
- * Avoid short array syntax to ensure PHP 5.2 compatibility
95
-
96
- = 2.1.1 =
97
- * Hide the Fonts section for themes that do not declare support for Font Palettes
98
-
99
- = 2.1.0 =
100
- * This new version of Customify lets you conveniently change the design of your site with font palettes. Easy as pie.
101
- * Added previews for color palette filters.
102
-
103
- = 2.0.2 =
104
- * Fixed bug where no CSS was output for some settings with default value.
105
-
106
- = 2.0.1 =
107
- * Minor fix for the color pickers.
108
-
109
- = 2.0.0 =
110
- * Added the much improved and overall awesome **Color Palettes v2.0 styling system** (all modesty aside).
111
- * Minor improvements that are secondary to the one above. Enjoy.
112
-
113
- = 1.9.1 =
114
- * Fixed the Customizer JS crash due to wrong merge.
115
-
116
- = 1.9.0 =
117
- * Added ability to modify existing Customizer panels, sections, controls
118
- * Added system for admin notifications
119
- * Overall enhancements for more performance and stability
120
-
121
- = 1.8.0 =
122
- * Added altered state for colors in the current color palette when any of the controls connected to the color has been modified
123
- * Added the colors from the current palette to all the color pickers in the Theme Options section
124
- * Fixed bug where default values were being forced in Customizer Preview at first load
125
- * Fixed bug preventing CSS output for color controls in the Style Manager section of the Customizer
126
-
127
- = 1.7.4 =
128
- * Reorganized Customizer custom sections and grouped them into Theme Options, thus making the Style Manager panel stand out.
129
- * Refactored parts for more performance and clarity.
130
-
131
- = 1.7.3 =
132
- * Added HEX field for colors in the current Color Palette
133
- * Updated Google Webfonts list
134
-
135
- = 1.7.2 =
136
- * Fixed issue with **Color Palettes** working only after choosing one variation
137
- * Fixed bug preventing some options to live update the Customizer preview
138
-
139
- = 1.7.1 =
140
- * Fixed issue with **Color Palettes** overwriting custom colors in Live Preview
141
-
142
- = 1.7.0 =
143
- * Added **Dynamic Color Palettes** for a smoother experience
144
- * Fixed issue with the Style Manager crashing the Customizer when not using a theme with support for it.
145
-
146
- = 1.6.5 =
147
- * Added **Color Palettes Variations** to the Style Manager Customizer section
148
- * Improved Color Palettes logic to better handle differences between various color palettes
149
- * Improved master color connected fields logic to allow for a smoother experience
150
- * Updated Google Fonts list
151
- * Fixed some issues with the connected fields logic
152
- * Fixed some Customizer preview scaling issues
153
- * Fixed a potential bug with the options' CSS config (multiple configs with the same property but with different selectors)
154
-
155
- = 1.6.0 =
156
- * Added **Style Manager** Customizer section with theme supports logic
157
- * Added connected fields logic for easy chaining of Customizer controls
158
- * Fixed a couple of styling inconsistencies regarding the Customizer
159
-
160
- = 1.5.7 =
161
- * Improved development logic for easier testing
162
- * Improved and fixed reset settings buttons
163
- * Fixed a couple of styling inconsistencies regarding the Customizer
164
-
165
- = 1.5.6 =
166
- * New Fields Styling Improvements
167
-
168
- = 1.5.5 =
169
- * Added Compatibility with WordPress 4.9
170
-
171
- = 1.5.4 =
172
- * Allow 0 values for fonts line-height and letter-spacing
173
- * Improved the plugin loading process and the CSS inline output
174
- * Fixed small style issues for the Customizer bar
175
-
176
- = 1.5.3 =
177
- * Update Style for WordPress 4.8
178
- * Updated Google Fonts list
179
- * Fixed the double output of the custom CSS
180
- * Fixed Menu Add Button overlap
181
-
182
- = 1.5.2 =
183
- * Fixed Background field output
184
- * Fixed Font's preview in wp-editor
185
- * Added Reset Theme Mods tool
186
-
187
- = 1.5.1 =
188
- * Added support for `active_callback` argument for customizer controls
189
- * Customizer assets refactor
190
-
191
- = 1.5.0 =
192
- * Plugin core refactored for a better performance
193
- * Fixed Font Weight saving
194
- * Fixed Font Subset saving
195
- * Fix Select2 enqueue_script
196
-
197
- = 1.4.2 =
198
- * Improved Font style output in front-end. Now is just one style element with all the fonts inside.
199
- * Improved Fonts panels, now only one can be opened to avoid confusion
200
- * Fixed Presets with fonts
201
- * Fixed Google Fonts with italic weights
202
- * Fixed Range input field
203
- * Small Fixes
204
-
205
- = 1.4.1 =
206
- * Fixed Multiple local fonts
207
-
208
- = 1.4.0 =
209
- * Make Customify compatible with the [4.7 customizer changes](https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions)
210
- * Add `show_if` [config option](https://github.com/pixelgrade/customify#conditional-fields)
211
- * Fix Conflict with Jetpack - Related posts
212
- * Fix Javascript callbacks loss
213
- * Switch de default storage from option to theme_mod
214
- * Fixed Incorrect Color Panel Height
215
- * Fixed Font field weight in customizer preview
216
-
217
- = 1.3.1 =
218
- * Fixed compatibility with PHP <= 5.3.x
219
-
220
- = 1.3.0 =
221
- * Added the new and awesome `font` selector
222
- * The live CSS editor is now removed for 4.7, but don't worry, your style will be imported into the new [CSS Editor](https://make.wordpress.org/core/2016/11/26/extending-the-custom-css-editor/)
223
- * Added compatibility with 4.7
224
-
225
- = 1.2.7 =
226
- * Added capability to control the Jetpack Sharing default options
227
-
228
- = 1.2.6 =
229
- * Added capability to define Jetpack default and hidden modules
230
-
231
- = 1.2.5 =
232
- * Fixed WordPress 4.7 incompatibilities
233
-
234
- = 1.2.4 =
235
- * Added: Support for Fonto plugin
236
- * Improved the font selector
237
- * Fixed presets on ssl
238
-
239
- = 1.2.3 =
240
- * Added: Support for conditional fields display
241
- * Fixed weights for local fonts
242
- * Fixed Ace editor warnings
243
- * Fixed some rare PHP warnings
244
-
245
- = 1.2.2 =
246
- * Added: Customizer styling
247
- * Fixed some rare warnings with google fonts
248
-
249
- = 1.2.1 =
250
- * Improve default fonts parse, and fix some legacy cases
251
- * Remove google api code when google fonts is disabled
252
-
253
- = 1.2.0 =
254
- * Added: Compatibility with WordPress 4.4.0
255
- * Added: Presets can now set fonts and font weights
256
- * Fixed: Now range fields can have `0` as default
257
- * Fixed: Font subsets style
258
- * Fixed: Fixed some PHP and javascript warnings
259
- * Updated: Font field style
260
-
261
- = 1.1.7 =
262
- * Added: Compatibility with WordPress 4.3.1
263
- * Added: Custom fonts can be used now as defaults
264
- * Fixed: Fonts preview
265
- * Fixed: Some rare errors with PHP 5.2.x
266
- * Fixed: Some font variants warnings with PHP 5.2.x
267
-
268
- = 1.1.6 =
269
- * Added: Custom background field with bacgkround-* css properties selects
270
- * Added: Compatibility with WordPress 4.3.x
271
- * Added: Compatibility with PHP 5.2.x
272
- * Improved: Live CSS Editor is now live...for real
273
- * Updated: ACE Editor
274
- * Updated: The list of google fonts is now up to date
275
-
276
-
277
- = 1.1.5 =
278
- * Added: Live-preview support for `text` and `textarea` fields.
279
- * Added: **Unit** parameter for css values(now we can use all the css units like em, rem, vh, all of them :D).
280
- * Fixed: Editor style for Typekit fonts.
281
- * Fixed: Editor style with default values.
282
- * Fixed: Live Preview small fixes
283
- * Updated: The list of google fonts is now up to date
284
-
285
- = 1.1.4 =
286
- * Added: Ace Editor field.
287
- * Added: HTML field.
288
- * Added: Sanitize callbacks parameter and a default sanitizer for the checkbox field.
289
- * Fixed: Slight styling issues.
290
-
291
- = 1.1.2 =
292
- * Added: Option to add Customify's changes in the editor.
293
- * Added: Possibility to load Typekit fonts through config.
294
-
295
- = 1.1.1 =
296
- * Added: Radio input with image label.
297
- * Added: Javascript callback for css properties.
298
- * Update: Updated Ace editor.
299
-
300
- = 1.1.0 =
301
- * Added: [Preset](https://github.com/pixelgrade/customify/blob/master/README.md#presets_title) field type.
302
- * Added: Reset buttons (disabled by default).
303
- * Added: Button field.
304
-
305
- == Installation ==
306
-
307
- 1. Install Customify either via the WordPress.org plugin directory, or by uploading the files to your `/wp-content/plugins/` directory
308
- 2. After activating Customify go to `Appearance → Customize` and have fun with the new felds
309
- 3. For further instructions and how to setup your own fields, read our [detailed documentation](http://github.com/pixelgrade/customify/blob/dev/README.md)
310
-
311
- == Frequently Asked Questions ==
312
-
313
- = Is there a way to reset Customify to defaults? =
314
- Reset buttons are available for all the options or for individual sections or panels.
315
- They are disabled by default to avoid useless/accidental resets.
316
- To enable them simply go to Dashboard -> Settings -> Customify and check "Enable Reset Buttons"
 
 
 
1
+ === Customify - A Theme Customizer Booster ===
2
+ Contributors: pixelgrade, vlad.olaru, babbardel, razvanonofrei
3
+ Tags: customizer, css, editor, gutenberg, live, preview, customizer
4
+ Requires at least: 4.9.9
5
+ Tested up to: 5.2.2
6
+ Stable tag: 2.5.1
7
+ License: GPLv2 or later
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+
10
+ Customify is a Theme Customizer Booster to easily customize Fonts, Colors, and other options for your site.
11
+
12
+ == Description ==
13
+
14
+ With [Customify](https://github.com/pixelgrade/customify), developers can easily create **advanced theme-specific options** inside the WordPress Customizer. Using those options, a user can make presentational changes without having to know or edit the theme code.
15
+
16
+ **[Types of Fields](https://github.com/pixelgrade/customify#list_of_fields)**
17
+
18
+ * **Color.** A color picker used to control any text or background color of an element.
19
+
20
+ * **Font.** A real font selector which includes a flexible library of fonts(Fonto, google fonts or added via fliter) and allows you to customize, with live preview, properties like font-weight, size, letter spacing, text align, text decoration etc.
21
+
22
+ * **Typography.** (Deprecated) A series of typographic options that allow you to access the massive **Google Fonts library** and make them available inside your theme customizer.
23
+
24
+ * **CSS Editor.** A powerful **Live CSS Editor** directly into your customizer! Useful for better control over the appearance of your theme without the need to create a child theme or worry about theme updates overwriting your customizations.
25
+
26
+ * **Text Field.** A simple text field that allows you to customize elements like Site Title or Footer Credits.
27
+
28
+ * **Select Dropdown.** A drop-down menu selector to be used when you have to choose from multiple options.
29
+
30
+ * **Range.** The html5 range element can be used to select number values.
31
+
32
+ * **[Preset](https://github.com/pixelgrade/customify/blob/master/README.md#presets_title).** A field which allows you to change a group of Customify fields.
33
+
34
+ * **And more others [this is the full list](https://github.com/pixelgrade/customify#list_of_fields)
35
+
36
+ **Made with love by Pixelgrade**
37
+
38
+ == Credits ==
39
+
40
+ * [Select2](https://select2.github.io) JavaScript library - License: MIT
41
+ * [CSSOM.js](https://github.com/NV/CSSOM) JavaScript library - License: MIT
42
+ * [Ace Editor](https://ace.c9.io/) JavaScript editor - License: BSD
43
+ * [jQuery React](https://github.com/natedavisolds/jquery-react) JavaScript jQuery plugin - License: MIT
44
+ * Default [image](https://unsplash.com/photos/OgM4RKdr2kY) for Style Manager Color Palette control - License: (Unsplash)[https://unsplash.com/license]
45
+
46
+ == Changelog ==
47
+
48
+ = 2.5.2 =
49
+ * Improved the predictability and resilience of the Style Manager controls.
50
+
51
+ = 2.5.1 =
52
+ * Styling improvements to the Style Manager controls.
53
+ * Fixed a strange bug that would result in a fatal error upon activation.
54
+
55
+ = 2.5.0 =
56
+ * JavaScript cleanup and performance enhancements
57
+ * Fixed some bugs with the Style Manager.
58
+ * Fixed some rare bugs with the plugin config merge.
59
+
60
+ = 2.4.0 =
61
+ * Big performance enhancements related to how customization settings and configurations get loaded.
62
+ * Fixed a nasty regression that caused customization settings saved in a option to not be loaded, causing styles to be missing.
63
+ * Pretty important code refactoring and cleanup to make things more predictable and stable.
64
+
65
+ = 2.3.5.1 =
66
+ * Minor configuration fix.
67
+
68
+ = 2.3.5 =
69
+ * Minor refactoring.
70
+ * Fixed issues where customization values were not stored properly.
71
+
72
+ = 2.3.4 =
73
+ * Fixed warnings that were appearing when PHP has version 7.2.0+.
74
+
75
+ = 2.3.3 =
76
+ * Fixed Google Fonts not working in the new block editor (Gutenberg).
77
+
78
+ = 2.3.2 =
79
+ * Fixed the fact that Customizer style changes were not reflected in the live preview. A problem introduced in the previous update.
80
+
81
+ = 2.3.1 =
82
+ * Fixed some warnings that appeared in certain situations.
83
+
84
+ = 2.3.0 =
85
+ * Improved support for the new **Gutenberg block editor.** Compatible with the latest WordPress 5.0 beta version.
86
+ * Big **performance improvements** both in the frontend and also in the Customizer.
87
+ * Cleanup regarding old and deprecated features.
88
+
89
+ = 2.2.0 =
90
+ * Added support for the new **Gutenberg block editor.**
91
+
92
+ = 2.1.3 =
93
+ * Improve Customizer section grouping in the Theme Options Panel
94
+ * Fix Font Palettes giving huge sizes to font options set in ems
95
+
96
+ = 2.1.2 =
97
+ * Avoid short array syntax to ensure PHP 5.2 compatibility
98
+
99
+ = 2.1.1 =
100
+ * Hide the Fonts section for themes that do not declare support for Font Palettes
101
+
102
+ = 2.1.0 =
103
+ * This new version of Customify lets you conveniently change the design of your site with font palettes. Easy as pie.
104
+ * Added previews for color palette filters.
105
+
106
+ = 2.0.2 =
107
+ * Fixed bug where no CSS was output for some settings with default value.
108
+
109
+ = 2.0.1 =
110
+ * Minor fix for the color pickers.
111
+
112
+ = 2.0.0 =
113
+ * Added the much improved and overall awesome **Color Palettes v2.0 styling system** (all modesty aside).
114
+ * Minor improvements that are secondary to the one above. Enjoy.
115
+
116
+ = 1.9.1 =
117
+ * Fixed the Customizer JS crash due to wrong merge.
118
+
119
+ = 1.9.0 =
120
+ * Added ability to modify existing Customizer panels, sections, controls
121
+ * Added system for admin notifications
122
+ * Overall enhancements for more performance and stability
123
+
124
+ = 1.8.0 =
125
+ * Added altered state for colors in the current color palette when any of the controls connected to the color has been modified
126
+ * Added the colors from the current palette to all the color pickers in the Theme Options section
127
+ * Fixed bug where default values were being forced in Customizer Preview at first load
128
+ * Fixed bug preventing CSS output for color controls in the Style Manager section of the Customizer
129
+
130
+ = 1.7.4 =
131
+ * Reorganized Customizer custom sections and grouped them into Theme Options, thus making the Style Manager panel stand out.
132
+ * Refactored parts for more performance and clarity.
133
+
134
+ = 1.7.3 =
135
+ * Added HEX field for colors in the current Color Palette
136
+ * Updated Google Webfonts list
137
+
138
+ = 1.7.2 =
139
+ * Fixed issue with **Color Palettes** working only after choosing one variation
140
+ * Fixed bug preventing some options to live update the Customizer preview
141
+
142
+ = 1.7.1 =
143
+ * Fixed issue with **Color Palettes** overwriting custom colors in Live Preview
144
+
145
+ = 1.7.0 =
146
+ * Added **Dynamic Color Palettes** for a smoother experience
147
+ * Fixed issue with the Style Manager crashing the Customizer when not using a theme with support for it.
148
+
149
+ = 1.6.5 =
150
+ * Added **Color Palettes Variations** to the Style Manager Customizer section
151
+ * Improved Color Palettes logic to better handle differences between various color palettes
152
+ * Improved master color connected fields logic to allow for a smoother experience
153
+ * Updated Google Fonts list
154
+ * Fixed some issues with the connected fields logic
155
+ * Fixed some Customizer preview scaling issues
156
+ * Fixed a potential bug with the options' CSS config (multiple configs with the same property but with different selectors)
157
+
158
+ = 1.6.0 =
159
+ * Added **Style Manager** Customizer section with theme supports logic
160
+ * Added connected fields logic for easy chaining of Customizer controls
161
+ * Fixed a couple of styling inconsistencies regarding the Customizer
162
+
163
+ = 1.5.7 =
164
+ * Improved development logic for easier testing
165
+ * Improved and fixed reset settings buttons
166
+ * Fixed a couple of styling inconsistencies regarding the Customizer
167
+
168
+ = 1.5.6 =
169
+ * New Fields Styling Improvements
170
+
171
+ = 1.5.5 =
172
+ * Added Compatibility with WordPress 4.9
173
+
174
+ = 1.5.4 =
175
+ * Allow 0 values for fonts line-height and letter-spacing
176
+ * Improved the plugin loading process and the CSS inline output
177
+ * Fixed small style issues for the Customizer bar
178
+
179
+ = 1.5.3 =
180
+ * Update Style for WordPress 4.8
181
+ * Updated Google Fonts list
182
+ * Fixed the double output of the custom CSS
183
+ * Fixed Menu Add Button overlap
184
+
185
+ = 1.5.2 =
186
+ * Fixed Background field output
187
+ * Fixed Font's preview in wp-editor
188
+ * Added Reset Theme Mods tool
189
+
190
+ = 1.5.1 =
191
+ * Added support for `active_callback` argument for customizer controls
192
+ * Customizer assets refactor
193
+
194
+ = 1.5.0 =
195
+ * Plugin core refactored for a better performance
196
+ * Fixed Font Weight saving
197
+ * Fixed Font Subset saving
198
+ * Fix Select2 enqueue_script
199
+
200
+ = 1.4.2 =
201
+ * Improved Font style output in front-end. Now is just one style element with all the fonts inside.
202
+ * Improved Fonts panels, now only one can be opened to avoid confusion
203
+ * Fixed Presets with fonts
204
+ * Fixed Google Fonts with italic weights
205
+ * Fixed Range input field
206
+ * Small Fixes
207
+
208
+ = 1.4.1 =
209
+ * Fixed Multiple local fonts
210
+
211
+ = 1.4.0 =
212
+ * Make Customify compatible with the [4.7 customizer changes](https://make.wordpress.org/core/2016/10/12/customize-changesets-technical-design-decisions)
213
+ * Add `show_if` [config option](https://github.com/pixelgrade/customify#conditional-fields)
214
+ * Fix Conflict with Jetpack - Related posts
215
+ * Fix Javascript callbacks loss
216
+ * Switch de default storage from option to theme_mod
217
+ * Fixed Incorrect Color Panel Height
218
+ * Fixed Font field weight in customizer preview
219
+
220
+ = 1.3.1 =
221
+ * Fixed compatibility with PHP <= 5.3.x
222
+
223
+ = 1.3.0 =
224
+ * Added the new and awesome `font` selector
225
+ * The live CSS editor is now removed for 4.7, but don't worry, your style will be imported into the new [CSS Editor](https://make.wordpress.org/core/2016/11/26/extending-the-custom-css-editor/)
226
+ * Added compatibility with 4.7
227
+
228
+ = 1.2.7 =
229
+ * Added capability to control the Jetpack Sharing default options
230
+
231
+ = 1.2.6 =
232
+ * Added capability to define Jetpack default and hidden modules
233
+
234
+ = 1.2.5 =
235
+ * Fixed WordPress 4.7 incompatibilities
236
+
237
+ = 1.2.4 =
238
+ * Added: Support for Fonto plugin
239
+ * Improved the font selector
240
+ * Fixed presets on ssl
241
+
242
+ = 1.2.3 =
243
+ * Added: Support for conditional fields display
244
+ * Fixed weights for local fonts
245
+ * Fixed Ace editor warnings
246
+ * Fixed some rare PHP warnings
247
+
248
+ = 1.2.2 =
249
+ * Added: Customizer styling
250
+ * Fixed some rare warnings with google fonts
251
+
252
+ = 1.2.1 =
253
+ * Improve default fonts parse, and fix some legacy cases
254
+ * Remove google api code when google fonts is disabled
255
+
256
+ = 1.2.0 =
257
+ * Added: Compatibility with WordPress 4.4.0
258
+ * Added: Presets can now set fonts and font weights
259
+ * Fixed: Now range fields can have `0` as default
260
+ * Fixed: Font subsets style
261
+ * Fixed: Fixed some PHP and javascript warnings
262
+ * Updated: Font field style
263
+
264
+ = 1.1.7 =
265
+ * Added: Compatibility with WordPress 4.3.1
266
+ * Added: Custom fonts can be used now as defaults
267
+ * Fixed: Fonts preview
268
+ * Fixed: Some rare errors with PHP 5.2.x
269
+ * Fixed: Some font variants warnings with PHP 5.2.x
270
+
271
+ = 1.1.6 =
272
+ * Added: Custom background field with bacgkround-* css properties selects
273
+ * Added: Compatibility with WordPress 4.3.x
274
+ * Added: Compatibility with PHP 5.2.x
275
+ * Improved: Live CSS Editor is now live...for real
276
+ * Updated: ACE Editor
277
+ * Updated: The list of google fonts is now up to date
278
+
279
+
280
+ = 1.1.5 =
281
+ * Added: Live-preview support for `text` and `textarea` fields.
282
+ * Added: **Unit** parameter for css values(now we can use all the css units like em, rem, vh, all of them :D).
283
+ * Fixed: Editor style for Typekit fonts.
284
+ * Fixed: Editor style with default values.
285
+ * Fixed: Live Preview small fixes
286
+ * Updated: The list of google fonts is now up to date
287
+
288
+ = 1.1.4 =
289
+ * Added: Ace Editor field.
290
+ * Added: HTML field.
291
+ * Added: Sanitize callbacks parameter and a default sanitizer for the checkbox field.
292
+ * Fixed: Slight styling issues.
293
+
294
+ = 1.1.2 =
295
+ * Added: Option to add Customify's changes in the editor.
296
+ * Added: Possibility to load Typekit fonts through config.
297
+
298
+ = 1.1.1 =
299
+ * Added: Radio input with image label.
300
+ * Added: Javascript callback for css properties.
301
+ * Update: Updated Ace editor.
302
+
303
+ = 1.1.0 =
304
+ * Added: [Preset](https://github.com/pixelgrade/customify/blob/master/README.md#presets_title) field type.
305
+ * Added: Reset buttons (disabled by default).
306
+ * Added: Button field.
307
+
308
+ == Installation ==
309
+
310
+ 1. Install Customify either via the WordPress.org plugin directory, or by uploading the files to your `/wp-content/plugins/` directory
311
+ 2. After activating Customify go to `Appearance → Customize` and have fun with the new felds
312
+ 3. For further instructions and how to setup your own fields, read our [detailed documentation](http://github.com/pixelgrade/customify/blob/dev/README.md)
313
+
314
+ == Frequently Asked Questions ==
315
+
316
+ = Is there a way to reset Customify to defaults? =
317
+ Reset buttons are available for all the options or for individual sections or panels.
318
+ They are disabled by default to avoid useless/accidental resets.
319
+ To enable them simply go to Dashboard -> Settings -> Customify and check "Enable Reset Buttons"