Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.7

Version Description

masonry album view type
single quota bug in image fixed

Download this release

Release Info

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

Code changes from version 1.2.6 to 1.2.7

admin/views/BWGViewBWGShortcode.php CHANGED
@@ -130,6 +130,10 @@ class BWGViewBWGShortcode {
130
  <div style="text-align: center;"><input type="radio" id="album_compact_preview" name="gallery_type" value="album_compact_preview" /><label for="album_compact_preview">Compact Album</label></div>
131
  <label for="album_compact_preview"><img src="<?php echo WD_BWG_URL . '/images/album_compact_preview.jpg'; ?>" /></label>
132
  </span>
 
 
 
 
133
  <span class="gallery_type" onClick="bwg_gallery_type('album_extended_preview')">
134
  <div style="text-align: center;"><input type="radio" id="album_extended_preview" name="gallery_type" value="album_extended_preview" /><label for="album_extended_preview">Extended Album</label></div>
135
  <label for="album_extended_preview"><img src="<?php echo WD_BWG_URL . '/images/album_extended_preview.jpg'; ?>" /></label>
@@ -261,7 +265,7 @@ class BWGViewBWGShortcode {
261
  </td>
262
  </tr>
263
  <tr id="tr_thumb_width_height">
264
- <td title="Maximum values for thumbnails width dimension." class="spider_label"><label id="thumb_width_height_label" for="thumb_width">Image Thumbnail dimensions: </label></td>
265
  <td>
266
  <input type="text" name="thumb_width" id="thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="thumb_width_height_separator"> x </span>
267
  <input type="text" name="thumb_height" id="thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
@@ -316,7 +320,7 @@ class BWGViewBWGShortcode {
316
  </td>
317
  </tr>
318
  <tr id="tr_compuct_album_image_thumb_width_height">
319
- <td title="Maximum values for thumb width and height." class="spider_label"><label for="compuct_album_image_thumb_width" id="compuct_album_image_thumb_dimensions">Image thumbnail dimensions: </label></td>
320
  <td>
321
  <input type="text" name="compuct_album_image_thumb_width" id="compuct_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="compuct_album_image_thumb_dimensions_x" > x </span>
322
  <input type="text" name="compuct_album_image_thumb_height" id="compuct_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
@@ -377,7 +381,7 @@ class BWGViewBWGShortcode {
377
  </td>
378
  </tr>
379
  <tr id="tr_extended_album_image_thumb_width_height">
380
- <td title="Maximum values for thumb width and height." class="spider_label"><label for="extended_album_image_thumb_width" id="extended_album_image_thumb_dimensions">Image Thumbnail dimensions: </label></td>
381
  <td>
382
  <input type="text" name="extended_album_image_thumb_width" id="extended_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="extended_album_image_thumb_dimensions_x" > x </span>
383
  <input type="text" name="extended_album_image_thumb_height" id="extended_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
@@ -1303,7 +1307,7 @@ class BWGViewBWGShortcode {
1303
  // Watermark.
1304
  if (short_code['watermark_type'] == 'text') {
1305
  jQuery("#watermark_type_text").attr('checked', 'checked');
1306
- jQuery("#watermark_link").val(short_code['watermark_link']);
1307
  jQuery("#watermark_text").val(short_code['watermark_text']);
1308
  jQuery("#watermark_font_size").val(short_code['watermark_font_size']);
1309
  jQuery("select[id=watermark_font] option[value='" + short_code['watermark_font'] + "']").attr('selected', 'selected');
@@ -1314,7 +1318,7 @@ class BWGViewBWGShortcode {
1314
  }
1315
  else if (short_code['watermark_type'] == 'image') {
1316
  jQuery("#watermark_type_image").attr('checked', 'checked');
1317
- jQuery("#watermark_link").val(short_code['watermark_link']);
1318
  jQuery("#watermark_url").val(short_code['watermark_url']);
1319
  jQuery("#watermark_width").val(short_code['watermark_width']);
1320
  jQuery("#watermark_height").val(short_code['watermark_height']);
@@ -1501,7 +1505,7 @@ class BWGViewBWGShortcode {
1501
  }
1502
  // Watermark parameters.
1503
  tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
1504
- tagtext += ' watermark_link="' + jQuery("#watermark_link").val() + '"';
1505
  if (jQuery("input[name=watermark_type]:checked").val() == 'text') {
1506
  tagtext += ' watermark_text="' + jQuery("#watermark_text").val() + '"';
1507
  tagtext += ' watermark_font_size="' + jQuery("#watermark_font_size").val() + '"';
130
  <div style="text-align: center;"><input type="radio" id="album_compact_preview" name="gallery_type" value="album_compact_preview" /><label for="album_compact_preview">Compact Album</label></div>
131
  <label for="album_compact_preview"><img src="<?php echo WD_BWG_URL . '/images/album_compact_preview.jpg'; ?>" /></label>
132
  </span>
133
+ <span title="This view is disabled in free version." class="gallery_type">
134
+ <div style="text-align: center;"><input disabled="disabled" type="radio" id="album_masonry_preview" name="gallery_type" value="album_masonry_preview" /><label class="spider_free_version_label" for="album_masonry_preview">Masonry Album</label></div>
135
+ <label for="album_masonry_preview"><img style="opacity:0.5; filter: Alpha(opacity=50);" disabled="disabled" src="<?php echo WD_BWG_URL . '/images/thumbnails_masonry.jpg'; ?>" /></label>
136
+ </span>
137
  <span class="gallery_type" onClick="bwg_gallery_type('album_extended_preview')">
138
  <div style="text-align: center;"><input type="radio" id="album_extended_preview" name="gallery_type" value="album_extended_preview" /><label for="album_extended_preview">Extended Album</label></div>
139
  <label for="album_extended_preview"><img src="<?php echo WD_BWG_URL . '/images/album_extended_preview.jpg'; ?>" /></label>
265
  </td>
266
  </tr>
267
  <tr id="tr_thumb_width_height">
268
+ <td title="Maximum values for thumbnail dimension." class="spider_label"><label id="thumb_width_height_label" for="thumb_width">Image Thumbnail dimensions: </label></td>
269
  <td>
270
  <input type="text" name="thumb_width" id="thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="thumb_width_height_separator"> x </span>
271
  <input type="text" name="thumb_height" id="thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
320
  </td>
321
  </tr>
322
  <tr id="tr_compuct_album_image_thumb_width_height">
323
+ <td title="Maximum values for thumbnail width and height." class="spider_label"><label for="compuct_album_image_thumb_width" id="compuct_album_image_thumb_dimensions">Image thumbnail dimensions: </label></td>
324
  <td>
325
  <input type="text" name="compuct_album_image_thumb_width" id="compuct_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="compuct_album_image_thumb_dimensions_x" > x </span>
326
  <input type="text" name="compuct_album_image_thumb_height" id="compuct_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
381
  </td>
382
  </tr>
383
  <tr id="tr_extended_album_image_thumb_width_height">
384
+ <td title="Maximum values for thumbnail width and height." class="spider_label"><label for="extended_album_image_thumb_width" id="extended_album_image_thumb_dimensions">Image Thumbnail dimensions: </label></td>
385
  <td>
386
  <input type="text" name="extended_album_image_thumb_width" id="extended_album_image_thumb_width" value="<?php echo $option_row->thumb_width; ?>" class="spider_int_input" /><span id="extended_album_image_thumb_dimensions_x" > x </span>
387
  <input type="text" name="extended_album_image_thumb_height" id="extended_album_image_thumb_height" value="<?php echo $option_row->thumb_height; ?>" class="spider_int_input" /> px
1307
  // Watermark.
1308
  if (short_code['watermark_type'] == 'text') {
1309
  jQuery("#watermark_type_text").attr('checked', 'checked');
1310
+ jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
1311
  jQuery("#watermark_text").val(short_code['watermark_text']);
1312
  jQuery("#watermark_font_size").val(short_code['watermark_font_size']);
1313
  jQuery("select[id=watermark_font] option[value='" + short_code['watermark_font'] + "']").attr('selected', 'selected');
1318
  }
1319
  else if (short_code['watermark_type'] == 'image') {
1320
  jQuery("#watermark_type_image").attr('checked', 'checked');
1321
+ jQuery("#watermark_link").val(decodeURIComponent(short_code['watermark_link']));
1322
  jQuery("#watermark_url").val(short_code['watermark_url']);
1323
  jQuery("#watermark_width").val(short_code['watermark_width']);
1324
  jQuery("#watermark_height").val(short_code['watermark_height']);
1505
  }
1506
  // Watermark parameters.
1507
  tagtext += ' watermark_type="' + jQuery("input[name=watermark_type]:checked").val() + '"';
1508
+ tagtext += ' watermark_link="' + encodeURIComponent(jQuery("#watermark_link").val()) + '"';
1509
  if (jQuery("input[name=watermark_type]:checked").val() == 'text') {
1510
  tagtext += ' watermark_text="' + jQuery("#watermark_text").val() + '"';
1511
  tagtext += ' watermark_font_size="' + jQuery("#watermark_font_size").val() + '"';
css/bwg_shortcode.css CHANGED
@@ -1,7 +1,11 @@
1
  .gallery_type {
2
  border: 1px solid #CCCCCC;
3
  display: inline-block;
4
- width: 13%;
 
 
 
 
5
  }
6
 
7
  .panel_wrapper,
1
  .gallery_type {
2
  border: 1px solid #CCCCCC;
3
  display: inline-block;
4
+ width: 11.7%;
5
+ }
6
+
7
+ .gallery_type img {
8
+ max-width: 100%;
9
  }
10
 
11
  .panel_wrapper,
css/bwg_tables.css CHANGED
@@ -424,12 +424,12 @@
424
  border-radius: 8px 8px 8px 8px;
425
  cursor: pointer;
426
  display: inline-block;
427
- font-size: 16px;
428
  height: 24px;
429
  padding-top: 5px;
430
  text-align: center;
431
  vertical-align: middle;
432
- width: 123px;
433
  margin: 2px 0px 2px 0px;
434
  }
435
 
424
  border-radius: 8px 8px 8px 8px;
425
  cursor: pointer;
426
  display: inline-block;
427
+ font-size: 15px;
428
  height: 24px;
429
  padding-top: 5px;
430
  text-align: center;
431
  vertical-align: middle;
432
+ width: 112px;
433
  margin: 2px 0px 2px 0px;
434
  }
435
 
filemanager/js/default.js CHANGED
@@ -149,7 +149,7 @@ function updateFileNames() {
149
  if (filesSelected.length > 0) {
150
  var fileNames = [];
151
  for (var i = 0; i < filesSelected.length; i++) {
152
- fileNames[i] = '"' + filesSelected[i] + '"';
153
  }
154
  result = fileNames.join(" ");
155
  }
@@ -433,7 +433,7 @@ function onFileClickML(event, obj) {
433
  }
434
 
435
  for (var i = 0; i < filesSelectedML.length; i++) {
436
- jQuery('.importer_item[path="' + filesSelectedML[i] + '"]').addClass("importer_item_select");
437
  }
438
  updateFileNames();
439
  }
149
  if (filesSelected.length > 0) {
150
  var fileNames = [];
151
  for (var i = 0; i < filesSelected.length; i++) {
152
+ fileNames[i] = "'" + filesSelected[i] + "'";
153
  }
154
  result = fileNames.join(" ");
155
  }
433
  }
434
 
435
  for (var i = 0; i < filesSelectedML.length; i++) {
436
+ jQuery(".importer_item[path='" + filesSelectedML[i] + "']").addClass("importer_item_select");
437
  }
438
  updateFileNames();
439
  }
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -42,7 +42,7 @@ class BWGViewGalleryBox {
42
  $enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
43
  $popup_enable_info = (isset($_GET['popup_enable_info']) ? esc_html($_GET['popup_enable_info']) : 1);
44
  $popup_info_always_show = (isset($_GET['popup_info_always_show']) ? esc_html($_GET['popup_info_always_show']) : 0);
45
- $popup_info_full_width = (isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0);
46
  $popup_enable_rate = (isset($_GET['popup_enable_rate']) ? esc_html($_GET['popup_enable_rate']) : 0);
47
  $popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
48
 
@@ -109,7 +109,7 @@ class BWGViewGalleryBox {
109
  'enable_image_fullscreen' => $enable_image_fullscreen,
110
  'popup_enable_info' => $popup_enable_info,
111
  'popup_info_always_show' => $popup_info_always_show,
112
- 'popup_info_full_width' => $popup_info_full_width,
113
  'popup_hit_counter' => $popup_hit_counter,
114
  'popup_enable_rate' => $popup_enable_rate,
115
  'slideshow_interval' => $slideshow_interval,
@@ -670,10 +670,10 @@ class BWGViewGalleryBox {
670
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
671
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
672
  <?php if($params_array['popup_info_full_width']) { ?>
673
- width: 100%;
674
- <?php } else { ?>
675
- margin: <?php echo $theme_row->lightbox_info_margin; ?>;
676
- <?php } ?>
677
  padding: <?php echo $theme_row->lightbox_info_padding; ?>;
678
  <?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;' : '' ?>
679
  }
42
  $enable_image_fullscreen = (isset($_GET['enable_image_fullscreen']) ? esc_html($_GET['enable_image_fullscreen']) : 0);
43
  $popup_enable_info = (isset($_GET['popup_enable_info']) ? esc_html($_GET['popup_enable_info']) : 1);
44
  $popup_info_always_show = (isset($_GET['popup_info_always_show']) ? esc_html($_GET['popup_info_always_show']) : 0);
45
+ $popup_info_full_width = (isset($_GET['popup_info_full_width']) ? esc_html($_GET['popup_info_full_width']) : 0);
46
  $popup_enable_rate = (isset($_GET['popup_enable_rate']) ? esc_html($_GET['popup_enable_rate']) : 0);
47
  $popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
48
 
109
  'enable_image_fullscreen' => $enable_image_fullscreen,
110
  'popup_enable_info' => $popup_enable_info,
111
  'popup_info_always_show' => $popup_info_always_show,
112
+ 'popup_info_full_width' => $popup_info_full_width,
113
  'popup_hit_counter' => $popup_hit_counter,
114
  'popup_enable_rate' => $popup_enable_rate,
115
  'slideshow_interval' => $slideshow_interval,
670
  border-radius: <?php echo $theme_row->lightbox_info_border_radius; ?>;
671
  <?php echo ((!$enable_image_filmstrip || $theme_row->lightbox_filmstrip_pos != 'bottom') && $theme_row->lightbox_ctrl_btn_pos == 'bottom' && $theme_row->lightbox_info_pos == 'bottom') ? 'bottom: ' . ($theme_row->lightbox_ctrl_btn_height + 2 * $theme_row->lightbox_ctrl_btn_margin_top) . 'px;' : '' ?>
672
  <?php if($params_array['popup_info_full_width']) { ?>
673
+ width: 100%;
674
+ <?php } else { ?>
675
+ margin: <?php echo $theme_row->lightbox_info_margin; ?>;
676
+ <?php } ?>
677
  padding: <?php echo $theme_row->lightbox_info_padding; ?>;
678
  <?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;' : '' ?>
679
  }
frontend/views/BWGViewSlideshow.php CHANGED
@@ -465,10 +465,11 @@ class BWGViewSlideshow {
465
  border-radius: <?php echo $theme_row->slideshow_title_border_radius; ?>;
466
  background-color: #<?php echo $theme_row->slideshow_title_background_color; ?>;
467
  padding: <?php echo $theme_row->slideshow_title_padding; ?>;
468
- <?php if($params['slideshow_title_full_width']) { ?>
469
- width: 100%;
470
- <?php } ?>
471
  margin: 5px;
 
472
  display: inline-block;
473
  word-wrap: break-word;
474
  word-break: break-word;
465
  border-radius: <?php echo $theme_row->slideshow_title_border_radius; ?>;
466
  background-color: #<?php echo $theme_row->slideshow_title_background_color; ?>;
467
  padding: <?php echo $theme_row->slideshow_title_padding; ?>;
468
+ <?php if($params['slideshow_title_full_width']) { ?>
469
+ width: 100%;
470
+ <?php } else { ?>
471
  margin: 5px;
472
+ <?php } ?>
473
  display: inline-block;
474
  word-wrap: break-word;
475
  word-break: break-word;
js/bwg.js CHANGED
@@ -927,12 +927,6 @@ function bwg_get_video_host(url) {
927
  }
928
 
929
  function bwg_get_youtube_video_id(url) {
930
- // pattern = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
931
- // var matches = url.match(pattern);
932
- // if (matches && (matches[7]).length == 11) {
933
- // return matches[7];
934
- // }
935
- // return '';
936
  var video_id;
937
  var url_parts = url.split('v=');
938
  if (url_parts.length <= 1) {
@@ -959,12 +953,6 @@ function bwg_get_youtube_video_id(url) {
959
  }
960
 
961
  function bwg_get_vimeo_video_id(url) {
962
- // pattern = /\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;
963
- // var matches = url.match(pattern);
964
- // if (matches) {
965
- // return matches[2];
966
- // }
967
- // return '';
968
  var url_parts
969
  var video_id;
970
  url_parts = url.split('/');
927
  }
928
 
929
  function bwg_get_youtube_video_id(url) {
 
 
 
 
 
 
930
  var video_id;
931
  var url_parts = url.split('v=');
932
  if (url_parts.length <= 1) {
953
  }
954
 
955
  function bwg_get_vimeo_video_id(url) {
 
 
 
 
 
 
956
  var url_parts
957
  var video_id;
958
  url_parts = url.split('/');
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.6
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1007,6 +1007,34 @@ function bwg_activate() {
1007
  `masonry_description_color` varchar(8) NOT NULL,
1008
  `masonry_description_font_style` varchar(16) NOT NULL,
1009
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1010
  `default_theme` tinyint(1) NOT NULL,
1011
  PRIMARY KEY (`id`)
1012
  ) DEFAULT CHARSET=utf8;";
@@ -1653,6 +1681,34 @@ function bwg_activate() {
1653
  'masonry_description_color' => 'CCCCCC',
1654
  'masonry_description_font_style' => 'segoe ui',
1655
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1656
  'default_theme' => 1
1657
  ), array(
1658
  '%d',
@@ -2029,6 +2085,34 @@ function bwg_activate() {
2029
  '%s',
2030
  '%s',
2031
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2032
  '%d'
2033
  ));
2034
 
@@ -2407,6 +2491,34 @@ function bwg_activate() {
2407
  'masonry_description_color' => 'CCCCCC',
2408
  'masonry_description_font_style' => 'segoe ui',
2409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2410
  'default_theme' => 0
2411
  ), array(
2412
  '%d',
@@ -2783,11 +2895,39 @@ function bwg_activate() {
2783
  '%s',
2784
  '%s',
2785
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2786
  '%d'
2787
  ));
2788
  }
2789
  $version = get_option("wd_bwg_version");
2790
- $new_version = '1.2.6';
2791
  if ($version && version_compare($version, $new_version, '<')) {
2792
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2793
  bwg_update($version);
@@ -2802,7 +2942,7 @@ register_activation_hook(__FILE__, 'bwg_activate');
2802
 
2803
  function bwg_update_hook() {
2804
  $version = get_option("wd_bwg_version");
2805
- $new_version = '1.2.6';
2806
  if ($version && version_compare($version, $new_version, '<')) {
2807
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2808
  bwg_update($version);
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://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.7
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1007
  `masonry_description_color` varchar(8) NOT NULL,
1008
  `masonry_description_font_style` varchar(16) NOT NULL,
1009
 
1010
+ `album_masonry_back_font_color` varchar(8) NOT NULL,
1011
+ `album_masonry_back_font_style` varchar(16) NOT NULL,
1012
+ `album_masonry_back_font_size` int(4) NOT NULL,
1013
+ `album_masonry_back_font_weight` varchar(8) NOT NULL,
1014
+ `album_masonry_back_padding` varchar(32) NOT NULL,
1015
+ `album_masonry_title_font_color` varchar(8) NOT NULL,
1016
+ `album_masonry_title_font_style` varchar(16) NOT NULL,
1017
+ `album_masonry_thumb_title_pos` varchar(8) NOT NULL,
1018
+ `album_masonry_title_font_size` int(4) NOT NULL,
1019
+ `album_masonry_title_font_weight` varchar(8) NOT NULL,
1020
+ `album_masonry_title_margin` varchar(32) NOT NULL,
1021
+ `album_masonry_title_shadow` varchar(32) NOT NULL,
1022
+ `album_masonry_thumb_margin` int(4) NOT NULL,
1023
+ `album_masonry_thumb_padding` int(4) NOT NULL,
1024
+ `album_masonry_thumb_border_radius` varchar(32) NOT NULL,
1025
+ `album_masonry_thumb_border_width` int(4) NOT NULL,
1026
+ `album_masonry_thumb_border_style` varchar(8) NOT NULL,
1027
+ `album_masonry_thumb_border_color` varchar(8) NOT NULL,
1028
+ `album_masonry_thumb_bg_color` varchar(8) NOT NULL,
1029
+ `album_masonry_thumbs_bg_color` varchar(8) NOT NULL,
1030
+ `album_masonry_thumb_bg_transparent` int(4) NOT NULL,
1031
+ `album_masonry_thumb_box_shadow` varchar(32) NOT NULL,
1032
+ `album_masonry_thumb_transparent` int(4) NOT NULL,
1033
+ `album_masonry_thumb_align` varchar(8) NOT NULL,
1034
+ `album_masonry_thumb_hover_effect` varchar(64) NOT NULL,
1035
+ `album_masonry_thumb_hover_effect_value` varchar(64) NOT NULL,
1036
+ `album_masonry_thumb_transition` tinyint(1) NOT NULL,
1037
+
1038
  `default_theme` tinyint(1) NOT NULL,
1039
  PRIMARY KEY (`id`)
1040
  ) DEFAULT CHARSET=utf8;";
1681
  'masonry_description_color' => 'CCCCCC',
1682
  'masonry_description_font_style' => 'segoe ui',
1683
 
1684
+ 'album_masonry_back_font_color' => '000000',
1685
+ 'album_masonry_back_font_style' => 'segoe ui',
1686
+ 'album_masonry_back_font_size' => 16,
1687
+ 'album_masonry_back_font_weight' => 'bold',
1688
+ 'album_masonry_back_padding' => '0',
1689
+ 'album_masonry_title_font_color' => 'CCCCCC',
1690
+ 'album_masonry_title_font_style' => 'segoe ui',
1691
+ 'album_masonry_thumb_title_pos' => 'bottom',
1692
+ 'album_masonry_title_font_size' => 16,
1693
+ 'album_masonry_title_font_weight' => 'bold',
1694
+ 'album_masonry_title_margin' => '2px',
1695
+ 'album_masonry_title_shadow' => '0px 0px 0px #888888',
1696
+ 'album_masonry_thumb_margin' => 4,
1697
+ 'album_masonry_thumb_padding' => 0,
1698
+ 'album_masonry_thumb_border_radius' => '0',
1699
+ 'album_masonry_thumb_border_width' => 0,
1700
+ 'album_masonry_thumb_border_style' => 'none',
1701
+ 'album_masonry_thumb_border_color' => 'CCCCCC',
1702
+ 'album_masonry_thumb_bg_color' => 'FFFFFF',
1703
+ 'album_masonry_thumbs_bg_color' => 'FFFFFF',
1704
+ 'album_masonry_thumb_bg_transparent' => 0,
1705
+ 'album_masonry_thumb_box_shadow' => '0px 0px 0px #888888',
1706
+ 'album_masonry_thumb_transparent' => 100,
1707
+ 'album_masonry_thumb_align' => 'center',
1708
+ 'album_masonry_thumb_hover_effect' => 'scale',
1709
+ 'album_masonry_thumb_hover_effect_value' => '1.1',
1710
+ 'album_masonry_thumb_transition' => 0,
1711
+
1712
  'default_theme' => 1
1713
  ), array(
1714
  '%d',
2085
  '%s',
2086
  '%s',
2087
 
2088
+ '%s',
2089
+ '%s',
2090
+ '%d',
2091
+ '%s',
2092
+ '%s',
2093
+ '%s',
2094
+ '%s',
2095
+ '%s',
2096
+ '%d',
2097
+ '%s',
2098
+ '%s',
2099
+ '%s',
2100
+ '%d',
2101
+ '%d',
2102
+ '%s',
2103
+ '%d',
2104
+ '%s',
2105
+ '%s',
2106
+ '%s',
2107
+ '%s',
2108
+ '%d',
2109
+ '%s',
2110
+ '%d',
2111
+ '%s',
2112
+ '%s',
2113
+ '%s',
2114
+ '%d',
2115
+
2116
  '%d'
2117
  ));
2118
 
2491
  'masonry_description_color' => 'CCCCCC',
2492
  'masonry_description_font_style' => 'segoe ui',
2493
 
2494
+ 'album_masonry_back_font_color' => '000000',
2495
+ 'album_masonry_back_font_style' => 'segoe ui',
2496
+ 'album_masonry_back_font_size' => 14,
2497
+ 'album_masonry_back_font_weight' => 'normal',
2498
+ 'album_masonry_back_padding' => '0',
2499
+ 'album_masonry_title_font_color' => 'CCCCCC',
2500
+ 'album_masonry_title_font_style' => 'segoe ui',
2501
+ 'album_masonry_thumb_title_pos' => 'bottom',
2502
+ 'album_masonry_title_font_size' => 16,
2503
+ 'album_masonry_title_font_weight' => 'bold',
2504
+ 'album_masonry_title_margin' => '5px',
2505
+ 'album_masonry_title_shadow' => '',
2506
+ 'album_masonry_thumb_margin' => 4,
2507
+ 'album_masonry_thumb_padding' => 4,
2508
+ 'album_masonry_thumb_border_radius' => '0',
2509
+ 'album_masonry_thumb_border_width' => 1,
2510
+ 'album_masonry_thumb_border_style' => 'none',
2511
+ 'album_masonry_thumb_border_color' => '000000',
2512
+ 'album_masonry_thumb_bg_color' => 'E8E8E8',
2513
+ 'album_masonry_thumbs_bg_color' => 'FFFFFF',
2514
+ 'album_masonry_thumb_bg_transparent' => 100,
2515
+ 'album_masonry_thumb_box_shadow' => '',
2516
+ 'album_masonry_thumb_transparent' => 100,
2517
+ 'album_masonry_thumb_align' => 'center',
2518
+ 'album_masonry_thumb_hover_effect' => 'rotate',
2519
+ 'album_masonry_thumb_hover_effect_value' => '2deg',
2520
+ 'album_masonry_thumb_transition' => 1,
2521
+
2522
  'default_theme' => 0
2523
  ), array(
2524
  '%d',
2895
  '%s',
2896
  '%s',
2897
 
2898
+ '%s',
2899
+ '%s',
2900
+ '%d',
2901
+ '%s',
2902
+ '%s',
2903
+ '%s',
2904
+ '%s',
2905
+ '%s',
2906
+ '%d',
2907
+ '%s',
2908
+ '%s',
2909
+ '%s',
2910
+ '%d',
2911
+ '%d',
2912
+ '%s',
2913
+ '%d',
2914
+ '%s',
2915
+ '%s',
2916
+ '%s',
2917
+ '%s',
2918
+ '%d',
2919
+ '%s',
2920
+ '%d',
2921
+ '%s',
2922
+ '%s',
2923
+ '%s',
2924
+ '%d',
2925
+
2926
  '%d'
2927
  ));
2928
  }
2929
  $version = get_option("wd_bwg_version");
2930
+ $new_version = '1.2.7';
2931
  if ($version && version_compare($version, $new_version, '<')) {
2932
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2933
  bwg_update($version);
2942
 
2943
  function bwg_update_hook() {
2944
  $version = get_option("wd_bwg_version");
2945
+ $new_version = '1.2.7';
2946
  if ($version && version_compare($version, $new_version, '<')) {
2947
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2948
  bwg_update($version);
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: webdorado
3
  Donate link: http://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
5
- Requires at least: 3.0
6
- Tested up to: 4.0
7
- Stable tag: 1.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -84,6 +84,7 @@ Upgrade to [WordPress Photo Gallery Pro](http://web-dorado.com/products/wordpres
84
 
85
  * Masonry View.
86
  * Blog Style View.
 
87
  * Slideshow/Lightbox 15 effects.
88
  * Editable themes.
89
  * Commenting possibility with Captcha protection possibility.
@@ -179,6 +180,10 @@ If any problem occurs, please contact us at [info@web-dorado.com](mailto:info@w
179
 
180
  == Changelog ==
181
 
 
 
 
 
182
  = 1.2.6 =
183
  bug in new image save fixed
184
 
2
  Contributors: webdorado
3
  Donate link: http://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
5
+ Requires at least: 3.0
6
+ Tested up to: 4.1
7
+ Stable tag: 1.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
84
 
85
  * Masonry View.
86
  * Blog Style View.
87
+ * Masonry Album view
88
  * Slideshow/Lightbox 15 effects.
89
  * Editable themes.
90
  * Commenting possibility with Captcha protection possibility.
180
 
181
  == Changelog ==
182
 
183
+ = 1.2.7 =
184
+ masonry album view type
185
+ single quota bug in image fixed
186
+
187
  = 1.2.6 =
188
  bug in new image save fixed
189
 
update/bwg_update.php CHANGED
@@ -164,6 +164,36 @@ function bwg_update($version) {
164
  // Add enable/disable option for lightbox info full width.
165
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_info_full_width` tinyint(1) NOT NULL DEFAULT 1");
166
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  return;
168
  }
169
 
164
  // Add enable/disable option for lightbox info full width.
165
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `popup_info_full_width` tinyint(1) NOT NULL DEFAULT 1");
166
  }
167
+ if (version_compare($version, '1.2.7') == -1) {
168
+ // Add masonry album theme options.
169
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_back_font_color` varchar(8) NOT NULL DEFAULT '000000'");
170
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_back_font_style` varchar(16) NOT NULL DEFAULT 'segoe ui'");
171
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_back_font_size` int(4) NOT NULL DEFAULT 16");
172
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_back_font_weight` varchar(8) NOT NULL DEFAULT 'bold'");
173
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_back_padding` varchar(32) NOT NULL DEFAULT '0'");
174
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_font_color` varchar(8) NOT NULL DEFAULT 'CCCCCC'");
175
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_font_style` varchar(16) NOT NULL DEFAULT 'segoe ui'");
176
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_title_pos` varchar(8) NOT NULL DEFAULT 'bottom'");
177
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_font_size` int(4) NOT NULL DEFAULT 14");
178
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_font_weight` varchar(8) NOT NULL DEFAULT 'bold'");
179
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_margin` varchar(32) NOT NULL DEFAULT '2px'");
180
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_title_shadow` varchar(32) NOT NULL DEFAULT '0px 0px 0px #888888'");
181
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_margin` int(4) NOT NULL DEFAULT 4");
182
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_padding` int(4) NOT NULL DEFAULT 0");
183
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_border_radius` varchar(32) NOT NULL DEFAULT '0'");
184
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_border_width` int(4) NOT NULL DEFAULT 0");
185
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_border_style` varchar(8) NOT NULL DEFAULT 'none'");
186
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_border_color` varchar(8) NOT NULL DEFAULT 'CCCCCC'");
187
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_bg_color` varchar(8) NOT NULL DEFAULT 'FFFFFF'");
188
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumbs_bg_color` varchar(8) NOT NULL DEFAULT 'FFFFFF'");
189
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_bg_transparent` int(4) NOT NULL DEFAULT 0");
190
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_box_shadow` varchar(32) NOT NULL DEFAULT '0px 0px 0px #888888'");
191
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_transparent` int(4) NOT NULL DEFAULT 100");
192
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_align` varchar(8) NOT NULL DEFAULT 'center'");
193
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_hover_effect` varchar(64) NOT NULL DEFAULT 'scale'");
194
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_hover_effect_value` varchar(64) NOT NULL DEFAULT '1.1'");
195
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_theme ADD `album_masonry_thumb_transition` tinyint(1) NOT NULL DEFAULT 0");
196
+ }
197
  return;
198
  }
199