Lightbox Gallery - Version 0.8.1

Version Description

  • Backward compatibility: caption loading.
  • Code cleaning.
Download this release

Release Info

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

Code changes from version 0.8 to 0.8.1

Files changed (2) hide show
  1. lightbox-gallery.php +3 -2
  2. readme.txt +6 -2
lightbox-gallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Lightbox Gallery
4
  Plugin URI: http://wpgogo.com/development/lightbox-gallery.html
5
  Description: The Lightbox Gallery plugin changes the view of galleries to the lightbox.
6
  Author: Hiroaki Miyashita
7
- Version: 0.8
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -674,13 +674,14 @@ function lightbox_gallery($attr) {
674
  elseif ( $options['global_settings']['lightbox_gallery_loading_type'] == 'colorbox' ) :
675
  $output .= ' rel="'.$class.'"';
676
  endif;
 
677
  $output .= '><img src="'.$thumbnail_link[0].'" width="'.$thumbnail_link[1].'" height="'.$thumbnail_link[2].'" alt="'.esc_attr($attachment->_wp_attachment_image_alt).'" /></a>
678
  </'.$icontag.'>';
679
  if ( $captiontag && (trim($attachment->post_excerpt) || trim($attachment->post_content) || isset($metadata)) ) {
680
  $output .= '<'.$captiontag.' class="gallery-caption" id="caption'.$attachment->ID.'">';
681
  if($attachment->post_excerpt) $output .= '<span class="imagecaption">'.$attachment->post_excerpt . "</span><br />\n";
682
  if($attachment->post_content) $output .= '<span class="imagedescription">'.$attachment->post_content . "</span><br />\n";
683
- if($metadata) $output .= '<span class="imagemeta">'.$metadata.'</span>';
684
  $output .= '</'.$captiontag.'>';
685
  }
686
  $output .= '</'.$itemtag.'>';
4
  Plugin URI: http://wpgogo.com/development/lightbox-gallery.html
5
  Description: The Lightbox Gallery plugin changes the view of galleries to the lightbox.
6
  Author: Hiroaki Miyashita
7
+ Version: 0.8.1
8
  Author URI: http://wpgogo.com/
9
  */
10
 
674
  elseif ( $options['global_settings']['lightbox_gallery_loading_type'] == 'colorbox' ) :
675
  $output .= ' rel="'.$class.'"';
676
  endif;
677
+ $attachment->_wp_attachment_image_alt = !empty($attachment->_wp_attachment_image_alt) ? $attachment->_wp_attachment_image_alt : $attachment->post_excerpt;
678
  $output .= '><img src="'.$thumbnail_link[0].'" width="'.$thumbnail_link[1].'" height="'.$thumbnail_link[2].'" alt="'.esc_attr($attachment->_wp_attachment_image_alt).'" /></a>
679
  </'.$icontag.'>';
680
  if ( $captiontag && (trim($attachment->post_excerpt) || trim($attachment->post_content) || isset($metadata)) ) {
681
  $output .= '<'.$captiontag.' class="gallery-caption" id="caption'.$attachment->ID.'">';
682
  if($attachment->post_excerpt) $output .= '<span class="imagecaption">'.$attachment->post_excerpt . "</span><br />\n";
683
  if($attachment->post_content) $output .= '<span class="imagedescription">'.$attachment->post_content . "</span><br />\n";
684
+ if( !empty($metadata) ) $output .= '<span class="imagemeta">'.$metadata.'</span>';
685
  $output .= '</'.$captiontag.'>';
686
  }
687
  $output .= '</'.$itemtag.'>';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
3
  Donate link: http://wpgogo.com/development/lightbox-gallery.html
4
  Tags: lightbox, gallery, galleries, image, images, album, photo, photos, picture, pictures, jQuery, Highslide, Colorbox
5
  Requires at least: 2.5
6
- Tested up to: 4.1
7
- Stable tag: 0.8
8
  License: GPLv2 or later
9
 
10
  The Lightbox Gallery plugin changes the view of galleries to the lightbox.
@@ -137,6 +137,10 @@ If you would like not to show the navigation, set `0`. The default is `1`.
137
 
138
  == Changelog ==
139
 
 
 
 
 
140
  = 0.8 =
141
  * Responsive output.
142
  * Gallery code renewal.
3
  Donate link: http://wpgogo.com/development/lightbox-gallery.html
4
  Tags: lightbox, gallery, galleries, image, images, album, photo, photos, picture, pictures, jQuery, Highslide, Colorbox
5
  Requires at least: 2.5
6
+ Tested up to: 4.1.1
7
+ Stable tag: 0.8.1
8
  License: GPLv2 or later
9
 
10
  The Lightbox Gallery plugin changes the view of galleries to the lightbox.
137
 
138
  == Changelog ==
139
 
140
+ = 0.8.1 =
141
+ * Backward compatibility: caption loading.
142
+ * Code cleaning.
143
+
144
  = 0.8 =
145
  * Responsive output.
146
  * Gallery code renewal.