Photo Gallery by WD – Responsive Photo Gallery - Version 1.2.14

Version Description

  • shortcode issue fixed
Download this release

Release Info

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

Code changes from version 1.2.13 to 1.2.14

admin/models/BWGModelBWGShortcode.php CHANGED
@@ -25,6 +25,12 @@ class BWGModelBWGShortcode {
25
  return $shortcode;
26
  }
27
 
 
 
 
 
 
 
28
  public function get_gallery_rows_data() {
29
  global $wpdb;
30
  $query = "SELECT * FROM " . $wpdb->prefix . "bwg_gallery WHERE published=1 ORDER BY name";
25
  return $shortcode;
26
  }
27
 
28
+ public function get_shortcode_max_id() {
29
+ global $wpdb;
30
+ $max_id = $wpdb->get_var("SELECT MAX(id) FROM " . $wpdb->prefix . "bwg_shortcode");
31
+ return $max_id;
32
+ }
33
+
34
  public function get_gallery_rows_data() {
35
  global $wpdb;
36
  $query = "SELECT * FROM " . $wpdb->prefix . "bwg_gallery WHERE published=1 ORDER BY name";
admin/views/BWGViewBWGShortcode.php CHANGED
@@ -29,6 +29,7 @@ class BWGViewBWGShortcode {
29
  $theme_rows = $this->model->get_theme_rows_data();
30
  $from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
31
  $shortcodes = $this->model->get_shortcode_data();
 
32
  $effects = array(
33
  'none' => 'None',
34
  'cubeH' => 'Cube Horizontal',
@@ -1017,10 +1018,10 @@ class BWGViewBWGShortcode {
1017
  foreach ($shortcodes as $shortcode) {
1018
  ?>
1019
  shortcodes[<?php echo $shortcode->id; ?>] = '<?php echo $shortcode->tagtext; ?>';
1020
- shortcode_id = <?php echo $shortcode->id + 1; ?>;
1021
  <?php
1022
  }
1023
  ?>
 
1024
  window.onload = bwg_shortcode_load;
1025
  var params = get_params("Best_Wordpress_Gallery");
1026
  var bwg_insert = 1;
29
  $theme_rows = $this->model->get_theme_rows_data();
30
  $from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
31
  $shortcodes = $this->model->get_shortcode_data();
32
+ $shortcode_max_id = $this->model->get_shortcode_max_id();
33
  $effects = array(
34
  'none' => 'None',
35
  'cubeH' => 'Cube Horizontal',
1018
  foreach ($shortcodes as $shortcode) {
1019
  ?>
1020
  shortcodes[<?php echo $shortcode->id; ?>] = '<?php echo $shortcode->tagtext; ?>';
 
1021
  <?php
1022
  }
1023
  ?>
1024
+ shortcode_id = <?php echo $shortcode_max_id + 1; ?>;
1025
  window.onload = bwg_shortcode_load;
1026
  var params = get_params("Best_Wordpress_Gallery");
1027
  var bwg_insert = 1;
filemanager/view.php CHANGED
@@ -190,9 +190,9 @@ class FilemanagerView {
190
  <div id="explorer_body">
191
  <?php
192
  foreach ($file_manager_data['files'] as $file) {
193
- $file['name']=esc_html($file['name']);
194
- $file['filename']=esc_html($file['filename']);
195
- $file['thumb']=esc_html($file['thumb']);
196
  ?>
197
  <div class="explorer_item" draggable="true"
198
  name="<?php echo $file['name']; ?>"
@@ -277,9 +277,9 @@ class FilemanagerView {
277
  <div id="importer_body">
278
  <?php
279
  foreach ($file_manager_data['media_library_files'] as $file) {
280
- $file['name']=esc_html($file['name']);
281
- $file['filename']=esc_html($file['filename']);
282
- $file['thumb']=esc_html($file['thumb']);
283
  ?>
284
  <div class="importer_item" draggable="true"
285
  name="<?php echo $file['name']; ?>"
190
  <div id="explorer_body">
191
  <?php
192
  foreach ($file_manager_data['files'] as $file) {
193
+ $file['name'] = esc_html($file['name']);
194
+ $file['filename'] = esc_html($file['filename']);
195
+ $file['thumb'] = esc_html($file['thumb']);
196
  ?>
197
  <div class="explorer_item" draggable="true"
198
  name="<?php echo $file['name']; ?>"
277
  <div id="importer_body">
278
  <?php
279
  foreach ($file_manager_data['media_library_files'] as $file) {
280
+ $file['name'] = esc_html($file['name']);
281
+ $file['filename'] = esc_html($file['filename']);
282
+ $file['thumb'] = esc_html($file['thumb']);
283
  ?>
284
  <div class="importer_item" draggable="true"
285
  name="<?php echo $file['name']; ?>"
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.13
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -3036,7 +3036,7 @@ function bwg_activate() {
3036
  ));
3037
  }
3038
  $version = get_option("wd_bwg_version");
3039
- $new_version = '1.2.12';
3040
  if ($version && version_compare($version, $new_version, '<')) {
3041
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3042
  bwg_update($version);
@@ -3051,7 +3051,7 @@ register_activation_hook(__FILE__, 'bwg_activate');
3051
 
3052
  function bwg_update_hook() {
3053
  $version = get_option("wd_bwg_version");
3054
- $new_version = '1.2.12';
3055
  if ($version && version_compare($version, $new_version, '<')) {
3056
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3057
  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.14
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
3036
  ));
3037
  }
3038
  $version = get_option("wd_bwg_version");
3039
+ $new_version = '1.2.14';
3040
  if ($version && version_compare($version, $new_version, '<')) {
3041
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3042
  bwg_update($version);
3051
 
3052
  function bwg_update_hook() {
3053
  $version = get_option("wd_bwg_version");
3054
+ $new_version = '1.2.14';
3055
  if ($version && version_compare($version, $new_version, '<')) {
3056
  require_once WD_BWG_DIR . "/update/bwg_update.php";
3057
  bwg_update($version);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Photo Gallery ===
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.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -177,49 +177,76 @@ After downloading the ZIP file,
177
  5. Photo Gallery - Edit Global Options
178
  6. Photo Gallery - Edit Watermark
179
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  == Changelog ==
181
 
 
 
 
182
  = 1.2.13 =
183
- security issue fixed in filemanager
184
 
185
  = 1.2.12 =
186
- Front-end image sorting possibility (dropdown) for the users
187
 
188
  = 1.2.11 =
189
- security issue fixed
190
- bug in fullscreen button and laoding image animation fixed
191
 
192
  = 1.2.9 =
193
- updated font-awesome to 4.2.0 version
194
- sort bug in ligthbox
195
 
196
  = 1.2.8 =
197
- security issue fixed
198
 
199
  = 1.2.7 =
200
- masonry album view type
201
- single quota bug in image fixed
202
 
203
  = 1.2.6 =
204
- bug in new image save fixed
205
 
206
  = 1.2.5 =
207
- wrap around in lightbox
208
 
209
  = 1.2.4 =
210
- pagination input
211
 
212
  = 1.2.3 =
213
- play icon over the video thumbnail
214
 
215
  = 1.2.2 =
216
- add upload images with custom size
217
 
218
  = 1.2.1 =
219
- minor changes in shortcode generation code
220
 
221
  = 1.2.0 =
222
- change shortcodes
223
 
224
  = 1.1.30 =
225
  * images count in ligthbox (optional - only in options page)
1
  === Photo Gallery ===
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, responsive gallery
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
+ Stable tag: 1.2.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
177
  5. Photo Gallery - Edit Global Options
178
  6. Photo Gallery - Edit Watermark
179
 
180
+ == Frequently Asked Questions ==
181
+
182
+ = 1. How can I add images to the Photo Gallery? =
183
+ The images can be added to Photo Gallery using its standard Media Upload. The uploader can be used both for uploading individual images or multiple images (This should done by uploading a .zip archive file)
184
+
185
+ = 2. What is the difference between galleries and albums? =
186
+ The galleries are designed to contain images, whereas albums contain either galleries and/or other albums.
187
+
188
+ = 3. Can I add images using FTP? =
189
+ Unfortunately, there is no such option. During the upload the thumbnails of the images are being created, whereas when using FTP the thumbnails do not get generated. The image thumbnails are required for most of the views. Thus using Media Upload is the only option.
190
+
191
+ = 4. Can I add multiple galleries/albums for a single page/domain? =
192
+ Yes, you can add as many galleries/albums within a single post or domain as you wish. There are no limitations on these options.
193
+
194
+ = 5. Is it possible to translate Photo Gallery into another language? =
195
+ It is only possible to translate the front end of the plugin. To do so, you should set define('WPLANG','[lang_code]') to the desired language code in wp_config.php file of your website. This way the plugin should be translated automatically. Please be informed, that you can modify the translations from wp-content/plugins/photo_gallery/languages/ (you will need POEdit http://www.poedit.net/download.php). You can find the language codes for the Photo Gallery in Wordpress.org appropriate plugins' page.
196
+
197
+ = 6. Is the Photo Gallery responsive? =
198
+ Yes, the Photo Gallery is responsive and displays resized image for the mobile devices and tablets.
199
+
200
+ = 7. Is it possible to add advertising or watermark over the images with free version? =
201
+ Yes, it is possible to add advertising and/or watermark over the images. In both cases it can be only a single ad/watermark for all images.
202
+
203
+
204
  == Changelog ==
205
 
206
+ = 1.2.14 =
207
+ * shortcode issue fixed
208
+
209
  = 1.2.13 =
210
+ * security issue fixed in filemanager
211
 
212
  = 1.2.12 =
213
+ * Front-end image sorting possibility (dropdown) for the users
214
 
215
  = 1.2.11 =
216
+ * security issue fixed
217
+ * bug in fullscreen button and laoding image animation fixed
218
 
219
  = 1.2.9 =
220
+ * updated font-awesome to 4.2.0 version
221
+ * sort bug in ligthbox
222
 
223
  = 1.2.8 =
224
+ * security issue fixed
225
 
226
  = 1.2.7 =
227
+ * masonry album view type
228
+ * single quota bug in image fixed
229
 
230
  = 1.2.6 =
231
+ * bug in new image save fixed
232
 
233
  = 1.2.5 =
234
+ * wrap around in lightbox
235
 
236
  = 1.2.4 =
237
+ * pagination input
238
 
239
  = 1.2.3 =
240
+ * play icon over the video thumbnail
241
 
242
  = 1.2.2 =
243
+ * add upload images with custom size
244
 
245
  = 1.2.1 =
246
+ * minor changes in shortcode generation code
247
 
248
  = 1.2.0 =
249
+ * change shortcodes
250
 
251
  = 1.1.30 =
252
  * images count in ligthbox (optional - only in options page)