Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.35

Version Description

New: Addthis (pro version). Fixed: Link text font size in extended album description.

Download this release

Release Info

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

Code changes from version 1.2.34 to 1.2.35

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -804,7 +804,11 @@ class BWGControllerGalleries_bwg {
804
  }
805
  }
806
  }
807
-
 
 
 
 
808
  $published = (isset($_POST['published']) ? (int) $_POST['published'] : 1);
809
  if ($id != 0) {
810
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array(
@@ -836,6 +840,10 @@ class BWGControllerGalleries_bwg {
836
  'random_preview_image' => $random_preview_image,
837
  'order' => ((int) $wpdb->get_var('SELECT MAX(`order`) FROM ' . $wpdb->prefix . 'bwg_gallery')) + 1,
838
  'author' => get_current_user_id(),
 
 
 
 
839
  'published' => $published,
840
  ), array(
841
  '%s',
@@ -846,6 +854,10 @@ class BWGControllerGalleries_bwg {
846
  '%s',
847
  '%d',
848
  '%d',
 
 
 
 
849
  '%d',
850
  ));
851
  }
804
  }
805
  }
806
  }
807
+
808
+ $gallery_type = ((isset($_POST['gallery_type']) && esc_html(stripslashes($_POST['gallery_type'])) != '') ? esc_html(stripslashes($_POST['gallery_type'])) : '');
809
+ $gallery_source = ((isset($_POST['gallery_source']) && esc_html(stripslashes($_POST['gallery_source'])) != '') ? esc_html(stripslashes($_POST['gallery_source'])) : '');
810
+ $update_flag = ((isset($_POST['update_flag']) && esc_html(stripslashes($_POST['update_flag'])) != '') ? esc_html(stripslashes($_POST['update_flag'])) : '');
811
+ $autogallery_image_number = (isset($_POST['autogallery_image_number']) ? (int) $_POST['autogallery_image_number'] : 12);
812
  $published = (isset($_POST['published']) ? (int) $_POST['published'] : 1);
813
  if ($id != 0) {
814
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array(
840
  'random_preview_image' => $random_preview_image,
841
  'order' => ((int) $wpdb->get_var('SELECT MAX(`order`) FROM ' . $wpdb->prefix . 'bwg_gallery')) + 1,
842
  'author' => get_current_user_id(),
843
+ 'gallery_type' => $gallery_type,
844
+ 'gallery_source' => $gallery_source,
845
+ 'autogallery_image_number' => $autogallery_image_number,
846
+ 'update_flag' => $update_flag,
847
  'published' => $published,
848
  ), array(
849
  '%s',
854
  '%s',
855
  '%d',
856
  '%d',
857
+ '%s',
858
+ '%s',
859
+ '%d',
860
+ '%s',
861
  '%d',
862
  ));
863
  }
admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -211,6 +211,8 @@ class BWGControllerOptions_bwg {
211
  $autohide_slideshow_navigation = (isset($_POST['autohide_slideshow_navigation']) ? esc_html(stripslashes($_POST['autohide_slideshow_navigation'])) : 1);
212
  $read_metadata = (isset($_POST['read_metadata']) ? esc_html(stripslashes($_POST['read_metadata'])) : 0);
213
  $enable_loop = (isset($_POST['enable_loop']) ? esc_html(stripslashes($_POST['enable_loop'])) : 1);
 
 
214
 
215
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
216
  'images_directory' => $images_directory,
@@ -330,6 +332,8 @@ class BWGControllerOptions_bwg {
330
  'autohide_slideshow_navigation' => $autohide_slideshow_navigation,
331
  'read_metadata' => $read_metadata,
332
  'enable_loop' => $enable_loop,
 
 
333
  ), array('id' => 1));
334
 
335
  if ($save !== FALSE) {
211
  $autohide_slideshow_navigation = (isset($_POST['autohide_slideshow_navigation']) ? esc_html(stripslashes($_POST['autohide_slideshow_navigation'])) : 1);
212
  $read_metadata = (isset($_POST['read_metadata']) ? esc_html(stripslashes($_POST['read_metadata'])) : 0);
213
  $enable_loop = (isset($_POST['enable_loop']) ? esc_html(stripslashes($_POST['enable_loop'])) : 1);
214
+ $enable_addthis = (isset($_POST['enable_addthis']) ? esc_html(stripslashes($_POST['enable_addthis'])) : 0);
215
+ $addthis_profile_id = (isset($_POST['addthis_profile_id']) ? esc_html(stripslashes($_POST['addthis_profile_id'])) : '');
216
 
217
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
218
  'images_directory' => $images_directory,
332
  'autohide_slideshow_navigation' => $autohide_slideshow_navigation,
333
  'read_metadata' => $read_metadata,
334
  'enable_loop' => $enable_loop,
335
+ 'enable_addthis' => $enable_addthis,
336
+ 'addthis_profile_id' => $addthis_profile_id,
337
  ), array('id' => 1));
338
 
339
  if ($save !== FALSE) {
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -153,6 +153,8 @@ class BWGModelOptions_bwg {
153
  $row->autohide_slideshow_navigation = 1;
154
  $row->read_metadata = 0;
155
  $row->enable_loop = 1;
 
 
156
  }
157
  return $row;
158
  }
153
  $row->autohide_slideshow_navigation = 1;
154
  $row->read_metadata = 0;
155
  $row->enable_loop = 1;
156
+ $row->enable_addthis = 0;
157
+ $row->addthis_profile_id = '';
158
  }
159
  return $row;
160
  }
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -890,6 +890,18 @@ class BWGViewOptions_bwg {
890
  <div class="spider_description"></div>
891
  </td>
892
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
893
  </tbody>
894
  </table>
895
  </td>
890
  <div class="spider_description"></div>
891
  </td>
892
  </tr>
893
+ <tr>
894
+ <td class="spider_label_options spider_free_version_label">
895
+ <label>Enable AddThis:</label>
896
+ </td>
897
+ <td>
898
+ <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_1" value="1" <?php if ($row->enable_addthis ) echo 'checked="checked"'; ?> />
899
+ <label for="enable_addthis_1">Yes</label>
900
+ <input disabled="disabled" type="radio" name="enable_addthis" id="enable_addthis_0" value="0" <?php if (!$row->enable_addthis ) echo 'checked="checked"'; ?> />
901
+ <label for="enable_addthis_0">No</label>
902
+ <div class="spider_description spider_free_version">This option is disabled in free version.</div>
903
+ </td>
904
+ </tr>
905
  </tbody>
906
  </table>
907
  </td>
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -277,6 +277,12 @@ class BWGViewAlbum_extended_preview {
277
  vertical-align: middle;
278
  width: inherit;
279
  }
 
 
 
 
 
 
280
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_spun1_<?php echo $bwg; ?> {
281
  border: <?php echo $theme_row->album_extended_desc_span_border_width; ?>px <?php echo $theme_row->album_extended_desc_span_border_style; ?> #<?php echo $theme_row->album_extended_desc_span_border_color; ?>;
282
  display: inline-block;
277
  vertical-align: middle;
278
  width: inherit;
279
  }
280
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_spun1_<?php echo $bwg; ?> a {
281
+ color: #<?php echo $theme_row->album_extended_desc_font_color; ?>;
282
+ font-size: <?php echo $theme_row->album_extended_desc_font_size; ?>px;
283
+ font-weight: <?php echo $theme_row->album_extended_desc_font_weight; ?>;
284
+ font-family: <?php echo $theme_row->album_extended_desc_font_style; ?>;
285
+ }
286
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_description_spun1_<?php echo $bwg; ?> {
287
  border: <?php echo $theme_row->album_extended_desc_span_border_width; ?>px <?php echo $theme_row->album_extended_desc_span_border_style; ?> #<?php echo $theme_row->album_extended_desc_span_border_color; ?>;
288
  display: inline-block;
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -692,8 +692,8 @@ class BWGViewGalleryBox {
692
  <?php if($params_array['popup_info_full_width']) { ?>
693
  width: 100%;
694
  <?php } else { ?>
695
- margin: <?php echo $theme_row->lightbox_info_margin; ?>;
696
  width: 33%;
 
697
  <?php } ?>
698
  padding: <?php echo $theme_row->lightbox_info_padding; ?>;
699
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
692
  <?php if($params_array['popup_info_full_width']) { ?>
693
  width: 100%;
694
  <?php } else { ?>
 
695
  width: 33%;
696
+ margin: <?php echo $theme_row->lightbox_info_margin; ?>;
697
  <?php } ?>
698
  padding: <?php echo $theme_row->lightbox_info_padding; ?>;
699
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'top') && $theme_row->lightbox_ctrl_btn_pos == 'top' && $theme_row->lightbox_info_pos == 'top') ? 'top: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
js/bwg_gallery_box.js CHANGED
@@ -58,6 +58,9 @@ function spider_destroypopup(duration) {
58
  jQuery.fullscreen.exit();
59
  }
60
  }
 
 
 
61
  setTimeout(function () {
62
  jQuery(".spider_popup_wrap").remove();
63
  jQuery(".spider_popup_loading").css({display: "none"});
58
  jQuery.fullscreen.exit();
59
  }
60
  }
61
+ if (typeof enable_addthis != "undefined" && enable_addthis) {
62
+ jQuery(".at4-share-outer").hide();
63
+ }
64
  setTimeout(function () {
65
  jQuery(".spider_popup_wrap").remove();
66
  jQuery(".spider_popup_loading").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.34
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -740,10 +740,12 @@ function bwg_activate() {
740
  `instagram_client_id` varchar(40) NOT NULL,
741
  `description_tb` tinyint(1) NOT NULL,
742
  `enable_seo` tinyint(1) NOT NULL,
743
- `autohide_lightbox_navigation` tinyint(1) NOT NULL,
744
- `autohide_slideshow_navigation` tinyint(1) NOT NULL,
745
- `read_metadata` tinyint(1) NOT NULL,
746
- `enable_loop` tinyint(1) NOT NULL,
 
 
747
  PRIMARY KEY (`id`)
748
  ) DEFAULT CHARSET=utf8;";
749
  $wpdb->query($bwg_option);
@@ -1331,6 +1333,8 @@ function bwg_activate() {
1331
  'autohide_slideshow_navigation' => 1,
1332
  'read_metadata' => 1,
1333
  'enable_loop'=> 1,
 
 
1334
  ), array(
1335
  '%d',
1336
  '%s',
@@ -1461,6 +1465,8 @@ function bwg_activate() {
1461
  '%d',
1462
  '%d',
1463
  '%d',
 
 
1464
  ));
1465
  }
1466
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -3158,7 +3164,7 @@ function bwg_activate() {
3158
  ));
3159
  }
3160
  $version = get_option("wd_bwg_version");
3161
- $new_version = '1.2.34';
3162
  if ($version && version_compare($version, $new_version, '<')) {
3163
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3164
  bwg_update($version);
@@ -3176,7 +3182,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
3176
 
3177
  function bwg_update_hook() {
3178
  $version = get_option("wd_bwg_version");
3179
- $new_version = '1.2.34';
3180
  if ($version && version_compare($version, $new_version, '<')) {
3181
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3182
  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.35
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
740
  `instagram_client_id` varchar(40) NOT NULL,
741
  `description_tb` tinyint(1) NOT NULL,
742
  `enable_seo` tinyint(1) NOT NULL,
743
+ `autohide_lightbox_navigation` tinyint(1) NOT NULL,
744
+ `autohide_slideshow_navigation` tinyint(1) NOT NULL,
745
+ `read_metadata` tinyint(1) NOT NULL,
746
+ `enable_loop` tinyint(1) NOT NULL,
747
+ `enable_addthis` tinyint(1) NOT NULL,
748
+ `addthis_profile_id` varchar(66) NOT NULL,
749
  PRIMARY KEY (`id`)
750
  ) DEFAULT CHARSET=utf8;";
751
  $wpdb->query($bwg_option);
1333
  'autohide_slideshow_navigation' => 1,
1334
  'read_metadata' => 1,
1335
  'enable_loop'=> 1,
1336
+ 'enable_addthis' => 0,
1337
+ 'addthis_profile_id' => '',
1338
  ), array(
1339
  '%d',
1340
  '%s',
1465
  '%d',
1466
  '%d',
1467
  '%d',
1468
+ '%d',
1469
+ '%s',
1470
  ));
1471
  }
1472
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
3164
  ));
3165
  }
3166
  $version = get_option("wd_bwg_version");
3167
+ $new_version = '1.2.35';
3168
  if ($version && version_compare($version, $new_version, '<')) {
3169
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3170
  bwg_update($version);
3182
 
3183
  function bwg_update_hook() {
3184
  $version = get_option("wd_bwg_version");
3185
+ $new_version = '1.2.35';
3186
  if ($version && version_compare($version, $new_version, '<')) {
3187
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3188
  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, fotogalerie, galleria, galerie, galeri, 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, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 1.2.34
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -207,7 +207,11 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
207
 
208
  == Changelog ==
209
 
210
- = 1.2.34 =
 
 
 
 
211
  New: Recreate thumbnail button in gallery page.
212
 
213
  = 1.2.33 =
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, fotogalerie, galleria, galerie, galeri, 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, mosaic
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 1.2.35
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
207
 
208
  == Changelog ==
209
 
210
+ = 1.2.35 =
211
+ New: Addthis (pro version).
212
+ Fixed: Link text font size in extended album description.
213
+
214
+ = 1.2.34=
215
  New: Recreate thumbnail button in gallery page.
216
 
217
  = 1.2.33 =
update/bwg_update.php CHANGED
@@ -249,6 +249,11 @@ function bwg_update($version) {
249
  // Add load all images on frontend.
250
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_loop` tinyint(1) NOT NULL DEFAULT 1");
251
  }
 
 
 
 
 
252
  return;
253
  }
254
 
249
  // Add load all images on frontend.
250
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_loop` tinyint(1) NOT NULL DEFAULT 1");
251
  }
252
+ if (version_compare($version, '1.2.35') == -1) {
253
+ // Enable Addthis share buttons.
254
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `enable_addthis` tinyint(1) NOT NULL DEFAULT 0");
255
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `addthis_profile_id` varchar(32) NOT NULL DEFAULT ''");
256
+ }
257
  return;
258
  }
259