Version Description
- Allow 0 values for fonts line-height and letter-spacing
- Improved the plugin loading process and the CSS inline output
- Fixed small style issues for the Customizer bar
Download this release
Release Info
Developer | euthelup |
Plugin | Customify – A Theme Customizer Booster |
Version | 1.5.4 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.5.4
- class-pixcustomify.php +5 -3
- css/customizer.css +1 -4
- customify.php +2 -2
- features/class-CSS_Editor.php +3 -3
- features/class-Font_Selector.php +3 -3
- languages/customify.pot +1 -1
- readme.txt +6 -1
- scss/customizer.scss +2 -2
class-pixcustomify.php
CHANGED
@@ -183,9 +183,11 @@ class PixCustomifyPlugin {
|
|
183 |
*/
|
184 |
$this->init_plugin_configs();
|
185 |
|
186 |
-
// We
|
|
|
|
|
187 |
// DO NOT TRY to use the Customify values before this!
|
188 |
-
add_action( '
|
189 |
|
190 |
/*
|
191 |
* Now setup the admin side of things
|
@@ -218,7 +220,7 @@ class PixCustomifyPlugin {
|
|
218 |
// The frontend effects of the Customizer controls
|
219 |
$load_location = $this->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
220 |
|
221 |
-
add_action( $load_location, array( $this, 'output_dynamic_style' ),
|
222 |
add_action( 'wp_head', array( $this, 'output_typography_dynamic_style' ), 10 );
|
223 |
|
224 |
add_action( 'customize_register', array( $this, 'remove_default_sections' ), 11 );
|
183 |
*/
|
184 |
$this->init_plugin_configs();
|
185 |
|
186 |
+
// We need to load the configuration as late as possible so we allow all that want to influence it
|
187 |
+
// We need the init hook and not after_setup_theme because there a number of plugins that fire up on init (like certain modules from Jetpack)
|
188 |
+
// We need to be able to load things like components configs depending on those firing up or not
|
189 |
// DO NOT TRY to use the Customify values before this!
|
190 |
+
add_action( 'init', array( $this, 'load_plugin_configs' ), 15 );
|
191 |
|
192 |
/*
|
193 |
* Now setup the admin side of things
|
220 |
// The frontend effects of the Customizer controls
|
221 |
$load_location = $this->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
222 |
|
223 |
+
add_action( $load_location, array( $this, 'output_dynamic_style' ), 99 );
|
224 |
add_action( 'wp_head', array( $this, 'output_typography_dynamic_style' ), 10 );
|
225 |
|
226 |
add_action( 'customize_register', array( $this, 'remove_default_sections' ), 11 );
|
css/customizer.css
CHANGED
@@ -230,10 +230,7 @@
|
|
230 |
|
231 |
.separator.label
|
232 |
{
|
233 |
-
font-weight: 500;
|
234 |
-
|
235 |
-
margin-bottom: -3px;
|
236 |
-
margin-bottom: -15px;
|
237 |
}
|
238 |
|
239 |
.separator.large
|
230 |
|
231 |
.separator.label
|
232 |
{
|
233 |
+
font-weight: 500;
|
|
|
|
|
|
|
234 |
}
|
235 |
|
236 |
.separator.large
|
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
|
6 |
-
Version: 1.5.
|
7 |
Author: Pixelgrade
|
8 |
Author URI: https://pixelgrade.com
|
9 |
Author Email: contact@pixelgrade.com
|
@@ -54,7 +54,7 @@ if ( $current_data === false ) {
|
|
54 |
function PixCustomifyPlugin() {
|
55 |
|
56 |
require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' );
|
57 |
-
$instance = PixCustomifyPlugin::instance( __FILE__, '1.5.
|
58 |
return $instance;
|
59 |
}
|
60 |
|
3 |
Plugin Name: Customify
|
4 |
Plugin URI: https://wordpress.org/plugins/customify/
|
5 |
Description: A Theme Customizer Booster
|
6 |
+
Version: 1.5.4
|
7 |
Author: Pixelgrade
|
8 |
Author URI: https://pixelgrade.com
|
9 |
Author Email: contact@pixelgrade.com
|
54 |
function PixCustomifyPlugin() {
|
55 |
|
56 |
require_once( plugin_dir_path( __FILE__ ) . 'class-pixcustomify.php' );
|
57 |
+
$instance = PixCustomifyPlugin::instance( __FILE__, '1.5.4' );
|
58 |
return $instance;
|
59 |
}
|
60 |
|
features/class-CSS_Editor.php
CHANGED
@@ -16,11 +16,11 @@ class Customify_CSS_Live_Editor {
|
|
16 |
$load_location = PixCustomifyPlugin()->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
17 |
|
18 |
if ( function_exists( 'wp_custom_css_cb' ) ) {
|
19 |
-
remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
|
20 |
-
add_action( $load_location, 'wp_custom_css_cb', 999999999 );
|
21 |
} else {
|
22 |
// keep this for wordpress versions lower than 4.7
|
23 |
-
add_action( $load_location, array( $this, 'output_dynamic_style' ),
|
24 |
}
|
25 |
|
26 |
//Check the WordPress version and if there are known problems disable it
|
16 |
$load_location = PixCustomifyPlugin()->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
17 |
|
18 |
if ( function_exists( 'wp_custom_css_cb' ) ) {
|
19 |
+
// remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
|
20 |
+
// add_action( $load_location, 'wp_custom_css_cb', 999999999 );
|
21 |
} else {
|
22 |
// keep this for wordpress versions lower than 4.7
|
23 |
+
add_action( $load_location, array( $this, 'output_dynamic_style' ), 99 );
|
24 |
}
|
25 |
|
26 |
//Check the WordPress version and if there are known problems disable it
|
features/class-Font_Selector.php
CHANGED
@@ -19,7 +19,7 @@ class Customify_Font_Selector {
|
|
19 |
$this->theme_fonts = apply_filters( 'customify_theme_fonts', array() );
|
20 |
|
21 |
$load_location = PixCustomifyPlugin()->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
22 |
-
add_action( $load_location, array( $this, 'output_font_dynamic_style' ),
|
23 |
add_action( 'customify_font_family_before_options', array( $this, 'add_customify_theme_fonts' ), 11, 2 );
|
24 |
|
25 |
if ( PixCustomifyPlugin()->get_plugin_setting( 'enable_editor_style', true ) ) {
|
@@ -377,12 +377,12 @@ class Customify_Font_Selector {
|
|
377 |
$this->display_property( 'font-size', $value['font_size'], $unit );
|
378 |
}
|
379 |
|
380 |
-
if (
|
381 |
$unit = $this->get_field_unit( $font, 'line-height' );
|
382 |
$this->display_property( 'line-height', $value['line_height'], $unit );
|
383 |
}
|
384 |
|
385 |
-
if (
|
386 |
$unit = $this->get_field_unit( $font, 'letter-spacing' );
|
387 |
$this->display_property( 'letter-spacing', $value['letter_spacing'], $unit );
|
388 |
}
|
19 |
$this->theme_fonts = apply_filters( 'customify_theme_fonts', array() );
|
20 |
|
21 |
$load_location = PixCustomifyPlugin()->get_plugin_setting( 'style_resources_location', 'wp_head' );
|
22 |
+
add_action( $load_location, array( $this, 'output_font_dynamic_style' ), 100 );
|
23 |
add_action( 'customify_font_family_before_options', array( $this, 'add_customify_theme_fonts' ), 11, 2 );
|
24 |
|
25 |
if ( PixCustomifyPlugin()->get_plugin_setting( 'enable_editor_style', true ) ) {
|
377 |
$this->display_property( 'font-size', $value['font_size'], $unit );
|
378 |
}
|
379 |
|
380 |
+
if ( isset( $value['line_height'] ) ) {
|
381 |
$unit = $this->get_field_unit( $font, 'line-height' );
|
382 |
$this->display_property( 'line-height', $value['line_height'], $unit );
|
383 |
}
|
384 |
|
385 |
+
if ( isset( $value['letter_spacing'] ) ) {
|
386 |
$unit = $this->get_field_unit( $font, 'letter-spacing' );
|
387 |
$this->display_property( 'letter-spacing', $value['letter_spacing'], $unit );
|
388 |
}
|
languages/customify.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
# This file is distributed under the same license as the Customify package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Customify 1.5.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/customify\n"
|
7 |
"POT-Creation-Date: 2017-02-13 13:29:14+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
2 |
# This file is distributed under the same license as the Customify package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Customify 1.5.4\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/customify\n"
|
7 |
"POT-Creation-Date: 2017-02-13 13:29:14+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: pixelgrade, euthelup, babbardel, vlad.olaru, cristianfrumusanu, ra
|
|
3 |
Tags: customizer, css, editor, live, preview, customise
|
4 |
Requires at least: 4.6.0
|
5 |
Tested up to: 4.8.0
|
6 |
-
Stable tag: 1.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -37,6 +37,11 @@ With [Customify](https://github.com/pixelgrade/customify), developers can easily
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
40 |
= 1.5.3 =
|
41 |
* Update Style for WordPress 4.8
|
42 |
* Updated Google Fonts list
|
3 |
Tags: customizer, css, editor, live, preview, customise
|
4 |
Requires at least: 4.6.0
|
5 |
Tested up to: 4.8.0
|
6 |
+
Stable tag: 1.5.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 1.5.4 =
|
41 |
+
* Allow 0 values for fonts line-height and letter-spacing
|
42 |
+
* Improved the plugin loading process and the CSS inline output
|
43 |
+
* Fixed small style issues for the Customizer bar
|
44 |
+
|
45 |
= 1.5.3 =
|
46 |
* Update Style for WordPress 4.8
|
47 |
* Updated Google Fonts list
|
scss/customizer.scss
CHANGED
@@ -284,8 +284,8 @@ $background-hover : #f5fcff;
|
|
284 |
&.label {
|
285 |
@extend %fields-label;
|
286 |
@extend .customize-control-title;
|
287 |
-
margin-bottom: -3px;
|
288 |
-
margin-bottom: -$fields-spacing/2 - 3px;
|
289 |
|
290 |
font-weight: 500;
|
291 |
}
|
284 |
&.label {
|
285 |
@extend %fields-label;
|
286 |
@extend .customize-control-title;
|
287 |
+
//margin-bottom: -3px;
|
288 |
+
//margin-bottom: -$fields-spacing/2 - 3px;
|
289 |
|
290 |
font-weight: 500;
|
291 |
}
|