Nimble Page Builder - Version 1.2.2

Version Description

  • fixed : function_exists( '\Nimble\ ... ) breaks in some version of php ( 5.6.38 )
  • fixed : always check if 'do_blocks' exists for retrocompatibility with WP < 5.0

=

Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

inc/sektions/ccat-sektions.php CHANGED
@@ -8850,7 +8850,9 @@ if ( ! class_exists( 'SEK_Front_Render' ) ) :
8850
  return preg_replace_callback( $pattern, '\Nimble\nimble_regex_callback', $html);
8851
  }
8852
  private function sek_setup_tiny_mce_content_filters() {
8853
- add_filter( 'the_nimble_tinymce_module_content', 'do_blocks', 9 );
 
 
8854
  add_filter( 'the_nimble_tinymce_module_content', 'wptexturize' );
8855
  add_filter( 'the_nimble_tinymce_module_content', 'convert_smilies', 20 );
8856
  add_filter( 'the_nimble_tinymce_module_content', 'wpautop' );
8850
  return preg_replace_callback( $pattern, '\Nimble\nimble_regex_callback', $html);
8851
  }
8852
  private function sek_setup_tiny_mce_content_filters() {
8853
+ if ( function_exists( 'do_blocks' ) ) {
8854
+ add_filter( 'the_nimble_tinymce_module_content', 'do_blocks', 9 );
8855
+ }
8856
  add_filter( 'the_nimble_tinymce_module_content', 'wptexturize' );
8857
  add_filter( 'the_nimble_tinymce_module_content', 'convert_smilies', 20 );
8858
  add_filter( 'the_nimble_tinymce_module_content', 'wpautop' );
nimble-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Nimble Builder
4
  * Description: Drag-and-drop section builder companion of the Customizr and Hueman themes.
5
- * Version: 1.2.1
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://presscustomizr.com
@@ -11,7 +11,7 @@
11
  /* ------------------------------------------------------------------------- *
12
  * CONSTANTS
13
  /* ------------------------------------------------------------------------- */
14
- $current_version = "1.2.1";
15
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
16
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
17
  if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
2
  /**
3
  * Plugin Name: Nimble Builder
4
  * Description: Drag-and-drop section builder companion of the Customizr and Hueman themes.
5
+ * Version: 1.2.2
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://presscustomizr.com
11
  /* ------------------------------------------------------------------------- *
12
  * CONSTANTS
13
  /* ------------------------------------------------------------------------- */
14
+ $current_version = "1.2.2";
15
  if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
16
  if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
17
  if ( !defined( 'NIMBLE_BASE_URL' ) ) { define( 'NIMBLE_BASE_URL' , plugins_url( NIMBLE_DIR_NAME ) ); }
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: customizer, editor, page builder, drag and drop
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.0
9
- Stable tag: 1.2.1
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -45,14 +45,15 @@ You'll find an online knowledge base for the Nimble builder here : [Nimble build
45
  The Nimble builder has been optimized to work with the Customizr and Hueman theme, but it 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).
46
 
47
  == Upgrade Notice ==
48
- = 1.2.1 =
49
- * fixed : php function function_exists() can return false when the tested namespaced function starts with a backslash.
50
- * fixed : parallax background only applied to section level
51
- * fixed : background smart load only applied to section level
52
- * improved : when dragging content, no need to print dropzones before or after empty sections
53
- * improved : introduce a Nimble content filter for the TinyMce editor module, in order to prevent a content "corruption" by third party plugins
54
 
55
  == Changelog ==
 
 
 
 
56
  = 1.2.1 : November 10th, 2018 =
57
  * fixed : php function function_exists() can return false when the tested namespaced function starts with a backslash.
58
  * fixed : parallax background only applied to section level
6
  Requires at least: 4.7
7
  Requires PHP: 5.4
8
  Tested up to: 5.0.0
9
+ Stable tag: 1.2.2
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
45
  The Nimble builder has been optimized to work with the Customizr and Hueman theme, but it 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).
46
 
47
  == Upgrade Notice ==
48
+ = 1.2.2 =
49
+ * fixed : function_exists( '\Nimble\ ... ) breaks in some version of php ( 5.6.38 )
50
+ * fixed : always check if 'do_blocks' exists for retrocompatibility with WP < 5.0
 
 
 
51
 
52
  == Changelog ==
53
+ = 1.2.2 : November 11th, 2018 =
54
+ * fixed : php function_exists( '\Nimble\ ... ) breaks in some version of php ( 5.6.38 )
55
+ * fixed : always check if 'do_blocks' exists for retrocompatibility with WP < 5.0
56
+
57
  = 1.2.1 : November 10th, 2018 =
58
  * fixed : php function function_exists() can return false when the tested namespaced function starts with a backslash.
59
  * fixed : parallax background only applied to section level
tmpl/modules/featured_pages_module_tmpl.php CHANGED
@@ -108,7 +108,7 @@ $fp_col_suffix = isset( $fp_col_map[$fp_per_row] ) ? $fp_col_map[$fp_per_row] :
108
  * and at least one [page-id][id] must be numeric or _custom_, and in this case [padge-id][url] must be set?
109
  */
110
 
111
- if ( ! function_exists( '\Nimble\sek_fp_is_fp_set' ) ) :
112
  function sek_fp_is_fp_set( array $fp ) {
113
  return ( ! empty( $fp[ 'page-id' ]['id'] ) &&
114
  ( sek_fp_can_be_wp_page( $fp ) || sek_fp_is_custom( $fp ) ) );
@@ -116,13 +116,13 @@ if ( ! function_exists( '\Nimble\sek_fp_is_fp_set' ) ) :
116
  endif;
117
 
118
 
119
- if ( ! function_exists( '\Nimble\sek_fp_is_custom' ) ) :
120
  function sek_fp_is_custom( array $fp ) {
121
  return ( '_custom_' == $fp[ 'page-id' ]['id'] && esc_url( $fp[ 'page-id' ]['url'] ) );
122
  }
123
  endif;
124
 
125
- if ( ! function_exists( '\Nimble\sek_fp_can_be_wp_page' ) ) :
126
  function sek_fp_can_be_wp_page( array $fp ) {
127
  return is_numeric( $fp[ 'page-id' ]['id'] );
128
  }
108
  * and at least one [page-id][id] must be numeric or _custom_, and in this case [padge-id][url] must be set?
109
  */
110
 
111
+ if ( ! function_exists( 'Nimble\sek_fp_is_fp_set' ) ) :
112
  function sek_fp_is_fp_set( array $fp ) {
113
  return ( ! empty( $fp[ 'page-id' ]['id'] ) &&
114
  ( sek_fp_can_be_wp_page( $fp ) || sek_fp_is_custom( $fp ) ) );
116
  endif;
117
 
118
 
119
+ if ( ! function_exists( 'Nimble\sek_fp_is_custom' ) ) :
120
  function sek_fp_is_custom( array $fp ) {
121
  return ( '_custom_' == $fp[ 'page-id' ]['id'] && esc_url( $fp[ 'page-id' ]['url'] ) );
122
  }
123
  endif;
124
 
125
+ if ( ! function_exists( 'Nimble\sek_fp_can_be_wp_page' ) ) :
126
  function sek_fp_can_be_wp_page( array $fp ) {
127
  return is_numeric( $fp[ 'page-id' ]['id'] );
128
  }
tmpl/modules/icon_module_tmpl.php CHANGED
@@ -28,7 +28,7 @@ Array
28
  [color_hover_css] => #590606
29
  )
30
  */
31
- if ( ! function_exists( '\Nimble\sek_get_icon_module_icon_html') ) {
32
  function sek_get_icon_module_icon_html( $value ) {
33
  $html = '';
34
  $icon_settings = $value['icon_settings'];
28
  [color_hover_css] => #590606
29
  )
30
  */
31
+ if ( ! function_exists( 'Nimble\sek_get_icon_module_icon_html') ) {
32
  function sek_get_icon_module_icon_html( $value ) {
33
  $html = '';
34
  $icon_settings = $value['icon_settings'];
tmpl/modules/image_module_tmpl.php CHANGED
@@ -18,7 +18,7 @@ $value = array_key_exists( 'value', $model ) ? $model['value'] : array();
18
  $main_settings = $value['main_settings'];
19
  //$borders_corners_settings = $value['borders_corners'];
20
 
21
- if ( ! function_exists( '\Nimble\sek_get_img_module_img_html') ) {
22
  function sek_get_img_module_img_html( $value ) {
23
  $visual_effect_class = '';
24
  //visual effect classes
@@ -72,7 +72,7 @@ if ( ! function_exists( '\Nimble\sek_get_img_module_img_html') ) {
72
  }
73
  }
74
 
75
- if ( ! function_exists( '\Nimble\sek_get_img_module_img_link' ) ) {
76
  function sek_get_img_module_img_link( $value ) {
77
  $link = 'javascript:void(0);';
78
  if ( skp_is_customizing() ) {
18
  $main_settings = $value['main_settings'];
19
  //$borders_corners_settings = $value['borders_corners'];
20
 
21
+ if ( ! function_exists( 'Nimble\sek_get_img_module_img_html') ) {
22
  function sek_get_img_module_img_html( $value ) {
23
  $visual_effect_class = '';
24
  //visual effect classes
72
  }
73
  }
74
 
75
+ if ( ! function_exists( 'Nimble\sek_get_img_module_img_link' ) ) {
76
  function sek_get_img_module_img_link( $value ) {
77
  $link = 'javascript:void(0);';
78
  if ( skp_is_customizing() ) {
tmpl/modules/simple_html_module_tmpl.php CHANGED
@@ -10,7 +10,7 @@ $value = array_key_exists( 'value', $model ) ? $model['value'] : array();
10
 
11
  // Utility to print the html content
12
  // should be wrapped in a specific selector when customizing,
13
- if ( ! function_exists( '\Nimble\sek_print_html_content') ) {
14
  function sek_print_html_content( $html_content, $input_id ) {
15
  if ( empty( $html_content ) ) {
16
  echo SEK_Fire()->sek_get_input_placeholder_content( 'text', 'html_content' );
10
 
11
  // Utility to print the html content
12
  // should be wrapped in a specific selector when customizing,
13
+ if ( ! function_exists( 'Nimble\sek_print_html_content') ) {
14
  function sek_print_html_content( $html_content, $input_id ) {
15
  if ( empty( $html_content ) ) {
16
  echo SEK_Fire()->sek_get_input_placeholder_content( 'text', 'html_content' );
tmpl/modules/tinymce_editor_module_tmpl.php CHANGED
@@ -11,7 +11,7 @@ $value = $value['main_settings'];
11
  // Utility to print the text content generated with tinyMce
12
  // should be wrapped in a specific selector when customizing,
13
  // => so we can listen to user click actions and open the editor on for each separate tiny_mce_editor input
14
- if ( ! function_exists( '\Nimble\sek_print_tiny_mce_text_content') ) {
15
  function sek_print_tiny_mce_text_content( $tiny_mce_content, $input_id, $value ) {
16
  if ( empty( $tiny_mce_content ) ) {
17
  echo SEK_Fire()->sek_get_input_placeholder_content( 'tiny_mce_editor', $input_id );
11
  // Utility to print the text content generated with tinyMce
12
  // should be wrapped in a specific selector when customizing,
13
  // => so we can listen to user click actions and open the editor on for each separate tiny_mce_editor input
14
+ if ( ! function_exists( 'Nimble\sek_print_tiny_mce_text_content') ) {
15
  function sek_print_tiny_mce_text_content( $tiny_mce_content, $input_id, $value ) {
16
  if ( empty( $tiny_mce_content ) ) {
17
  echo SEK_Fire()->sek_get_input_placeholder_content( 'tiny_mce_editor', $input_id );