Changeset 2263217
- Timestamp:
- 03/18/2020 01:45:50 PM (6 years ago)
- Location:
- simple-gallery-lightbox
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from simple-gallery-lightbox/trunk)
-
tags/1.0.1/js/main.js (modified) (2 diffs)
-
tags/1.0.1/readme.txt (modified) (2 diffs)
-
tags/1.0.1/simple-gallery-lightbox.php (modified) (1 diff)
-
trunk/js/main.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-gallery-lightbox.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-gallery-lightbox/tags/1.0.1/js/main.js
r2262969 r2263217 41 41 42 42 var items = gallery.find('.blocks-gallery-item a'); 43 if (items.length == 0) { 44 items = gallery.find('.blocks-gallery-item img'); 45 } 43 46 44 47 items.on('click', function(e){ 45 46 48 47 49 $('html, body').css({ … … 52 54 53 55 var thisItem = $(this); 54 var image = thisItem.find('img').clone(); 56 var image; 57 if (thisItem.is('a')) { 58 image = thisItem.find('img').clone(); 59 } 60 else { 61 image = thisItem.clone(); 62 } 55 63 56 64 lightbox.append(image); 57 65 lightbox.show(); 58 59 66 60 67 }); -
simple-gallery-lightbox/tags/1.0.1/readme.txt
r2262978 r2263217 5 5 Requires at least: 5.0 6 6 Tested up to: 5.3 7 Stable tag: trunk7 Stable tag: 1.0.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 38 38 * Initial release. 39 39 40 = 1.0.1 = 41 * Support for galleries that is linked to "none" (no links, just the images in the gallery). 42 40 43 == Upgrade Notice == 41 44 -
simple-gallery-lightbox/tags/1.0.1/simple-gallery-lightbox.php
r2262969 r2263217 3 3 Plugin Name: Simple Gallery Lightbox 4 4 Description: Adds a simple lightbox to default Gutenberg gallery 5 Version: 1.0. 05 Version: 1.0.1 6 6 Requires at least: 5.0 7 7 Author: Gamevase -
simple-gallery-lightbox/trunk/js/main.js
r2262969 r2263217 41 41 42 42 var items = gallery.find('.blocks-gallery-item a'); 43 if (items.length == 0) { 44 items = gallery.find('.blocks-gallery-item img'); 45 } 43 46 44 47 items.on('click', function(e){ 45 46 48 47 49 $('html, body').css({ … … 52 54 53 55 var thisItem = $(this); 54 var image = thisItem.find('img').clone(); 56 var image; 57 if (thisItem.is('a')) { 58 image = thisItem.find('img').clone(); 59 } 60 else { 61 image = thisItem.clone(); 62 } 55 63 56 64 lightbox.append(image); 57 65 lightbox.show(); 58 59 66 60 67 }); -
simple-gallery-lightbox/trunk/readme.txt
r2262978 r2263217 5 5 Requires at least: 5.0 6 6 Tested up to: 5.3 7 Stable tag: trunk7 Stable tag: 1.0.1 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 38 38 * Initial release. 39 39 40 = 1.0.1 = 41 * Support for galleries that is linked to "none" (no links, just the images in the gallery). 42 40 43 == Upgrade Notice == 41 44 -
simple-gallery-lightbox/trunk/simple-gallery-lightbox.php
r2262969 r2263217 3 3 Plugin Name: Simple Gallery Lightbox 4 4 Description: Adds a simple lightbox to default Gutenberg gallery 5 Version: 1.0. 05 Version: 1.0.1 6 6 Requires at least: 5.0 7 7 Author: Gamevase
Note: See TracChangeset
for help on using the changeset viewer.