Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.34

Version Description

  • Bugs Fixed Related to Set as Album
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 3.0.34
Comparing to
See all releases

Code changes from version 3.0.33 to 3.0.34

assets/images/img.png CHANGED
Binary file
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
- Version: 3.0.33
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: http://tech-banker.com
5
  Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
6
  Author: Tech Banker
7
+ Version: 3.0.34
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/add-new-album-class.php CHANGED
@@ -47,7 +47,7 @@ else
47
  $column2 = "<a href=\"javascript:void(0);\" title=\"" . $img_name . "\" >
48
  <img type=\"image\" imgPath=\"" . $img_path . "\" src=\"" . GALLERY_BK_THUMB_SMALL_URL . $img_path . "\" id=\"ux_gb_img\" name=\"ux_gb_img\" class=\"img dynamic_css\" imageid=\"" . $picid . "\" width=\"" . $img_width . "\"/></a><br/>
49
  <label><strong>" . $img_name . "</strong></label><br/><label>" . date("F j, Y") . "</label><br/>
50
- <input type=\"radio\" style=\"cursor: pointer;\" id=\"ux_rdl_cover\" name=\"ux_album_cover\" /><label>" . __(" Set as Album Cover", gallery_bank) . "</label>";
51
  array_push($dynamicArray, $column2);
52
 
53
  $column3 = "<input placeholder=\"" . __("Enter your Title", gallery_bank) . "\" class=\"layout-span12\" type=\"text\" name=\"ux_img_title_" . $picid . "\" id=\"ux_img_title_" . $picid . "\" />
47
  $column2 = "<a href=\"javascript:void(0);\" title=\"" . $img_name . "\" >
48
  <img type=\"image\" imgPath=\"" . $img_path . "\" src=\"" . GALLERY_BK_THUMB_SMALL_URL . $img_path . "\" id=\"ux_gb_img\" name=\"ux_gb_img\" class=\"img dynamic_css\" imageid=\"" . $picid . "\" width=\"" . $img_width . "\"/></a><br/>
49
  <label><strong>" . $img_name . "</strong></label><br/><label>" . date("F j, Y") . "</label><br/>
50
+ <input type=\"radio\" style=\"cursor: pointer;\" onclick=\"select_one_radio(this);\" id=\"ux_rdl_cover\" name=\"ux_album_cover\" /><label>" . __(" Set as Album Cover", gallery_bank) . "</label>";
51
  array_push($dynamicArray, $column2);
52
 
53
  $column3 = "<input placeholder=\"" . __("Enter your Title", gallery_bank) . "\" class=\"layout-span12\" type=\"text\" name=\"ux_img_title_" . $picid . "\" id=\"ux_img_title_" . $picid . "\" />
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gallery-Bank,contact-banker
3
  Tags: admin, AJAX, album, albums, best gallery plugin, best portfolio plugin, comments, easy media gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, gallery, gallery album, gallery bank, gallery image, gallery wordpress plugin, grid gallery, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, sidebar, slideshow, thumbnails, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
4
  Requires at least: 3.3
5
  Tested up to: 3.9.1
6
- Stable tag: 3.0.33
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -48,7 +48,7 @@ It provides a powerful engine for uploading and managing galleries of images & v
48
 
49
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
50
 
51
- ***May 30, 2014: We're happy to announce that Gallery Bank reached 131,550+ plugin downloads in only 12 months. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
52
 
53
  <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
54
 
@@ -483,6 +483,10 @@ is False in shortcode.
483
 
484
  == Changelog ==
485
 
 
 
 
 
486
  = 3.0.33 =
487
 
488
  * Few Bugs Fixed
3
  Tags: admin, AJAX, album, albums, best gallery plugin, best portfolio plugin, comments, easy media gallery, filterable gallery, filterable portfolio, flash, foto, fotoalbum, gallery, gallery album, gallery bank, gallery image, gallery wordpress plugin, grid gallery, image, image album, image slider, images, lightbox, links, media, modal, multiple pictures, nextgen, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, Photo Slider, photoalbum, photogallery, photos, picture, pictures, plugin, portfolio, portfolio gallery, portfolio wordpress plugin, Post, posts, responsive gallery, seo image, sidebar, slideshow, thumbnails, videos, website gallery, widget, wordpress gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin
4
  Requires at least: 3.3
5
  Tested up to: 3.9.1
6
+ Stable tag: 3.0.34
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
48
 
49
  Gallery Bank is designed to adapt each portfolio to any situation and can be easily used on mobiles as it is a Responsive Plugin.
50
 
51
+ ***June 3, 2014: We're happy to announce that Gallery Bank reached 133,300+ plugin downloads in only 12 months. We frequently receive positive feedback from people using our Gallery Bank Plugin for WordPress. Thanks so much for your support!***
52
 
53
  <a href="http://tech-banker.com/forum/gallery-bank-support/" target="_blank">Support Desk - feel free to ask your Queries</a>
54
 
483
 
484
  == Changelog ==
485
 
486
+ = 3.0.34 =
487
+
488
+ * Bugs Fixed Related to Set as Album
489
+
490
  = 3.0.33 =
491
 
492
  * Few Bugs Fixed
views/edit-album.php CHANGED
@@ -311,14 +311,14 @@ if (count($album_css) != 0)
311
  <?php
312
  if ($pics[$flag]->album_cover == 1) {
313
  ?>
314
- <input type="radio" style="cursor: pointer;" checked="checked"
315
  id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
316
  name="ux_album_cover"/>
317
  <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
318
  <?php
319
  } else {
320
  ?>
321
- <input type="radio" style="cursor: pointer;"
322
  id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
323
  name="ux_album_cover"/>
324
  <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
@@ -585,19 +585,22 @@ if (count($album_css) != 0)
585
  {
586
  alert("<?php _e("This feature is only available in Paid Premium Version!", gallery_bank)?>");
587
  }
 
 
 
 
 
 
 
 
 
 
 
588
  //This function is to select radio button of first image
589
  function select_radio() {
590
- if (!(jQuery("input[type=radio][name=ux_album_cover]:checked").size() > 0)) {
591
- jQuery(jQuery.unique(
592
- jQuery("INPUT:radio")
593
- .map(function (i, e) {
594
- return jQuery(e).attr("name")
595
- }
596
- ).get()
597
- )).each(function (i, e) {
598
- jQuery("INPUT:radio[name=\"" + e + "\"]:visible:first")
599
- .attr("checked", "checked");
600
- });
601
  }
602
  }
603
  function preventDot(e)
311
  <?php
312
  if ($pics[$flag]->album_cover == 1) {
313
  ?>
314
+ <input type="radio" style="cursor: pointer;" onclick="select_one_radio(this);" checked="checked"
315
  id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
316
  name="ux_album_cover"/>
317
  <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
318
  <?php
319
  } else {
320
  ?>
321
+ <input type="radio" onclick="select_one_radio(this);" style="cursor: pointer;"
322
  id="ux_edit_rdl_cover_<?php echo $pics[$flag]->pic_id; ?>"
323
  name="ux_album_cover"/>
324
  <label><?php _e(" Set as Album Cover", gallery_bank) ?></label>
585
  {
586
  alert("<?php _e("This feature is only available in Paid Premium Version!", gallery_bank)?>");
587
  }
588
+
589
+ function select_one_radio(control)
590
+ {
591
+ var oTable = jQuery("#data-table-edit-album").dataTable();
592
+ jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).each(function ()
593
+ {
594
+ jQuery(this).removeAttr("checked");
595
+ });
596
+ jQuery(control).attr("checked","checked");
597
+ }
598
+
599
  //This function is to select radio button of first image
600
  function select_radio() {
601
+ var oTable = jQuery("#data-table-edit-album").dataTable();
602
+ if ((jQuery("input[type=radio][name=ux_album_cover]:checked", oTable.fnGetNodes()).length) < 1){
603
+ jQuery("input[type=radio][name=ux_album_cover]:first").attr("checked","checked");
 
 
 
 
 
 
 
 
604
  }
605
  }
606
  function preventDot(e)