Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.84

Version Description

  • Added: Placeholder for search by name (optional).
  • Fixed: Styles conflct with Twenty Sixteen theme.
Download this release

Release Info

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

Code changes from version 1.2.83 to 1.2.84

admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -231,6 +231,7 @@ class BWGControllerOptions_bwg {
231
  $show_tag_box = (isset($_POST['show_tag_box']) ? esc_html(stripslashes($_POST['show_tag_box'])) : 0);
232
  $show_hide_custom_post = (isset($_POST['show_hide_custom_post']) ? esc_html(stripslashes($_POST['show_hide_custom_post'])) : 0);
233
  $show_hide_post_meta = (isset($_POST['show_hide_post_meta']) ? esc_html(stripslashes($_POST['show_hide_post_meta'])) : 0);
 
234
 
235
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
236
  'images_directory' => $images_directory,
@@ -370,6 +371,7 @@ class BWGControllerOptions_bwg {
370
  'show_tag_box' => $show_tag_box,
371
  'show_hide_custom_post' => $show_hide_custom_post,
372
  'show_hide_post_meta' => $show_hide_post_meta,
 
373
  ), array('id' => 1));
374
 
375
  if ($save !== FALSE) {
231
  $show_tag_box = (isset($_POST['show_tag_box']) ? esc_html(stripslashes($_POST['show_tag_box'])) : 0);
232
  $show_hide_custom_post = (isset($_POST['show_hide_custom_post']) ? esc_html(stripslashes($_POST['show_hide_custom_post'])) : 0);
233
  $show_hide_post_meta = (isset($_POST['show_hide_post_meta']) ? esc_html(stripslashes($_POST['show_hide_post_meta'])) : 0);
234
+ $placeholder = (isset($_POST['placeholder']) ? esc_html(stripslashes($_POST['placeholder'])) : '');
235
 
236
  $save = $wpdb->update($wpdb->prefix . 'bwg_option', array(
237
  'images_directory' => $images_directory,
371
  'show_tag_box' => $show_tag_box,
372
  'show_hide_custom_post' => $show_hide_custom_post,
373
  'show_hide_post_meta' => $show_hide_post_meta,
374
+ 'placeholder' => $placeholder,
375
  ), array('id' => 1));
376
 
377
  if ($save !== FALSE) {
admin/models/BWGModelOptions_bwg.php CHANGED
@@ -173,6 +173,7 @@ class BWGModelOptions_bwg {
173
  $row->show_tag_box = 0;
174
  $row->show_hide_custom_post = 0;
175
  $row->show_hide_post_meta = 0;
 
176
  }
177
  return $row;
178
  }
173
  $row->show_tag_box = 0;
174
  $row->show_hide_custom_post = 0;
175
  $row->show_hide_post_meta = 0;
176
+ $row->placeholder = '';
177
  }
178
  return $row;
179
  }
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -180,14 +180,23 @@ class BWGViewOptions_bwg {
180
  </tr>
181
  <tr>
182
  <td class="spider_label_options">
183
- <label><?php _e('Show search box:', 'bwg_back'); ?></label>
184
  </td>
185
  <td>
186
- <input type="radio" name="show_search_box" id="show_search_box_1" value="1" <?php if ($row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_search_box_width', 'show_search_box_1')" /><label for="show_search_box_1"><?php _e('Yes', 'bwg_back'); ?></label>
187
- <input type="radio" name="show_search_box" id="show_search_box_0" value="0" <?php if (!$row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_search_box_width', 'show_search_box_0')" /><label for="show_search_box_0"><?php _e('No', 'bwg_back'); ?></label>
188
  <div class="spider_description"></div>
189
  </td>
190
  </tr>
 
 
 
 
 
 
 
 
 
191
  <tr id="tr_search_box_width">
192
  <td class="spider_label_options">
193
  <label for="search_box_width"><?php _e('Search box width:', 'bwg_back'); ?> </label>
@@ -1636,6 +1645,7 @@ class BWGViewOptions_bwg {
1636
  window.onload = bwg_built_in_watermark('watermark_type_<?php echo $row->built_in_watermark_type ?>');
1637
  window.onload = bwg_popup_fullscreen(<?php echo $row->popup_fullscreen; ?>);
1638
  window.onload = bwg_enable_disable(<?php echo $row->show_search_box ? "'', 'tr_search_box_width', 'show_search_box_1'" : "'none', 'tr_search_box_width', 'show_search_box_0'" ?>);
 
1639
  window.onload = bwg_enable_disable(<?php echo $row->preload_images ? "'', 'tr_preload_images_count', 'preload_images_1'" : "'none', 'tr_preload_images_count', 'preload_images_0'" ?>);
1640
  window.onload = bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0'" ?>);
1641
  window.onload = bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_info', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_info', 'popup_enable_ctrl_btn_0'" ?>);
180
  </tr>
181
  <tr>
182
  <td class="spider_label_options">
183
+ <label><?php echo __('Show search box:', 'bwg_back'); ?></label>
184
  </td>
185
  <td>
186
+ <input type="radio" name="show_search_box" id="show_search_box_1" value="1" <?php if ($row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('', 'tr_search_box_width', 'show_search_box_1'); bwg_enable_disable('', 'tr_search_box_placeholder', 'show_search_box_1')" /><label for="show_search_box_1"><?php echo __('Yes', 'bwg_back'); ?></label>
187
+ <input type="radio" name="show_search_box" id="show_search_box_0" value="0" <?php if (!$row->show_search_box) echo 'checked="checked"'; ?> onClick="bwg_enable_disable('none', 'tr_search_box_width', 'show_search_box_0'); bwg_enable_disable('none', 'tr_search_box_placeholder', 'show_search_box_0')" /><label for="show_search_box_0"><?php echo __('No', 'bwg_back'); ?></label>
188
  <div class="spider_description"></div>
189
  </td>
190
  </tr>
191
+ <tr id="tr_search_box_placeholder">
192
+ <td class="spider_label_options">
193
+ <label for="placeholder"><?php echo __('Add placeholder to search:', 'bwg_back'); ?> </label>
194
+ </td>
195
+ <td>
196
+ <input type="text" name="placeholder" id="placeholder" value="<?php echo $row->placeholder; ?>" />
197
+ <div class="spider_description"></div>
198
+ </td>
199
+ </tr>
200
  <tr id="tr_search_box_width">
201
  <td class="spider_label_options">
202
  <label for="search_box_width"><?php _e('Search box width:', 'bwg_back'); ?> </label>
1645
  window.onload = bwg_built_in_watermark('watermark_type_<?php echo $row->built_in_watermark_type ?>');
1646
  window.onload = bwg_popup_fullscreen(<?php echo $row->popup_fullscreen; ?>);
1647
  window.onload = bwg_enable_disable(<?php echo $row->show_search_box ? "'', 'tr_search_box_width', 'show_search_box_1'" : "'none', 'tr_search_box_width', 'show_search_box_0'" ?>);
1648
+ window.onload = bwg_enable_disable(<?php echo $row->show_search_box ? "'', 'tr_search_box_placeholder', 'show_search_box_1'" : "'none', 'tr_search_box_placeholder', 'show_search_box_0'" ?>);
1649
  window.onload = bwg_enable_disable(<?php echo $row->preload_images ? "'', 'tr_preload_images_count', 'preload_images_1'" : "'none', 'tr_preload_images_count', 'preload_images_0'" ?>);
1650
  window.onload = bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_fullscreen', 'popup_enable_ctrl_btn_0'" ?>);
1651
  window.onload = bwg_enable_disable(<?php echo $row->popup_enable_ctrl_btn ? "'', 'tr_popup_info', 'popup_enable_ctrl_btn_1'" : "'none', 'tr_popup_info', 'popup_enable_ctrl_btn_0'" ?>);
css/bwg_frontend.css CHANGED
@@ -63,6 +63,9 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
63
  -webkit-animation: spin 2.5s infinite linear;
64
  }
65
 
 
 
 
66
  .spider_ajax_loading {
67
  border: none !important;
68
  animation: spin 2.5s infinite linear;
63
  -webkit-animation: spin 2.5s infinite linear;
64
  }
65
 
66
+ .bwg_filmstrip_thumbnail_img {
67
+ max-width: none;
68
+ }
69
  .spider_ajax_loading {
70
  border: none !important;
71
  animation: spin 2.5s infinite linear;
framework/WDWLibrary.php CHANGED
@@ -644,7 +644,7 @@ class WDWLibrary {
644
  <?php
645
  }
646
 
647
- public static function ajax_html_frontend_search_box($form_id, $current_view, $cur_gal_id, $images_count, $search_box_width = 180) {
648
  $bwg_search = ((isset($_POST['bwg_search_' . $current_view]) && esc_html($_POST['bwg_search_' . $current_view]) != '') ? esc_html($_POST['bwg_search_' . $current_view]) : '');
649
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : 'album');
650
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : 0);
@@ -725,7 +725,7 @@ class WDWLibrary {
725
  <i title="<?php echo __('Search', 'bwg'); ?>" class="bwg_search fa fa-search" onclick="spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
726
  </span>
727
  <span class="bwg_search_input_container">
728
- <input id="bwg_search_input_<?php echo $current_view; ?>" class="bwg_search_input_<?php echo $current_view; ?>" type="text" onkeypress="return check_enter_key(event)" name="bwg_search_<?php echo $current_view; ?>" value="<?php echo $bwg_search; ?>" >
729
  <input id="bwg_images_count_<?php echo $current_view; ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo $current_view; ?>" value="<?php echo $images_count; ?>" >
730
  </span>
731
  </div>
644
  <?php
645
  }
646
 
647
+ public static function ajax_html_frontend_search_box($form_id, $current_view, $cur_gal_id, $images_count, $search_box_width = 180, $placeholder = '') {
648
  $bwg_search = ((isset($_POST['bwg_search_' . $current_view]) && esc_html($_POST['bwg_search_' . $current_view]) != '') ? esc_html($_POST['bwg_search_' . $current_view]) : '');
649
  $type = (isset($_POST['type_' . $current_view]) ? esc_html($_POST['type_' . $current_view]) : 'album');
650
  $album_gallery_id = (isset($_POST['album_gallery_id_' . $current_view]) ? esc_html($_POST['album_gallery_id_' . $current_view]) : 0);
725
  <i title="<?php echo __('Search', 'bwg'); ?>" class="bwg_search fa fa-search" onclick="spider_frontend_ajax('<?php echo $form_id; ?>', '<?php echo $current_view; ?>', '<?php echo $cur_gal_id; ?>', <?php echo $album_gallery_id; ?>, '', '<?php echo $type; ?>', 1)"></i>
726
  </span>
727
  <span class="bwg_search_input_container">
728
+ <input id="bwg_search_input_<?php echo $current_view; ?>" class="bwg_search_input_<?php echo $current_view; ?>" type="text" onkeypress="return check_enter_key(event)" name="bwg_search_<?php echo $current_view; ?>" value="<?php echo $bwg_search; ?>" placeholder="<?php echo $placeholder; ?>" />
729
  <input id="bwg_images_count_<?php echo $current_view; ?>" class="bwg_search_input" type="hidden" name="bwg_images_count_<?php echo $current_view; ?>" value="<?php echo $images_count; ?>" >
730
  </span>
731
  </div>
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -89,6 +89,7 @@ class BWGViewAlbum_compact_preview {
89
  $params['show_tag_box'] = 0;
90
  }
91
  $options_row = $this->model->get_options_row_data();
 
92
  if (!isset($params['show_album_name'])) {
93
  $params['show_album_name'] = $options_row->show_album_name;
94
  }
@@ -575,7 +576,7 @@ class BWGViewAlbum_compact_preview {
575
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
576
  <?php
577
  if ($params['show_search_box'] && $type == 'gallery') {
578
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width']);
579
  }
580
  if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
581
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
89
  $params['show_tag_box'] = 0;
90
  }
91
  $options_row = $this->model->get_options_row_data();
92
+ $placeholder = isset($options_row->placeholder) ? $options_row->placeholder : '';
93
  if (!isset($params['show_album_name'])) {
94
  $params['show_album_name'] = $options_row->show_album_name;
95
  }
576
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
577
  <?php
578
  if ($params['show_search_box'] && $type == 'gallery') {
579
+ WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
580
  }
581
  if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
582
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -28,6 +28,7 @@ class BWGViewAlbum_extended_preview {
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  $options_row = $this->model->get_options_row_data();
 
31
  $play_icon = $options_row->play_icon;
32
 
33
  if (!isset($params['extended_album_image_title'])) {
@@ -556,7 +557,7 @@ class BWGViewAlbum_extended_preview {
556
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
557
  <?php
558
  if ($params['show_search_box'] && $type == 'gallery') {
559
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width']);
560
  }
561
  if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
562
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
28
  global $WD_BWG_UPLOAD_DIR;
29
  require_once(WD_BWG_DIR . '/framework/WDWLibrary.php');
30
  $options_row = $this->model->get_options_row_data();
31
+ $placeholder = isset($options_row->placeholder) ? $options_row->placeholder : '';
32
  $play_icon = $options_row->play_icon;
33
 
34
  if (!isset($params['extended_album_image_title'])) {
557
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
558
  <?php
559
  if ($params['show_search_box'] && $type == 'gallery') {
560
+ WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $images_count, $params['search_box_width'], $placeholder);
561
  }
562
  if (isset($params['show_sort_images']) && $params['show_sort_images'] && $type == 'gallery') {
563
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, $album_gallery_div_id, $params['sort_by'], $params['search_box_width']);
frontend/views/BWGViewImage_browser.php CHANGED
@@ -89,6 +89,7 @@ class BWGViewImage_browser {
89
  $image_title = $params['image_browser_title_enable'];
90
  $enable_image_description = $params['image_browser_description_enable'];
91
  $option_row = $this->model->get_option_row_data();
 
92
  $image_right_click = $option_row->image_right_click;
93
  if (!isset($params['popup_fullscreen'])) {
94
  $params['popup_fullscreen'] = 0;
@@ -443,7 +444,7 @@ class BWGViewImage_browser {
443
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
444
  <?php
445
  if ($params['show_search_box']) {
446
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width']);
447
  }
448
  ?>
449
  <div class="image_browser_images_conteiner_<?php echo $bwg; ?>">
89
  $image_title = $params['image_browser_title_enable'];
90
  $enable_image_description = $params['image_browser_description_enable'];
91
  $option_row = $this->model->get_option_row_data();
92
+ $placeholder = isset($option_row->placeholder) ? $option_row->placeholder : '';
93
  $image_right_click = $option_row->image_right_click;
94
  if (!isset($params['popup_fullscreen'])) {
95
  $params['popup_fullscreen'] = 0;
444
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
445
  <?php
446
  if ($params['show_search_box']) {
447
+ WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
448
  }
449
  ?>
450
  <div class="image_browser_images_conteiner_<?php echo $bwg; ?>">
frontend/views/BWGViewThumbnails.php CHANGED
@@ -58,7 +58,7 @@ class BWGViewThumbnails {
58
  if (!isset($params['popup_info_always_show'])) {
59
  $params['popup_info_always_show'] = 0;
60
  }
61
- if (!isset($params['popup_info_full_width'])) {
62
  $params['popup_info_full_width'] = 0;
63
  }
64
  if (!isset($params['popup_enable_rate'])) {
@@ -85,6 +85,7 @@ class BWGViewThumbnails {
85
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
86
  $sort_direction = ' ' . $params['order_by'] . ' ';
87
  $options_row = $this->model->get_options_row_data();
 
88
  $play_icon = $options_row->play_icon;
89
  if ($from) {
90
  $params['gallery_id'] = $params['id'];
@@ -373,7 +374,7 @@ class BWGViewThumbnails {
373
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
374
  <?php
375
  if ($params['show_search_box']) {
376
- WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width']);
377
  }
378
  if (isset($params['show_sort_images']) && $params['show_sort_images']) {
379
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $params['sort_by'], $params['search_box_width']);
@@ -409,10 +410,8 @@ class BWGViewThumbnails {
409
  $image_thumb_width = $params['thumb_width'];
410
  if($image_row->resolution != ''){
411
  $resolution_arr = explode(" ",$image_row->resolution);
412
-
413
  $resolution_w = intval($resolution_arr[0]);
414
  $resolution_h = intval($resolution_arr[2]);
415
-
416
  if($resolution_w != 0 && $resolution_h != 0){
417
  $scale = $scale = max($params['thumb_width'] / $resolution_w, $params['thumb_height'] / $resolution_h);
418
  $image_thumb_width = $resolution_w * $scale;
58
  if (!isset($params['popup_info_always_show'])) {
59
  $params['popup_info_always_show'] = 0;
60
  }
61
+ if (!isset($params['popup_info_full_width'])) {
62
  $params['popup_info_full_width'] = 0;
63
  }
64
  if (!isset($params['popup_enable_rate'])) {
85
  $from = (isset($params['from']) ? esc_html($params['from']) : 0);
86
  $sort_direction = ' ' . $params['order_by'] . ' ';
87
  $options_row = $this->model->get_options_row_data();
88
+ $placeholder = isset($options_row->placeholder) ? $options_row->placeholder : '';
89
  $play_icon = $options_row->play_icon;
90
  if ($from) {
91
  $params['gallery_id'] = $params['id'];
374
  <form id="gal_front_form_<?php echo $bwg; ?>" method="post" action="#">
375
  <?php
376
  if ($params['show_search_box']) {
377
+ WDWLibrary::ajax_html_frontend_search_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $images_count, $params['search_box_width'], $placeholder);
378
  }
379
  if (isset($params['show_sort_images']) && $params['show_sort_images']) {
380
  WDWLibrary::ajax_html_frontend_sort_box('gal_front_form_' . $bwg, $bwg, 'bwg_standart_thumbnails_' . $bwg, $params['sort_by'], $params['search_box_width']);
410
  $image_thumb_width = $params['thumb_width'];
411
  if($image_row->resolution != ''){
412
  $resolution_arr = explode(" ",$image_row->resolution);
 
413
  $resolution_w = intval($resolution_arr[0]);
414
  $resolution_h = intval($resolution_arr[2]);
 
415
  if($resolution_w != 0 && $resolution_h != 0){
416
  $scale = $scale = max($params['thumb_width'] / $resolution_w, $params['thumb_height'] / $resolution_h);
417
  $image_thumb_width = $resolution_w * $scale;
js/bwg.js CHANGED
@@ -159,7 +159,7 @@ function spider_ajax_save(form_id, tr_group) {
159
  jQuery('#loading_div').show();
160
 
161
  jQuery.post(
162
- jQuery('#' + form_id).action,
163
  post_data,
164
 
165
  function (data) {
159
  jQuery('#loading_div').show();
160
 
161
  jQuery.post(
162
+ jQuery('#' + form_id).attr('action'),
163
  post_data,
164
 
165
  function (data) {
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.83
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -790,6 +790,7 @@ function bwg_activate() {
790
  `show_tag_box` tinyint(1) NOT NULL,
791
  `show_hide_custom_post` tinyint(1) NOT NULL,
792
  `show_hide_post_meta` tinyint(1) NOT NULL,
 
793
  PRIMARY KEY (`id`)
794
  ) DEFAULT CHARSET=utf8;";
795
  $wpdb->query($bwg_option);
@@ -978,6 +979,7 @@ function bwg_activate() {
978
  'show_tag_box' => 0,
979
  'show_hide_custom_post' => 0,
980
  'show_hide_post_meta' => 0,
 
981
  ));
982
  }
983
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
@@ -1900,7 +1902,7 @@ function bwg_activate() {
1900
  ));
1901
  }
1902
  $version = get_option("wd_bwg_version");
1903
- $new_version = '1.2.83';
1904
  if ($version && version_compare($version, $new_version, '<')) {
1905
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1906
  bwg_update($version);
@@ -1948,7 +1950,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1948
 
1949
  function bwg_update_hook() {
1950
  $version = get_option("wd_bwg_version");
1951
- $new_version = '1.2.83';
1952
  if ($version && version_compare($version, $new_version, '<')) {
1953
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1954
  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.84
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
790
  `show_tag_box` tinyint(1) NOT NULL,
791
  `show_hide_custom_post` tinyint(1) NOT NULL,
792
  `show_hide_post_meta` tinyint(1) NOT NULL,
793
+ `placeholder` varchar(32) NOT NULL,
794
  PRIMARY KEY (`id`)
795
  ) DEFAULT CHARSET=utf8;";
796
  $wpdb->query($bwg_option);
979
  'show_tag_box' => 0,
980
  'show_hide_custom_post' => 0,
981
  'show_hide_post_meta' => 0,
982
+ 'placeholder' => '',
983
  ));
984
  }
985
  $exists_default = $wpdb->get_var('SELECT count(id) FROM ' . $wpdb->prefix . 'bwg_theme');
1902
  ));
1903
  }
1904
  $version = get_option("wd_bwg_version");
1905
+ $new_version = '1.2.84';
1906
  if ($version && version_compare($version, $new_version, '<')) {
1907
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1908
  bwg_update($version);
1950
 
1951
  function bwg_update_hook() {
1952
  $version = get_option("wd_bwg_version");
1953
+ $new_version = '1.2.84';
1954
  if ($version && version_compare($version, $new_version, '<')) {
1955
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1956
  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, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.2.83
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -215,6 +215,10 @@ Yes, it is possible to add advertising and/or watermark over the images. In both
215
 
216
  == Changelog ==
217
 
 
 
 
 
218
  = 1.2.83 =
219
  * Fixed: Add selected images to gallery.
220
  * Fixed: Controll buttons and filmstrip conflict in lightbox.
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, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.2.84
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
215
 
216
  == Changelog ==
217
 
218
+ = 1.2.84 =
219
+ * Added: Placeholder for search by name (optional).
220
+ * Fixed: Styles conflct with Twenty Sixteen theme.
221
+
222
  = 1.2.83 =
223
  * Fixed: Add selected images to gallery.
224
  * Fixed: Controll buttons and filmstrip conflict in lightbox.
update/bwg_update.php CHANGED
@@ -340,6 +340,9 @@ function bwg_update($version) {
340
  if (version_compare($version, '1.2.80') == -1) {
341
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option CHANGE `instagram_client_id` `instagram_access_token` varchar(128) NOT NULL DEFAULT ''");
342
  }
 
 
 
343
  return;
344
  }
345
 
340
  if (version_compare($version, '1.2.80') == -1) {
341
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option CHANGE `instagram_client_id` `instagram_access_token` varchar(128) NOT NULL DEFAULT ''");
342
  }
343
+ if (version_compare($version, '1.2.84') == -1) {
344
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "bwg_option ADD `placeholder` varchar(32) NOT NULL DEFAULT ''");
345
+ }
346
  return;
347
  }
348