Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.102

Version Description

  • Fixed: Search also in description.
  • Added: Options for slideshow widget.
  • Fixed: Import from media libruary.
  • Fixed: File manager loading.
Download this release

Release Info

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

Code changes from version 1.2.101 to 1.2.102

admin/controllers/BWGControllerWidgetSlideshow.php CHANGED
@@ -39,7 +39,7 @@ class BWGControllerWidgetSlideshow extends WP_Widget {
39
  }
40
 
41
  public function form( $instance ) {
42
- $this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('gallery_id'), parent::get_field_name('gallery_id'), parent::get_field_id('width'), parent::get_field_name('width'), parent::get_field_id('height'), parent::get_field_name('height'), parent::get_field_id('effect'), parent::get_field_name('effect'), parent::get_field_id('interval'), parent::get_field_name('interval'), parent::get_field_id('shuffle'), parent::get_field_name('shuffle'), parent::get_field_id('theme_id'), parent::get_field_name('theme_id'));
43
  }
44
 
45
  // Update Settings.
@@ -52,6 +52,8 @@ class BWGControllerWidgetSlideshow extends WP_Widget {
52
  $instance['interval'] = $new_instance['interval'];
53
  $instance['shuffle'] = $new_instance['shuffle'];
54
  $instance['theme_id'] = $new_instance['theme_id'];
 
 
55
  return $instance;
56
  }
57
 
39
  }
40
 
41
  public function form( $instance ) {
42
+ $this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('gallery_id'), parent::get_field_name('gallery_id'), parent::get_field_id('width'), parent::get_field_name('width'), parent::get_field_id('height'), parent::get_field_name('height'), parent::get_field_id('effect'), parent::get_field_name('effect'), parent::get_field_id('interval'), parent::get_field_name('interval'), parent::get_field_id('shuffle'), parent::get_field_name('shuffle'), parent::get_field_id('theme_id'), parent::get_field_name('theme_id'), parent::get_field_id('enable_ctrl_btn'), parent::get_field_name('enable_ctrl_btn'), parent::get_field_id('enable_autoplay'), parent::get_field_name('enable_autoplay'));
43
  }
44
 
45
  // Update Settings.
52
  $instance['interval'] = $new_instance['interval'];
53
  $instance['shuffle'] = $new_instance['shuffle'];
54
  $instance['theme_id'] = $new_instance['theme_id'];
55
+ $instance['enable_ctrl_btn'] = $new_instance['enable_ctrl_btn'];
56
+ $instance['enable_autoplay'] = $new_instance['enable_autoplay'];
57
  return $instance;
58
  }
59
 
admin/views/BWGViewAddAlbumsGalleries.php CHANGED
@@ -31,7 +31,7 @@ class BWGViewAddAlbumsGalleries {
31
  $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'name');
32
  $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
  $per_page = $this->model->per_page();
34
- $pager = 0;
35
  wp_print_scripts('jquery');
36
  wp_print_scripts('wp-pointer');
37
  wp_print_styles('admin-bar');
31
  $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'name');
32
  $order_class = 'manage-column column-title sorted ' . $asc_or_desc;
33
  $per_page = $this->model->per_page();
34
+ $pager = 0;
35
  wp_print_scripts('jquery');
36
  wp_print_scripts('wp-pointer');
37
  wp_print_styles('admin-bar');
admin/views/BWGViewWidgetSlideshow.php CHANGED
@@ -35,6 +35,8 @@ class BWGViewWidgetSlideshow {
35
  $interval = (isset($instance['interval']) ? $instance['interval'] : 5);
36
  $shuffle = (isset($instance['shuffle']) ? $instance['shuffle'] : 0);
37
  $theme_id = (isset($instance['theme_id']) ? $instance['theme_id'] : 0);
 
 
38
  // Before widget.
39
  echo $before_widget;
40
  // Title of widget.
@@ -55,7 +57,9 @@ class BWGViewWidgetSlideshow {
55
  'effect' => $effect,
56
  'interval' => $interval,
57
  'shuffle' => $shuffle,
58
- 'theme_id' => $theme_id);
 
 
59
  $controller->execute($params, 1, $bwg);
60
  $bwg++;
61
  // After widget.
@@ -63,7 +67,7 @@ class BWGViewWidgetSlideshow {
63
  }
64
 
65
  // Widget Control Panel.
66
- function form($instance, $id_title, $name_title, $id_gallery_id, $name_gallery_id, $id_width, $name_width, $id_height, $name_height, $id_effect, $name_effect, $id_interval, $name_interval, $id_shuffle, $name_shuffle, $id_theme_id, $name_theme_id) {
67
  $defaults = array(
68
  'title' => 'Photo Gallery Slideshow',
69
  'gallery_id' => 0,
@@ -73,6 +77,8 @@ class BWGViewWidgetSlideshow {
73
  'interval' => 5,
74
  'shuffle' => 0,
75
  'theme_id' => 0,
 
 
76
  );
77
  $slideshow_effects = array(
78
  'none' => 'None',
@@ -144,6 +150,18 @@ class BWGViewWidgetSlideshow {
144
  <input type="radio" name="<?php echo $name_shuffle; ?>" id="<?php echo $id_shuffle . "_0"; ?>" value="0" <?php if (!$instance['shuffle']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' /><label for="<?php echo $id_shuffle . "_0"; ?>"><?php _e("No", 'bwg_back'); ?></label>
145
  <input type="hidden" name="<?php echo $name_shuffle; ?>" id="<?php echo $id_shuffle; ?>" value="<?php echo $instance['shuffle']; ?>" class="bwg_hidden" />
146
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
147
  <p>
148
  <select name="<?php echo $name_theme_id; ?>" id="<?php echo $id_theme_id; ?>" class="widefat" <?php echo (get_option("wd_bwg_theme_version") ? 'title="'.__("This option is disabled in free version.", "bwg_back").'" disabled="disabled"' : ''); ?>>
149
  <?php
35
  $interval = (isset($instance['interval']) ? $instance['interval'] : 5);
36
  $shuffle = (isset($instance['shuffle']) ? $instance['shuffle'] : 0);
37
  $theme_id = (isset($instance['theme_id']) ? $instance['theme_id'] : 0);
38
+ $enable_ctrl_btn = (isset($instance['enable_ctrl_btn']) ? $instance['enable_ctrl_btn'] : 0);
39
+ $enable_autoplay = (isset($instance['enable_autoplay']) ? $instance['enable_autoplay'] : 0);
40
  // Before widget.
41
  echo $before_widget;
42
  // Title of widget.
57
  'effect' => $effect,
58
  'interval' => $interval,
59
  'shuffle' => $shuffle,
60
+ 'theme_id' => $theme_id,
61
+ 'enable_ctrl_btn' => $enable_ctrl_btn,
62
+ 'enable_autoplay' => $enable_autoplay);
63
  $controller->execute($params, 1, $bwg);
64
  $bwg++;
65
  // After widget.
67
  }
68
 
69
  // Widget Control Panel.
70
+ function form($instance, $id_title, $name_title, $id_gallery_id, $name_gallery_id, $id_width, $name_width, $id_height, $name_height, $id_effect, $name_effect, $id_interval, $name_interval, $id_shuffle, $name_shuffle, $id_theme_id, $name_theme_id, $id_enable_ctrl_btn, $name_enable_ctrl_btn, $id_enable_autoplay, $name_enable_autoplay) {
71
  $defaults = array(
72
  'title' => 'Photo Gallery Slideshow',
73
  'gallery_id' => 0,
77
  'interval' => 5,
78
  'shuffle' => 0,
79
  'theme_id' => 0,
80
+ 'enable_ctrl_btn' => 0,
81
+ 'enable_autoplay' => 0,
82
  );
83
  $slideshow_effects = array(
84
  'none' => 'None',
150
  <input type="radio" name="<?php echo $name_shuffle; ?>" id="<?php echo $id_shuffle . "_0"; ?>" value="0" <?php if (!$instance['shuffle']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' /><label for="<?php echo $id_shuffle . "_0"; ?>"><?php _e("No", 'bwg_back'); ?></label>
151
  <input type="hidden" name="<?php echo $name_shuffle; ?>" id="<?php echo $id_shuffle; ?>" value="<?php echo $instance['shuffle']; ?>" class="bwg_hidden" />
152
  </p>
153
+ <p>
154
+ <label><?php echo __('Enable autoplay:', 'bwg_back'); ?></label>
155
+ <input type="radio" name="<?php echo $name_enable_autoplay; ?>" id="<?php echo $id_enable_autoplay . "_1"; ?>" value="1" <?php if ($instance['enable_autoplay']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "1");' /><label for="<?php echo $id_enable_autoplay . "_1"; ?>"><?php echo __('Yes', 'bwg_back'); ?></label>
156
+ <input type="radio" name="<?php echo $name_enable_autoplay; ?>" id="<?php echo $id_enable_autoplay . "_0"; ?>" value="0" <?php if (!$instance['enable_autoplay']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' /><label for="<?php echo $id_enable_autoplay . "_0"; ?>"><?php echo __('No', 'bwg_back'); ?></label>
157
+ <input type="hidden" name="<?php echo $name_enable_autoplay; ?>" id="<?php echo $id_enable_autoplay; ?>" value="<?php echo $instance['enable_autoplay']; ?>" class="bwg_hidden" />
158
+ </p>
159
+ <p>
160
+ <label><?php echo __('Enable control buttons:', 'bwg_back'); ?></label>
161
+ <input type="radio" name="<?php echo $name_enable_ctrl_btn; ?>" id="<?php echo $id_enable_ctrl_btn . "_1"; ?>" value="1" <?php if ($instance['enable_ctrl_btn']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "1");' /><label for="<?php echo $id_enable_ctrl_btn . "_1"; ?>"><?php echo __('Yes', 'bwg_back'); ?></label>
162
+ <input type="radio" name="<?php echo $name_enable_ctrl_btn; ?>" id="<?php echo $id_enable_ctrl_btn . "_0"; ?>" value="0" <?php if (!$instance['enable_ctrl_btn']) echo 'checked="checked"'; ?> onclick='jQuery(this).nextAll(".bwg_hidden").first().attr("value", "0");' /><label for="<?php echo $id_enable_ctrl_btn . "_0"; ?>"><?php echo __('No', 'bwg_back'); ?></label>
163
+ <input type="hidden" name="<?php echo $name_enable_ctrl_btn; ?>" id="<?php echo $id_enable_ctrl_btn; ?>" value="<?php echo $instance['enable_ctrl_btn']; ?>" class="bwg_hidden" />
164
+ </p>
165
  <p>
166
  <select name="<?php echo $name_theme_id; ?>" id="<?php echo $id_theme_id; ?>" class="widefat" <?php echo (get_option("wd_bwg_theme_version") ? 'title="'.__("This option is disabled in free version.", "bwg_back").'" disabled="disabled"' : ''); ?>>
167
  <?php
filemanager/controller.php CHANGED
@@ -258,7 +258,7 @@ class FilemanagerController {
258
 
259
  public function import_items() {
260
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
261
- $query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'importer_thumb_width' => esc_html($_REQUEST['importer_thumb_width']), 'importer_thumb_height' => esc_html($_REQUEST['importer_thumb_height']), 'callback' => esc_html($_REQUEST['callback']), 'file_namesML' => esc_html($_REQUEST['file_namesML']), 'importer_img_width' => esc_html($_REQUEST['importer_img_width']), 'importer_img_height' => esc_html($_REQUEST['importer_img_height']), 'import' => 'true', 'redir' => esc_html($_REQUEST['dir']), 'dir' => $this->get_uploads_dir() . '/' . esc_html($_REQUEST['dir']) . '/'), $query_url);
262
  header('Location: ' . $query_url);
263
  exit;
264
  }
258
 
259
  public function import_items() {
260
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
261
+ $query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'importer_thumb_width' => esc_html($_REQUEST['importer_thumb_width']), 'importer_thumb_height' => esc_html($_REQUEST['importer_thumb_height']), 'callback' => esc_html($_REQUEST['callback']), 'file_namesML' => esc_html($_REQUEST['file_namesML']), 'importer_img_width' => esc_html($_REQUEST['importer_img_width']), 'importer_img_height' => esc_html($_REQUEST['importer_img_height']), 'import' => 'true', 'redir' => esc_html($_REQUEST['dir']), 'dir' => esc_html($_REQUEST['dir']) . '/'), $query_url);
262
  header('Location: ' . $query_url);
263
  exit;
264
  }
filemanager/js/default.js CHANGED
@@ -29,7 +29,12 @@ var isUploading;
29
  // Public Methods //
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  jQuery(document).ready(function () {
32
- var all_images_count = jQuery(".item_thumb img").length;
 
 
 
 
 
33
  if(!all_images_count) {
34
  setTimeout(function(){jQuery(document).trigger("onUpload")});
35
  }
29
  // Public Methods //
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  jQuery(document).ready(function () {
32
+ if (jQuery("#importer").css("display") != 'none') {
33
+ var all_images_count = jQuery("#importer .item_thumb img").length;
34
+ }
35
+ else {
36
+ var all_images_count = jQuery("#file_manager .item_thumb img").length;
37
+ }
38
  if(!all_images_count) {
39
  setTimeout(function(){jQuery(document).trigger("onUpload")});
40
  }
filemanager/model.php CHANGED
@@ -45,7 +45,7 @@ class FilemanagerModel {
45
  $data = array();
46
  $data['session_data'] = $session_data;
47
  $data['path_components'] = $this->get_path_components();
48
- $data['dir'] = (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
49
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
50
  $data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());
51
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
45
  $data = array();
46
  $data['session_data'] = $session_data;
47
  $data['path_components'] = $this->get_path_components();
48
+ $data['dir'] = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
49
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
50
  $data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());
51
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
frontend/models/BWGModelAlbum_compact_preview.php CHANGED
@@ -84,7 +84,7 @@ class BWGModelAlbum_compact_preview {
84
  }
85
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg])) ? esc_html($_POST['bwg_search_' . $bwg]) : '');
86
  if ($bwg_search != '') {
87
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
88
  }
89
  else {
90
  $where = '';
@@ -109,7 +109,7 @@ class BWGModelAlbum_compact_preview {
109
  global $wpdb;
110
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
111
  if ($bwg_search != '') {
112
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
113
  }
114
  else {
115
  $where = '';
84
  }
85
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg])) ? esc_html($_POST['bwg_search_' . $bwg]) : '');
86
  if ($bwg_search != '') {
87
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
88
  }
89
  else {
90
  $where = '';
109
  global $wpdb;
110
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
111
  if ($bwg_search != '') {
112
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
113
  }
114
  else {
115
  $where = '';
frontend/models/BWGModelAlbum_extended_preview.php CHANGED
@@ -66,7 +66,7 @@ class BWGModelAlbum_extended_preview {
66
  global $wpdb;
67
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
68
  if ($bwg_search != '') {
69
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
70
  }
71
  else {
72
  $where = '';
@@ -103,7 +103,7 @@ class BWGModelAlbum_extended_preview {
103
  global $wpdb;
104
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
105
  if ($bwg_search != '') {
106
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
107
  }
108
  else {
109
  $where = '';
66
  global $wpdb;
67
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
68
  if ($bwg_search != '') {
69
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
70
  }
71
  else {
72
  $where = '';
103
  global $wpdb;
104
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
105
  if ($bwg_search != '') {
106
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
107
  }
108
  else {
109
  $where = '';
frontend/models/BWGModelGalleryBox.php CHANGED
@@ -59,7 +59,7 @@ class BWGModelGalleryBox {
59
  $filter_tags = (isset($_REQUEST['filter_tag_'. $bwg]) && $_REQUEST['filter_tag_'. $bwg] ) ? explode(",",$_REQUEST['filter_tag_'. $bwg]) : array();
60
  $filter_search_name = (isset($_REQUEST['filter_search_name_'. $bwg])) ? esc_html($_REQUEST['filter_search_name_'. $bwg]) : '';
61
  if ($filter_search_name != '') {
62
- $where = ' AND t1.alt LIKE "%%' . $filter_search_name . '%%"';
63
  }
64
  else {
65
  $where = '';
59
  $filter_tags = (isset($_REQUEST['filter_tag_'. $bwg]) && $_REQUEST['filter_tag_'. $bwg] ) ? explode(",",$_REQUEST['filter_tag_'. $bwg]) : array();
60
  $filter_search_name = (isset($_REQUEST['filter_search_name_'. $bwg])) ? esc_html($_REQUEST['filter_search_name_'. $bwg]) : '';
61
  if ($filter_search_name != '') {
62
+ $where = ' AND (t1.alt LIKE "%%' . $filter_search_name . '%%" OR t1.description LIKE "%%' . $filter_search_name . '%%")';
63
  }
64
  else {
65
  $where = '';
frontend/models/BWGModelImage_browser.php CHANGED
@@ -42,7 +42,7 @@ class BWGModelImage_browser {
42
  global $wpdb;
43
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
44
  if ($bwg_search != '') {
45
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
46
  }
47
  else {
48
  $where = '';
@@ -82,7 +82,7 @@ class BWGModelImage_browser {
82
  global $wpdb;
83
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
84
  if ($bwg_search != '') {
85
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
86
  }
87
  else {
88
  $where = '';
42
  global $wpdb;
43
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
44
  if ($bwg_search != '') {
45
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
46
  }
47
  else {
48
  $where = '';
82
  global $wpdb;
83
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
84
  if ($bwg_search != '') {
85
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
86
  }
87
  else {
88
  $where = '';
frontend/models/BWGModelThumbnails.php CHANGED
@@ -46,7 +46,7 @@ class BWGModelThumbnails {
46
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
47
  if ($type == 'tag') {
48
  if ($bwg_search != '') {
49
- $where = 'AND image.alt LIKE "%%' . $bwg_search . '%%"';
50
  }
51
  else {
52
  $where = '';
@@ -54,7 +54,7 @@ class BWGModelThumbnails {
54
  }
55
  else {
56
  if ($bwg_search != '') {
57
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
58
  }
59
  else {
60
  $where = '';
@@ -104,7 +104,7 @@ class BWGModelThumbnails {
104
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
105
  if ($type == 'tag') {
106
  if ($bwg_search != '') {
107
- $where = 'AND image.alt LIKE "%%' . $bwg_search . '%%"';
108
  }
109
  else {
110
  $where = '';
@@ -112,7 +112,7 @@ class BWGModelThumbnails {
112
  }
113
  else {
114
  if ($bwg_search != '') {
115
- $where = 'AND alt LIKE "%%' . $bwg_search . '%%"';
116
  }
117
  else {
118
  $where = '';
46
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
47
  if ($type == 'tag') {
48
  if ($bwg_search != '') {
49
+ $where = 'AND (image.alt LIKE "%%' . $bwg_search . '%%" OR image.description LIKE "%%' . $bwg_search . '%%")';
50
  }
51
  else {
52
  $where = '';
54
  }
55
  else {
56
  if ($bwg_search != '') {
57
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
58
  }
59
  else {
60
  $where = '';
104
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
105
  if ($type == 'tag') {
106
  if ($bwg_search != '') {
107
+ $where = 'AND (image.alt LIKE "%%' . $bwg_search . '%%" OR image.description LIKE "%%' . $bwg_search . '%%")';
108
  }
109
  else {
110
  $where = '';
112
  }
113
  else {
114
  if ($bwg_search != '') {
115
+ $where = 'AND (alt LIKE "%%' . $bwg_search . '%%" OR description LIKE "%%' . $bwg_search . '%%")';
116
  }
117
  else {
118
  $where = '';
frontend/views/BWGViewSlideshow.php CHANGED
@@ -89,9 +89,9 @@ class BWGViewSlideshow {
89
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
90
  $sort_by = 'order';
91
  $slideshow_effect = (isset($params['effect']) ? esc_html($params['effect']) : 'fade');
92
- $enable_slideshow_autoplay = $options_row->slideshow_enable_autoplay;
93
  $enable_slideshow_shuffle = (isset($params['shuffle']) ? esc_html($params['shuffle']) : 0);
94
- $enable_slideshow_ctrl = $options_row->slideshow_enable_ctrl;
95
  $enable_slideshow_filmstrip = FALSE;
96
  $slideshow_filmstrip_height = 0;
97
  $slideshow_filmstrip_width = 0;
89
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
90
  $sort_by = 'order';
91
  $slideshow_effect = (isset($params['effect']) ? esc_html($params['effect']) : 'fade');
92
+ $enable_slideshow_autoplay = (isset($params['enable_autoplay']) ? esc_html($params['enable_autoplay']) : $options_row->slideshow_enable_autoplay);
93
  $enable_slideshow_shuffle = (isset($params['shuffle']) ? esc_html($params['shuffle']) : 0);
94
+ $enable_slideshow_ctrl = (isset($params['enable_ctrl_btn']) ? esc_html($params['enable_ctrl_btn']) : $options_row->slideshow_enable_ctrl);
95
  $enable_slideshow_filmstrip = FALSE;
96
  $slideshow_filmstrip_height = 0;
97
  $slideshow_filmstrip_width = 0;
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.101
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1911,7 +1911,7 @@ function bwg_activate() {
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
- $new_version = '1.2.101';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
@@ -1965,7 +1965,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
- $new_version = '1.2.101';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
@@ -2215,7 +2215,7 @@ function bwg_create_post_type() {
2215
  'show_in_nav_menus' => FALSE,
2216
  'permalink_epmask' => TRUE,
2217
  'rewrite' => TRUE,
2218
- 'label' => 'bwg_gallery',
2219
  'supports' => $show_hide_post_meta
2220
  );
2221
  register_post_type( 'bwg_gallery', $args );
@@ -2229,7 +2229,7 @@ function bwg_create_post_type() {
2229
  'show_in_nav_menus' => FALSE,
2230
  'permalink_epmask' => TRUE,
2231
  'rewrite' => TRUE,
2232
- 'label' => 'bwg_album',
2233
  'supports' => $show_hide_post_meta
2234
  );
2235
  register_post_type( 'bwg_album', $args );
@@ -2243,7 +2243,7 @@ function bwg_create_post_type() {
2243
  'show_in_nav_menus' => FALSE,
2244
  'permalink_epmask' => TRUE,
2245
  'rewrite' => TRUE,
2246
- 'label' => 'bwg_tag',
2247
  'supports' => $show_hide_post_meta
2248
  );
2249
  register_post_type( 'bwg_tag', $args );
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.2.102
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1911
  ));
1912
  }
1913
  $version = get_option("wd_bwg_version");
1914
+ $new_version = '1.2.102';
1915
  if ($version && version_compare($version, $new_version, '<')) {
1916
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1917
  bwg_update($version);
1965
 
1966
  function bwg_update_hook() {
1967
  $version = get_option("wd_bwg_version");
1968
+ $new_version = '1.2.102';
1969
  if ($version && version_compare($version, $new_version, '<')) {
1970
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1971
  bwg_update($version);
2215
  'show_in_nav_menus' => FALSE,
2216
  'permalink_epmask' => TRUE,
2217
  'rewrite' => TRUE,
2218
+ 'label' => __('Galleries', 'bwg_back'),
2219
  'supports' => $show_hide_post_meta
2220
  );
2221
  register_post_type( 'bwg_gallery', $args );
2229
  'show_in_nav_menus' => FALSE,
2230
  'permalink_epmask' => TRUE,
2231
  'rewrite' => TRUE,
2232
+ 'label' => __('Albums', 'bwg_back'),
2233
  'supports' => $show_hide_post_meta
2234
  );
2235
  register_post_type( 'bwg_album', $args );
2243
  'show_in_nav_menus' => FALSE,
2244
  'permalink_epmask' => TRUE,
2245
  'rewrite' => TRUE,
2246
+ 'label' => __('Gallery tags', 'bwg_back'),
2247
  'supports' => $show_hide_post_meta
2248
  );
2249
  register_post_type( 'bwg_tag', $args );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
- Stable tag: 1.2.101
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -225,6 +225,12 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
 
 
 
228
  = 1.2.101 =
229
  * Fixed: Security issue
230
 
@@ -722,18 +728,23 @@ This vulnerability was discovered by Fortinet's FortiGuard Labs.
722
  ==Wordpress Photo Gallery Step by step guide==
723
 
724
  = Step 1: Installing the Gallery =
725
- 1.1 Minimum requirements.
726
- Wordpress 3.4+
727
- PHP 5.x
728
- MySQL 5.x
729
-
730
- 1.2 Perform a new installation.
731
- Log in to the administrator panel.
732
- Go to Plugins Add > New > Upload.
733
- Click `Choose file` (`Browse`) and select the Photo Gallery zip file.
734
- Click `Upload&Install` button.
735
- Click `Activate Plugin` button for activating the plugin.
736
- If the installation succeeded you will see the success message. If any problem occurs, please [click here to contact us](https://web-dorado.com/support/contact-us.html).
 
 
 
 
 
737
 
738
 
739
 
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 1.2.102
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 1.2.102 =
229
+ * Fixed: Search also in description.
230
+ * Added: Options for slideshow widget.
231
+ * Fixed: Import from media libruary.
232
+ * Fixed: File manager loading.
233
+
234
  = 1.2.101 =
235
  * Fixed: Security issue
236
 
728
  ==Wordpress Photo Gallery Step by step guide==
729
 
730
  = Step 1: Installing the Gallery =
731
+ 1.1 Minimal requirements.
732
+
733
+ WordPress 3.4+
734
+ PHP 5.x
735
+ MySQL 5.x
736
+
737
+ 1.2 Installation.
738
+
739
+ Log-in to your WordPress administrator panel.
740
+ Select Plugins page from toolbar menu, click Add New.
741
+ Search for Photo Gallery in the right-top search bar if you want to download the Free version or click Upload Plugin button > "Choose file" ("Browse") and select the Photo Gallery zip file if you are installing the Professional version of Photo Gallery.
742
+
743
+ For Mac Users
744
+ Go to your Downloads folder and locate the folder with the Photo Gallery. Right-click on the folder and select Compress. This will create a .zip file which can be installed as described below:
745
+ Click "Upload & Install" button.
746
+ Click "Activate Plugin" button for activating the plugin.
747
+ If any problem occurs with installation of Photo Gallery, please let us know using ["Contact Us"](https://web-dorado.com/support/contact-us.html) form.
748
 
749
 
750