Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.45

Version Description

  • Changed: Licensing page.
Download this release

Release Info

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

Code changes from version 1.2.44 to 1.2.45

admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -227,7 +227,7 @@ class BWGControllerOptions_bwg {
227
  $carousel_fit_containerWidth = (isset($_POST['carousel_fit_containerWidth']) ? esc_html(stripslashes($_POST['carousel_fit_containerWidth'])) : 1);
228
  $carousel_prev_next_butt = (isset($_POST['carousel_prev_next_butt']) ? esc_html(stripslashes($_POST['carousel_prev_next_butt'])) : 1);
229
  $carousel_play_pause_butt = (isset($_POST['carousel_play_pause_butt']) ? esc_html(stripslashes($_POST['carousel_play_pause_butt'])) : 1);
230
-
231
 
232
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
233
  'images_directory' => $images_directory,
@@ -241,7 +241,7 @@ class BWGControllerOptions_bwg {
241
  'thumb_height' => $thumb_height,
242
  'upload_thumb_width' => $upload_thumb_width,
243
  'upload_thumb_height' => $upload_thumb_height,
244
- 'upload_img_width' => $upload_img_width,
245
  'upload_img_height' => $upload_img_height,
246
  'image_enable_page' => $image_enable_page,
247
  'image_title_show_hover' => $image_title_show_hover,
@@ -271,7 +271,7 @@ class BWGControllerOptions_bwg {
271
  'slideshow_filmstrip_height' => $slideshow_filmstrip_height,
272
  'slideshow_enable_title' => $slideshow_enable_title,
273
  'slideshow_title_position' => $slideshow_title_position,
274
- 'slideshow_title_full_width' => $slideshow_title_full_width,
275
  'slideshow_enable_description' => $slideshow_enable_description,
276
  'slideshow_description_position' => $slideshow_description_position,
277
  'slideshow_enable_music' => $slideshow_enable_music,
@@ -349,13 +349,10 @@ class BWGControllerOptions_bwg {
349
  'enable_loop' => $enable_loop,
350
  'enable_addthis' => $enable_addthis,
351
  'addthis_profile_id' => $addthis_profile_id,
352
-
353
- //carousel
354
 
355
  'carousel_interval' => $carousel_interval,
356
  'carousel_width' => $carousel_width,
357
- 'carousel_height' => $carousel_height,
358
- /*'carousel_title_full_width' => $carousel_title_full_width,*/
359
  'carousel_image_column_number' => $carousel_image_column_number,
360
  'carousel_image_par' => $carousel_image_par,
361
  'carousel_enable_title' => $carousel_enable_title,
@@ -364,6 +361,7 @@ class BWGControllerOptions_bwg {
364
  'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
365
  'carousel_prev_next_butt' => $carousel_prev_next_butt,
366
  'carousel_play_pause_butt' => $carousel_play_pause_butt,
 
367
  ), array('id' => 1));
368
 
369
  if ($save !== FALSE) {
227
  $carousel_fit_containerWidth = (isset($_POST['carousel_fit_containerWidth']) ? esc_html(stripslashes($_POST['carousel_fit_containerWidth'])) : 1);
228
  $carousel_prev_next_butt = (isset($_POST['carousel_prev_next_butt']) ? esc_html(stripslashes($_POST['carousel_prev_next_butt'])) : 1);
229
  $carousel_play_pause_butt = (isset($_POST['carousel_play_pause_butt']) ? esc_html(stripslashes($_POST['carousel_play_pause_butt'])) : 1);
230
+ $bwg_permissions = (isset($_POST['permissions']) ? esc_html(stripslashes($_POST['permissions'])) : 'manage_options');
231
 
232
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
233
  'images_directory' => $images_directory,
241
  'thumb_height' => $thumb_height,
242
  'upload_thumb_width' => $upload_thumb_width,
243
  'upload_thumb_height' => $upload_thumb_height,
244
+ 'upload_img_width' => $upload_img_width,
245
  'upload_img_height' => $upload_img_height,
246
  'image_enable_page' => $image_enable_page,
247
  'image_title_show_hover' => $image_title_show_hover,
271
  'slideshow_filmstrip_height' => $slideshow_filmstrip_height,
272
  'slideshow_enable_title' => $slideshow_enable_title,
273
  'slideshow_title_position' => $slideshow_title_position,
274
+ 'slideshow_title_full_width' => $slideshow_title_full_width,
275
  'slideshow_enable_description' => $slideshow_enable_description,
276
  'slideshow_description_position' => $slideshow_description_position,
277
  'slideshow_enable_music' => $slideshow_enable_music,
349
  'enable_loop' => $enable_loop,
350
  'enable_addthis' => $enable_addthis,
351
  'addthis_profile_id' => $addthis_profile_id,
 
 
352
 
353
  'carousel_interval' => $carousel_interval,
354
  'carousel_width' => $carousel_width,
355
+ 'carousel_height' => $carousel_height,
 
356
  'carousel_image_column_number' => $carousel_image_column_number,
357
  'carousel_image_par' => $carousel_image_par,
358
  'carousel_enable_title' => $carousel_enable_title,
361
  'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
362
  'carousel_prev_next_butt' => $carousel_prev_next_butt,
363
  'carousel_play_pause_butt' => $carousel_play_pause_butt,
364
+ 'permissions' => $bwg_permissions,
365
  ), array('id' => 1));
366
 
367
  if ($save !== FALSE) {
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -170,6 +170,7 @@ class BWGModelOptions_bwg {
170
  $row->carousel_fit_containerWidth = 1;
171
  $row->carousel_prev_next_butt = 1;
172
  $row->carousel_play_pause_butt = 1;
 
173
  }
174
  return $row;
175
  }
170
  $row->carousel_fit_containerWidth = 1;
171
  $row->carousel_prev_next_butt = 1;
172
  $row->carousel_play_pause_butt = 1;
173
+ $row->permissions = 'manage_options';
174
  }
175
  return $row;
176
  }
admin/views/BWGViewLicensing_bwg.php CHANGED
@@ -37,11 +37,12 @@ class BWGViewLicensing_bwg {
37
  <span>Photo Gallery Widget</span>
38
  <span>Slideshow/Lightbox Effects</span>
39
  <span>Possibility of Editing/Creating New Themes</span>
40
- <span>9 Pro Gallery/Album Views</span>
41
  <span>Image Commenting</span>
42
  <span>Image Social Sharing</span>
43
  <span>Photo Gallery Tags Cloud Widget</span>
44
  <span>Instagram Integration</span>
 
45
  </div>
46
  <div id="featurs_table2">
47
  <span style="padding-top: 18px;height: 39px;">Free</span>
@@ -61,6 +62,7 @@ class BWGViewLicensing_bwg {
61
  <span class="no"></span>
62
  <span class="no"></span>
63
  <span class="no"></span>
 
64
  </div>
65
  <div id="featurs_table3">
66
  <span>Pro Version</span>
@@ -80,6 +82,7 @@ class BWGViewLicensing_bwg {
80
  <span class="yes"></span>
81
  <span class="yes"></span>
82
  <span class="yes"></span>
 
83
  </div>
84
  </div>
85
  <div style="float: right; text-align: right;">
37
  <span>Photo Gallery Widget</span>
38
  <span>Slideshow/Lightbox Effects</span>
39
  <span>Possibility of Editing/Creating New Themes</span>
40
+ <span>10 Pro Gallery/Album Views</span>
41
  <span>Image Commenting</span>
42
  <span>Image Social Sharing</span>
43
  <span>Photo Gallery Tags Cloud Widget</span>
44
  <span>Instagram Integration</span>
45
+ <span>AddThis Integration</span>
46
  </div>
47
  <div id="featurs_table2">
48
  <span style="padding-top: 18px;height: 39px;">Free</span>
62
  <span class="no"></span>
63
  <span class="no"></span>
64
  <span class="no"></span>
65
+ <span class="no"></span>
66
  </div>
67
  <div id="featurs_table3">
68
  <span>Pro Version</span>
82
  <span class="yes"></span>
83
  <span class="yes"></span>
84
  <span class="yes"></span>
85
+ <span class="yes"></span>
86
  </div>
87
  </div>
88
  <div style="float: right; text-align: right;">
css/bwg_licensing.css CHANGED
@@ -16,7 +16,7 @@ div#featurs_table1 {
16
  position: relative;
17
  vertical-align: top;
18
  width: 330px;
19
- height: 609px;
20
  z-index: 10;
21
  }
22
 
16
  position: relative;
17
  vertical-align: top;
18
  width: 330px;
19
+ height: 647px;
20
  z-index: 10;
21
  }
22
 
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.44
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -747,16 +747,17 @@ function bwg_activate() {
747
  `enable_addthis` tinyint(1) NOT NULL,
748
  `addthis_profile_id` varchar(66) NOT NULL,
749
  `carousel_interval` int(4) NOT NULL,
750
- `carousel_width` int(4) NOT NULL,
751
- `carousel_height` int(4) NOT NULL,
752
- `carousel_image_column_number` int(4) NOT NULL,
753
- `carousel_image_par` varchar(32) NOT NULL,
754
- `carousel_enable_title` tinyint(1) NOT NULL,
755
- `carousel_enable_autoplay` tinyint(1) NOT NULL,
756
- `carousel_r_width` int(4) NOT NULL,
757
- `carousel_fit_containerWidth` tinyint(1) NOT NULL,
758
- `carousel_prev_next_butt` tinyint(1) NOT NULL,
759
- `carousel_play_pause_butt` tinyint(1) NOT NULL,
 
760
  PRIMARY KEY (`id`)
761
  ) DEFAULT CHARSET=utf8;";
762
  $wpdb->query($bwg_option);
@@ -1370,166 +1371,24 @@ function bwg_activate() {
1370
  'instagram_client_id' => '',
1371
  'description_tb' => 0,
1372
  'enable_seo' => 1,
1373
- 'autohide_lightbox_navigation' => 1,
1374
- 'autohide_slideshow_navigation' => 1,
1375
- 'read_metadata' => 1,
1376
- 'enable_loop'=> 1,
1377
- 'enable_addthis'=> 0,
1378
- 'addthis_profile_id'=> '',
1379
- 'carousel_interval' => 5,
1380
  'carousel_width' => 300,
1381
  'carousel_height' => 300,
1382
- 'carousel_image_column_number' => 5,
1383
  'carousel_image_par' => '0.75',
1384
  'carousel_enable_title' => 0,
1385
- 'carousel_enable_autoplay' => 0,
1386
  'carousel_r_width' => 800,
1387
  'carousel_fit_containerWidth' => 1,
1388
  'carousel_prev_next_butt' => 1,
1389
  'carousel_play_pause_butt' => 1,
1390
- ), array(
1391
- '%d',
1392
- '%s',
1393
-
1394
- '%s',
1395
- '%s',
1396
- '%d',
1397
- '%d',
1398
- '%d',
1399
- '%d',
1400
- '%d',
1401
- '%d',
1402
- '%d',
1403
- '%d',
1404
- '%d',
1405
- '%s',
1406
-
1407
- '%d',
1408
- '%d',
1409
- '%s',
1410
- '%d',
1411
- '%d',
1412
- '%d',
1413
- '%d',
1414
- '%d',
1415
-
1416
- '%d',
1417
- '%d',
1418
- '%d',
1419
-
1420
- '%d',
1421
- '%d',
1422
- '%d',
1423
- '%d',
1424
-
1425
- '%s',
1426
- '%d',
1427
- '%d',
1428
- '%d',
1429
- '%d',
1430
- '%d',
1431
- '%d',
1432
- '%d',
1433
- '%d',
1434
- '%d',
1435
- '%s',
1436
- '%d',
1437
- '%s',
1438
- '%d',
1439
- '%s',
1440
-
1441
- '%d',
1442
- '%d',
1443
- '%s',
1444
- '%d',
1445
- '%d',
1446
- '%d',
1447
- '%d',
1448
- '%d',
1449
- '%d',
1450
- '%d',
1451
- '%d',
1452
- '%d',
1453
- '%d',
1454
- '%d',
1455
- '%d',
1456
- '%d',
1457
-
1458
- '%s',
1459
- '%s',
1460
- '%d',
1461
- '%d',
1462
- '%s',
1463
- '%s',
1464
- '%s',
1465
- '%d',
1466
- '%s',
1467
- '%s',
1468
- '%d',
1469
-
1470
- '%s',
1471
- '%s',
1472
- '%d',
1473
- '%s',
1474
- '%s',
1475
- '%d',
1476
- '%s',
1477
- '%s',
1478
- '%d',
1479
-
1480
- '%d',
1481
- '%d',
1482
- '%d',
1483
- '%d',
1484
- '%d',
1485
- '%d',
1486
- '%s',
1487
- '%d',
1488
- '%d',
1489
- '%d',
1490
- '%d',
1491
- '%d',
1492
- '%d',
1493
- '%d',
1494
- '%d',
1495
- '%s',
1496
- '%d',
1497
- '%d',
1498
- '%d',
1499
- '%d',
1500
- '%d',
1501
- '%d',
1502
- '%d',
1503
- '%d',
1504
- '%d',
1505
- '%d',
1506
- '%d',
1507
- '%d',
1508
- '%d',
1509
- '%d',
1510
- '%d',
1511
- '%d',
1512
- '%s',
1513
- '%d',
1514
- '%d',
1515
- '%d',
1516
- '%d',
1517
- '%d',
1518
- '%d',
1519
- '%d',
1520
- '%s',
1521
- '%d',
1522
- '%d',
1523
- '%d',
1524
- '%d',
1525
- '%s',
1526
- '%d',
1527
- '%d',
1528
- '%d',
1529
- '%d',
1530
- '%d',
1531
- '%d',
1532
-
1533
  ));
1534
  }
1535
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -3346,7 +3205,7 @@ function bwg_activate() {
3346
  ));
3347
  }
3348
  $version = get_option("wd_bwg_version");
3349
- $new_version = '1.2.44';
3350
  if ($version && version_compare($version, $new_version, '<')) {
3351
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3352
  bwg_update($version);
@@ -3364,7 +3223,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
3364
 
3365
  function bwg_update_hook() {
3366
  $version = get_option("wd_bwg_version");
3367
- $new_version = '1.2.44';
3368
  if ($version && version_compare($version, $new_version, '<')) {
3369
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3370
  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.45
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
747
  `enable_addthis` tinyint(1) NOT NULL,
748
  `addthis_profile_id` varchar(66) NOT NULL,
749
  `carousel_interval` int(4) NOT NULL,
750
+ `carousel_width` int(4) NOT NULL,
751
+ `carousel_height` int(4) NOT NULL,
752
+ `carousel_image_column_number` int(4) NOT NULL,
753
+ `carousel_image_par` varchar(32) NOT NULL,
754
+ `carousel_enable_title` tinyint(1) NOT NULL,
755
+ `carousel_enable_autoplay` tinyint(1) NOT NULL,
756
+ `carousel_r_width` int(4) NOT NULL,
757
+ `carousel_fit_containerWidth` tinyint(1) NOT NULL,
758
+ `carousel_prev_next_butt` tinyint(1) NOT NULL,
759
+ `carousel_play_pause_butt` tinyint(1) NOT NULL,
760
+ `permissions` varchar(20) NOT NULL,
761
  PRIMARY KEY (`id`)
762
  ) DEFAULT CHARSET=utf8;";
763
  $wpdb->query($bwg_option);
1371
  'instagram_client_id' => '',
1372
  'description_tb' => 0,
1373
  'enable_seo' => 1,
1374
+ 'autohide_lightbox_navigation' => 1,
1375
+ 'autohide_slideshow_navigation' => 1,
1376
+ 'read_metadata' => 1,
1377
+ 'enable_loop'=> 1,
1378
+ 'enable_addthis'=> 0,
1379
+ 'addthis_profile_id'=> '',
1380
+ 'carousel_interval' => 5,
1381
  'carousel_width' => 300,
1382
  'carousel_height' => 300,
1383
+ 'carousel_image_column_number' => 5,
1384
  'carousel_image_par' => '0.75',
1385
  'carousel_enable_title' => 0,
1386
+ 'carousel_enable_autoplay' => 0,
1387
  'carousel_r_width' => 800,
1388
  'carousel_fit_containerWidth' => 1,
1389
  'carousel_prev_next_butt' => 1,
1390
  'carousel_play_pause_butt' => 1,
1391
+ 'permissions' => 'manage_options',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1392
  ));
1393
  }
1394
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
3205
  ));
3206
  }
3207
  $version = get_option("wd_bwg_version");
3208
+ $new_version = '1.2.45';
3209
  if ($version && version_compare($version, $new_version, '<')) {
3210
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3211
  bwg_update($version);
3223
 
3224
  function bwg_update_hook() {
3225
  $version = get_option("wd_bwg_version");
3226
+ $new_version = '1.2.45';
3227
  if ($version && version_compare($version, $new_version, '<')) {
3228
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3229
  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.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -207,13 +207,16 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
207
 
208
  == Changelog ==
209
 
 
 
 
210
  = 1.2.44 =
211
- Fixed: "Open image in original size" and "Download original image" for embed.
212
- Fixed: Instagram thumbnail.
213
- Fixed: Watermark link.
214
 
215
  = 1.2.43 =
216
- New: Tools for editing images
217
 
218
  = 1.2.42 =
219
  * Fixed: Security issue
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.45
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.45 =
211
+ * Changed: Licensing page.
212
+
213
  = 1.2.44 =
214
+ * Fixed: "Open image in original size" and "Download original image" for embed.
215
+ * Fixed: Instagram thumbnail.
216
+ * Fixed: Watermark link.
217
 
218
  = 1.2.43 =
219
+ * New: Tools for editing images
220
 
221
  = 1.2.42 =
222
  * Fixed: Security issue
update/bwg_update.php CHANGED
@@ -299,6 +299,9 @@ function bwg_update($version) {
299
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `carousel_title_opacity` int(4) NOT NULL DEFAULT 100");
300
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `carousel_title_border_radius` varchar(8) NOT NULL DEFAULT '5px'");
301
  }
 
 
 
302
  return;
303
  }
304
 
299
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `carousel_title_opacity` int(4) NOT NULL DEFAULT 100");
300
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `carousel_title_border_radius` varchar(8) NOT NULL DEFAULT '5px'");
301
  }
302
+ if (version_compare($version, '1.2.45') == -1) {
303
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `permissions` varchar(20) NOT NULL DEFAULT 'manage_options'");
304
+ }
305
  return;
306
  }
307