Version Description
- Changed: Deleted themes old fields.
- Changed: Check if file exist on set watermark.
- Fixed: Remove box shadow from navigation buttons.
- Fixed: Deactivate after uninstall, when folder name is different from photo-gallery.
Download this release
Release Info
Developer | webdorado |
Plugin | Photo Gallery by WD – Responsive Photo Gallery |
Version | 1.2.105 |
Comparing to | |
See all releases |
Code changes from version 1.2.104 to 1.2.105
- admin/controllers/BWGControllerOptions_bwg.php +61 -55
- admin/views/BWGViewUninstall_bwg.php +1 -1
- css/bwg_frontend.css +1 -0
- photo-gallery.php +4 -3
- readme.txt +6 -1
- update/bwg_update.php +16 -2
admin/controllers/BWGControllerOptions_bwg.php
CHANGED
@@ -28,7 +28,6 @@ class BWGControllerOptions_bwg {
|
|
28 |
}
|
29 |
}
|
30 |
|
31 |
-
|
32 |
if (method_exists($this, $task)) {
|
33 |
$this->$task($id);
|
34 |
}
|
@@ -234,7 +233,7 @@ class BWGControllerOptions_bwg {
|
|
234 |
$placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
|
235 |
$slideshow_effect_duration = (isset($_POST['slideshow_effect_duration']) ? esc_html(stripslashes($_POST['slideshow_effect_duration'])) : 1);
|
236 |
$popup_effect_duration = (isset($_POST['popup_effect_duration']) ? esc_html(stripslashes($_POST['popup_effect_duration'])) : 1);
|
237 |
-
|
238 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
239 |
'images_directory' => $images_directory,
|
240 |
'masonry' => $masonry,
|
@@ -376,13 +375,12 @@ class BWGControllerOptions_bwg {
|
|
376 |
'placeholder' => $placeholder,
|
377 |
'slideshow_effect_duration' => $slideshow_effect_duration,
|
378 |
'popup_effect_duration' => $popup_effect_duration,
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
}
|
384 |
|
385 |
-
if ($save !== FALSE) {
|
386 |
if ($old_images_directory && $old_images_directory != $images_directory) {
|
387 |
rename(ABSPATH . $old_images_directory . '/photo-gallery', ABSPATH . $images_directory . '/photo-gallery');
|
388 |
}
|
@@ -401,7 +399,8 @@ class BWGControllerOptions_bwg {
|
|
401 |
echo WDWLibrary::message('Error. Please install plugin again.', 'error');
|
402 |
}
|
403 |
}
|
404 |
-
|
|
|
405 |
$hex = str_replace("#", "", $hex);
|
406 |
if (strlen($hex) == 3) {
|
407 |
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
|
@@ -428,14 +427,12 @@ class BWGControllerOptions_bwg {
|
|
428 |
"height" => ($max_y - $min_y)
|
429 |
);
|
430 |
}
|
431 |
-
|
432 |
-
|
433 |
global $wpdb;
|
434 |
global $WD_BWG_UPLOAD_DIR;
|
435 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
436 |
-
$gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
|
437 |
$images = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
|
438 |
-
$img_ids = $wpdb->get_results('SELECT id, thumb_url FROM ' . $wpdb->prefix . 'bwg_image');
|
439 |
switch ($options->built_in_watermark_type) {
|
440 |
case 'text':
|
441 |
foreach ($images as $image) {
|
@@ -445,12 +442,16 @@ class BWGControllerOptions_bwg {
|
|
445 |
case 'image':
|
446 |
$watermark_path = str_replace(site_url() . '/', ABSPATH, $options->built_in_watermark_url);
|
447 |
foreach ($images as $image) {
|
448 |
-
|
449 |
}
|
450 |
break;
|
451 |
}
|
452 |
}
|
|
|
453 |
function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
|
|
|
|
|
|
|
454 |
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
455 |
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
456 |
|
@@ -460,7 +461,7 @@ class BWGControllerOptions_bwg {
|
|
460 |
$watermark_color = $this->bwg_hex2rgb($watermark_color);
|
461 |
$watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
|
462 |
$watermark_font = WD_BWG_DIR . '/fonts/' . $watermark_font;
|
463 |
-
$watermark_font_size =
|
464 |
$watermark_position = explode('-', $watermark_position);
|
465 |
$watermark_sizes = $this->bwg_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
|
466 |
|
@@ -513,6 +514,9 @@ class BWGControllerOptions_bwg {
|
|
513 |
}
|
514 |
|
515 |
function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
|
|
|
|
|
|
516 |
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
517 |
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
518 |
$watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
|
@@ -612,47 +616,49 @@ class BWGControllerOptions_bwg {
|
|
612 |
$image_data = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE id="%d"', $id));
|
613 |
$filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
|
614 |
$thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
|
615 |
-
copy(str_replace('/thumb/', '/.original/', $thumb_filename), $filename);
|
616 |
-
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
617 |
-
$percent = $width_orig / $thumb_width;
|
618 |
-
$thumb_height = $height_orig / $percent;
|
619 |
-
@ini_set('memory_limit', '-1');
|
620 |
-
if ($type_orig == 2) {
|
621 |
-
$img_r = imagecreatefromjpeg($filename);
|
622 |
-
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
623 |
-
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
624 |
-
imagejpeg($dst_r, $thumb_filename, 100);
|
625 |
-
imagedestroy($img_r);
|
626 |
-
imagedestroy($dst_r);
|
627 |
-
}
|
628 |
-
elseif ($type_orig == 3) {
|
629 |
-
$img_r = imagecreatefrompng($filename);
|
630 |
-
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
631 |
-
imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
|
632 |
-
imagealphablending($dst_r, FALSE);
|
633 |
-
imagesavealpha($dst_r, TRUE);
|
634 |
-
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
635 |
-
imagealphablending($dst_r, FALSE);
|
636 |
-
imagesavealpha($dst_r, TRUE);
|
637 |
-
imagepng($dst_r, $thumb_filename, 9);
|
638 |
-
imagedestroy($img_r);
|
639 |
-
imagedestroy($dst_r);
|
640 |
-
}
|
641 |
-
elseif ($type_orig == 1) {
|
642 |
-
$img_r = imagecreatefromgif($filename);
|
643 |
-
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
644 |
-
imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
|
645 |
-
imagealphablending($dst_r, FALSE);
|
646 |
-
imagesavealpha($dst_r, TRUE);
|
647 |
-
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
648 |
-
imagealphablending($dst_r, FALSE);
|
649 |
-
imagesavealpha($dst_r, TRUE);
|
650 |
-
imagegif($dst_r, $thumb_filename);
|
651 |
-
imagedestroy($img_r);
|
652 |
-
imagedestroy($dst_r);
|
653 |
-
}
|
654 |
-
@ini_restore('memory_limit');
|
655 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
}
|
657 |
|
658 |
public function resize_image_thumb() {
|
28 |
}
|
29 |
}
|
30 |
|
|
|
31 |
if (method_exists($this, $task)) {
|
32 |
$this->$task($id);
|
33 |
}
|
233 |
$placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
|
234 |
$slideshow_effect_duration = (isset($_POST['slideshow_effect_duration']) ? esc_html(stripslashes($_POST['slideshow_effect_duration'])) : 1);
|
235 |
$popup_effect_duration = (isset($_POST['popup_effect_duration']) ? esc_html(stripslashes($_POST['popup_effect_duration'])) : 1);
|
236 |
+
|
237 |
$save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
|
238 |
'images_directory' => $images_directory,
|
239 |
'masonry' => $masonry,
|
375 |
'placeholder' => $placeholder,
|
376 |
'slideshow_effect_duration' => $slideshow_effect_duration,
|
377 |
'popup_effect_duration' => $popup_effect_duration,
|
378 |
+
), array('id' => 1));
|
379 |
+
if (isset($_POST['watermark']) && $_POST['watermark'] == "image_set_watermark") {
|
380 |
+
$this->image_set_watermark();
|
381 |
+
}
|
|
|
382 |
|
383 |
+
if ($save !== FALSE) {
|
384 |
if ($old_images_directory && $old_images_directory != $images_directory) {
|
385 |
rename(ABSPATH . $old_images_directory . '/photo-gallery', ABSPATH . $images_directory . '/photo-gallery');
|
386 |
}
|
399 |
echo WDWLibrary::message('Error. Please install plugin again.', 'error');
|
400 |
}
|
401 |
}
|
402 |
+
|
403 |
+
function bwg_hex2rgb($hex) {
|
404 |
$hex = str_replace("#", "", $hex);
|
405 |
if (strlen($hex) == 3) {
|
406 |
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
|
427 |
"height" => ($max_y - $min_y)
|
428 |
);
|
429 |
}
|
430 |
+
|
431 |
+
public function image_set_watermark() {
|
432 |
global $wpdb;
|
433 |
global $WD_BWG_UPLOAD_DIR;
|
434 |
$options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
|
|
|
435 |
$images = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
|
|
|
436 |
switch ($options->built_in_watermark_type) {
|
437 |
case 'text':
|
438 |
foreach ($images as $image) {
|
442 |
case 'image':
|
443 |
$watermark_path = str_replace(site_url() . '/', ABSPATH, $options->built_in_watermark_url);
|
444 |
foreach ($images as $image) {
|
445 |
+
$this->set_image_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $watermark_path, $options->built_in_watermark_size, $options->built_in_watermark_size, $options->built_in_watermark_position);
|
446 |
}
|
447 |
break;
|
448 |
}
|
449 |
}
|
450 |
+
|
451 |
function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
|
452 |
+
if (!file_exists($original_filename)) {
|
453 |
+
return;
|
454 |
+
}
|
455 |
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
456 |
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
457 |
|
461 |
$watermark_color = $this->bwg_hex2rgb($watermark_color);
|
462 |
$watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
|
463 |
$watermark_font = WD_BWG_DIR . '/fonts/' . $watermark_font;
|
464 |
+
$watermark_font_size = $height * $watermark_font_size / 500;
|
465 |
$watermark_position = explode('-', $watermark_position);
|
466 |
$watermark_sizes = $this->bwg_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
|
467 |
|
514 |
}
|
515 |
|
516 |
function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
|
517 |
+
if (!file_exists($original_filename)) {
|
518 |
+
return;
|
519 |
+
}
|
520 |
$original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
|
521 |
$dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
|
522 |
$watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
|
616 |
$image_data = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE id="%d"', $id));
|
617 |
$filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
|
618 |
$thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
619 |
|
620 |
+
if (file_exists($filename) && file_exists($thumb_filename)) {
|
621 |
+
copy(str_replace('/thumb/', '/.original/', $thumb_filename), $filename);
|
622 |
+
list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
|
623 |
+
$percent = $width_orig / $thumb_width;
|
624 |
+
$thumb_height = $height_orig / $percent;
|
625 |
+
@ini_set('memory_limit', '-1');
|
626 |
+
if ($type_orig == 2) {
|
627 |
+
$img_r = imagecreatefromjpeg($filename);
|
628 |
+
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
629 |
+
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
630 |
+
imagejpeg($dst_r, $thumb_filename, 100);
|
631 |
+
imagedestroy($img_r);
|
632 |
+
imagedestroy($dst_r);
|
633 |
+
}
|
634 |
+
elseif ($type_orig == 3) {
|
635 |
+
$img_r = imagecreatefrompng($filename);
|
636 |
+
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
637 |
+
imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
|
638 |
+
imagealphablending($dst_r, FALSE);
|
639 |
+
imagesavealpha($dst_r, TRUE);
|
640 |
+
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
641 |
+
imagealphablending($dst_r, FALSE);
|
642 |
+
imagesavealpha($dst_r, TRUE);
|
643 |
+
imagepng($dst_r, $thumb_filename, 9);
|
644 |
+
imagedestroy($img_r);
|
645 |
+
imagedestroy($dst_r);
|
646 |
+
}
|
647 |
+
elseif ($type_orig == 1) {
|
648 |
+
$img_r = imagecreatefromgif($filename);
|
649 |
+
$dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
|
650 |
+
imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
|
651 |
+
imagealphablending($dst_r, FALSE);
|
652 |
+
imagesavealpha($dst_r, TRUE);
|
653 |
+
imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
|
654 |
+
imagealphablending($dst_r, FALSE);
|
655 |
+
imagesavealpha($dst_r, TRUE);
|
656 |
+
imagegif($dst_r, $thumb_filename);
|
657 |
+
imagedestroy($img_r);
|
658 |
+
imagedestroy($dst_r);
|
659 |
+
}
|
660 |
+
@ini_restore('memory_limit');
|
661 |
+
}
|
662 |
}
|
663 |
|
664 |
public function resize_image_thumb() {
|
admin/views/BWGViewUninstall_bwg.php
CHANGED
@@ -134,7 +134,7 @@ class BWGViewUninstall_bwg {
|
|
134 |
global $wpdb;
|
135 |
$this->model->delete_db_tables();
|
136 |
$prefix = $wpdb->prefix;
|
137 |
-
$deactivate_url = wp_nonce_url('plugins.php?action=deactivate&plugin=
|
138 |
?>
|
139 |
<div id="message" class="updated fade">
|
140 |
<p><?php _e("The following Database Tables successfully deleted:", 'bwg_back'); ?></p>
|
134 |
global $wpdb;
|
135 |
$this->model->delete_db_tables();
|
136 |
$prefix = $wpdb->prefix;
|
137 |
+
$deactivate_url = wp_nonce_url('plugins.php?action=deactivate&plugin=' . WD_BWG_NAME . '/photo-gallery.php', 'deactivate-plugin_' . WD_BWG_NAME . '/photo-gallery.php');
|
138 |
?>
|
139 |
<div id="message" class="updated fade">
|
140 |
<p><?php _e("The following Database Tables successfully deleted:", 'bwg_back'); ?></p>
|
css/bwg_frontend.css
CHANGED
@@ -9,6 +9,7 @@ div[id^="bwg_container"] p {
|
|
9 |
|
10 |
div[id^="bwg_container"] a {
|
11 |
border: none;
|
|
|
12 |
outline: none;
|
13 |
font-size: 0;
|
14 |
cursor: pointer;
|
9 |
|
10 |
div[id^="bwg_container"] a {
|
11 |
border: none;
|
12 |
+
box-shadow: none;
|
13 |
outline: none;
|
14 |
font-size: 0;
|
15 |
cursor: pointer;
|
photo-gallery.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
-
* Version: 1.2.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -12,6 +12,7 @@
|
|
12 |
|
13 |
define('WD_BWG_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
14 |
define('WD_BWG_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
|
|
15 |
define('WD_BWG_PRO', false);
|
16 |
|
17 |
function bwg_use_home_url() {
|
@@ -1922,7 +1923,7 @@ function bwg_activate() {
|
|
1922 |
));
|
1923 |
}
|
1924 |
$version = get_option("wd_bwg_version");
|
1925 |
-
$new_version = '1.2.
|
1926 |
if ($version && version_compare($version, $new_version, '<')) {
|
1927 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1928 |
bwg_update($version);
|
@@ -1976,7 +1977,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
|
|
1976 |
|
1977 |
function bwg_update_hook() {
|
1978 |
$version = get_option("wd_bwg_version");
|
1979 |
-
$new_version = '1.2.
|
1980 |
if ($version && version_compare($version, $new_version, '<')) {
|
1981 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1982 |
bwg_update($version);
|
4 |
* Plugin Name: Photo Gallery
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
6 |
* Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
|
7 |
+
* Version: 1.2.105
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
|
13 |
define('WD_BWG_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
|
14 |
define('WD_BWG_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
15 |
+
define('WD_BWG_NAME', plugin_basename(dirname(__FILE__)));
|
16 |
define('WD_BWG_PRO', false);
|
17 |
|
18 |
function bwg_use_home_url() {
|
1923 |
));
|
1924 |
}
|
1925 |
$version = get_option("wd_bwg_version");
|
1926 |
+
$new_version = '1.2.105';
|
1927 |
if ($version && version_compare($version, $new_version, '<')) {
|
1928 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1929 |
bwg_update($version);
|
1977 |
|
1978 |
function bwg_update_hook() {
|
1979 |
$version = get_option("wd_bwg_version");
|
1980 |
+
$new_version = '1.2.105';
|
1981 |
if ($version && version_compare($version, $new_version, '<')) {
|
1982 |
require_once WD_BWG_DIR . "/update/bwg_update.php";
|
1983 |
bwg_update($version);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
|
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -225,6 +225,11 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
|
|
225 |
|
226 |
== Changelog ==
|
227 |
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
= 1.2.104 =
|
230 |
* Fixed: Search in gallery from widget.
|
4 |
Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.2.105
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
225 |
|
226 |
== Changelog ==
|
227 |
|
228 |
+
= 1.2.105 =
|
229 |
+
* Changed: Deleted themes old fields.
|
230 |
+
* Changed: Check if file exist on set watermark.
|
231 |
+
* Fixed: Remove box shadow from navigation buttons.
|
232 |
+
* Fixed: Deactivate after uninstall, when folder name is different from photo-gallery.
|
233 |
|
234 |
= 1.2.104 =
|
235 |
* Fixed: Search in gallery from widget.
|
update/bwg_update.php
CHANGED
@@ -353,7 +353,21 @@ function bwg_update($version) {
|
|
353 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `slideshow_effect_duration` int(4) NOT NULL DEFAULT 1");
|
354 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_effect_duration` int(4) NOT NULL DEFAULT 1");
|
355 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
return;
|
357 |
}
|
358 |
-
|
359 |
-
?>
|
353 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `slideshow_effect_duration` int(4) NOT NULL DEFAULT 1");
|
354 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_effect_duration` int(4) NOT NULL DEFAULT 1");
|
355 |
}
|
356 |
+
if (version_compare($version, '1.2.105') == -1) {
|
357 |
+
$theme_table = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "bwg_theme");
|
358 |
+
if (isset($theme_table->options)) {
|
359 |
+
$cols_arr = array();
|
360 |
+
foreach ($theme_table as $key => $value) {
|
361 |
+
if ($key != 'id' && $key != 'name' && $key != 'options' && $key != 'default_theme') {
|
362 |
+
$cols_arr[] = ' DROP `' . $key . '`';
|
363 |
+
}
|
364 |
+
}
|
365 |
+
if (!empty($cols_arr)) {
|
366 |
+
$cols = implode(',', $cols_arr);
|
367 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme " . $cols);
|
368 |
+
}
|
369 |
+
}
|
370 |
+
}
|
371 |
return;
|
372 |
}
|
373 |
+
?>
|
|