Gallery by BestWebSoft - Version 4.0.7

Version Description

  • 15.11.2013 =
  • Bugfix : We fixed the bug of image count for lightbox when added multiple galleries on the one page.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Gallery by BestWebSoft
Version 4.0.7
Comparing to
See all releases

Code changes from version 4.0.6 to 4.0.7

gallery-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
- Version: 4.0.6
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -27,8 +27,8 @@ License: GPLv2 or later
27
 
28
  if ( ! function_exists( 'gllr_plugin_install' ) ) {
29
  function gllr_plugin_install() {
30
- $filename_1 = WP_PLUGIN_DIR .'/gallery-plugin/template/gallery-template.php';
31
- $filename_2 = WP_PLUGIN_DIR .'/gallery-plugin/template/gallery-single-template.php';
32
 
33
  $filename_theme_1 = get_stylesheet_directory() .'/gallery-template.php';
34
  $filename_theme_2 = get_stylesheet_directory() .'/gallery-single-template.php';
@@ -270,12 +270,12 @@ if ( ! function_exists( 'gllr_post_custom_box' ) ) {
270
  echo '<li id="'.$page->ID.'" class="gllr_image_block"><div class="gllr_drag">';
271
  $image_attributes = wp_get_attachment_image_src( $page->ID, 'thumbnail' );
272
  echo '<div class="gllr_border_image"><img src="'.$image_attributes[0].'" alt="'.$page->post_title.'" title="'.$page->post_title.'" height="'.get_option( 'thumbnail_size_h' ).'" width="'.get_option( 'thumbnail_size_w' ).'" /></div>';
273
- echo '<br />'.__( "Title", "gallery" ).'<br /><input type="text" name="gllr_image_text['.$page->ID.']" value="'.get_post_meta( $page->ID, $key, TRUE ).'" class="gllr_image_text" />';
274
  echo '<input type="text" name="gllr_order_text['.$page->ID.']" value="'.$page->menu_order.'" class="gllr_order_text '.( $page->menu_order == 0 ? "hidden" : '' ).'" />';
275
- echo '<br />'.__( "Alt tag", "gallery" ).'<br /><input type="text" name="gllr_image_alt_tag['.$page->ID.']" value="'.get_post_meta( $page->ID, $alt_tag_key, TRUE ).'" class="gllr_image_alt_tag" />';
276
- echo '<br />'.__( "URL", "gallery" ).'<br /><input type="text" name="gllr_link_url['.$page->ID.']" value="'.get_post_meta( $page->ID, $link_key, TRUE ).'" class="gllr_link_text" /><br /><span class="small_text">'.__( "(by click on image opens a link in a new window)", "gallery" ).'</span>';
277
  echo '<a class="gllr_pro_version" href="http://bestwebsoft.com/plugin/gallery-pro/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v='.$plugin_info["Version"].'" target="_blank" title="'. __( 'This setting is available in Pro version', 'gallery' ).'"><br />'.
278
- '<div class="gllr_pro_version">'.__( "Open the link", "gallery" ).'<br/><input disabled type="radio" value="_self" > '.__( "Current window", "gallery" ).'<br/><input disabled type="radio" value="_blank" > '.__( "New window", "gallery" ).'</div></a>';
279
  echo '<div class="delete"><a href="javascript:void(0);" onclick="img_delete('.$page->ID.');">'.__( "Delete", "gallery" ).'</a><div/>';
280
  echo '</div></li>';
281
  endforeach; ?>
@@ -1195,7 +1195,7 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
1195
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
1196
  </a>
1197
  <?php } else { ?>
1198
- <a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
1199
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
1200
  </a>
1201
  <?php } ?>
@@ -1232,7 +1232,7 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
1232
  <script type="text/javascript">
1233
  (function($) {
1234
  $(document).ready( function() {
1235
- $( "a[rel=gallery_fancybox]" ).fancybox( {
1236
  'transitionIn' : 'elastic',
1237
  'transitionOut' : 'elastic',
1238
  'titlePosition' : 'inside',
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: This plugin allows you to implement gallery page into web site.
6
  Author: BestWebSoft
7
+ Version: 4.0.7
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
27
 
28
  if ( ! function_exists( 'gllr_plugin_install' ) ) {
29
  function gllr_plugin_install() {
30
+ $filename_1 = WP_PLUGIN_DIR . '/gallery-plugin/template/gallery-template.php';
31
+ $filename_2 = WP_PLUGIN_DIR . '/gallery-plugin/template/gallery-single-template.php';
32
 
33
  $filename_theme_1 = get_stylesheet_directory() .'/gallery-template.php';
34
  $filename_theme_2 = get_stylesheet_directory() .'/gallery-single-template.php';
270
  echo '<li id="'.$page->ID.'" class="gllr_image_block"><div class="gllr_drag">';
271
  $image_attributes = wp_get_attachment_image_src( $page->ID, 'thumbnail' );
272
  echo '<div class="gllr_border_image"><img src="'.$image_attributes[0].'" alt="'.$page->post_title.'" title="'.$page->post_title.'" height="'.get_option( 'thumbnail_size_h' ).'" width="'.get_option( 'thumbnail_size_w' ).'" /></div>';
273
+ echo '<br />' . __( "Title", "gallery" ) . '<br /><input type="text" name="gllr_image_text['.$page->ID.']" value="'.get_post_meta( $page->ID, $key, TRUE ).'" class="gllr_image_text" />';
274
  echo '<input type="text" name="gllr_order_text['.$page->ID.']" value="'.$page->menu_order.'" class="gllr_order_text '.( $page->menu_order == 0 ? "hidden" : '' ).'" />';
275
+ echo '<br />' . __( "Alt tag", "gallery" ) . '<br /><input type="text" name="gllr_image_alt_tag['.$page->ID.']" value="'.get_post_meta( $page->ID, $alt_tag_key, TRUE ).'" class="gllr_image_alt_tag" />';
276
+ echo '<br />' . __( "URL", "gallery" ) . '<br /><input type="text" name="gllr_link_url['.$page->ID.']" value="'.get_post_meta( $page->ID, $link_key, TRUE ).'" class="gllr_link_text" /><br /><span class="small_text">'.__( "(by click on image opens a link in a new window)", "gallery" ).'</span>';
277
  echo '<a class="gllr_pro_version" href="http://bestwebsoft.com/plugin/gallery-pro/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v='.$plugin_info["Version"].'" target="_blank" title="'. __( 'This setting is available in Pro version', 'gallery' ).'"><br />'.
278
+ '<div class="gllr_pro_version">' . __( "Open the link", "gallery" ).'<br/><input disabled type="radio" value="_self" > '.__( "Current window", "gallery" ).'<br/><input disabled type="radio" value="_blank" > '.__( "New window", "gallery" ).'</div></a>';
279
  echo '<div class="delete"><a href="javascript:void(0);" onclick="img_delete('.$page->ID.');">'.__( "Delete", "gallery" ).'</a><div/>';
280
  echo '</div></li>';
281
  endforeach; ?>
1195
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
1196
  </a>
1197
  <?php } else { ?>
1198
+ <a rel="gallery_fancybox_<?php echo $post->ID; ?>" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
1199
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
1200
  </a>
1201
  <?php } ?>
1232
  <script type="text/javascript">
1233
  (function($) {
1234
  $(document).ready( function() {
1235
+ $( "a[rel=gallery_fancybox_<?php echo $post->ID; ?>]" ).fancybox( {
1236
  'transitionIn' : 'elastic',
1237
  'transitionOut' : 'elastic',
1238
  'titlePosition' : 'inside',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
4
  Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
5
  Requires at least: 3.0
6
  Tested up to: 3.7.1
7
- Stable tag: 4.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -39,7 +39,7 @@ There is also a premium version of the plugin with more useful features availabl
39
  The author of the Gallery also recommends the following plugins:
40
 
41
  * <a href="http://wordpress.org/plugins/updater/">Updater</a> - This plugin updates WordPress core and the plugins to the recent versions. You can also use the auto mode or manual mode for updating and set email notifications.
42
- There is also a premium version of the plugin <a href="http://bestwebsoft.com/plugin/updater-pro/?k=6ed3f1f40908b8eb7248953196a4753a">Updater Pro</a> with more useful features available. It allows to update plugins and WordPress core on several websites. It can make backup of all your files and database before updating.
43
 
44
  = Translation =
45
 
@@ -155,6 +155,9 @@ and add (for the themes Twenty Eleven or Twenty Ten):
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = V4.0.6 - 8.11.2013 =
159
  * Update : The French language file is updated.
160
 
@@ -362,6 +365,9 @@ and add (for the themes Twenty Eleven or Twenty Ten):
362
 
363
  == Upgrade Notice ==
364
 
 
 
 
365
  = V4.0.6 =
366
  The French language file is updated.
367
 
4
  Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
5
  Requires at least: 3.0
6
  Tested up to: 3.7.1
7
+ Stable tag: 4.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
39
  The author of the Gallery also recommends the following plugins:
40
 
41
  * <a href="http://wordpress.org/plugins/updater/">Updater</a> - This plugin updates WordPress core and the plugins to the recent versions. You can also use the auto mode or manual mode for updating and set email notifications.
42
+ There is also a premium version of the plugin <a href="http://bestwebsoft.com/plugin/updater-pro/?k=6ed3f1f40908b8eb7248953196a4753a">Updater Pro</a> with more useful features available. It can make backup of all your files and database before updating. Also it can forbid some plugins or WordPress Core update.
43
 
44
  = Translation =
45
 
155
 
156
  == Changelog ==
157
 
158
+ = V4.0.7 - 15.11.2013 =
159
+ * Bugfix : We fixed the bug of image count for lightbox when added multiple galleries on the one page.
160
+
161
  = V4.0.6 - 8.11.2013 =
162
  * Update : The French language file is updated.
163
 
365
 
366
  == Upgrade Notice ==
367
 
368
+ = V4.0.7 =
369
+ We fixed the bug of image count for lightbox when added multiple galleries on the one page.
370
+
371
  = V4.0.6 =
372
  The French language file is updated.
373
 
template/gallery-single-template.php CHANGED
@@ -53,7 +53,7 @@
53
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
54
  </a>
55
  <?php } else { ?>
56
- <a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" >
57
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
58
  </a>
59
  <?php } ?>
@@ -93,7 +93,7 @@
93
  <script type="text/javascript">
94
  (function($){
95
  $(document).ready(function(){
96
- $("a[rel=gallery_fancybox]").fancybox({
97
  'transitionIn' : 'elastic',
98
  'transitionOut' : 'elastic',
99
  'titlePosition' : 'inside',
53
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
54
  </a>
55
  <?php } else { ?>
56
+ <a rel="gallery_fancybox_<?php echo $post->ID; ?>" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" >
57
  <img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
58
  </a>
59
  <?php } ?>
93
  <script type="text/javascript">
94
  (function($){
95
  $(document).ready(function(){
96
+ $("a[rel=gallery_fancybox_<?php echo $post->ID; ?>]").fancybox({
97
  'transitionIn' : 'elastic',
98
  'transitionOut' : 'elastic',
99
  'titlePosition' : 'inside',