Nimble Page Builder - Version 1.4.3

Version Description

Fixed a PHP warning when using an rgba color for an icon, a button or in a form. Improved support for Firefox.

=

Download this release

Release Info

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

Code changes from version 1.4.2 to 1.4.3

inc/sektions/ccat-czr-sektions.php CHANGED
@@ -931,7 +931,7 @@ function sek_set_input_tmpl___module_picker( $input_id, $input_data ) {
931
  $_params['content-id'],
932
  $icon_img_html,
933
  $_params['title'],
934
- true === $_params['active'] ? __('Drag and drop the module in the previewed page.', 'nimble-builder' ) : __('I\'ll be available soon !', 'nimble-builder'),
935
  !empty( $_params['font_icon'] ) ? 'is-font-icon' : '',
936
  true === $_params['active'] ? 'true' : 'false'
937
  );
931
  $_params['content-id'],
932
  $icon_img_html,
933
  $_params['title'],
934
+ true === $_params['active'] ? __('Drag and drop the module in the previewed page.', 'nimble-builder' ) : __('Available soon ! This module is currently in beta, you can activate it in Site Wide Options > Beta features', 'nimble-builder'),
935
  !empty( $_params['font_icon'] ) ? 'is-font-icon' : '',
936
  true === $_params['active'] ? 'true' : 'false'
937
  );
inc/sektions/ccat-sektions.php CHANGED
@@ -1788,8 +1788,7 @@ function sek_darken_rgb( $rgb, $percent, $array = false, $make_prop_value = fals
1788
  */
1789
  function sek_lighten_rgb($rgb, $percent, $array = false, $make_prop_value = false ) {
1790
  $hsl = sek_rgb2hsl( $rgb, true );
1791
-
1792
- $light_hsl = sek_lighten_hsl( $light_hsl, $percent );
1793
 
1794
  return sek_hsl2rgb( $light_hsl, $array, $make_prop_value );
1795
  }
@@ -1927,7 +1926,7 @@ function sek_rgba2rgb_a( $rgba ) {
1927
  $rgba = is_array( $rgba) ? $rgba : array( $rgba );
1928
  return array(
1929
  array_slice( $rgba, 0, 3 ),
1930
- $rgba[4]
1931
  );
1932
  }
1933
  /*
@@ -1943,11 +1942,10 @@ function sek_rgb2hsl( $rgb, $array = false ) {
1943
  $rgb = count( $rgb ) < 3 ? array_pad( $rgb, 3, 255 ) : $rgb;
1944
 
1945
  $deltas = array();
1946
-
1947
  $RGB = array(
1948
- 'R' => ( $rgb[0] / 255 ),
1949
- 'G' => ( $rgb[1] / 255 ),
1950
- 'B' => ( $rgb[2] / 255 )
1951
  );
1952
 
1953
 
@@ -2387,11 +2385,11 @@ function sek_get_module_params_for_sek_content_type_switcher_module() {
2387
  'title_width' => 'width-100',
2388
  'notice_after' => sprintf(
2389
  __('Note : you can %1$s to replace your default theme template. Or design your own %2$s.', 'nimble-builder'),
2390
- sprintf('<a href="%2$s" title="%1$s">%1$s</a>',
2391
  __('use the Nimble page template', 'nimble-builder'),
2392
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})"
2393
  ),
2394
- sek_is_header_footer_enabled() ? sprintf('<a href="%2$s" title="%1$s">%1$s</a>',
2395
  __('header and footer', 'nimble-builder'),
2396
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })"
2397
  ) : __('header and footer', 'nimble-builder')
@@ -3471,7 +3469,7 @@ function sek_get_module_params_for_sek_local_widths() {
3471
  'refresh_stylesheet' => true,
3472
  'refresh_preview' => true,
3473
  'notice_before_title' => sprintf( __( 'The inner and outer widths of the sections displayed in this page can be set here. It will override in the %1$s. You can also set a custom inner and outer width for each single sections.', 'nimble-builder'),
3474
- sprintf( '<a href="%1$s">%2$s</a>',
3475
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })",
3476
  __('Site wide options', 'nimble-builder')
3477
  )
@@ -3691,7 +3689,7 @@ function sek_get_module_params_for_sek_local_header_footer() {
3691
  'width-100' => true,
3692
  'title_width' => 'width-100',
3693
  'notice_after' => sprintf( __( 'This option overrides the site wide header and footer options set in the %1$s for this page only.', 'nimble-builder'),
3694
- sprintf( '<a href="%1$s">%2$s</a>',
3695
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })",
3696
  __('Site wide options', 'nimble-builder')
3697
  )
@@ -3763,7 +3761,7 @@ function sek_get_module_params_for_sek_global_widths() {
3763
  'refresh_stylesheet' => true,
3764
  'refresh_preview' => true,
3765
  'notice_before_title' => sprintf( __( 'The inner and outer widths of your sections can be set globally here, but also overriden in the %1$s, and for each sections.', 'nimble-builder'),
3766
- sprintf( '<a href="%1$s">%2$s</a>',
3767
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})",
3768
  __('Current page options', 'nimble-builder')
3769
  )
@@ -3914,7 +3912,7 @@ function sek_get_module_params_for_sek_global_header_footer() {
3914
  'nimble_global' => __('Nimble site wide header and footer ( beta )', 'nimble-builder' )
3915
  ),
3916
  'notice_before_title' => sprintf( __( 'The Nimble Builder allows you to build your own header and footer, or to use your theme\'s ones. This option can be overriden in the %1$s.', 'nimble-builder'),
3917
- sprintf( '<a href="%1$s">%2$s</a>',
3918
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})",
3919
  __('Current page options', 'nimble-builder')
3920
  )
@@ -6639,7 +6637,7 @@ function sek_get_module_params_for_czr_menu_content_child() {
6639
  'default' => 'no-link',
6640
  'choices' => sek_get_user_created_menus(),
6641
  'notice_after' => sprintf( __( 'You can create and edit menus in the %1$s. If you just created a new menu, publish and refresh the customizer to see in the dropdown list.', 'nimble-builder'),
6642
- sprintf( '<a href="%1$s">%2$s</a>',
6643
  "javascript:wp.customize.panel('nav_menus', function( _p_ ){ _p_.focus(); })",
6644
  __('menu panel', 'nimble-builder')
6645
  )
@@ -6816,7 +6814,7 @@ function sek_get_module_params_for_czr_widget_area_module() {
6816
  'choices' => array(),
6817
  'refresh_preview' => true,// <= so that the partial refresh links are displayed
6818
  'notice_after' => sprintf( __( 'Once you have added a widget area to a section, you can add and edit the WordPress widgets in it in the %1$s.', 'nimble-builder'),
6819
- sprintf( '<a href="%1$s">%2$s</a>',
6820
  "javascript:wp.customize.panel('widgets', function( _p_ ){ _p_.focus(); })",
6821
  __('widget panel', 'nimble-builder')
6822
  )
1788
  */
1789
  function sek_lighten_rgb($rgb, $percent, $array = false, $make_prop_value = false ) {
1790
  $hsl = sek_rgb2hsl( $rgb, true );
1791
+ $light_hsl = sek_lighten_hsl( $hsl, $percent );
 
1792
 
1793
  return sek_hsl2rgb( $light_hsl, $array, $make_prop_value );
1794
  }
1926
  $rgba = is_array( $rgba) ? $rgba : array( $rgba );
1927
  return array(
1928
  array_slice( $rgba, 0, 3 ),
1929
+ isset( $rgba[3] ) ? $rgba[3] : 1
1930
  );
1931
  }
1932
  /*
1942
  $rgb = count( $rgb ) < 3 ? array_pad( $rgb, 3, 255 ) : $rgb;
1943
 
1944
  $deltas = array();
 
1945
  $RGB = array(
1946
+ 'R' => is_numeric($rgb[0]) ? ( $rgb[0] / 255 ) : 1,
1947
+ 'G' => is_numeric($rgb[1]) ? ( $rgb[0] / 255 ) : 1,
1948
+ 'B' => is_numeric($rgb[2]) ? ( $rgb[0] / 255 ) : 1,
1949
  );
1950
 
1951
 
2385
  'title_width' => 'width-100',
2386
  'notice_after' => sprintf(
2387
  __('Note : you can %1$s to replace your default theme template. Or design your own %2$s.', 'nimble-builder'),
2388
+ sprintf('<a href="#" onclick="%2$s" title="%1$s">%1$s</a>',
2389
  __('use the Nimble page template', 'nimble-builder'),
2390
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})"
2391
  ),
2392
+ sek_is_header_footer_enabled() ? sprintf('<a href="#" onclick="%2$s" title="%1$s">%1$s</a>',
2393
  __('header and footer', 'nimble-builder'),
2394
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })"
2395
  ) : __('header and footer', 'nimble-builder')
3469
  'refresh_stylesheet' => true,
3470
  'refresh_preview' => true,
3471
  'notice_before_title' => sprintf( __( 'The inner and outer widths of the sections displayed in this page can be set here. It will override in the %1$s. You can also set a custom inner and outer width for each single sections.', 'nimble-builder'),
3472
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
3473
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })",
3474
  __('Site wide options', 'nimble-builder')
3475
  )
3689
  'width-100' => true,
3690
  'title_width' => 'width-100',
3691
  'notice_after' => sprintf( __( 'This option overrides the site wide header and footer options set in the %1$s for this page only.', 'nimble-builder'),
3692
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
3693
  "javascript:wp.customize.section('__globalOptionsSectionId', function( _s_ ){ _s_.focus(); })",
3694
  __('Site wide options', 'nimble-builder')
3695
  )
3761
  'refresh_stylesheet' => true,
3762
  'refresh_preview' => true,
3763
  'notice_before_title' => sprintf( __( 'The inner and outer widths of your sections can be set globally here, but also overriden in the %1$s, and for each sections.', 'nimble-builder'),
3764
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
3765
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})",
3766
  __('Current page options', 'nimble-builder')
3767
  )
3912
  'nimble_global' => __('Nimble site wide header and footer ( beta )', 'nimble-builder' )
3913
  ),
3914
  'notice_before_title' => sprintf( __( 'The Nimble Builder allows you to build your own header and footer, or to use your theme\'s ones. This option can be overriden in the %1$s.', 'nimble-builder'),
3915
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
3916
  "javascript:wp.customize.section('__localOptionsSection', function( _s_ ){_s_.container.find('.accordion-section-title').first().trigger('click');})",
3917
  __('Current page options', 'nimble-builder')
3918
  )
6637
  'default' => 'no-link',
6638
  'choices' => sek_get_user_created_menus(),
6639
  'notice_after' => sprintf( __( 'You can create and edit menus in the %1$s. If you just created a new menu, publish and refresh the customizer to see in the dropdown list.', 'nimble-builder'),
6640
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
6641
  "javascript:wp.customize.panel('nav_menus', function( _p_ ){ _p_.focus(); })",
6642
  __('menu panel', 'nimble-builder')
6643
  )
6814
  'choices' => array(),
6815
  'refresh_preview' => true,// <= so that the partial refresh links are displayed
6816
  'notice_after' => sprintf( __( 'Once you have added a widget area to a section, you can add and edit the WordPress widgets in it in the %1$s.', 'nimble-builder'),
6817
+ sprintf( '<a href="#" onclick="%1$s">%2$s</a>',
6818
  "javascript:wp.customize.panel('widgets', function( _p_ ){ _p_.focus(); })",
6819
  __('widget panel', 'nimble-builder')
6820
  )
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.2
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://presscustomizr.com
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
- $current_version = "1.4.2";
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.1' ); }
31
  if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
32
 
33
  /* ------------------------------------------------------------------------- *
2
  /**
3
  * Plugin Name: Nimble Page Builder
4
  * Description: Powerful drag and drop page builder using the native WordPress customizer.
5
+ * Version: 1.4.3
6
  * Text Domain: nimble-builder
7
  * Author: Press Customizr
8
  * Author URI: https://presscustomizr.com
13
  /* ------------------------------------------------------------------------- *
14
  * CONSTANTS
15
  /* ------------------------------------------------------------------------- */
16
+ $current_version = "1.4.3";
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.3' ); }
31
  if ( !defined( 'NIMBLE_WELCOME_NOTICE_ID' ) ) { define ( 'NIMBLE_WELCOME_NOTICE_ID', 'nimble-welcome-notice-12-2018' ); }
32
 
33
  /* ------------------------------------------------------------------------- *
readme.txt CHANGED
@@ -5,8 +5,8 @@ Plugin URI: https://wordpress.org/plugins/nimble-builder/
5
  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.2
9
- Stable tag: 1.4.2
10
  License: GPLv3
11
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -56,10 +56,14 @@ 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.2 =
60
- Introduction of beta features : header and footer customization, menu module, widget area module. Added a new global option to try the beta features.
61
 
62
  == Changelog ==
 
 
 
 
63
  = 1.4.2 : December 22nd, 2018 =
64
  * added : a new global option to try the beta features
65
  * improved : header_one pre-build section
5
  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.3
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.3 =
60
+ Fixed a PHP warning when using an rgba color for an icon, a button or in a form. Improved support for Firefox.
61
 
62
  == Changelog ==
63
+ = 1.4.3 : January 16th, 2019 =
64
+ * fixed : a PHP warning when using an rgba color for an icon, a button or in a form
65
+ * improved : support for Firefox.
66
+
67
  = 1.4.2 : December 22nd, 2018 =
68
  * added : a new global option to try the beta features
69
  * improved : header_one pre-build section