Plugin Directory

Changeset 601560


Ignore:
Timestamp:
09/20/2012 12:46:56 PM (13 years ago)
Author:
attosoft
Message:

NEW: Compatibility with obsolete WordPress 2.7

  • Defines custom plugins_url() function
    • In original plugins_url() function, '$plugin' argument is defined since WordPress 2.8
  • Updated to version 0.2
Location:
auto-animateimage/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • auto-animateimage/trunk/animateimage-utils.php

    r601557 r601560  
    2929}
    3030
     31// @note '$plugin' is defined since WordPress 2.8
     32function plugins_url( $path, $plugin = '' ) {
     33    if (!$plugin) $plugin = __FILE__;
     34    return version_compare('2.8', get_bloginfo('version')) > 0 ? plugins_url( 'auto-animateimage/' . $path ) : plugins_url( $path, $plugin );
     35}
     36
    3137} # class Animate_Image_Utils
    3238?>
  • auto-animateimage/trunk/animateimage.php

    r601557 r601560  
    44Plugin URI: http://attosoft.info/en/blog/auto-animateimage/
    55Description: Automatically applies AnimateImage script to your site. AnimateImage displays multiple images continuously like animated GIF. All you have to do is write img elements, and the images will be animated automatically.
    6 Version: 0.1
     6Version: 0.2
    77Author: attosoft
    88Author URI: http://attosoft.info/en/
     
    2929*/
    3030
    31 define('AUTO_ANIMATE_IMAGE_VER', '0.1');
     31define('AUTO_ANIMATE_IMAGE_VER', '0.2');
    3232
    3333class Animate_Image {
     
    3939     **/
    4040    function scripts() {
    41         wp_enqueue_script('animate-image', plugins_url('animate-image.min.js', __FILE__), false, AUTO_ANIMATE_IMAGE_VER);
     41        wp_enqueue_script('animate-image', $this->util->plugins_url('animate-image.min.js'), false, AUTO_ANIMATE_IMAGE_VER);
    4242    }
    4343
  • auto-animateimage/trunk/readme.txt

    r601557 r601560  
    33Donate link: http://attosoft.info/en/donate/
    44Tags: animation, animated, slider, slideshow, slide show, gallery, image, images, photo, photos, picture, pictures, javascript, plugin, plugins
    5 Requires at least: 2.8
     5Requires at least: 2.7
    66Tested up to: 3.4.2
    77Stable tag: trunk
     
    2121* Automatically applies [AnimateImage script](http://attosoft.info/en/blog/animate-image/) to your site
    2222* All you have to do is write `img` elements. No JavaScript, No Shortcode, No Gallery.
    23 * Compatible widely down to even obsolete WordPress 2.8
     23* Compatible widely down to even obsolete WordPress 2.7
    2424
    2525= AnimateImage Features =
     
    137137
    138138= Latest Version =
     139
     140= 0.2 =
    139141* NEW: Localization support
     142* NEW: Compatibility with obsolete WordPress 2.7
    140143* UPDATED: Added Japanese (ja) translation
    141144
Note: See TracChangeset for help on using the changeset viewer.