Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.28

Version Description

  • Few Bugs Fixed
  • CK Editor Compatibility Added
Download this release

Release Info

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

Code changes from version 3.0.27 to 3.0.28

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.27
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.28
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
lib/add-new-album-class.php CHANGED
@@ -345,7 +345,6 @@ function process_album_upload($album_image, $width, $height)
345
 
346
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
347
  {
348
- ini_set("memory_limit", "256M");
349
  list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
350
  $source_gd_image = false;
351
  switch ($source_image_type) {
345
 
346
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
347
  {
 
348
  list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
349
  $source_gd_image = false;
350
  switch ($source_image_type) {
lib/install-script.php CHANGED
@@ -163,21 +163,21 @@ else if($version == "3.0")
163
 
164
  function process_image_upload($image, $width, $height)
165
  {
166
- $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $image;
167
- $temp_image_name = $image;
168
- list(, , $temp_image_type) = getimagesize($temp_image_path);
169
- if ($temp_image_type === NULL) {
170
- return false;
171
- }
172
  $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
173
- move_uploaded_file($temp_image_path, $uploaded_image_path);
174
- $type = explode(".", $image);
175
  $thumbnail_image_path = GALLERY_MAIN_THUMB_DIR . preg_replace('{\\.[^\\.]+$}', '.'.$type[1], $temp_image_name);
176
 
177
- $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
178
- return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
179
- }
180
- function process_album_upload($album_image, $width, $height)
181
  {
182
  $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $album_image;
183
  $temp_image_name = $album_image;
@@ -196,7 +196,6 @@ else if($version == "3.0")
196
  /****************************** COMMON FUNCTION TO GENERATE THUMBNAILS********************************/
197
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
198
  {
199
- ini_set("memory_limit", "256M");
200
  list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
201
  $source_gd_image = false;
202
  switch ($source_image_type) {
163
 
164
  function process_image_upload($image, $width, $height)
165
  {
166
+ $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $image;
167
+ $temp_image_name = $image;
168
+ list(, , $temp_image_type) = getimagesize($temp_image_path);
169
+ if ($temp_image_type === NULL) {
170
+ return false;
171
+ }
172
  $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
173
+ move_uploaded_file($temp_image_path, $uploaded_image_path);
174
+ $type = explode(".", $image);
175
  $thumbnail_image_path = GALLERY_MAIN_THUMB_DIR . preg_replace('{\\.[^\\.]+$}', '.'.$type[1], $temp_image_name);
176
 
177
+ $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
178
+ return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
179
+ }
180
+ function process_album_upload($album_image, $width, $height)
181
  {
182
  $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $album_image;
183
  $temp_image_name = $album_image;
196
  /****************************** COMMON FUNCTION TO GENERATE THUMBNAILS********************************/
197
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
198
  {
 
199
  list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
200
  $source_gd_image = false;
201
  switch ($source_image_type) {
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.27
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 16, 2014: We're happy to announce that Gallery Bank reached 123,900+ plugin downloads in only 11 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,11 @@ is False in shortcode.
483
 
484
  == Changelog ==
485
 
 
 
 
 
 
486
  = 3.0.27 =
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.28
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
+ ***May 19, 2014: We're happy to announce that Gallery Bank reached 125,450+ plugin downloads in only 11 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.28 =
487
+
488
+ * Few Bugs Fixed
489
+ * CK Editor Compatibility Added
490
+
491
  = 3.0.27 =
492
 
493
  * Few Bugs Fixed
views/add-new-album.php CHANGED
@@ -270,9 +270,22 @@ oTable = jQuery("#data-table-album").dataTable
270
  jQuery("#add_new_album").validate
271
  ({
272
  submitHandler: function () {
273
- var uxDescription = jQuery("#wp-ux_description-wrap").hasClass("tmce-active") ?
274
- encodeURIComponent(tinyMCE.get("ux_description").getContent())
275
- : encodeURIComponent(jQuery("#ux_description").val());
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  var album_name = encodeURIComponent(jQuery("#ux_title").val());
277
  jQuery.post(ajaxurl, "album_name=" + album_name + "&uxDescription=" + uxDescription +
278
  "&param=add_new_album&action=add_new_album_library", function (data)
270
  jQuery("#add_new_album").validate
271
  ({
272
  submitHandler: function () {
273
+ <?php
274
+ if(class_exists("ckeditor_wordpress"))
275
+ {
276
+ ?>
277
+ var uxDescription = encodeURIComponent(CKEDITOR.instances.ux_description.getData());
278
+ <?php
279
+ }
280
+ else
281
+ {
282
+ ?>
283
+ var uxDescription = jQuery("#wp-ux_description-wrap").hasClass("tmce-active") ?
284
+ encodeURIComponent(tinyMCE.get("ux_description").getContent())
285
+ : encodeURIComponent(jQuery("#ux_description").val());
286
+ <?php
287
+ }
288
+ ?>
289
  var album_name = encodeURIComponent(jQuery("#ux_title").val());
290
  jQuery.post(ajaxurl, "album_name=" + album_name + "&uxDescription=" + uxDescription +
291
  "&param=add_new_album&action=add_new_album_library", function (data)
views/edit-album.php CHANGED
@@ -374,11 +374,22 @@ if (count($album_css) != 0)
374
 
375
  var uxEditDescription = "";
376
 
377
- if (!jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active")) {
378
- uxEditDescription = encodeURIComponent(jQuery("#ux_edit_description").val());
379
- } else {
380
- uxEditDescription = encodeURIComponent(tinyMCE.get("ux_edit_description").getContent());
381
- }
 
 
 
 
 
 
 
 
 
 
 
382
 
383
  var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
384
  jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function () {
374
 
375
  var uxEditDescription = "";
376
 
377
+ <?php
378
+ if(class_exists("ckeditor_wordpress"))
379
+ {
380
+ ?>
381
+ var uxEditDescription = encodeURIComponent(CKEDITOR.instances.ux_edit_description.getData());
382
+ <?php
383
+ }
384
+ else
385
+ {
386
+ ?>
387
+ var uxEditDescription = jQuery("#wp-ux_edit_description-wrap").hasClass("tmce-active") ?
388
+ encodeURIComponent(tinyMCE.get("ux_edit_description").getContent())
389
+ : encodeURIComponent(jQuery("#ux_edit_description").val());
390
+ <?php
391
+ }
392
+ ?>
393
 
394
  var edit_album_name = encodeURIComponent(jQuery("#ux_edit_title").val());
395
  jQuery.post(ajaxurl, "albumid=" + albumid + "&edit_album_name=" + edit_album_name + "&uxEditDescription=" + uxEditDescription + "&param=update_album&action=add_new_album_library", function () {
views/header.php CHANGED
@@ -86,7 +86,7 @@ if(in_array($language, $gb_lang))
86
  <div class="message red" style="display: block;margin-top:30px">
87
  <span style="padding: 4px 0;">
88
  <strong><p style="font:12px/1.0em Arial !important;">This plugin language is translated with the help of Google Translator.</p>
89
- <p style="font:12px/1.0em Arial !important;">If you would like to translate & help us, we will reward you with a free Pro Version License of Gallery Bank worth 16£.</p>
90
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
91
  </strong>
92
  </span>
@@ -98,7 +98,7 @@ elseif(!(in_array($language, $gb_translated_lang)) && !(in_array($language, $gb_
98
  ?>
99
  <div class="message red" style="display: block;margin-top:30px">
100
  <span style="padding: 4px 0;">
101
- <strong><p style="font:12px/1.0em Arial !important;">If you would like to translate Gallery Bank in your native language, we will reward you with a free Pro Version License of Gallery Bank worth 16£.</p>
102
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
103
  </strong>
104
  </span>
86
  <div class="message red" style="display: block;margin-top:30px">
87
  <span style="padding: 4px 0;">
88
  <strong><p style="font:12px/1.0em Arial !important;">This plugin language is translated with the help of Google Translator.</p>
89
+ <p style="font:12px/1.0em Arial !important;">If you would like to translate & help us, we will reward you with a free Pro Version License of Gallery Bank worth 18£.</p>
90
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
91
  </strong>
92
  </span>
98
  ?>
99
  <div class="message red" style="display: block;margin-top:30px">
100
  <span style="padding: 4px 0;">
101
+ <strong><p style="font:12px/1.0em Arial !important;">If you would like to translate Gallery Bank in your native language, we will reward you with a free Pro Version License of Gallery Bank worth 18£.</p>
102
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
103
  </strong>
104
  </span>
views/purchase_pro_version.php CHANGED
@@ -150,7 +150,7 @@
150
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col2">Eco</h2></span></span>
151
  </li>
152
  <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
153
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>10</span></h1><h3 class="col1">one time</h3></span></span>
154
  </li>
155
  <li style="text-align: center;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
156
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
@@ -284,7 +284,7 @@
284
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
285
  </li>
286
  <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
287
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>16</span></h1><h3 class="col1">one time</h3></span></span>
288
  </li>
289
  <li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
290
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
@@ -418,7 +418,7 @@
418
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
419
  </li>
420
  <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
421
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>56</span></h1><h3 class="col1">one time</h3></span></span>
422
  </li>
423
  <li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
424
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
@@ -552,7 +552,7 @@
552
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
553
  </li>
554
  <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
555
- <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>499</span></h1><h3 class="col1">one time</h3></span></span>
556
  </li>
557
  <li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
558
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>
150
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col2">Eco</h2></span></span>
151
  </li>
152
  <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
153
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>11</span></h1><h3 class="col1">one time</h3></span></span>
154
  </li>
155
  <li style="text-align: center;" class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
156
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
284
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Pro</h2></span></span>
285
  </li>
286
  <li style="text-align: center;" class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
287
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>18</span></h1><h3 class="col1">one time</h3></span></span>
288
  </li>
289
  <li style="text-align: center;" class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
290
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>1</span></span></span>
418
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Developer</h2></span></span>
419
  </li>
420
  <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
421
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>63</span></h1><h3 class="col1">one time</h3></span></span>
422
  </li>
423
  <li class="css3_grid_row_2 row_style_4 css3_grid_row_2_responsive align_center">
424
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>5</span></span></span>
552
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h2 class="col1">Extended</h2></span></span>
553
  </li>
554
  <li class="css3_grid_row_1 header_row_2 css3_grid_row_1_responsive align_center">
555
+ <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><h1 class="col1"> £<span>549</span></h1><h3 class="col1">one time</h3></span></span>
556
  </li>
557
  <li class="css3_grid_row_2 row_style_3 css3_grid_row_2_responsive align_center">
558
  <span class="css3_grid_vertical_align_table"><span class="css3_grid_vertical_align"><span>50</span></span></span>