Plugin Directory

Changeset 2263217


Ignore:
Timestamp:
03/18/2020 01:45:50 PM (6 years ago)
Author:
gamevase
Message:

Tagging version 1.0.1

Location:
simple-gallery-lightbox
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-gallery-lightbox/tags/1.0.1/js/main.js

    r2262969 r2263217  
    4141 
    4242  var items = gallery.find('.blocks-gallery-item a');
     43  if (items.length == 0) {
     44    items = gallery.find('.blocks-gallery-item img');
     45  }
    4346 
    4447  items.on('click', function(e){
    45    
    4648   
    4749    $('html, body').css({
     
    5254   
    5355    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    }
    5563   
    5664    lightbox.append(image);
    5765    lightbox.show();
    58    
    5966   
    6067  });
  • simple-gallery-lightbox/tags/1.0.1/readme.txt

    r2262978 r2263217  
    55Requires at least: 5.0
    66Tested up to: 5.3
    7 Stable tag: trunk
     7Stable tag: 1.0.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3838* Initial release.
    3939
     40= 1.0.1 =
     41* Support for galleries that is linked to "none" (no links, just the images in the gallery).
     42
    4043== Upgrade Notice ==
    4144
  • simple-gallery-lightbox/tags/1.0.1/simple-gallery-lightbox.php

    r2262969 r2263217  
    33Plugin Name: Simple Gallery Lightbox
    44Description: Adds a simple lightbox to default Gutenberg gallery
    5 Version: 1.0.0
     5Version: 1.0.1
    66Requires at least: 5.0
    77Author: Gamevase
  • simple-gallery-lightbox/trunk/js/main.js

    r2262969 r2263217  
    4141 
    4242  var items = gallery.find('.blocks-gallery-item a');
     43  if (items.length == 0) {
     44    items = gallery.find('.blocks-gallery-item img');
     45  }
    4346 
    4447  items.on('click', function(e){
    45    
    4648   
    4749    $('html, body').css({
     
    5254   
    5355    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    }
    5563   
    5664    lightbox.append(image);
    5765    lightbox.show();
    58    
    5966   
    6067  });
  • simple-gallery-lightbox/trunk/readme.txt

    r2262978 r2263217  
    55Requires at least: 5.0
    66Tested up to: 5.3
    7 Stable tag: trunk
     7Stable tag: 1.0.1
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    3838* Initial release.
    3939
     40= 1.0.1 =
     41* Support for galleries that is linked to "none" (no links, just the images in the gallery).
     42
    4043== Upgrade Notice ==
    4144
  • simple-gallery-lightbox/trunk/simple-gallery-lightbox.php

    r2262969 r2263217  
    33Plugin Name: Simple Gallery Lightbox
    44Description: Adds a simple lightbox to default Gutenberg gallery
    5 Version: 1.0.0
     5Version: 1.0.1
    66Requires at least: 5.0
    77Author: Gamevase
Note: See TracChangeset for help on using the changeset viewer.