Lightbox Gallery - Version 0.2.1

Version Description

Download this release

Release Info

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

Code changes from version 0.2 to 0.2.1

Files changed (3) hide show
  1. lightbox-gallery.js +10 -3
  2. lightbox-gallery.php +4 -3
  3. readme.txt +19 -3
lightbox-gallery.js CHANGED
@@ -4,9 +4,16 @@ var lightbox_path = 'http://'+location.hostname+'/wp-content/plugins/lightbox-ga
4
  jQuery(document).ready(function () {
5
  var i = 0;
6
  showImg(i);
7
- jQuery('[@rel*=lightbox]').lightBox();
8
- jQuery('.gallery a').lightBox({captionPosition:'gallery'});
9
- jQuery('.gallery a').Tooltip({track:true, delay:0, showURL: false});
 
 
 
 
 
 
 
10
  });
11
 
12
  function showImg(i){
4
  jQuery(document).ready(function () {
5
  var i = 0;
6
  showImg(i);
7
+ jQuery('a[@rel*=lightbox]').lightBox();
8
+ jQuery('.gallery1 a').lightBox({captionPosition:'gallery'});
9
+ jQuery('.gallery1 a').Tooltip({track:true, delay:0, showURL: false});
10
+
11
+ // Add these lines if you want to handle multiple galleries in one page.
12
+ // You need to add into a [gallery] shorttag. ex) [gallery class="gallery2"]
13
+ // jQuery('.gallery2 a').lightBox({captionPosition:'gallery'});
14
+ // jQuery('.gallery2 a').Tooltip({track:true, delay:0, showURL: false});
15
+ // jQuery('.gallery3 a').lightBox({captionPosition:'gallery'});
16
+ // jQuery('.gallery3 a').Tooltip({track:true, delay:0, showURL: false});
17
  });
18
 
19
  function showImg(i){
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.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -52,7 +52,8 @@ function lightbox_gallery($attr) {
52
  'columns' => 3,
53
  'size' => 'thumbnail',
54
  'lightboxsize' => 'medium',
55
- 'meta' => 'false'
 
56
  ), $attr));
57
 
58
  $id = intval($id);
@@ -79,7 +80,7 @@ function lightbox_gallery($attr) {
79
  <style type='text/css'>
80
  .gallery-item {width: {$itemwidth}%;}
81
  </style>
82
- <div class='gallery'>");
83
 
84
  foreach ( $attachments as $id => $attachment ) {
85
  $thumbnail_link = wp_get_attachment_image_src($attachment->ID, $size, false);
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.2.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
52
  'columns' => 3,
53
  'size' => 'thumbnail',
54
  'lightboxsize' => 'medium',
55
+ 'meta' => 'false',
56
+ 'class' => 'gallery1'
57
  ), $attr));
58
 
59
  $id = intval($id);
80
  <style type='text/css'>
81
  .gallery-item {width: {$itemwidth}%;}
82
  </style>
83
+ <div class='gallery {$class}'>");
84
 
85
  foreach ( $attachments as $id => $attachment ) {
86
  $thumbnail_link = wp_get_attachment_image_src($attachment->ID, $size, false);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.com/development/lightbox-gallery.html
4
  Tags: lightbox, gallery, image, images, album, photo
5
  Requires at least: 2.5
6
  Tested up to: 2.5.1
7
- Stable tag: 0.2
8
 
9
  This plugin changes the view of galleries to the lightbox.
10
 
@@ -36,6 +36,16 @@ Just add rel="lightbox" into "a" tag. Here is a sample.
36
  &lt;img src="thumbnail.jpg" alt="" /&gt;<br />
37
  &lt;/a&gt;
38
 
 
 
 
 
 
 
 
 
 
 
39
  == Screenshots ==
40
 
41
  1. Lightbox Gallery
@@ -47,7 +57,7 @@ into the lightbox view. Photo captions are displayed as tooltips. Photo descript
47
  when the lightbox pops up.
48
 
49
  == Advanced settings ==
50
- There are two additional options to extend the shorttag [gallery].
51
 
52
  * lightboxsize
53
 
@@ -61,7 +71,13 @@ Defines whether the exif information is displayed. The default is false.
61
  If you want to show the photo info, set true. The exif shown on the lightbox includes camera body,
62
  aperture, focal length, shutter speed, and created timestamp.
63
 
64
- [gallery meta="true"]
 
 
 
 
 
 
65
 
66
  == Uninstall ==
67
 
4
  Tags: lightbox, gallery, image, images, album, photo
5
  Requires at least: 2.5
6
  Tested up to: 2.5.1
7
+ Stable tag: 0.2.1
8
 
9
  This plugin changes the view of galleries to the lightbox.
10
 
36
  &lt;img src="thumbnail.jpg" alt="" /&gt;<br />
37
  &lt;/a&gt;
38
 
39
+ * How can I handle multiple galleries in one page as separate ones?
40
+
41
+ You need to do two steps. If you would like to handle galleries separately,
42
+ add different class names into [gallery] and add codes as many as class names
43
+ into `lightbox-gallery.js`.
44
+
45
+
46
+ 1. Edit `lightbox-gallery.js` and add some codes. Look at the comment of the file.
47
+ 2. Add a class into [gallery]. ex) [gallery class="gallery2"]
48
+
49
  == Screenshots ==
50
 
51
  1. Lightbox Gallery
57
  when the lightbox pops up.
58
 
59
  == Advanced settings ==
60
+ There are three additional options to extend the shorttag [gallery].
61
 
62
  * lightboxsize
63
 
71
  If you want to show the photo info, set true. The exif shown on the lightbox includes camera body,
72
  aperture, focal length, shutter speed, and created timestamp.
73
 
74
+ [gallery meta="true"]
75
+
76
+ * class
77
+
78
+ Adds a class attribute of the gallery. The default is 'gallery1'.
79
+
80
+ [gallery class="gallery2"]
81
 
82
  == Uninstall ==
83