Changeset 2582768
- Timestamp:
- 08/13/2021 10:33:12 PM (5 years ago)
- Location:
- jelly
- Files:
-
- 4 edited
- 2 copied
-
tags/1.0 (copied) (copied from jelly/trunk)
-
tags/1.1 (copied) (copied from jelly/trunk)
-
tags/1.1/jelly.php (modified) (6 diffs)
-
tags/1.1/readme.txt (modified) (1 diff)
-
trunk/jelly.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
jelly/tags/1.1/jelly.php
r1167460 r2582768 5 5 * Description: Slideshow designed and developed by Lumne. 6 6 * 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 8 10 * Author URI: http://lumne.net 9 11 * License: GPL2 10 12 11 Copyright 20 13 Lumne (email : chad@lumne.net)13 Copyright 2021 Lumne (email : jonathan@lumne.net) 12 14 13 15 This program is free software; you can redistribute it and/or modify … … 24 26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 27 */ 28 29 /** 30 * [2021-08-06 JLC] Fatal error found 31 */ 26 32 27 33 function jelly_activation(){ … … 105 111 sort($images); 106 112 107 //$c = 0;113 $c = ''; // Needs to have a placeholder to avoid PHP 8 warning 108 114 echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">'; 109 115 foreach($images as $image){ … … 122 128 123 129 } 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 125 131 echo '</table>'; 126 132 } … … 167 173 ), $atts, 'jelly' ) ); 168 174 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 } 170 179 171 180 $top = ''; … … 181 190 } 182 191 183 $output = '<div class="jelly'.($active?' active':'').'" id="gallery' .$id192 $output = '<div class="jelly'.($active?' active':'').'" id="gallery' 184 193 .'"data-pause="'.(!empty($options["slide"])?$options["slide"]:'6500') 185 194 .'" data-trans="'.(!empty($options["trans"])?$options["trans"]:'300') -
jelly/tags/1.1/readme.txt
r1167449 r2582768 3 3 Tags: gallery, image, images, javascript, jquery, photo, responsive, slide show, slider, slideshow 4 4 Requires at least: 3.0.1 5 Tested up to: 4.2.16 Stable tag: 1. 05 Tested up to: 5.8 6 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
jelly/trunk/jelly.php
r1167460 r2582768 5 5 * Description: Slideshow designed and developed by Lumne. 6 6 * 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 8 10 * Author URI: http://lumne.net 9 11 * License: GPL2 10 12 11 Copyright 20 13 Lumne (email : chad@lumne.net)13 Copyright 2021 Lumne (email : jonathan@lumne.net) 12 14 13 15 This program is free software; you can redistribute it and/or modify … … 24 26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 27 */ 28 29 /** 30 * [2021-08-06 JLC] Fatal error found 31 */ 26 32 27 33 function jelly_activation(){ … … 105 111 sort($images); 106 112 107 //$c = 0;113 $c = ''; // Needs to have a placeholder to avoid PHP 8 warning 108 114 echo '<table class="jelly-image-table" data-delete-image="'.$path.'img/delete.png'.'">'; 109 115 foreach($images as $image){ … … 122 128 123 129 } 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 125 131 echo '</table>'; 126 132 } … … 167 173 ), $atts, 'jelly' ) ); 168 174 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 } 170 179 171 180 $top = ''; … … 181 190 } 182 191 183 $output = '<div class="jelly'.($active?' active':'').'" id="gallery' .$id192 $output = '<div class="jelly'.($active?' active':'').'" id="gallery' 184 193 .'"data-pause="'.(!empty($options["slide"])?$options["slide"]:'6500') 185 194 .'" data-trans="'.(!empty($options["trans"])?$options["trans"]:'300') -
jelly/trunk/readme.txt
r1167449 r2582768 3 3 Tags: gallery, image, images, javascript, jquery, photo, responsive, slide show, slider, slideshow 4 4 Requires at least: 3.0.1 5 Tested up to: 4.2.16 Stable tag: 1. 05 Tested up to: 5.8 6 Stable tag: 1.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.