Nimble Page Builder - Version 1.4.9

Version Description

Various improvements of the front-end preview of a draft customize-changeset.

=

Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.9

inc/sektions/ccat-sektions.php CHANGED
@@ -1021,10 +1021,19 @@ function sek_is_header_footer_enabled() {
1021
  return NIMBLE_HEADER_FOOTER_ENABLED;
1022
  }
1023
 
1024
-
 
 
1025
  function sek_is_pro() {
1026
  return sek_is_dev_mode();
1027
  }
 
 
 
 
 
 
 
1028
  ?><?php
1029
  add_action( 'admin_bar_menu', '\Nimble\sek_add_customize_link', 1000 );
1030
  function sek_add_customize_link() {
@@ -1041,6 +1050,7 @@ function sek_add_customize_link() {
1041
  $return_customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), wp_customize_url() );
1042
  $customize_url = sek_get_customize_url_when_is_admin( $return_customize_url );
1043
  } else {
 
1044
  if ( is_customize_preview() && $wp_customize->changeset_post_id() && ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $wp_customize->changeset_post_id() ) ) {
1045
  return;
1046
  }
@@ -4119,11 +4129,11 @@ function sek_get_module_params_for_czr_tiny_mce_editor_module() {
4119
  )
4120
  ),
4121
  'css_selectors' => array(
 
4122
  'p',
4123
- '.sek-module-inner p',
4124
- '.sek-module-inner a',
4125
- '.sek-module-inner li'
4126
- ),
4127
  'render_tmpl_path' => NIMBLE_BASE_PATH . "/tmpl/modules/tinymce_editor_module_tmpl.php",
4128
  'placeholder_icon' => 'short_text'
4129
  );
@@ -9073,6 +9083,8 @@ if ( ! class_exists( 'SEK_Front_Assets' ) ) :
9073
  );
9074
  }
9075
  function sek_schedule_customize_preview_assets() {
 
 
9076
  add_action( 'wp_footer', array( $this, 'sek_print_ui_tmpl' ) );
9077
 
9078
  wp_enqueue_style(
@@ -9551,8 +9563,9 @@ if ( ! class_exists( 'SEK_Front_Render' ) ) :
9551
  $this -> parent_model = $model;
9552
  foreach ( $collection as $_key => $sec_model ) { $this -> render( $sec_model ); }
9553
  ?>
9554
-
9555
- <?php if ( empty( $collection ) ) : ?>
 
9556
  <div class="sek-empty-location-placeholder">
9557
  <?php
9558
  if ( $is_header_location || $is_footer_location ) {
@@ -9636,7 +9649,7 @@ if ( ! class_exists( 'SEK_Front_Render' ) ) :
9636
  ?>
9637
  <div class="sek-column-inner <?php echo empty( $collection ) ? 'sek-empty-col' : ''; ?>">
9638
  <?php
9639
- if ( skp_is_customizing() && empty( $collection ) ) {
9640
  $content_type = 'module';
9641
  $title = 'section' === $content_type ? __('Drag and drop a section or a module here', 'nimble-builder' ) : __('Drag and drop a block of content here', 'nimble-builder' );
9642
  ?>
1021
  return NIMBLE_HEADER_FOOTER_ENABLED;
1022
  }
1023
 
1024
+ /* ------------------------------------------------------------------------- *
1025
+ * PRO
1026
+ /* ------------------------------------------------------------------------- */
1027
  function sek_is_pro() {
1028
  return sek_is_dev_mode();
1029
  }
1030
+
1031
+ /* ------------------------------------------------------------------------- *
1032
+ * OTHER HELPERS
1033
+ /* ------------------------------------------------------------------------- */
1034
+ function sek_is_customize_previewing_a_changeset_post() {
1035
+ return !( defined('DOING_AJAX') && DOING_AJAX ) && is_customize_preview() && !isset( $_REQUEST['customize_messenger_channel']);
1036
+ }
1037
  ?><?php
1038
  add_action( 'admin_bar_menu', '\Nimble\sek_add_customize_link', 1000 );
1039
  function sek_add_customize_link() {
1050
  $return_customize_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), wp_customize_url() );
1051
  $customize_url = sek_get_customize_url_when_is_admin( $return_customize_url );
1052
  } else {
1053
+ global $wp_customize;
1054
  if ( is_customize_preview() && $wp_customize->changeset_post_id() && ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $wp_customize->changeset_post_id() ) ) {
1055
  return;
1056
  }
4129
  )
4130
  ),
4131
  'css_selectors' => array(
4132
+ '.sek-module-inner',
4133
  'p',
4134
+ 'a',
4135
+ 'li'
4136
+ ),
 
4137
  'render_tmpl_path' => NIMBLE_BASE_PATH . "/tmpl/modules/tinymce_editor_module_tmpl.php",
4138
  'placeholder_icon' => 'short_text'
4139
  );
9083
  );
9084
  }
9085
  function sek_schedule_customize_preview_assets() {
9086
+ if ( sek_is_customize_previewing_a_changeset_post() )
9087
+ return;
9088
  add_action( 'wp_footer', array( $this, 'sek_print_ui_tmpl' ) );
9089
 
9090
  wp_enqueue_style(
9563
  $this -> parent_model = $model;
9564
  foreach ( $collection as $_key => $sec_model ) { $this -> render( $sec_model ); }
9565
  ?>
9566
+ <?php
9567
+ ?>
9568
+ <?php if ( empty( $collection ) && !sek_is_customize_previewing_a_changeset_post() ) : ?>
9569
  <div class="sek-empty-location-placeholder">
9570
  <?php
9571
  if ( $is_header_location || $is_footer_location ) {
9649
  ?>
9650
  <div class="sek-column-inner <?php echo empty( $collection ) ? 'sek-empty-col' : ''; ?>">
9651
  <?php
9652
+ if ( skp_is_customizing() && !sek_is_customize_previewing_a_changeset_post() && empty( $collection ) ) {
9653
  $content_type = 'module';
9654
  $title = 'section' === $content_type ? __('Drag and drop a section or a module here', 'nimble-builder' ) : __('Drag and drop a block of content here', 'nimble-builder' );
9655
  ?>
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.4.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,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
- $current_version = "1.4.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 ) ); }
@@ -27,7 +27,7 @@ if ( !defined( 'NIMBLE_SAVED_SECTIONS_ENABLED' ) ) { define ( 'NIMBLE_SAVED_SECT
27
  if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
28
 
29
  if ( !defined( 'NIMBLE_DISPLAY_UPDATE_NOTICE' ) ) { define( 'NIMBLE_DISPLAY_UPDATE_NOTICE', true ); }
30
- if ( !defined( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION', '1.4.8' ); }
31
  if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
32
  // when NIMBLE_IS_PREVIEW_UI_DEBUG_MODE or $_GET['preview_ui_debug'] is true, the levels UI in the preview are not being auto removed, so we can inspect the markup and CSS
33
  if ( !defined( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE' ) ) { define ( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE', false ); }
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
+ * Version: 1.4.9
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.4.9";
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 ) ); }
27
  if ( !defined( 'NIMBLE_HEADER_FOOTER_ENABLED' ) ) { define ( 'NIMBLE_HEADER_FOOTER_ENABLED', false ); }
28
 
29
  if ( !defined( 'NIMBLE_DISPLAY_UPDATE_NOTICE' ) ) { define( 'NIMBLE_DISPLAY_UPDATE_NOTICE', true ); }
30
+ if ( !defined( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION' ) ) { define( 'NIMBLE_NO_UPDATE_NOTICE_FOR_VERSION', '1.4.9' ); }
31
  if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
32
  // when NIMBLE_IS_PREVIEW_UI_DEBUG_MODE or $_GET['preview_ui_debug'] is true, the levels UI in the preview are not being auto removed, so we can inspect the markup and CSS
33
  if ( !defined( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE' ) ) { define ( 'NIMBLE_IS_PREVIEW_UI_DEBUG_MODE', false ); }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, customizer, drag and drop, header, footer, landing page
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.3
9
- Stable tag: 1.4.8
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -56,10 +56,15 @@ You'll find an online knowledge base for the Nimble builder here : [Nimble build
56
  The Nimble builder works with any WordPress theme. If you experience any problem with a specific theme, please report it in the [plugin support forum](https://wordpress.org/support/plugin/nimble-builder).
57
 
58
  == Upgrade Notice ==
59
- = 1.4.8 =
60
- The system infos is now only displayed to users with admin capabilities. Improved the specificity of the CSS selectors for the font styling of the WP editor module.
61
 
62
  == Changelog ==
 
 
 
 
 
63
  = 1.4.8 : February 13th, 2019 =
64
  * fixed : the system infos should be displayed to users with admin capabilities only
65
  * improved : increase the specificity of CSS selectors for the font customization of the WP editor module
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.3
9
+ Stable tag: 1.4.9
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
56
  The Nimble builder works with any WordPress theme. If you experience any problem with a specific theme, please report it in the [plugin support forum](https://wordpress.org/support/plugin/nimble-builder).
57
 
58
  == Upgrade Notice ==
59
+ = 1.4.9 =
60
+ Various improvements of the front-end preview of a draft customize-changeset.
61
 
62
  == Changelog ==
63
+ = 1.4.9 : February 14th, 2019 =
64
+ * fixed : PHP error when previewing a customize changeset
65
+ * fixed : CSS selectors wrongly implemented for the WP editor module
66
+ * improved : the preview of a changeset on front
67
+
68
  = 1.4.8 : February 13th, 2019 =
69
  * fixed : the system infos should be displayed to users with admin capabilities only
70
  * improved : increase the specificity of CSS selectors for the font customization of the WP editor module