Version Description
Visit the Github release page.
Download this release
Release Info
Developer | nikeo |
Plugin | Nimble Page Builder |
Version | 3.3.2 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.3.2
- inc/admin/nb-options.php +16 -1
- inc/sektions/_front_dev_php/_constants_and_helper_functions/0_0_0_constants.php +1 -0
- inc/sektions/ccat-constants-and-helper-functions.php +1 -1
- inc/sektions/ccat-czr-sektions.php +6 -2
- inc/sektions/ccat-sektions-base.php +1 -1
- nimble-builder.php +2 -2
- readme.txt +1 -1
inc/admin/nb-options.php
CHANGED
@@ -255,7 +255,8 @@ function print_welcome_page() {
|
|
255 |
'NIMBLE_OPT_NAME_FOR_BACKWARD_FIXES',
|
256 |
// admin options
|
257 |
'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING',
|
258 |
-
'NIMBLE_OPT_NAME_FOR_DEBUG_MODE'
|
|
|
259 |
];
|
260 |
foreach( $nb_opts as $opt_name ) {
|
261 |
if ( !defined( $opt_name ) )
|
@@ -367,6 +368,18 @@ function print_options_page() {
|
|
367 |
</fieldset>
|
368 |
</td>
|
369 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
<tr>
|
371 |
<th scope="row"><?php _e('Debug Mode', 'text_doma'); ?></th>
|
372 |
<td>
|
@@ -462,6 +475,8 @@ function nb_save_base_options() {
|
|
462 |
nb_maybe_update_checkbox_option( NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE, 'off' );
|
463 |
// Debug mode
|
464 |
nb_maybe_update_checkbox_option( NIMBLE_OPT_NAME_FOR_DEBUG_MODE, 'off' );
|
|
|
|
|
465 |
}
|
466 |
|
467 |
// helper to update a checkbox option
|
255 |
'NIMBLE_OPT_NAME_FOR_BACKWARD_FIXES',
|
256 |
// admin options
|
257 |
'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING',
|
258 |
+
'NIMBLE_OPT_NAME_FOR_DEBUG_MODE',
|
259 |
+
'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS'
|
260 |
];
|
261 |
foreach( $nb_opts as $opt_name ) {
|
262 |
if ( !defined( $opt_name ) )
|
368 |
</fieldset>
|
369 |
</td>
|
370 |
</tr>
|
371 |
+
<tr>
|
372 |
+
<th scope="row"><?php _e('Google Fonts', 'text_doma'); ?></th>
|
373 |
+
<td>
|
374 |
+
<fieldset><legend class="screen-reader-text"><span><?php _e('Disable Google Fonts', 'text_doma'); ?></span></legend>
|
375 |
+
<?php
|
376 |
+
$nb_debug_mode_opt_val = get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS );
|
377 |
+
?>
|
378 |
+
<label for="nb_google_font_disable"><input name="nb_google_font_disable" type="checkbox" id="nb_google_font_disable" value="on" <?php checked( $nb_debug_mode_opt_val, 'on' ); ?>>
|
379 |
+
<?php _e('Activate to disable Google fonts', 'text_doma'); ?></label>
|
380 |
+
</fieldset>
|
381 |
+
</td>
|
382 |
+
</tr>
|
383 |
<tr>
|
384 |
<th scope="row"><?php _e('Debug Mode', 'text_doma'); ?></th>
|
385 |
<td>
|
475 |
nb_maybe_update_checkbox_option( NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE, 'off' );
|
476 |
// Debug mode
|
477 |
nb_maybe_update_checkbox_option( NIMBLE_OPT_NAME_FOR_DEBUG_MODE, 'off' );
|
478 |
+
// Google font disabled
|
479 |
+
nb_maybe_update_checkbox_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS, 'off' );
|
480 |
}
|
481 |
|
482 |
// helper to update a checkbox option
|
inc/sektions/_front_dev_php/_constants_and_helper_functions/0_0_0_constants.php
CHANGED
@@ -41,6 +41,7 @@ if ( !defined( 'NIMBLE_OPT_NAME_FOR_BACKWARD_FIXES' ) ) { define( 'NIMBLE_OPT_NA
|
|
41 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' ) ) { define( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' , 'nb_shortcodes_parsed_in_czr' ); }
|
42 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
|
43 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
|
|
|
44 |
|
45 |
|
46 |
if ( !defined( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' ) ) { define( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' , '__nimble__' ); }
|
41 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' ) ) { define( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' , 'nb_shortcodes_parsed_in_czr' ); }
|
42 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
|
43 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
|
44 |
+
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' , 'nb_google_font_disable' ); }
|
45 |
|
46 |
|
47 |
if ( !defined( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' ) ) { define( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' , '__nimble__' ); }
|
inc/sektions/ccat-constants-and-helper-functions.php
CHANGED
@@ -41,7 +41,7 @@ if ( !defined( 'NIMBLE_OPT_NAME_FOR_BACKWARD_FIXES' ) ) { define( 'NIMBLE_OPT_NA
|
|
41 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' ) ) { define( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' , 'nb_shortcodes_parsed_in_czr' ); }
|
42 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
|
43 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
|
44 |
-
|
45 |
|
46 |
if ( !defined( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' ) ) { define( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' , '__nimble__' ); }
|
47 |
if ( !defined( 'NIMBLE_WIDGET_PREFIX' ) ) { define( 'NIMBLE_WIDGET_PREFIX' , 'nimble-widget-area-' ); }
|
41 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' ) ) { define( 'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING' , 'nb_shortcodes_parsed_in_czr' ); }
|
42 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
|
43 |
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
|
44 |
+
if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' , 'nb_google_font_disable' ); }
|
45 |
|
46 |
if ( !defined( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' ) ) { define( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' , '__nimble__' ); }
|
47 |
if ( !defined( 'NIMBLE_WIDGET_PREFIX' ) ) { define( 'NIMBLE_WIDGET_PREFIX' , 'nimble-widget-area-' ); }
|
inc/sektions/ccat-czr-sektions.php
CHANGED
@@ -482,7 +482,7 @@ function nimble_get_code_editor_settings( $args ) {
|
|
482 |
/* ------------------------------------------------------------------------- */
|
483 |
add_filter( 'nimble-sek-localized-customizer-control-params', '\Nimble\nimble_add_i18n_localized_control_params' );
|
484 |
function nimble_add_i18n_localized_control_params( $params ) {
|
485 |
-
|
486 |
'i18n' => array(
|
487 |
'Sections' => __( 'Sections', 'text_doma'),
|
488 |
|
@@ -675,6 +675,10 @@ function nimble_add_i18n_localized_control_params( $params ) {
|
|
675 |
)//array()
|
676 |
)//array()
|
677 |
);//array_merge
|
|
|
|
|
|
|
|
|
678 |
}//'nimble_add_i18n_localized_control_params'
|
679 |
|
680 |
|
@@ -4231,7 +4235,7 @@ function sek_get_font_list_tmpl( $html, $requested_tmpl = '', $posted_params = a
|
|
4231 |
|
4232 |
return wp_json_encode( array(
|
4233 |
'cfonts' => sek_get_cfonts(),
|
4234 |
-
'gfonts' => sek_get_gfonts(),
|
4235 |
) );//will be sent by wp_send_json_success() in ::ac_set_ajax_czr_tmpl()
|
4236 |
}
|
4237 |
|
482 |
/* ------------------------------------------------------------------------- */
|
483 |
add_filter( 'nimble-sek-localized-customizer-control-params', '\Nimble\nimble_add_i18n_localized_control_params' );
|
484 |
function nimble_add_i18n_localized_control_params( $params ) {
|
485 |
+
$data = array_merge( $params, array(
|
486 |
'i18n' => array(
|
487 |
'Sections' => __( 'Sections', 'text_doma'),
|
488 |
|
675 |
)//array()
|
676 |
)//array()
|
677 |
);//array_merge
|
678 |
+
if( get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) == 'on' ){
|
679 |
+
unset( $data['i18n']['Google fonts'] );
|
680 |
+
}
|
681 |
+
return $data;
|
682 |
}//'nimble_add_i18n_localized_control_params'
|
683 |
|
684 |
|
4235 |
|
4236 |
return wp_json_encode( array(
|
4237 |
'cfonts' => sek_get_cfonts(),
|
4238 |
+
'gfonts' => get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) == 'on' ? [] : sek_get_gfonts(),
|
4239 |
) );//will be sent by wp_send_json_success() in ::ac_set_ajax_czr_tmpl()
|
4240 |
}
|
4241 |
|
inc/sektions/ccat-sektions-base.php
CHANGED
@@ -5254,7 +5254,7 @@ if ( !class_exists( 'SEK_Front_Render_Css' ) ) :
|
|
5254 |
}
|
5255 |
$google_fonts_print_candidates = $this->sek_get_gfont_print_candidates( $local_skope_id );
|
5256 |
// GOOGLE FONTS
|
5257 |
-
if ( !empty( $google_fonts_print_candidates ) ) {
|
5258 |
// When customizing we get the google font content
|
5259 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
5260 |
$this->sek_get_gfont_in_ajax( $google_fonts_print_candidates );
|
5254 |
}
|
5255 |
$google_fonts_print_candidates = $this->sek_get_gfont_print_candidates( $local_skope_id );
|
5256 |
// GOOGLE FONTS
|
5257 |
+
if ( !empty( $google_fonts_print_candidates ) && get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) != 'on' ) {
|
5258 |
// When customizing we get the google font content
|
5259 |
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
5260 |
$this->sek_get_gfont_in_ajax( $google_fonts_print_candidates );
|
nimble-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Plugin URI: https://nimblebuilder.com
|
5 |
* Description: Simple and smart companion that allows you to insert sections into any existing page, create landing pages or entire websites including header and footer.
|
6 |
-
* Version: 3.3.
|
7 |
* Text Domain: nimble-builder
|
8 |
* Author: Press Customizr
|
9 |
* Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
|
@@ -16,7 +16,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
16 |
/* ------------------------------------------------------------------------- *
|
17 |
* CONSTANTS
|
18 |
/* ------------------------------------------------------------------------- */
|
19 |
-
$current_version = "3.3.
|
20 |
|
21 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
22 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
3 |
* Plugin Name: Nimble Page Builder
|
4 |
* Plugin URI: https://nimblebuilder.com
|
5 |
* Description: Simple and smart companion that allows you to insert sections into any existing page, create landing pages or entire websites including header and footer.
|
6 |
+
* Version: 3.3.2
|
7 |
* Text Domain: nimble-builder
|
8 |
* Author: Press Customizr
|
9 |
* Author URI: https://nimblebuilder.com/?utm_source=wp-plugins&utm_medium=wp-dashboard&utm_campaign=author-uri
|
16 |
/* ------------------------------------------------------------------------- *
|
17 |
* CONSTANTS
|
18 |
/* ------------------------------------------------------------------------- */
|
19 |
+
$current_version = "3.3.2";
|
20 |
|
21 |
if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
|
22 |
if ( !defined( 'NIMBLE_DIR_NAME' ) ) { define( 'NIMBLE_DIR_NAME' , basename( dirname( __FILE__ ) ) ); }
|
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: 6.0
|
9 |
-
Stable tag: 3.3.
|
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
|
6 |
Requires at least: 4.7
|
7 |
Requires PHP: 5.4
|
8 |
Tested up to: 6.0
|
9 |
+
Stable tag: 3.3.2
|
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
|