Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.4

Version Description

  • Changed: Comments and rates pages design.
  • Fixed: Translated alert messages.
Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.4

admin/views/BWGViewAlbums_bwg.php CHANGED
@@ -143,7 +143,7 @@ class BWGViewAlbums_bwg {
143
  if ($rows_data) {
144
  foreach ($rows_data as $row_data) {
145
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
146
- $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-blue');
147
  $published = (($row_data->published) ? 'unpublish' : 'publish');
148
  $unpublished = ((!$row_data->published) ? 'Unpublish' : 'Publish');
149
  if ($row_data->preview_image == '') {
143
  if ($rows_data) {
144
  foreach ($rows_data as $row_data) {
145
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
146
+ $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-red');
147
  $published = (($row_data->published) ? 'unpublish' : 'publish');
148
  $unpublished = ((!$row_data->published) ? 'Unpublish' : 'Publish');
149
  if ($row_data->preview_image == '') {
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -144,7 +144,7 @@ class BWGViewGalleries_bwg {
144
  if ($rows_data) {
145
  foreach ($rows_data as $row_data) {
146
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
147
- $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-blue');
148
  $published = (($row_data->published) ? 'unpublish' : 'publish');
149
  $unpublish = ((!$row_data->published) ? 'Unpublish' : 'Publish');
150
  $images_count = $this->model->get_images_count($row_data->id);
@@ -889,7 +889,7 @@ class BWGViewGalleries_bwg {
889
  $is_embed = preg_match('/EMBED/',$row_data->filetype)==1 ? true :false;
890
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
891
  $rows_tag_data = $this->model->get_tag_rows_data($row_data->id);
892
- $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-blue');
893
  $published = (($row_data->published) ? 'unpublish' : 'publish');
894
  $unpublish = ((!$row_data->published) ? 'Unpublish' : 'Publish');
895
  ?>
144
  if ($rows_data) {
145
  foreach ($rows_data as $row_data) {
146
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
147
+ $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-red');
148
  $published = (($row_data->published) ? 'unpublish' : 'publish');
149
  $unpublish = ((!$row_data->published) ? 'Unpublish' : 'Publish');
150
  $images_count = $this->model->get_images_count($row_data->id);
889
  $is_embed = preg_match('/EMBED/',$row_data->filetype)==1 ? true :false;
890
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
891
  $rows_tag_data = $this->model->get_tag_rows_data($row_data->id);
892
+ $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-red');
893
  $published = (($row_data->published) ? 'unpublish' : 'publish');
894
  $unpublish = ((!$row_data->published) ? 'Unpublish' : 'Publish');
895
  ?>
css/bwg_tables.css CHANGED
@@ -682,12 +682,6 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
682
  background-repeat: no-repeat;
683
  background-position: 10% 50%;
684
  }
685
- .wd-btn-publish{
686
- background-image:url(../images/icons/publish.png);
687
- }
688
- .wd-btn-unpublish{
689
- background-image:url(../images/icons/unpublish.png);
690
- }
691
  .wd-btn-delete{
692
  background-image:url(../images/icons/delete.png);
693
  }
682
  background-repeat: no-repeat;
683
  background-position: 10% 50%;
684
  }
 
 
 
 
 
 
685
  .wd-btn-delete{
686
  background-image:url(../images/icons/delete.png);
687
  }
images/icons/publish.png DELETED
Binary file
images/icons/unpublish-blue.png DELETED
Binary file
images/icons/unpublish-red.png ADDED
Binary file
images/icons/unpublish.png DELETED
Binary file
js/bwg.js CHANGED
@@ -2,7 +2,7 @@ function edit_tag(m) {
2
  var name, slug, tr;
3
  name = jQuery("#name" + m).html();
4
  slug = jQuery("#slug" + m).html();
5
- tr = ' <td id="td_check_'+m+'" ></td> <td id="td_id_'+m+'" ></td> <td id="td_name_'+m+'" class="edit_input"><input id="edit_tagname" name="tagname'+m+'" class="input_th2" type="text" value="'+name+'"></td> <td id="td_slug_'+m+'" class="edit_input"><input id="edit_slug" class="input_th2" name="slug'+m+'" type="text" value="'+slug+'"></td> <td id="td_count_'+m+'" ></td> <td id="td_edit_'+m+'" class="table_big_col"><a class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save button-small" onclick="save_tag('+m+')" >'+bwg_objectL10B.save_tag+' </a></td><td id="td_delete_'+m+'" class="table_big_col" ></td> ';
6
  jQuery("#tr_" + m).html(tr);
7
  jQuery("#td_id_" + m).attr('class', 'table_big_col');
8
  }
@@ -1023,13 +1023,13 @@ function bwg_change_gallery_type(type_to_set, warning_type) {
1023
  if(tr_count != 0){
1024
  switch(warning_type) {
1025
  case 'default':
1026
- var allowed = confirm("This action will reset gallery type to standard and will save that choice. You cannot undo it.");
1027
  break;
1028
  case 'change':
1029
- var allowed = confirm("After pressing save/apply buttons, you cannot change gallery type back to Instagram!");
1030
  break;
1031
  default:
1032
- var allowed = confirm("This action will reset gallery type to standard and will save that choice. You cannot undo it.");
1033
  }/*endof switch*/
1034
 
1035
  if (allowed == false) {
@@ -1168,7 +1168,7 @@ function bwg_get_embed_info(input_id) {
1168
  function bwg_bulk_actions(that, check) {
1169
  var action = jQuery(that).val();
1170
  if(action == 'delete_all') {
1171
- if(confirm('Do you want to delete selected items?')) {
1172
  spider_set_input_value('task',action);
1173
  if(check == "gallery_page") {
1174
  jQuery('#galleries_form').submit();
@@ -1200,7 +1200,7 @@ function bwg_bulk_actions(that, check) {
1200
  return false;
1201
  }
1202
  else if(action == 'image_delete_all') {
1203
- if(confirm('Do you want to delete selected items?')) {
1204
  spider_set_input_value('ajax_task',action);
1205
  spider_ajax_save('galleries_form');
1206
  return false;
2
  var name, slug, tr;
3
  name = jQuery("#name" + m).html();
4
  slug = jQuery("#slug" + m).html();
5
+ tr = ' <td id="td_check_'+m+'" ></td> <td id="td_id_'+m+'" ></td> <td id="td_name_'+m+'" class="edit_input"><input id="edit_tagname" name="tagname'+m+'" class="input_th2" type="text" value="'+name+'"></td> <td id="td_slug_'+m+'" class="edit_input"><input id="edit_slug" class="input_th2" name="slug'+m+'" type="text" value="'+slug+'"></td> <td id="td_count_'+m+'" ></td> <td id="td_edit_'+m+'" class="table_big_col"><a class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save button-small" title="'+ bwg_objectL10B.save_tag +'" onclick="save_tag('+m+')" >'+bwg_objectL10B.save_tag+' </a></td><td id="td_delete_'+m+'" class="table_big_col" ></td> ';
6
  jQuery("#tr_" + m).html(tr);
7
  jQuery("#td_id_" + m).attr('class', 'table_big_col');
8
  }
1023
  if(tr_count != 0){
1024
  switch(warning_type) {
1025
  case 'default':
1026
+ var allowed = confirm(bwg_objectL10B.default_warning);
1027
  break;
1028
  case 'change':
1029
+ var allowed = confirm(bwg_objectL10B.change_warning);
1030
  break;
1031
  default:
1032
+ var allowed = confirm(bwg_objectL10B.other_warning);
1033
  }/*endof switch*/
1034
 
1035
  if (allowed == false) {
1168
  function bwg_bulk_actions(that, check) {
1169
  var action = jQuery(that).val();
1170
  if(action == 'delete_all') {
1171
+ if (confirm(bwg_objectL10B.delete_alert)) {
1172
  spider_set_input_value('task',action);
1173
  if(check == "gallery_page") {
1174
  jQuery('#galleries_form').submit();
1200
  return false;
1201
  }
1202
  else if(action == 'image_delete_all') {
1203
+ if (confirm(bwg_objectL10B.delete_alert)) {
1204
  spider_set_input_value('ajax_task',action);
1205
  spider_ajax_save('galleries_form');
1206
  return false;
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.3.3
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -1923,7 +1923,7 @@ function bwg_activate() {
1923
  ));
1924
  }
1925
  $version = WD_BWG_VERSION;
1926
- $new_version = '1.3.3';
1927
  if ($version && version_compare($version, $new_version, '<')) {
1928
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1929
  bwg_update($version);
@@ -1975,7 +1975,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1975
 
1976
  function bwg_update_hook() {
1977
  $version = WD_BWG_VERSION;
1978
- $new_version = '1.3.3';
1979
  if ($version && version_compare($version, $new_version, '<')) {
1980
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1981
  bwg_update($version);
@@ -2037,6 +2037,10 @@ function bwg_scripts() {
2037
  'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
2038
  'reset' => __('Items Succesfully Reset.', 'bwg_back'),
2039
  'save_tag' => __('Save Tag', 'bwg_back'),
 
 
 
 
2040
  ));
2041
 
2042
  global $wp_scripts;
@@ -2156,6 +2160,31 @@ function bwg_options_scripts() {
2156
  }
2157
  wp_enqueue_script('jquery');
2158
  wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2159
  }
2160
 
2161
  function bwg_front_end_scripts() {
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.3.4
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
1923
  ));
1924
  }
1925
  $version = WD_BWG_VERSION;
1926
+ $new_version = '1.3.4';
1927
  if ($version && version_compare($version, $new_version, '<')) {
1928
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1929
  bwg_update($version);
1975
 
1976
  function bwg_update_hook() {
1977
  $version = WD_BWG_VERSION;
1978
+ $new_version = '1.3.4';
1979
  if ($version && version_compare($version, $new_version, '<')) {
1980
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1981
  bwg_update($version);
2037
  'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
2038
  'reset' => __('Items Succesfully Reset.', 'bwg_back'),
2039
  'save_tag' => __('Save Tag', 'bwg_back'),
2040
+ 'delete_alert' => __('Do you want to delete selected items?', 'bwg_back'),
2041
+ 'default_warning' => __('This action will reset gallery type to mixed and will save that choice. You cannot undo it.', 'bwg_back'),
2042
+ 'change_warning' => __('After pressing save/apply buttons, you cannot change gallery type back to Instagram!', 'bwg_back'),
2043
+ 'other_warning' => __('This action will reset gallery type to mixed and will save that choice. You cannot undo it.', 'bwg_back')
2044
  ));
2045
 
2046
  global $wp_scripts;
2160
  }
2161
  wp_enqueue_script('jquery');
2162
  wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
2163
+ wp_localize_script('bwg_admin', 'bwg_objectL10B', array(
2164
+ 'bwg_field_required' => __('field is required.', 'bwg_back'),
2165
+ 'bwg_select_image' => __('You must select an image file.', 'bwg_back'),
2166
+ 'bwg_select_audio' => __('You must select an audio file.', 'bwg_back'),
2167
+ 'bwg_access_token' => __('You do not have Instagram access token. Sign in with Instagram in Options->Social options. ', 'bwg_back'),
2168
+ 'bwg_post_number' => __('Instagram recent post number must be between 1 and 33.', 'bwg_back'),
2169
+ 'bwg_not_empty' => __('The gallery is not empty. Please delete all the images first.', 'bwg_back'),
2170
+ 'bwg_enter_url' => __('Please enter url to embed.', 'bwg_back'),
2171
+ 'bwg_cannot_response' => __('Error: cannot get response from the server.', 'bwg_back'),
2172
+ 'bwg_something_wrong' => __('Error: something wrong happened at the server.', 'bwg_back'),
2173
+ 'bwg_error' => __('Error', 'bwg_back'),
2174
+ 'bwg_show_order' => __('Show order column', 'bwg_back'),
2175
+ 'bwg_hide_order' => __('Hide order column', 'bwg_back'),
2176
+ 'selected' => __('Selected', 'bwg_back'),
2177
+ 'item' => __('item', 'bwg_back'),
2178
+ 'saved' => __('Items Succesfully Saved.', 'bwg_back'),
2179
+ 'recovered' => __('Item Succesfully Recovered.', 'bwg_back'),
2180
+ 'published' => __('Item Succesfully Published.', 'bwg_back'),
2181
+ 'unpublished' => __('Item Succesfully Unpublished.', 'bwg_back'),
2182
+ 'deleted' => __('Item Succesfully Deleted.', 'bwg_back'),
2183
+ 'one_item' => __('You must select at least one item.', 'bwg_back'),
2184
+ 'resized' => __('Items Succesfully resized.', 'bwg_back'),
2185
+ 'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
2186
+ 'reset' => __('Items Succesfully Reset.', 'bwg_back'),
2187
+ ));
2188
  }
2189
 
2190
  function bwg_front_end_scripts() {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Gallery ===
2
  Contributors: webdorado
3
  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, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, banner rotator, fullscreen gallery, responsive gallery, add gallery, add pictures, fotoalbum, foto, 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, 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.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -225,6 +225,10 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
 
228
  = 1.3.3 =
229
  * Added: Backend translation on Romanian (thanks to Mirel Cical).
230
  * Fixed: Interval for checking for updates.
1
  === Gallery ===
2
  Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
+ Tags: album, image gallery, gallery, image, images, lightbox, photo, photo gallery, photos, responsive, thumbnail, widget
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 1.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 1.3.4 =
229
+ * Changed: Comments and rates pages design.
230
+ * Fixed: Translated alert messages.
231
+
232
  = 1.3.3 =
233
  * Added: Backend translation on Romanian (thanks to Mirel Cical).
234
  * Fixed: Interval for checking for updates.