Plugin Directory

Changeset 2791233


Ignore:
Timestamp:
09/28/2022 09:43:09 AM (4 years ago)
Author:
nikeo
Message:

Release 3.3.2

Location:
nimble-builder
Files:
824 added
7 edited

Legend:

Unmodified
Added
Removed
  • nimble-builder/trunk/inc/admin/nb-options.php

    r2717970 r2791233  
    256256      // admin options
    257257      'NIMBLE_OPT_NAME_FOR_SHORTCODE_PARSING',
    258       'NIMBLE_OPT_NAME_FOR_DEBUG_MODE'
     258      'NIMBLE_OPT_NAME_FOR_DEBUG_MODE',
     259      'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS'
    259260    ];
    260261    foreach( $nb_opts as $opt_name ) {
     
    365366              <label for="nb_widgets_disabled_in_czr"><input name="nb_widgets_disabled_in_czr" type="checkbox" id="nb_widgets_disabled_in_czr" value="on" <?php checked( $widget_disabled_opt_val, 'on' ); ?>>
    366367              <?php _e('Disable the Widgets Module', 'text_doma'); ?></label>
     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>
    367380            </fieldset>
    368381          </td>
     
    463476    // Debug mode
    464477    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' );
    465480}
    466481
  • nimble-builder/trunk/inc/sektions/_front_dev_php/_constants_and_helper_functions/0_0_0_constants.php

    r2723329 r2791233  
    4242if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
    4343if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
     44if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' , 'nb_google_font_disable' ); }
    4445
    4546
  • nimble-builder/trunk/inc/sektions/ccat-constants-and-helper-functions.php

    r2717970 r2791233  
    4242if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_WIDGET_MODULE' , 'nb_widgets_disabled_in_czr' ); }
    4343if ( !defined( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DEBUG_MODE' , 'nb_debug_mode_active' ); }
    44 
     44if ( !defined( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' ) ) { define( 'NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS' , 'nb_google_font_disable' ); }
    4545
    4646if ( !defined( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' ) ) { define( 'NIMBLE_PREFIX_FOR_SETTING_NOT_SAVED' , '__nimble__' ); }
  • nimble-builder/trunk/inc/sektions/ccat-czr-sektions.php

    r2717970 r2791233  
    483483add_filter( 'nimble-sek-localized-customizer-control-params', '\Nimble\nimble_add_i18n_localized_control_params' );
    484484function nimble_add_i18n_localized_control_params( $params ) {
    485     return array_merge( $params, array(
     485    $data = array_merge( $params, array(
    486486        'i18n' => array(
    487487            'Sections' => __( 'Sections', 'text_doma'),
     
    676676    )//array()
    677677    );//array_merge
     678    if( get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) == 'on' ){
     679        unset( $data['i18n']['Google fonts'] );   
     680    }
     681    return $data;
    678682}//'nimble_add_i18n_localized_control_params'
    679683
     
    42324236    return wp_json_encode( array(
    42334237        'cfonts' => sek_get_cfonts(),
    4234         'gfonts' => sek_get_gfonts(),
     4238        'gfonts' => get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) == 'on' ? [] : sek_get_gfonts(),
    42354239    ) );//will be sent by wp_send_json_success() in ::ac_set_ajax_czr_tmpl()
    42364240}
  • nimble-builder/trunk/inc/sektions/ccat-sektions-base.php

    r2745642 r2791233  
    52555255            $google_fonts_print_candidates = $this->sek_get_gfont_print_candidates( $local_skope_id );
    52565256            // GOOGLE FONTS
    5257             if ( !empty( $google_fonts_print_candidates ) ) {
     5257            if ( !empty( $google_fonts_print_candidates ) && get_option( NIMBLE_OPT_NAME_FOR_DISABLING_GOOGLE_FONTS ) != 'on' ) {
    52585258                // When customizing we get the google font content
    52595259                if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
  • nimble-builder/trunk/nimble-builder.php

    r2745642 r2791233  
    44* Plugin URI: https://nimblebuilder.com
    55* 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.1
     6* Version: 3.3.2
    77* Text Domain: nimble-builder
    88* Author: Press Customizr
     
    1717 *  CONSTANTS
    1818/* ------------------------------------------------------------------------- */
    19 $current_version = "3.3.1";
     19$current_version = "3.3.2";
    2020
    2121if ( !defined( "NIMBLE_VERSION" ) ) { define( "NIMBLE_VERSION", $current_version ); }
  • nimble-builder/trunk/readme.txt

    r2745642 r2791233  
    77Requires PHP: 5.4
    88Tested up to: 6.0
    9 Stable tag: 3.3.1
     9Stable tag: 3.3.2
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.