Nimble Page Builder - Version 1.8.8

Version Description

This releases fixes a regression introduced in version 1.8.7, leading to a stylesheet not loaded on page refresh.

=

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Nimble Page Builder
Version 1.8.8
Comparing to
See all releases

Code changes from version 1.8.7 to 1.8.8

Files changed (3) hide show
  1. inc/sektions/ccat-sektions.php +13 -14
  2. nimble-builder.php +2 -2
  3. readme.txt +8 -3
inc/sektions/ccat-sektions.php CHANGED
@@ -6583,9 +6583,8 @@ function sek_write_global_custom_breakpoint() {
6583
  $custom_breakpoint = sek_get_global_custom_breakpoint();
6584
  if ( $custom_breakpoint >= 1 ) {
6585
  $css .= '@media (min-width:' . $custom_breakpoint . 'px) {.sek-global-custom-breakpoint-col-8 {-ms-flex: 0 0 8.333%;flex: 0 0 8.333%;max-width: 8.333%;}.sek-global-custom-breakpoint-col-9 {-ms-flex: 0 0 9.090909%;flex: 0 0 9.090909%;max-width: 9.090909%;}.sek-global-custom-breakpoint-col-10 {-ms-flex: 0 0 10%;flex: 0 0 10%;max-width: 10%;}.sek-global-custom-breakpoint-col-11 {-ms-flex: 0 0 11.111%;flex: 0 0 11.111%;max-width: 11.111%;}.sek-global-custom-breakpoint-col-12 {-ms-flex: 0 0 12.5%;flex: 0 0 12.5%;max-width: 12.5%;}.sek-global-custom-breakpoint-col-14 {-ms-flex: 0 0 14.285%;flex: 0 0 14.285%;max-width: 14.285%;}.sek-global-custom-breakpoint-col-16 {-ms-flex: 0 0 16.666%;flex: 0 0 16.666%;max-width: 16.666%;}.sek-global-custom-breakpoint-col-20 {-ms-flex: 0 0 20%;flex: 0 0 20%;max-width: 20%;}.sek-global-custom-breakpoint-col-25 {-ms-flex: 0 0 25%;flex: 0 0 25%;max-width: 25%;}.sek-global-custom-breakpoint-col-30 {-ms-flex: 0 0 30%;flex: 0 0 30%;max-width: 30%;}.sek-global-custom-breakpoint-col-33 {-ms-flex: 0 0 33.333%;flex: 0 0 33.333%;max-width: 33.333%;}.sek-global-custom-breakpoint-col-40 {-ms-flex: 0 0 40%;flex: 0 0 40%;max-width: 40%;}.sek-global-custom-breakpoint-col-50 {-ms-flex: 0 0 50%;flex: 0 0 50%;max-width: 50%;}.sek-global-custom-breakpoint-col-60 {-ms-flex: 0 0 60%;flex: 0 0 60%;max-width: 60%;}.sek-global-custom-breakpoint-col-66 {-ms-flex: 0 0 66.666%;flex: 0 0 66.666%;max-width: 66.666%;}.sek-global-custom-breakpoint-col-70 {-ms-flex: 0 0 70%;flex: 0 0 70%;max-width: 70%;}.sek-global-custom-breakpoint-col-75 {-ms-flex: 0 0 75%;flex: 0 0 75%;max-width: 75%;}.sek-global-custom-breakpoint-col-80 {-ms-flex: 0 0 80%;flex: 0 0 80%;max-width: 80%;}.sek-global-custom-breakpoint-col-83 {-ms-flex: 0 0 83.333%;flex: 0 0 83.333%;max-width: 83.333%;}.sek-global-custom-breakpoint-col-90 {-ms-flex: 0 0 90%;flex: 0 0 90%;max-width: 90%;}.sek-global-custom-breakpoint-col-100 {-ms-flex: 0 0 100%;flex: 0 0 100%;max-width: 100%;}}';
 
6586
  }
6587
-
6588
- printf('<style type="text/css" id="nimble-global-breakpoint-options">%1$s</style>', $css );
6589
  }
6590
  ?><?php
6591
  //Fired in add_action( 'after_setup_theme', 'sek_register_modules', 50 );
@@ -12554,24 +12553,24 @@ class Sek_Dyn_CSS_Handler {
12554
  $this->builder = new Sek_Dyn_CSS_Builder( $this->sek_model, $this->is_global_stylesheet );
12555
 
12556
  // now that the stylesheet is ready let's cache it
12557
- $this->css_string_to_enqueue_or_print = (string)$this->builder-> get_stylesheet();
12558
  }
12559
 
12560
- //hook setup for printing or enqueuing
12561
- //bail if "customizer_save" == true, typically when saving the customizer settings @see Nimble_Customizer_Setting::update()
12562
- //sek_error_log( __CLASS__ . '::' . __FUNCTION__ .' ?? => $this->css_string_to_enqueue_or_print => ', $this->css_string_to_enqueue_or_print );
12563
-
12564
  // Do we have any rules to print / enqueue ?
12565
  // If yes, print in the dom or enqueue depending on the current context ( customization or front )
12566
  // If not, delete any previouly created stylesheet
12567
- if ( $this->css_string_to_enqueue_or_print ) {
12568
- if ( ! $this->customizer_save ) {
12569
- $this->_schedule_css_and_fonts_enqueuing_or_printing_maybe_on_custom_hook();
12570
- } else {
 
 
 
 
12571
  $this->sek_dyn_css_maybe_write_css_file();
 
 
12572
  }
12573
- } else {
12574
- $this->sek_dyn_css_maybe_delete_file();
12575
  }
12576
  }//__construct
12577
 
@@ -16065,7 +16064,7 @@ if ( ! class_exists( 'SEK_Front_Render_Css' ) ) :
16065
  class SEK_Front_Render_Css extends SEK_Front_Render {
16066
  // Fired in __construct()
16067
  function _setup_hook_for_front_css_printing_or_enqueuing() {
16068
- add_action( 'wp_enqueue_scripts', array( $this, 'print_or_enqueue_seks_style') );
16069
  }
16070
 
16071
  // Can be fired :
6583
  $custom_breakpoint = sek_get_global_custom_breakpoint();
6584
  if ( $custom_breakpoint >= 1 ) {
6585
  $css .= '@media (min-width:' . $custom_breakpoint . 'px) {.sek-global-custom-breakpoint-col-8 {-ms-flex: 0 0 8.333%;flex: 0 0 8.333%;max-width: 8.333%;}.sek-global-custom-breakpoint-col-9 {-ms-flex: 0 0 9.090909%;flex: 0 0 9.090909%;max-width: 9.090909%;}.sek-global-custom-breakpoint-col-10 {-ms-flex: 0 0 10%;flex: 0 0 10%;max-width: 10%;}.sek-global-custom-breakpoint-col-11 {-ms-flex: 0 0 11.111%;flex: 0 0 11.111%;max-width: 11.111%;}.sek-global-custom-breakpoint-col-12 {-ms-flex: 0 0 12.5%;flex: 0 0 12.5%;max-width: 12.5%;}.sek-global-custom-breakpoint-col-14 {-ms-flex: 0 0 14.285%;flex: 0 0 14.285%;max-width: 14.285%;}.sek-global-custom-breakpoint-col-16 {-ms-flex: 0 0 16.666%;flex: 0 0 16.666%;max-width: 16.666%;}.sek-global-custom-breakpoint-col-20 {-ms-flex: 0 0 20%;flex: 0 0 20%;max-width: 20%;}.sek-global-custom-breakpoint-col-25 {-ms-flex: 0 0 25%;flex: 0 0 25%;max-width: 25%;}.sek-global-custom-breakpoint-col-30 {-ms-flex: 0 0 30%;flex: 0 0 30%;max-width: 30%;}.sek-global-custom-breakpoint-col-33 {-ms-flex: 0 0 33.333%;flex: 0 0 33.333%;max-width: 33.333%;}.sek-global-custom-breakpoint-col-40 {-ms-flex: 0 0 40%;flex: 0 0 40%;max-width: 40%;}.sek-global-custom-breakpoint-col-50 {-ms-flex: 0 0 50%;flex: 0 0 50%;max-width: 50%;}.sek-global-custom-breakpoint-col-60 {-ms-flex: 0 0 60%;flex: 0 0 60%;max-width: 60%;}.sek-global-custom-breakpoint-col-66 {-ms-flex: 0 0 66.666%;flex: 0 0 66.666%;max-width: 66.666%;}.sek-global-custom-breakpoint-col-70 {-ms-flex: 0 0 70%;flex: 0 0 70%;max-width: 70%;}.sek-global-custom-breakpoint-col-75 {-ms-flex: 0 0 75%;flex: 0 0 75%;max-width: 75%;}.sek-global-custom-breakpoint-col-80 {-ms-flex: 0 0 80%;flex: 0 0 80%;max-width: 80%;}.sek-global-custom-breakpoint-col-83 {-ms-flex: 0 0 83.333%;flex: 0 0 83.333%;max-width: 83.333%;}.sek-global-custom-breakpoint-col-90 {-ms-flex: 0 0 90%;flex: 0 0 90%;max-width: 90%;}.sek-global-custom-breakpoint-col-100 {-ms-flex: 0 0 100%;flex: 0 0 100%;max-width: 100%;}}';
6586
+ printf('<style type="text/css" id="nimble-global-breakpoint-options">%1$s</style>', $css );
6587
  }
 
 
6588
  }
6589
  ?><?php
6590
  //Fired in add_action( 'after_setup_theme', 'sek_register_modules', 50 );
12553
  $this->builder = new Sek_Dyn_CSS_Builder( $this->sek_model, $this->is_global_stylesheet );
12554
 
12555
  // now that the stylesheet is ready let's cache it
12556
+ $this->css_string_to_enqueue_or_print = (string)$this->builder->get_stylesheet();
12557
  }
12558
 
 
 
 
 
12559
  // Do we have any rules to print / enqueue ?
12560
  // If yes, print in the dom or enqueue depending on the current context ( customization or front )
12561
  // If not, delete any previouly created stylesheet
12562
+
12563
+ //hook setup for printing or enqueuing
12564
+ //bail if "customizer_save" == true, typically when saving the customizer settings @see Nimble_Customizer_Setting::update()
12565
+ if ( ! $this->customizer_save ) {
12566
+ $this->_schedule_css_and_fonts_enqueuing_or_printing_maybe_on_custom_hook();
12567
+ } else {
12568
+ //sek_error_log( __CLASS__ . '::' . __FUNCTION__ .' ?? => $this->css_string_to_enqueue_or_print => ', $this->css_string_to_enqueue_or_print );
12569
+ if ( $this->css_string_to_enqueue_or_print ) {
12570
  $this->sek_dyn_css_maybe_write_css_file();
12571
+ } else {
12572
+ $this->sek_dyn_css_maybe_delete_file();
12573
  }
 
 
12574
  }
12575
  }//__construct
12576
 
16064
  class SEK_Front_Render_Css extends SEK_Front_Render {
16065
  // Fired in __construct()
16066
  function _setup_hook_for_front_css_printing_or_enqueuing() {
16067
+ add_action( 'wp_enqueue_scripts', array( $this, 'print_or_enqueue_seks_style'), PHP_INT_MAX );
16068
  }
16069
 
16070
  // Can be fired :
nimble-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
- * Version: 1.8.7
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
- $current_version = "1.8.7";
17
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
18
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
19
  if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
+ * Version: 1.8.8
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
+ $current_version = "1.8.8";
17
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
18
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
19
  if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, visual editor, customizer, drag and drop, header, footer, la
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.2.2
9
- Stable tag: 1.8.7
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
@@ -109,10 +109,15 @@ Nimble builder works with any WordPress theme. If you experience any problem wit
109
  7. **Theme** : try to switch to another WordPress theme, like the default WordPress theme. If you use a child theme, activate the parent theme instead.
110
 
111
  == Upgrade Notice ==
112
- = 1.8.7 =
113
- This release brings significant speed improvements of the customizing user interface. It also fixes a problem with the global styling options.
114
 
115
  == Changelog ==
 
 
 
 
 
116
  = 1.8.7 : July 5th 2019 =
117
  * fixed : global stylesheet ( for global styling ) might not be printed when the page has no global sections
118
  * fixed : preview not refreshed on page reset
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.2.2
9
+ Stable tag: 1.8.8
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8FMNQPU36U27J&source=url
109
  7. **Theme** : try to switch to another WordPress theme, like the default WordPress theme. If you use a child theme, activate the parent theme instead.
110
 
111
  == Upgrade Notice ==
112
+ = 1.8.8 =
113
+ This releases fixes a regression introduced in version 1.8.7, leading to a stylesheet not loaded on page refresh.
114
 
115
  == Changelog ==
116
+ = 1.8.8 : July 6th 2019 =
117
+ * fixed : Nimble dyn stylesheet gets removed on refresh
118
+ * fixed : don't print nimble-global-breakpoint-options style if no global breakpoint set
119
+ * fixed : Nimble Dynamic CSS "priority" should be higher so it overrides theme's style
120
+
121
  = 1.8.7 : July 5th 2019 =
122
  * fixed : global stylesheet ( for global styling ) might not be printed when the page has no global sections
123
  * fixed : preview not refreshed on page reset