Plugin Directory

Changeset 2497414


Ignore:
Timestamp:
03/16/2021 11:01:40 PM (5 years ago)
Author:
buntegiraffe
Message:

added compatibility for 5.7

Location:
show-hidecollapse-expand/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • show-hidecollapse-expand/trunk/Tab_settings.php

    r1801725 r2497414  
    8484            $this->_html );
    8585           
    86         wp_localize_script( "bg-show-hide-script", 'BG_SHCE_USE_EFFECTS', $this->getPluginContext()->getEffectsEnabledOption());
    87         wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_SPEED', $this->getPluginContext()->getAnimationSpeed());
    88         wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_OPTIONS', 'none');
    89         wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_EFFECT', $this->getPluginContext()->getAnimationEffect());   
     86        wp_localize_script( "bg-show-hide-script", 'BG_SHCE_USE_EFFECTS', array($this->getPluginContext()->getEffectsEnabledOption()));
     87        wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_SPEED', array($this->getPluginContext()->getAnimationSpeed()));
     88        wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_OPTIONS', array('none'));
     89        wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_EFFECT', array($this->getPluginContext()->getAnimationEffect()));   
    9090       
    9191        return $this->_html;
  • show-hidecollapse-expand/trunk/bg_show_hide.php

    r2357294 r2497414  
    55  Plugin URI: http://showhide.bunte-giraffe.de
    66  Description: Save space on your pages, posts, sidebars. Hide the content before user clicks to see it. Collapse long lists, create FAQs & more.
    7   Version: 1.2.4
     7  Version: 1.2.5
    88  Author: Bunte Giraffe
    99  Author URI: http://bunte-giraffe.de
     
    258258    $content = do_shortcode($content);
    259259   
    260     wp_localize_script( "bg-show-hide-script", 'BG_SHCE_USE_EFFECTS', get_option('bg_shce_effectsEnabled','0'));
    261     wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_SPEED', get_option('bg_shce_animationSpeed','400'));
    262     wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_OPTIONS', 'none');
    263     wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_EFFECT', get_option('bg_shce_animationEffect','blind'));
     260    wp_localize_script( "bg-show-hide-script", 'BG_SHCE_USE_EFFECTS', array(get_option('bg_shce_effectsEnabled','0')));
     261    wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_SPEED', array(get_option('bg_shce_animationSpeed','400')));
     262    wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_OPTIONS', array('none'));
     263    wp_localize_script( "bg-show-hide-script", 'BG_SHCE_TOGGLE_EFFECT', array(get_option('bg_shce_animationEffect','blind'))); 
    264264
    265265    // always return
     
    409409        plugins_url( BG_SHCE_TMCE_STYLESHEET_FILE_URL, __FILE__ ) );
    410410
    411     wp_localize_script( "jquery", "BG_SHCE_PRESET1", get_option('bg_shce_preset1',' '));
     411    wp_localize_script( "jquery", "BG_SHCE_PRESET1", array(get_option('bg_shce_preset1',' ')));
    412412
    413413}
  • show-hidecollapse-expand/trunk/readme.txt

    r2357294 r2497414  
    9090== Changelog ==
    9191
     92= 1.2.5 =
     93* Added compatibility for WP 5.7
     94
    9295= 1.2.4 =
    9396* Added compatibility for PHP 7.3+
Note: See TracChangeset for help on using the changeset viewer.