Plugin Directory

Changeset 3056177


Ignore:
Timestamp:
03/21/2024 01:55:51 PM (2 years ago)
Author:
ibachal
Message:

Fixed: Modules were not functioning after the recent update

Location:
powerpack-addon-for-beaver-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • powerpack-addon-for-beaver-builder/trunk/bb-powerpack-lite.php

    r3051551 r3056177  
    44 * Plugin URI: https://wpbeaveraddons.com
    55 * Description: A set of custom, creative, unique modules for Beaver Builder to speed up your web design and development process.
    6  * Version: 1.3.0.1
     6 * Version: 1.3.0.2
    77 * Author: Beaver Addons
    88 * Author URI: https://wpbeaveraddons.com
     
    6565        define( 'BB_POWERPACK_LITE', true );
    6666        define( 'BB_POWERPACK_PRO', 'https://wpbeaveraddons.com/upgrade/?utm_medium=bb-powerpack-lite&utm_source=module-settings&utm_campaign=module-settings' );
    67         define( 'BB_POWERPACK_VER', '1.3.0.1' );
     67        define( 'BB_POWERPACK_VER', '1.3.0.2' );
    6868        define( 'BB_POWERPACK_DIR', plugin_dir_path( __FILE__ ) );
    6969        define( 'BB_POWERPACK_URL', plugins_url( '/', __FILE__ ) );
  • powerpack-addon-for-beaver-builder/trunk/includes/ui-field-pp-switch.php

    r1962832 r3056177  
    2222
    2323// Options Count
    24 var optionsCount = Object.keys(field.options).length;
     24var optionsCount = 'undefined' !== typeof field.options ? Object.keys(field.options).length : 2;
    2525
    2626#>
    2727
    2828<div class="pp-switch" data-options="{{optionsCount}}">
    29     <#
    30     // Loop through the options
    31     for ( var optionKey in field.options ) {
    32         var optionVal = field.options[ optionKey ];
    33         // Is selected?
    34         var selected = '';
    35         if ( optionKey == value ) {
    36             selected = ' pp-switch-active';
    37         }
    38         // Option label
    39         var label = 'object' === typeof optionVal ? optionVal.label : optionVal;
     29    <#
     30    if ( 'undefined' !== typeof field.options ) {
     31        // Loop through the options
     32        for ( var optionKey in field.options ) {
     33            var optionVal = field.options[ optionKey ];
     34            // Is selected?
     35            var selected = '';
     36            if ( optionKey == value ) {
     37                selected = ' pp-switch-active';
     38            }
     39            // Option label
     40            var label = 'object' === typeof optionVal ? optionVal.label : optionVal;
    4041    #>
    41     <span class="pp-switch-button{{selected}}" data-value="{{optionKey}}">{{{label}}}</span>
    42     <# } #>
     42        <span class="pp-switch-button{{selected}}" data-value="{{optionKey}}">{{{label}}}</span>
     43    <# } } else { #>
     44        <span class="pp-switch-button<# if ( 'yes' === value ) { #> pp-switch-active<# } #>" data-value="yes"><?php _e( 'Yes', 'bb-powerpack' ); ?></span>
     45        <span class="pp-switch-button<# if ( 'no' === value ) { #> pp-switch-active<# } #>" data-value="no"><?php _e( 'No', 'bb-powerpack' ); ?></span>
     46    <# } #>
    4347    <input type="hidden" class="pp-field-switch" name="{{name}}" value="{{value}}"{{{atts}}} />
    4448</div>
  • powerpack-addon-for-beaver-builder/trunk/readme.txt

    r3051551 r3056177  
    44Requires at least: 4.6
    55Requires PHP: 7.4
    6 Tested up to: 6.3
     6Tested up to: 6.4.3
    77Stable tag: trunk
    88License: GPLv2 or later
     
    197197== Changelog ==
    198198
     199== 1.3.0.2 - March 21, 2024
     200*   Fix: Modules were not functioning properly after recent update
     201
    199202== 1.3.0.1 - March 15, 2024
    200203*   Security fixes
Note: See TracChangeset for help on using the changeset viewer.