Plugin Directory

Changeset 2582768


Ignore:
Timestamp:
08/13/2021 10:33:12 PM (5 years ago)
Author:
Lumne
Message:

tagging version 1.1 and 1.0

Location:
jelly
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • jelly/tags/1.1/jelly.php

    r1167460 r2582768  
    55     * Description: Slideshow designed and developed by Lumne.
    66     * Version: 1.0
    7      * Author: Chad Milburn
     7     * Requires at least: 3.0.1
     8     * Requires PHP 7.4
     9     * Author: Chad Milburn and Jonathan Clark
    810     * Author URI: http://lumne.net
    911     * License: GPL2
    1012
    11      Copyright 2013  Lumne  (email : chad@lumne.net)
     13     Copyright 2021  Lumne  (email : jonathan@lumne.net)
    1214
    1315        This program is free software; you can redistribute it and/or modify
     
    2426        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2527    */
     28
     29    /**
     30     * [2021-08-06 JLC] Fatal error found
     31     */
    2632   
    2733    function jelly_activation(){
     
    105111        sort($images);
    106112
    107         //$c = 0;
     113        $c = ''; // Needs to have a placeholder to avoid PHP 8 warning
    108114        echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">';
    109115        foreach($images as $image){
     
    122128
    123129        }
    124         echo '<td><input type="button" id="new_image" class="image-button" value="New image" data-count="'.$c.'" /></td>';
     130        echo '<td><input type="button" id="new_image" class="image-button" value="New image" data-count="'.$c.'" /></td>'; // Warning: Undefined variable $c
    125131        echo '</table>';
    126132    }
     
    167173                                ), $atts, 'jelly' ) );
    168174
    169         $active = (in_array('active', $atts));
     175        // $active = (in_array('active', $atts)); // Original. Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array
     176        if (is_array($atts)) {
     177            $active = (in_array('active', $atts));
     178        }
    170179
    171180        $top = '';
     
    181190        }
    182191
    183         $output = '<div class="jelly'.($active?' active':'').'" id="gallery'.$id
     192        $output = '<div class="jelly'.($active?' active':'').'" id="gallery'
    184193                            .'"data-pause="'.(!empty($options["slide"])?$options["slide"]:'6500')
    185194                            .'" data-trans="'.(!empty($options["trans"])?$options["trans"]:'300')
  • jelly/tags/1.1/readme.txt

    r1167449 r2582768  
    33Tags: gallery, image, images, javascript, jquery, photo, responsive, slide show, slider, slideshow
    44Requires at least: 3.0.1
    5 Tested up to: 4.2.1
    6 Stable tag: 1.0
     5Tested up to: 5.8
     6Stable tag: 1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • jelly/trunk/jelly.php

    r1167460 r2582768  
    55     * Description: Slideshow designed and developed by Lumne.
    66     * Version: 1.0
    7      * Author: Chad Milburn
     7     * Requires at least: 3.0.1
     8     * Requires PHP 7.4
     9     * Author: Chad Milburn and Jonathan Clark
    810     * Author URI: http://lumne.net
    911     * License: GPL2
    1012
    11      Copyright 2013  Lumne  (email : chad@lumne.net)
     13     Copyright 2021  Lumne  (email : jonathan@lumne.net)
    1214
    1315        This program is free software; you can redistribute it and/or modify
     
    2426        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2527    */
     28
     29    /**
     30     * [2021-08-06 JLC] Fatal error found
     31     */
    2632   
    2733    function jelly_activation(){
     
    105111        sort($images);
    106112
    107         //$c = 0;
     113        $c = ''; // Needs to have a placeholder to avoid PHP 8 warning
    108114        echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">';
    109115        foreach($images as $image){
     
    122128
    123129        }
    124         echo '<td><input type="button" id="new_image" class="image-button" value="New image" data-count="'.$c.'" /></td>';
     130        echo '<td><input type="button" id="new_image" class="image-button" value="New image" data-count="'.$c.'" /></td>'; // Warning: Undefined variable $c
    125131        echo '</table>';
    126132    }
     
    167173                                ), $atts, 'jelly' ) );
    168174
    169         $active = (in_array('active', $atts));
     175        // $active = (in_array('active', $atts)); // Original. Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array
     176        if (is_array($atts)) {
     177            $active = (in_array('active', $atts));
     178        }
    170179
    171180        $top = '';
     
    181190        }
    182191
    183         $output = '<div class="jelly'.($active?' active':'').'" id="gallery'.$id
     192        $output = '<div class="jelly'.($active?' active':'').'" id="gallery'
    184193                            .'"data-pause="'.(!empty($options["slide"])?$options["slide"]:'6500')
    185194                            .'" data-trans="'.(!empty($options["trans"])?$options["trans"]:'300')
  • jelly/trunk/readme.txt

    r1167449 r2582768  
    33Tags: gallery, image, images, javascript, jquery, photo, responsive, slide show, slider, slideshow
    44Requires at least: 3.0.1
    5 Tested up to: 4.2.1
    6 Stable tag: 1.0
     5Tested up to: 5.8
     6Stable tag: 1.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.