Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.103

Version Description

  • Fixed: Text watermark responsivness.
  • Added: Set/Reset watermark to all images at once.
  • Fixed: Description for masonry album views.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.2.103
Comparing to
See all releases

Code changes from version 1.2.102 to 1.2.103

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -475,7 +475,7 @@ class BWGControllerGalleries_bwg {
475
  $watermark_color = $this->bwg_hex2rgb($watermark_color);
476
  $watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
477
  $watermark_font = WD_BWG_DIR . '/fonts/' . $watermark_font;
478
- $watermark_font_size = ($height * $watermark_font_size / 500) . 'px';
479
  $watermark_position = explode('-', $watermark_position);
480
  $watermark_sizes = $this->bwg_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
481
 
475
  $watermark_color = $this->bwg_hex2rgb($watermark_color);
476
  $watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
477
  $watermark_font = WD_BWG_DIR . '/fonts/' . $watermark_font;
478
+ $watermark_font_size = (($height > $width ? $width : $height) * $watermark_font_size / 500) . 'px';
479
  $watermark_position = explode('-', $watermark_position);
480
  $watermark_sizes = $this->bwg_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
481
 
admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -373,6 +373,10 @@ class BWGControllerOptions_bwg {
373
  'show_hide_post_meta' => $show_hide_post_meta,
374
  'placeholder' => $placeholder,
375
  ), array('id' => 1));
 
 
 
 
376
 
377
  if ($save !== FALSE) {
378
  if ($old_images_directory && $old_images_directory != $images_directory) {
@@ -392,6 +396,259 @@ class BWGControllerOptions_bwg {
392
  else {
393
  echo WDWLibrary::message('Error. Please install plugin again.', 'error');
394
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
395
  }
396
 
397
  public function resize_image_thumb() {
373
  'show_hide_post_meta' => $show_hide_post_meta,
374
  'placeholder' => $placeholder,
375
  ), array('id' => 1));
376
+
377
+ if(isset($_POST['watermark']) && $_POST['watermark'] == "image_set_watermark"){
378
+ $this->image_set_watermark();
379
+ }
380
 
381
  if ($save !== FALSE) {
382
  if ($old_images_directory && $old_images_directory != $images_directory) {
396
  else {
397
  echo WDWLibrary::message('Error. Please install plugin again.', 'error');
398
  }
399
+ }
400
+ function bwg_hex2rgb($hex) {
401
+ $hex = str_replace("#", "", $hex);
402
+ if (strlen($hex) == 3) {
403
+ $r = hexdec(substr($hex,0,1).substr($hex,0,1));
404
+ $g = hexdec(substr($hex,1,1).substr($hex,1,1));
405
+ $b = hexdec(substr($hex,2,1).substr($hex,2,1));
406
+ }
407
+ else {
408
+ $r = hexdec(substr($hex,0,2));
409
+ $g = hexdec(substr($hex,2,2));
410
+ $b = hexdec(substr($hex,4,2));
411
+ }
412
+ $rgb = array($r, $g, $b);
413
+ return $rgb;
414
+ }
415
+
416
+ function bwg_imagettfbboxdimensions($font_size, $font_angle, $font, $text) {
417
+ $box = @ImageTTFBBox($font_size, $font_angle, $font, $text) or die;
418
+ $max_x = max(array($box[0], $box[2], $box[4], $box[6]));
419
+ $max_y = max(array($box[1], $box[3], $box[5], $box[7]));
420
+ $min_x = min(array($box[0], $box[2], $box[4], $box[6]));
421
+ $min_y = min(array($box[1], $box[3], $box[5], $box[7]));
422
+ return array(
423
+ "width" => ($max_x - $min_x),
424
+ "height" => ($max_y - $min_y)
425
+ );
426
+ }
427
+
428
+ public function image_set_watermark() {
429
+ global $wpdb;
430
+ global $WD_BWG_UPLOAD_DIR;
431
+ $options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
432
+ $gallery_id = ((isset($_POST['current_id'])) ? esc_html(stripslashes($_POST['current_id'])) : 0);
433
+ $images = $wpdb->get_results('SELECT * FROM ' . $wpdb->prefix . 'bwg_image');
434
+ $img_ids = $wpdb->get_results('SELECT id, thumb_url FROM ' . $wpdb->prefix . 'bwg_image');
435
+ switch ($options->built_in_watermark_type) {
436
+ case 'text':
437
+ foreach ($images as $image) {
438
+ $this->set_text_watermark(ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, ABSPATH . $WD_BWG_UPLOAD_DIR . $image->image_url, $options->built_in_watermark_text, $options->built_in_watermark_font, $options->built_in_watermark_font_size, '#' . $options->built_in_watermark_color, $options->built_in_watermark_opacity, $options->built_in_watermark_position);
439
+ }
440
+ break;
441
+ case 'image':
442
+ $watermark_path = str_replace(site_url() . '/', ABSPATH, $options->built_in_watermark_url);
443
+ foreach ($images as $image) {
444
+ $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);
445
+ }
446
+ break;
447
+ }
448
+ }
449
+ function set_text_watermark($original_filename, $dest_filename, $watermark_text, $watermark_font, $watermark_font_size, $watermark_color, $watermark_transparency, $watermark_position) {
450
+ $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
451
+ $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
452
+
453
+ $watermark_transparency = 127 - ($watermark_transparency * 1.27);
454
+ list($width, $height, $type) = getimagesize($original_filename);
455
+ $watermark_image = imagecreatetruecolor($width, $height);
456
+ $watermark_color = $this->bwg_hex2rgb($watermark_color);
457
+ $watermark_color = imagecolorallocatealpha($watermark_image, $watermark_color[0], $watermark_color[1], $watermark_color[2], $watermark_transparency);
458
+ $watermark_font = WD_BWG_DIR . '/fonts/' . $watermark_font;
459
+ $watermark_font_size = ($height * $watermark_font_size / 500);
460
+ $watermark_position = explode('-', $watermark_position);
461
+ $watermark_sizes = $this->bwg_imagettfbboxdimensions($watermark_font_size, 0, $watermark_font, $watermark_text);
462
+
463
+ $top = $height - 5;
464
+ $left = $width - $watermark_sizes['width'] - 5;
465
+ switch ($watermark_position[0]) {
466
+ case 'top':
467
+ $top = $watermark_sizes['height'] + 5;
468
+ break;
469
+ case 'middle':
470
+ $top = ($height + $watermark_sizes['height']) / 2;
471
+ break;
472
+ }
473
+ switch ($watermark_position[1]) {
474
+ case 'left':
475
+ $left = 5;
476
+ break;
477
+ case 'center':
478
+ $left = ($width - $watermark_sizes['width']) / 2;
479
+ break;
480
+ }
481
+ @ini_set('memory_limit', '-1');
482
+ if ($type == 2) {
483
+ $image = imagecreatefromjpeg($original_filename);
484
+ imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
485
+ imagejpeg ($image, $dest_filename, 100);
486
+ imagedestroy($image);
487
+ }
488
+ elseif ($type == 3) {
489
+ $image = imagecreatefrompng($original_filename);
490
+ imagettftext($image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
491
+ imageColorAllocateAlpha($image, 0, 0, 0, 127);
492
+ imagealphablending($image, FALSE);
493
+ imagesavealpha($image, TRUE);
494
+ imagepng($image, $dest_filename, 9);
495
+ imagedestroy($image);
496
+ }
497
+ elseif ($type == 1) {
498
+ $image = imagecreatefromgif($original_filename);
499
+ imageColorAllocateAlpha($watermark_image, 0, 0, 0, 127);
500
+ imagecopy($watermark_image, $image, 0, 0, 0, 0, $width, $height);
501
+ imagettftext($watermark_image, $watermark_font_size, 0, $left, $top, $watermark_color, $watermark_font, $watermark_text);
502
+ imagealphablending($watermark_image, FALSE);
503
+ imagesavealpha($watermark_image, TRUE);
504
+ imagegif($watermark_image, $dest_filename);
505
+ imagedestroy($image);
506
+ }
507
+ imagedestroy($watermark_image);
508
+ @ini_restore('memory_limit');
509
+ }
510
+
511
+ function set_image_watermark($original_filename, $dest_filename, $watermark_url, $watermark_height, $watermark_width, $watermark_position) {
512
+ $original_filename = htmlspecialchars_decode($original_filename, ENT_COMPAT | ENT_QUOTES);
513
+ $dest_filename = htmlspecialchars_decode($dest_filename, ENT_COMPAT | ENT_QUOTES);
514
+ $watermark_url = htmlspecialchars_decode($watermark_url, ENT_COMPAT | ENT_QUOTES);
515
+
516
+ list($width, $height, $type) = getimagesize($original_filename);
517
+ list($width_watermark, $height_watermark, $type_watermark) = getimagesize($watermark_url);
518
+ $watermark_width = $width * $watermark_width / 100;
519
+ $watermark_height = $height_watermark * $watermark_width / $width_watermark;
520
+
521
+ $watermark_position = explode('-', $watermark_position);
522
+ $top = $height - $watermark_height - 5;
523
+ $left = $width - $watermark_width - 5;
524
+ switch ($watermark_position[0]) {
525
+ case 'top':
526
+ $top = 5;
527
+ break;
528
+ case 'middle':
529
+ $top = ($height - $watermark_height) / 2;
530
+ break;
531
+ }
532
+ switch ($watermark_position[1]) {
533
+ case 'left':
534
+ $left = 5;
535
+ break;
536
+ case 'center':
537
+ $left = ($width - $watermark_width) / 2;
538
+ break;
539
+ }
540
+ @ini_set('memory_limit', '-1');
541
+ if ($type_watermark == 2) {
542
+ $watermark_image = imagecreatefromjpeg($watermark_url);
543
+ }
544
+ elseif ($type_watermark == 3) {
545
+ $watermark_image = imagecreatefrompng($watermark_url);
546
+ }
547
+ elseif ($type_watermark == 1) {
548
+ $watermark_image = imagecreatefromgif($watermark_url);
549
+ }
550
+ else {
551
+ return false;
552
+ }
553
+
554
+ $watermark_image_resized = imagecreatetruecolor($watermark_width, $watermark_height);
555
+ imagecolorallocatealpha($watermark_image_resized, 255, 255, 255, 127);
556
+ imagealphablending($watermark_image_resized, FALSE);
557
+ imagesavealpha($watermark_image_resized, TRUE);
558
+ imagecopyresampled ($watermark_image_resized, $watermark_image, 0, 0, 0, 0, $watermark_width, $watermark_height, $width_watermark, $height_watermark);
559
+
560
+ if ($type == 2) {
561
+ $image = imagecreatefromjpeg($original_filename);
562
+ imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
563
+ if ($dest_filename <> '') {
564
+ imagejpeg ($image, $dest_filename, 100);
565
+ } else {
566
+ header('Content-Type: image/jpeg');
567
+ imagejpeg($image, null, 100);
568
+ };
569
+ imagedestroy($image);
570
+ }
571
+ elseif ($type == 3) {
572
+ $image = imagecreatefrompng($original_filename);
573
+ imagecopy($image, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
574
+ imagealphablending($image, FALSE);
575
+ imagesavealpha($image, TRUE);
576
+ imagepng($image, $dest_filename, 9);
577
+ imagedestroy($image);
578
+ }
579
+ elseif ($type == 1) {
580
+ $image = imagecreatefromgif($original_filename);
581
+ $tempimage = imagecreatetruecolor($width, $height);
582
+ imagecopy($tempimage, $image, 0, 0, 0, 0, $width, $height);
583
+ imagecopy($tempimage, $watermark_image_resized, $left, $top, 0, 0, $watermark_width, $watermark_height);
584
+ imagegif($tempimage, $dest_filename);
585
+ imagedestroy($image);
586
+ imagedestroy($tempimage);
587
+ }
588
+ imagedestroy($watermark_image);
589
+ @ini_restore('memory_limit');
590
+ }
591
+
592
+
593
+ public function image_recover_all() {
594
+ global $wpdb;
595
+ $options = $wpdb->get_row('SELECT * FROM ' . $wpdb->prefix . 'bwg_option WHERE id=1');
596
+ $thumb_width = $options->upload_thumb_width;
597
+ $thumb_height = $options->upload_thumb_height;
598
+ $image_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'bwg_image');
599
+ foreach ($image_ids_col as $image_id) {
600
+ $this->recover_image($image_id, $thumb_width, $thumb_height);
601
+ }
602
+ $this->display();
603
+ }
604
+
605
+ public function recover_image($id, $thumb_width, $thumb_height) {
606
+ global $WD_BWG_UPLOAD_DIR;
607
+ global $wpdb;
608
+ $image_data = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'bwg_image WHERE id="%d"', $id));
609
+ $filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url, ENT_COMPAT | ENT_QUOTES);
610
+ $thumb_filename = htmlspecialchars_decode(ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->thumb_url, ENT_COMPAT | ENT_QUOTES);
611
+ copy(str_replace('/thumb/', '/.original/', $thumb_filename), $filename);
612
+ list($width_orig, $height_orig, $type_orig) = getimagesize($filename);
613
+ $percent = $width_orig / $thumb_width;
614
+ $thumb_height = $height_orig / $percent;
615
+ @ini_set('memory_limit', '-1');
616
+ if ($type_orig == 2) {
617
+ $img_r = imagecreatefromjpeg($filename);
618
+ $dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
619
+ imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
620
+ imagejpeg($dst_r, $thumb_filename, 100);
621
+ imagedestroy($img_r);
622
+ imagedestroy($dst_r);
623
+ }
624
+ elseif ($type_orig == 3) {
625
+ $img_r = imagecreatefrompng($filename);
626
+ $dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
627
+ imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
628
+ imagealphablending($dst_r, FALSE);
629
+ imagesavealpha($dst_r, TRUE);
630
+ imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
631
+ imagealphablending($dst_r, FALSE);
632
+ imagesavealpha($dst_r, TRUE);
633
+ imagepng($dst_r, $thumb_filename, 9);
634
+ imagedestroy($img_r);
635
+ imagedestroy($dst_r);
636
+ }
637
+ elseif ($type_orig == 1) {
638
+ $img_r = imagecreatefromgif($filename);
639
+ $dst_r = ImageCreateTrueColor($thumb_width, $thumb_height);
640
+ imageColorAllocateAlpha($dst_r, 0, 0, 0, 127);
641
+ imagealphablending($dst_r, FALSE);
642
+ imagesavealpha($dst_r, TRUE);
643
+ imagecopyresampled($dst_r, $img_r, 0, 0, 0, 0, $thumb_width, $thumb_height, $width_orig, $height_orig);
644
+ imagealphablending($dst_r, FALSE);
645
+ imagesavealpha($dst_r, TRUE);
646
+ imagegif($dst_r, $thumb_filename);
647
+ imagedestroy($img_r);
648
+ imagedestroy($dst_r);
649
+ }
650
+ @ini_restore('memory_limit');
651
+
652
  }
653
 
654
  public function resize_image_thumb() {
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -454,6 +454,12 @@ class BWGViewOptions_bwg {
454
  </tr>
455
  </tbody>
456
  </table>
 
 
 
 
 
 
457
  <div class="spider_description"></div>
458
  </td>
459
  </tr>
@@ -1653,6 +1659,7 @@ class BWGViewOptions_bwg {
1653
  <input id="task" name="task" type="hidden" value="" />
1654
  <input id="recreate" name="recreate" type="hidden" value="" />
1655
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
 
1656
  <script>
1657
  window.onload = bwg_change_option_type('<?php echo isset($_POST['type']) ? esc_html($_POST['type']) : '1'; ?>');
1658
  window.onload = bwg_inputs();
454
  </tr>
455
  </tbody>
456
  </table>
457
+ <input type="submit" class="button-secondary" title="<?php _e('Set watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
458
+ onclick="spider_set_input_value('task', 'save'); spider_set_input_value('watermark', 'image_set_watermark');"
459
+ value="<?php _e('Set Watermark', 'bwg_back'); ?>"/>
460
+ <input type="submit" class="button-secondary" title="<?php _e('Reset watermark', 'bwg_back'); ?>" style="margin-top: 5px;"
461
+ onclick="spider_set_input_value('task', 'image_recover_all');"
462
+ value="<?php echo __('Reset Watermark', 'bwg_back'); ?>"/>
463
  <div class="spider_description"></div>
464
  </td>
465
  </tr>
1659
  <input id="task" name="task" type="hidden" value="" />
1660
  <input id="recreate" name="recreate" type="hidden" value="" />
1661
  <input id="current_id" name="current_id" type="hidden" value="<?php echo $row->id; ?>" />
1662
+ <input id="watermark" name="watermark" type="hidden" value="" />
1663
  <script>
1664
  window.onload = bwg_change_option_type('<?php echo isset($_POST['type']) ? esc_html($_POST['type']) : '1'; ?>');
1665
  window.onload = bwg_inputs();
featured/featured.php CHANGED
@@ -121,6 +121,12 @@ function spider_featured($current_plugin = '') {
121
  'content' => 'Post Slider WD is designed to show off the selected posts of your website in a slider.',
122
  'href' => 'https://web-dorado.com/products/wordpress-post-slider-plugin.html'
123
  ),
 
 
 
 
 
 
124
  );
125
  ?>
126
  <div id="main_featured_plugins_page">
121
  'content' => 'Post Slider WD is designed to show off the selected posts of your website in a slider.',
122
  'href' => 'https://web-dorado.com/products/wordpress-post-slider-plugin.html'
123
  ),
124
+ "google-maps" => array(
125
+ 'title' => 'Google Map',
126
+ 'text' => 'WordPress Google Maps Plugin',
127
+ 'content' => 'Google Maps WD is an intuitive tool for creating Google maps with advanced markers, custom layers and overlays for your website.',
128
+ 'href' => 'https://web-dorado.com/products/wordpress-google-maps-plugin.html'
129
+ ),
130
  );
131
  ?>
132
  <div id="main_featured_plugins_page">
featured/images/google-maps.png ADDED
Binary file
featured/style.css CHANGED
@@ -1,5 +1,4 @@
1
  @import url(http://fonts.googleapis.com/css?family=Oswald);
2
-
3
  #main_featured_plugins_page {
4
  font-family: Oswald;
5
  width: 90%;
@@ -73,6 +72,7 @@
73
  #main_featured_plugins_page #featured-plugins-list li.faq_wd .product {background:url("images/faq_wd.png") center center no-repeat;}
74
  #main_featured_plugins_page #featured-plugins-list li.instagram_feed .product {background:url("images/instagram_feed.png") center center no-repeat;}
75
  #main_featured_plugins_page #featured-plugins-list li.post-slider .product {background:url("images/post-slider.png") center center no-repeat;}
 
76
 
77
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
78
  display: block;
1
  @import url(http://fonts.googleapis.com/css?family=Oswald);
 
2
  #main_featured_plugins_page {
3
  font-family: Oswald;
4
  width: 90%;
72
  #main_featured_plugins_page #featured-plugins-list li.faq_wd .product {background:url("images/faq_wd.png") center center no-repeat;}
73
  #main_featured_plugins_page #featured-plugins-list li.instagram_feed .product {background:url("images/instagram_feed.png") center center no-repeat;}
74
  #main_featured_plugins_page #featured-plugins-list li.post-slider .product {background:url("images/post-slider.png") center center no-repeat;}
75
+ #main_featured_plugins_page #featured-plugins-list li.google-maps .product {background:url("images/google-maps.png") center center no-repeat;}
76
 
77
  #main_featured_plugins_page #featured-plugins-list li .title .heading {
78
  display: block;
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1729,7 +1729,7 @@ class BWGViewGalleryBox {
1729
  }
1730
  }
1731
  }
1732
- jQuery(document).ready(function () {
1733
  <?php
1734
  if ($image_right_click) {
1735
  ?>
@@ -2169,7 +2169,7 @@ class BWGViewGalleryBox {
2169
  ?>
2170
  jQuery(".bwg_popup_image").removeAttr("width");
2171
  jQuery(".bwg_popup_image").removeAttr("height");
2172
- });
2173
  /* Open with fullscreen.*/
2174
  function bwg_open_with_fullscreen() {
2175
  jQuery(".bwg_watermark").css({display: 'none'});
1729
  }
1730
  }
1731
  }
1732
+ /* jQuery(document).ready(function () { */
1733
  <?php
1734
  if ($image_right_click) {
1735
  ?>
2169
  ?>
2170
  jQuery(".bwg_popup_image").removeAttr("width");
2171
  jQuery(".bwg_popup_image").removeAttr("height");
2172
+ /* }); */
2173
  /* Open with fullscreen.*/
2174
  function bwg_open_with_fullscreen() {
2175
  jQuery(".bwg_watermark").css({display: 'none'});
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.102
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1911,7 +1911,7 @@ function bwg_activate() {
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
- $new_version = '1.2.102';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
@@ -1965,7 +1965,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
- $new_version = '1.2.102';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  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.103
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
+ $new_version = '1.2.103';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
+ $new_version = '1.2.103';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  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.102
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
  = 1.2.102 =
229
  * Fixed: Search also in description.
230
  * Added: Options for slideshow 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.103
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.103 =
229
+ * Fixed: Text watermark responsivness.
230
+ * Added: Set/Reset watermark to all images at once.
231
+ * Fixed: Description for masonry album views.
232
+
233
  = 1.2.102 =
234
  * Fixed: Search also in description.
235
  * Added: Options for slideshow widget.