Plugin Directory

Changeset 2525556


Ignore:
Timestamp:
05/03/2021 08:28:36 PM (5 years ago)
Author:
miguras
Message:

bug fix

Location:
miguras-divi-enhancer/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • miguras-divi-enhancer/trunk/custom/modules-mod.php

    r2525056 r2525556  
    4141  if(isset($allModules) && is_array($allModules)){
    4242    foreach($allModules as $module){
    43      
    44         $parent_modules[$module]->settings_modal_toggles['divienhancer'] = [
    45           'toggles' => [
    46             'de_interactive_bg'    => [
    47               'title'    => __( 'Interactive Background', 'divienhancer' ),
    48               'priority' => 10,
    49             ],
    50             'de_hover_effect'    => [
    51                 'title'    => __( 'Hover Effects', 'divienhancer' ),
     43       
     44        if(isset($parent_modules[$module])){
     45            $parent_modules[$module]->settings_modal_toggles['divienhancer'] = [
     46            'toggles' => [
     47                'de_interactive_bg'    => [
     48                'title'    => __( 'Interactive Background', 'divienhancer' ),
    5249                'priority' => 10,
     50                ],
     51                'de_hover_effect'    => [
     52                    'title'    => __( 'Hover Effects', 'divienhancer' ),
     53                    'priority' => 10,
     54                ],
     55                'de_sticky'    => [
     56                    'title'    => __( 'Sticky', 'divienhancer' ),
     57                    'priority' => 10,
     58                ],
     59                'de_caption'    => [
     60                    'title'    => __( 'Caption', 'divienhancer' ),
     61                    'priority' => 10,
     62                ],
     63                'de_modal'    => [
     64                    'title'    => __( 'Modal Popup', 'divienhancer' ),
     65                    'priority' => 10,
     66                ],
     67                'de_module_menu'    => [
     68                    'title'    => __( 'Module Menu', 'divienhancer' ),
     69                    'priority' => 10,
     70                ],
    5371            ],
    54             'de_sticky'    => [
    55                 'title'    => __( 'Sticky', 'divienhancer' ),
    56                 'priority' => 10,
    57             ],
    58             'de_caption'    => [
    59                 'title'    => __( 'Caption', 'divienhancer' ),
    60                 'priority' => 10,
    61             ],
    62             'de_modal'    => [
    63                 'title'    => __( 'Modal Popup', 'divienhancer' ),
    64                 'priority' => 10,
    65             ],
    66             'de_module_menu'    => [
    67                 'title'    => __( 'Module Menu', 'divienhancer' ),
    68                 'priority' => 10,
    69             ],
    70           ],
    71         ];
     72            ];
     73        }
    7274     
    7375    }
  • miguras-divi-enhancer/trunk/main.php

    r2525056 r2525556  
    44Plugin URI: https://pagebuildercode.com/divi-enhancer
    55Description: Add custom modules and options to DIVI
    6 Version: 5.0.8
     6Version: 5.0.9
    77Author: Miguras
    88Author URI: https://pagebuildercode.com
  • miguras-divi-enhancer/trunk/readme.txt

    r2525056 r2525556  
    55Requires at least: 5.0
    66Tested up to: 5.6
    7 Stable tag: 5.0.8
     7Stable tag: 5.0.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.