Lightbox Gallery - Version 0.4.2

Version Description

Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon wp plugin Lightbox Gallery
Version 0.4.2
Comparing to
See all releases

Code changes from version 0.4.1 to 0.4.2

Files changed (2) hide show
  1. lightbox-gallery.php +4 -3
  2. readme.txt +1 -1
lightbox-gallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Lightbox Gallery
4
  Plugin URI: http://wordpressgogo.com/development/lightbox-gallery.html
5
  Description: Changes to the lightbox view in galleries.
6
  Author: Hiroaki Miyashita
7
- Version: 0.4.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -344,8 +344,9 @@ function lightbox_gallery($attr) {
344
 
345
  if ( is_numeric($from) && !$num ) :
346
  $attachments = array_splice($attachments, $from);
347
- elseif ( is_numeric($page) && is_numeric($num) ) :
348
- $numpages = (int)($total/$num)+1;
 
349
  $attachments = array_splice($attachments, ($page-1)*$num+$from, $num);
350
  endif;
351
 
4
  Plugin URI: http://wordpressgogo.com/development/lightbox-gallery.html
5
  Description: Changes to the lightbox view in galleries.
6
  Author: Hiroaki Miyashita
7
+ Version: 0.4.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
344
 
345
  if ( is_numeric($from) && !$num ) :
346
  $attachments = array_splice($attachments, $from);
347
+ elseif ( is_numeric($page) && is_numeric($num) && $num>0 ) :
348
+ if ( $total%$num == 0 ) $numpages = (int)($total/$num);
349
+ else $numpages = (int)($total/$num)+1;
350
  $attachments = array_splice($attachments, ($page-1)*$num+$from, $num);
351
  endif;
352
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.com/development/lightbox-gallery.html
4
  Tags: lightbox, gallery, image, images, album, photo, photos, picture, pictures
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
- Stable tag: 0.4.1
8
 
9
  This plugin changes the view of galleries to the lightbox.
10
 
4
  Tags: lightbox, gallery, image, images, album, photo, photos, picture, pictures
5
  Requires at least: 2.5
6
  Tested up to: 2.7.1
7
+ Stable tag: 0.4.2
8
 
9
  This plugin changes the view of galleries to the lightbox.
10