Photo Gallery by WD – Responsive Photo Gallery - Version 1.1.3

Version Description

Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -636,12 +636,14 @@ class BWGControllerGalleries_bwg {
636
  'name' => $name,
637
  'slug' => $slug,
638
  'description' => $description,
 
639
  'preview_image' => $preview_image,
640
  'random_preview_image' => $random_preview_image,
641
  'order' => ((int) $wpdb->get_var('SELECT MAX(`order`) FROM ' . $wpdb->prefix . 'bwg_gallery')) + 1,
642
  'author' => get_current_user_id(),
643
  'published' => $published,
644
  ), array(
 
645
  '%s',
646
  '%s',
647
  '%s',
636
  'name' => $name,
637
  'slug' => $slug,
638
  'description' => $description,
639
+ 'page_link' => '',
640
  'preview_image' => $preview_image,
641
  'random_preview_image' => $random_preview_image,
642
  'order' => ((int) $wpdb->get_var('SELECT MAX(`order`) FROM ' . $wpdb->prefix . 'bwg_gallery')) + 1,
643
  'author' => get_current_user_id(),
644
  'published' => $published,
645
  ), array(
646
+ '%s',
647
  '%s',
648
  '%s',
649
  '%s',
admin/views/BWGViewAddAlbumsGalleries.php CHANGED
@@ -36,7 +36,7 @@ class BWGViewAddAlbumsGalleries {
36
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="spider_audio_player_tables-css" rel="stylesheet">
37
  <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
38
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
39
- <form class="wrap" id="albums_galleries_form" method="post" action="<?php echo add_query_arg(array('action' => 'addAlbumsGalleries', 'width' => '700', 'height' => '550', 'callback' => 'bwg_add_items', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:95%; margin: 0 auto;">
40
  <h2 style="width:200px;float:left">Albums/Galleries</h2>
41
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Album/Gallery" onclick="spider_get_items(event);" style="float:right; padding: 9px 0px 4px 0">
42
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
36
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="spider_audio_player_tables-css" rel="stylesheet">
37
  <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
38
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
39
+ <form class="wrap wp-core-ui" id="albums_galleries_form" method="post" action="<?php echo add_query_arg(array('action' => 'addAlbumsGalleries', 'width' => '700', 'height' => '550', 'callback' => 'bwg_add_items', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:95%; margin: 0 auto;">
40
  <h2 style="width:200px;float:left">Albums/Galleries</h2>
41
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Album/Gallery" onclick="spider_get_items(event);" style="float:right; padding: 9px 0px 4px 0">
42
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
admin/views/BWGViewAddTags.php CHANGED
@@ -36,7 +36,7 @@ class BWGViewAddTags {
36
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="bwg_tables-css" rel="stylesheet">
37
  <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
38
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
39
- <form class="wrap" id="tags_form" method="post" action="<?php echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:95%; margin: 0 auto;">
40
  <h2 style="width:200px; float:left;">Tags</h2>
41
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php echo $image_id; ?>', event);" style="float:right; padding: 9px 0px 4px 0">
42
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
36
  <link media="all" type="text/css" href="<?php echo WD_BWG_URL . '/css/bwg_tables.css'; ?>" id="bwg_tables-css" rel="stylesheet">
37
  <script language="javascript" type="text/javascript" src="<?php echo get_option("siteurl"); ?>/wp-includes/js/jquery/jquery.js"></script>
38
  <script src="<?php echo WD_BWG_URL . '/js/bwg.js'; ?>" type="text/javascript"></script>
39
+ <form class="wrap wp-core-ui" id="tags_form" method="post" action="<?php echo add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" style="width:95%; margin: 0 auto;">
40
  <h2 style="width:200px; float:left;">Tags</h2>
41
  <a href="" class="thickbox thickbox-preview" id="content-add_media" title="Add Tag" onclick="bwg_get_tags('<?php echo $image_id; ?>', event);" style="float:right; padding: 9px 0px 4px 0">
42
  <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -152,6 +152,11 @@ class BWGViewGalleries_bwg {
152
  <img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image . '?date=' . date('Y-m-y H:i:s'); ?>">
153
  </td>
154
  <td><a onclick="spider_set_input_value('task', 'edit');
 
 
 
 
 
155
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
156
  spider_form_submit(event, 'galleries_form')" href="" title="Edit"><?php echo $row_data->name; ?></a></td>
157
  <td><?php echo $row_data->slug; ?></td>
@@ -159,6 +164,11 @@ class BWGViewGalleries_bwg {
159
  <td class="spider_order table_medium_col"><input id="order_input_<?php echo $row_data->id; ?>" name="order_input_<?php echo $row_data->id; ?>" type="text" size="1" value="<?php echo $row_data->order; ?>" /></td>
160
  <td class="table_big_col"><a onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'galleries_form')" href=""><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
161
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
 
 
 
 
 
162
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
163
  spider_form_submit(event, 'galleries_form')" href="">Edit</a></td>
164
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'delete');
152
  <img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image . '?date=' . date('Y-m-y H:i:s'); ?>">
153
  </td>
154
  <td><a onclick="spider_set_input_value('task', 'edit');
155
+ spider_set_input_value('page_number', '1');
156
+ spider_set_input_value('search_value', '');
157
+ spider_set_input_value('search_or_not', '');
158
+ spider_set_input_value('asc_or_desc', 'asc');
159
+ spider_set_input_value('order_by', 'order');
160
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
161
  spider_form_submit(event, 'galleries_form')" href="" title="Edit"><?php echo $row_data->name; ?></a></td>
162
  <td><?php echo $row_data->slug; ?></td>
164
  <td class="spider_order table_medium_col"><input id="order_input_<?php echo $row_data->id; ?>" name="order_input_<?php echo $row_data->id; ?>" type="text" size="1" value="<?php echo $row_data->order; ?>" /></td>
165
  <td class="table_big_col"><a onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'galleries_form')" href=""><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
166
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
167
+ spider_set_input_value('page_number', '1');
168
+ spider_set_input_value('search_value', '');
169
+ spider_set_input_value('search_or_not', '');
170
+ spider_set_input_value('asc_or_desc', 'asc');
171
+ spider_set_input_value('order_by', 'order');
172
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
173
  spider_form_submit(event, 'galleries_form')" href="">Edit</a></td>
174
  <td class="table_big_col"><a onclick="spider_set_input_value('task', 'delete');
css/bwg_tables.css CHANGED
@@ -459,3 +459,8 @@
459
  height: 30px;
460
 
461
  }
 
 
 
 
 
459
  height: 30px;
460
 
461
  }
462
+
463
+ .spider_search_value {
464
+ height: 2em;
465
+ margin: 0 0 4px;
466
+ }
filemanager/js/default.js CHANGED
@@ -302,7 +302,7 @@ function onDateModifiedHeaderClick(event, obj) {
302
  function onKeyDown(e) {
303
  var e = e || window.event;
304
  var chCode1 = e.which || e.paramlist_keyCode;
305
- if (e.ctrlKey && chCode1 == 65) {
306
  jQuery(".explorer_item").addClass("explorer_item_select");
307
  filesSelected = [];
308
  jQuery(".explorer_item").each(function() {
@@ -327,7 +327,7 @@ function onFileMOut(event, obj) {
327
  function onFileClick(event, obj) {
328
  jQuery(".explorer_item").removeClass("explorer_item_select");
329
  var objName = jQuery(obj).attr("name");
330
- if (event.ctrlKey == true) {
331
  if (filesSelected.indexOf(objName) == -1) {
332
  filesSelected.push(objName);
333
  keyFileSelected = obj;
@@ -374,7 +374,7 @@ function onFileDragStart(event, obj) {
374
  var objName = jQuery(obj).attr("name");
375
  if (filesSelected.indexOf(objName) < 0) {
376
  jQuery(".explorer_item").removeClass("explorer_item_select");
377
- if (event.ctrlKey == true) {
378
  if (filesSelected.indexOf(objName) == -1) {
379
  filesSelected.push(objName);
380
  keyFileSelected = obj;
@@ -414,7 +414,7 @@ function onFileDrop(event, obj) {
414
  if ((dragFiles.length == 0) || (dragFiles.indexOf(destDirName) >= 0)) {
415
  return false;
416
  }
417
- var clipboardTask = event.ctrlKey == true ? "copy" : "cut";
418
  var clipboardDest = dir + DS + destDirName;
419
  submit("paste_items", null, null, null, null, null, null, clipboardTask, dragFiles.join(","), dir, clipboardDest);
420
  event.preventDefault();
302
  function onKeyDown(e) {
303
  var e = e || window.event;
304
  var chCode1 = e.which || e.paramlist_keyCode;
305
+ if ((e.ctrlKey || e.metaKey) && chCode1 == 65) {
306
  jQuery(".explorer_item").addClass("explorer_item_select");
307
  filesSelected = [];
308
  jQuery(".explorer_item").each(function() {
327
  function onFileClick(event, obj) {
328
  jQuery(".explorer_item").removeClass("explorer_item_select");
329
  var objName = jQuery(obj).attr("name");
330
+ if (event.ctrlKey == true || event.metaKey == true) {
331
  if (filesSelected.indexOf(objName) == -1) {
332
  filesSelected.push(objName);
333
  keyFileSelected = obj;
374
  var objName = jQuery(obj).attr("name");
375
  if (filesSelected.indexOf(objName) < 0) {
376
  jQuery(".explorer_item").removeClass("explorer_item_select");
377
+ if (event.ctrlKey == true || event.metaKey == true) {
378
  if (filesSelected.indexOf(objName) == -1) {
379
  filesSelected.push(objName);
380
  keyFileSelected = obj;
414
  if ((dragFiles.length == 0) || (dragFiles.indexOf(destDirName) >= 0)) {
415
  return false;
416
  }
417
+ var clipboardTask = (event.ctrlKey == true || event.metaKey == true) ? "copy" : "cut";
418
  var clipboardDest = dir + DS + destDirName;
419
  submit("paste_items", null, null, null, null, null, null, clipboardTask, dragFiles.join(","), dir, clipboardDest);
420
  event.preventDefault();
framework/WDWLibrary.php CHANGED
@@ -61,7 +61,7 @@ class WDWLibrary {
61
  </script>
62
  <div class="alignleft actions" style="">
63
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
64
- <input type="text" id="search_value" name="search_value" value="<?php echo esc_html($search_value); ?>" style="width:150px;" />
65
  </div>
66
  <div class="alignleft actions">
67
  <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
@@ -208,7 +208,7 @@ class WDWLibrary {
208
  </script>
209
  <div class="alignleft actions" style="">
210
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
211
- <input type="text" id="search_value" name="search_value" value="<?php echo esc_html($search_value); ?>" style="width:150px;" />
212
  </div>
213
  <div class="alignleft actions">
214
  <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
61
  </script>
62
  <div class="alignleft actions" style="">
63
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
64
+ <input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width:150px;" />
65
  </div>
66
  <div class="alignleft actions">
67
  <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
208
  </script>
209
  <div class="alignleft actions" style="">
210
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
211
+ <input type="text" id="search_value" name="search_value" class="spider_search_value" value="<?php echo esc_html($search_value); ?>" style="width:150px;" />
212
  </div>
213
  <div class="alignleft actions">
214
  <input type="button" value="Search" onclick="spider_search()" class="button-secondary action">
frontend/views/BWGViewSlideshow.php CHANGED
@@ -1159,8 +1159,9 @@ class BWGViewSlideshow {
1159
  jQuery(".bwg_slideshow_image_container_<?php echo $bwg; ?>").css({height: (<?php echo $image_height - $slideshow_filmstrip_height; ?>)});
1160
 
1161
  jQuery(".bwg_slideshow_image_<?php echo $bwg; ?>").css({
1162
- maxWidth: <?php echo $image_width; ?>,
1163
- maxHeight: <?php echo $image_height - $slideshow_filmstrip_height; ?>
 
1164
  });
1165
  // Set watermark container size.
1166
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1159
  jQuery(".bwg_slideshow_image_container_<?php echo $bwg; ?>").css({height: (<?php echo $image_height - $slideshow_filmstrip_height; ?>)});
1160
 
1161
  jQuery(".bwg_slideshow_image_<?php echo $bwg; ?>").css({
1162
+ /*maxWidth: <?php echo $image_width; ?>,
1163
+ maxHeight: <?php echo $image_height - $slideshow_filmstrip_height; ?>*/
1164
+ cssText: "max-width: <?php echo $image_width; ?>px !important; max-height: <?php echo $image_height - $slideshow_filmstrip_height; ?>px !important;"
1165
  });
1166
  // Set watermark container size.
1167
  bwg_change_watermark_container_<?php echo $bwg; ?>();
js/bwg_shortcode.js CHANGED
@@ -319,7 +319,7 @@ function bwg_onKeyDown(e) {
319
  var e = e || window.event;
320
  var chCode1 = e.which || e.paramlist_keyCode;
321
  if (chCode1 != 37 && chCode1 != 38 && chCode1 != 39 && chCode1 != 40) {
322
- if (!e.ctrlKey || (chCode1 != 86 && chCode1 != 67 && chCode1 != 65 && chCode1 != 88)) {
323
  e.preventDefault();
324
  }
325
  }
319
  var e = e || window.event;
320
  var chCode1 = e.which || e.paramlist_keyCode;
321
  if (chCode1 != 37 && chCode1 != 38 && chCode1 != 39 && chCode1 != 40) {
322
+ if ((!e.ctrlKey && !e.metaKey) || (chCode1 != 86 && chCode1 != 67 && chCode1 != 65 && chCode1 != 88)) {
323
  e.preventDefault();
324
  }
325
  }
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.1.2
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -2388,7 +2388,7 @@ function bwg_activate() {
2388
  ));
2389
  }
2390
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2391
- $new_version = 112;
2392
  if ($version && $version < $new_version) {
2393
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2394
  for ($i = $version; $i < $new_version; $i++) {
@@ -2397,10 +2397,10 @@ function bwg_activate() {
2397
  $func_name();
2398
  }
2399
  }
2400
- update_option("wd_bwg_version", '1.1.2');
2401
  }
2402
  else {
2403
- add_option("wd_bwg_version", '1.1.2', '', 'no');
2404
  add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
2405
  }
2406
  }
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.1.3
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
2388
  ));
2389
  }
2390
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2391
+ $new_version = 113;
2392
  if ($version && $version < $new_version) {
2393
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2394
  for ($i = $version; $i < $new_version; $i++) {
2397
  $func_name();
2398
  }
2399
  }
2400
+ update_option("wd_bwg_version", '1.1.3');
2401
  }
2402
  else {
2403
+ add_option("wd_bwg_version", '1.1.3', '', 'no');
2404
  add_option("wd_bwg_theme_version", '1.0.0', '', 'no');
2405
  }
2406
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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: 3.8.1
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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: 3.8.1
7
+ Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10