Version Description
- Bugfix: support for WordPress 3.5.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Lightbox Gallery |
Version | 0.7.4 |
Comparing to | |
See all releases |
Code changes from version 0.7.3 to 0.7.4
- lightbox-gallery.php +40 -9
- readme.txt +8 -2
lightbox-gallery.php
CHANGED
@@ -4,11 +4,11 @@ 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.7.
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
11 |
-
/* Copyright 2009 -
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
@@ -477,6 +477,16 @@ function lightbox_gallery($attr) {
|
|
477 |
global $post, $wp_query;
|
478 |
$options = get_option('lightbox_gallery_data');
|
479 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
// Allow plugins/themes to override the default gallery template.
|
481 |
$output = apply_filters('post_gallery', '', $attr);
|
482 |
if ( $output != '' )
|
@@ -529,7 +539,6 @@ function lightbox_gallery($attr) {
|
|
529 |
), $attr));
|
530 |
|
531 |
$id = intval($id);
|
532 |
-
|
533 |
if ( 'RAND' == $order )
|
534 |
$orderby = 'none';
|
535 |
|
@@ -575,14 +584,36 @@ function lightbox_gallery($attr) {
|
|
575 |
$captiontag = tag_escape($captiontag);
|
576 |
$columns = intval($columns);
|
577 |
$itemwidth = $columns > 0 ? floor(100/$columns) : 100;
|
578 |
-
|
|
|
|
|
|
|
|
|
579 |
if ( empty($options['global_settings']['lightbox_gallery_disable_column_css']) ) :
|
580 |
-
|
581 |
-
|
582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
endif;
|
584 |
-
|
585 |
-
$
|
|
|
586 |
|
587 |
if ( $class && $options['global_settings']['lightbox_gallery_loading_type'] == 'lightbox' ) :
|
588 |
$output .= '<script type="text/javascript">
|
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.7.4
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
11 |
+
/* Copyright 2009 -2013 Hiroaki Miyashita
|
12 |
|
13 |
This program is free software; you can redistribute it and/or modify
|
14 |
it under the terms of the GNU General Public License as published by
|
477 |
global $post, $wp_query;
|
478 |
$options = get_option('lightbox_gallery_data');
|
479 |
|
480 |
+
static $instance = 0;
|
481 |
+
$instance++;
|
482 |
+
|
483 |
+
if ( ! empty( $attr['ids'] ) ) {
|
484 |
+
// 'ids' is explicitly ordered, unless you specify otherwise.
|
485 |
+
if ( empty( $attr['orderby'] ) )
|
486 |
+
$attr['orderby'] = 'post__in';
|
487 |
+
$attr['include'] = $attr['ids'];
|
488 |
+
}
|
489 |
+
|
490 |
// Allow plugins/themes to override the default gallery template.
|
491 |
$output = apply_filters('post_gallery', '', $attr);
|
492 |
if ( $output != '' )
|
539 |
), $attr));
|
540 |
|
541 |
$id = intval($id);
|
|
|
542 |
if ( 'RAND' == $order )
|
543 |
$orderby = 'none';
|
544 |
|
584 |
$captiontag = tag_escape($captiontag);
|
585 |
$columns = intval($columns);
|
586 |
$itemwidth = $columns > 0 ? floor(100/$columns) : 100;
|
587 |
+
$float = is_rtl() ? 'right' : 'left';
|
588 |
+
|
589 |
+
$selector = "gallery-{$instance}";
|
590 |
+
|
591 |
+
$gallery_style = $gallery_div = '';
|
592 |
if ( empty($options['global_settings']['lightbox_gallery_disable_column_css']) ) :
|
593 |
+
if ( apply_filters( 'use_default_gallery_style', true ) )
|
594 |
+
$gallery_style = "
|
595 |
+
<style type='text/css'>
|
596 |
+
#{$selector} {
|
597 |
+
margin: auto;
|
598 |
+
}
|
599 |
+
#{$selector} .gallery-item {
|
600 |
+
float: {$float};
|
601 |
+
margin-top: 10px;
|
602 |
+
text-align: center;
|
603 |
+
width: {$itemwidth}%;
|
604 |
+
}
|
605 |
+
#{$selector} img {
|
606 |
+
border: 2px solid #cfcfcf;
|
607 |
+
}
|
608 |
+
#{$selector} .gallery-caption {
|
609 |
+
margin-left: 0;
|
610 |
+
}
|
611 |
+
</style>
|
612 |
+
<!-- see gallery_shortcode() in wp-includes/media.php -->";
|
613 |
endif;
|
614 |
+
$size_class = sanitize_html_class( $size );
|
615 |
+
$gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class} {$class}'>";
|
616 |
+
$output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
|
617 |
|
618 |
if ( $class && $options['global_settings']['lightbox_gallery_loading_type'] == 'lightbox' ) :
|
619 |
$output .= '<script type="text/javascript">
|
readme.txt
CHANGED
@@ -3,8 +3,9 @@ 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: 3.
|
7 |
-
Stable tag: 0.7.
|
|
|
8 |
|
9 |
The Lightbox Gallery plugin changes the view of galleries to the lightbox.
|
10 |
|
@@ -31,6 +32,7 @@ Localization
|
|
31 |
* Belorussian (by_BY) - [ilyuha](http://antsar.info/)
|
32 |
* Czech (cs_CZ) - [Petufo](http://blog.vlastenci.cz/)
|
33 |
* Spanish (es_ES) - [Daniel Tarrero](http://www.bluebrain.es/)
|
|
|
34 |
* German (de_DE) - Michael Wruck and Tacitus Media
|
35 |
* French (fr_FR) - [BenLeTibetain](http://www.benletibetain.net/)
|
36 |
* Hindi (hi_IN) - [Outshine Solutions](http://outshinesolutions.com/web-hosting/web-hosting-india.html)
|
@@ -130,7 +132,11 @@ If you would like not to show the navigation, set `0`. The default is `1`.
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
133 |
= 0.7.3 =
|
|
|
134 |
* Bugfix: rel="lightbox"
|
135 |
|
136 |
= 0.7.2 =
|
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: 3.5.1
|
7 |
+
Stable tag: 0.7.4
|
8 |
+
License: GPLv2 or later
|
9 |
|
10 |
The Lightbox Gallery plugin changes the view of galleries to the lightbox.
|
11 |
|
32 |
* Belorussian (by_BY) - [ilyuha](http://antsar.info/)
|
33 |
* Czech (cs_CZ) - [Petufo](http://blog.vlastenci.cz/)
|
34 |
* Spanish (es_ES) - [Daniel Tarrero](http://www.bluebrain.es/)
|
35 |
+
* Danish (da_DK) - [Jacob Voldby](http://www.clmedia.dk)
|
36 |
* German (de_DE) - Michael Wruck and Tacitus Media
|
37 |
* French (fr_FR) - [BenLeTibetain](http://www.benletibetain.net/)
|
38 |
* Hindi (hi_IN) - [Outshine Solutions](http://outshinesolutions.com/web-hosting/web-hosting-india.html)
|
132 |
|
133 |
== Changelog ==
|
134 |
|
135 |
+
= 0.7.4 =
|
136 |
+
* Bugfix: support for WordPress 3.5.
|
137 |
+
|
138 |
= 0.7.3 =
|
139 |
+
* Danish (da_DK) - Jacob Voldby
|
140 |
* Bugfix: rel="lightbox"
|
141 |
|
142 |
= 0.7.2 =
|