Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.6

Version Description

  • Added: Bulk edit images title, description and redirect url.
Download this release

Release Info

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

Code changes from version 1.3.5 to 1.3.6

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -614,6 +614,15 @@ class BWGControllerGalleries_bwg {
614
  $gal_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
615
  $image_ids = (isset($_POST['ids_string']) ? esc_html(stripslashes($_POST['ids_string'])) : '');
616
  $image_id_array = explode(',', $image_ids);
 
 
 
 
 
 
 
 
 
617
  foreach ($image_id_array as $image_id) {
618
  if ($image_id) {
619
  $filename = ((isset($_POST['input_filename_' . $image_id])) ? esc_html(stripslashes($_POST['input_filename_' . $image_id])) : '');
614
  $gal_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : 0);
615
  $image_ids = (isset($_POST['ids_string']) ? esc_html(stripslashes($_POST['ids_string'])) : '');
616
  $image_id_array = explode(',', $image_ids);
617
+ if (isset($_POST['check_all_items']) && isset($_POST['bulk_edit']) && $_POST['bulk_edit'] == 1) {
618
+ $title = ((isset($_POST['title'])) ? esc_html(stripslashes($_POST['title'])) : '');
619
+ $desc = ((isset($_POST['desc'])) ? esc_html(stripslashes($_POST['desc'])) : '');
620
+ $redirecturl = ((isset($_POST['redirecturl'])) ? esc_html(stripslashes($_POST['redirecturl'])) : '');
621
+ $wpdb->update($wpdb->prefix . 'bwg_image', array(
622
+ 'description' => $desc,
623
+ 'alt' => $title,
624
+ 'redirect_url' => $redirecturl), array('gallery_id' => $gal_id));
625
+ }
626
  foreach ($image_id_array as $image_id) {
627
  if ($image_id) {
628
  $filename = ((isset($_POST['input_filename_' . $image_id])) ? esc_html(stripslashes($_POST['input_filename_' . $image_id])) : '');
admin/views/BWGViewEditThumb.php CHANGED
@@ -31,16 +31,18 @@ class BWGViewEditThumb {
31
 
32
  $instagram_post_width = ((int) (isset($_GET['instagram_post_width']) ? esc_html($_GET['instagram_post_width']) : $image_width));
33
  $instagram_post_height = ((int) (isset($_GET['instagram_post_height']) ? esc_html($_GET['instagram_post_height']) : $image_height));
34
-
35
- if ($image_height / ($instagram_post_height + 96) < $image_width / $instagram_post_width) {
36
- $instagram_post_width = ($image_height - 96) * $instagram_post_width / $instagram_post_height + 16;
37
- $instagram_post_height = $image_height;
38
- }
39
- else {
40
- $instagram_post_height = ($image_width - 16) * $instagram_post_height / $instagram_post_width + 16;
41
- $instagram_post_width = $image_width;
 
 
42
  }
43
-
44
  $image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0');
45
  ?>
46
  <div style="display:table; width:100%; height:<?php echo $popup_height; ?>px;">
31
 
32
  $instagram_post_width = ((int) (isset($_GET['instagram_post_width']) ? esc_html($_GET['instagram_post_width']) : $image_width));
33
  $instagram_post_height = ((int) (isset($_GET['instagram_post_height']) ? esc_html($_GET['instagram_post_height']) : $image_height));
34
+
35
+ if ($instagram_post_width) {
36
+ if ($image_height / ($instagram_post_height + 96) < $image_width / $instagram_post_width) {
37
+ $instagram_post_width = ($image_height - 96) * $instagram_post_width / $instagram_post_height + 16;
38
+ $instagram_post_height = $image_height;
39
+ }
40
+ else {
41
+ $instagram_post_height = ($image_width - 16) * $instagram_post_height / $instagram_post_width + 16;
42
+ $instagram_post_width = $image_width;
43
+ }
44
  }
45
+
46
  $image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : '0');
47
  ?>
48
  <div style="display:table; width:100%; height:<?php echo $popup_height; ?>px;">
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -67,7 +67,7 @@ class BWGViewGalleries_bwg {
67
  <span style="vertical-align: middle;"><?php echo __('Select All', 'bwg_back'); ?></span>
68
  </span>
69
  <select class='select_icon bulk_action'>
70
- <option value=""><?php echo __("Bulk Actions"); ?></option>
71
  <?php
72
  foreach($gallery_button_array as $key => $value) {
73
  ?>
@@ -78,8 +78,8 @@ class BWGViewGalleries_bwg {
78
  }
79
  ?>
80
  </select>
81
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php echo __("Apply","bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action', 'gallery_page')) {return false;}" value="<?php echo __("Apply","bwg_back"); ?>" />
82
- <?php WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page); ?>
83
  </div>
84
  <table class="wp-list-table widefat fixed pages">
85
  <thead>
@@ -303,7 +303,6 @@ class BWGViewGalleries_bwg {
303
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'editThumb', 'bwg_nonce' );
304
  ?>
305
  a_thumb.setAttribute('href', "<?php echo add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'width' => '650', 'height' => '500'), $query_url); ?>&image_id=" + bwg_j + "&TB_iframe=1");
306
-
307
  a_thumb.setAttribute('title', files[i]['name']);
308
  td_thumb.appendChild(a_thumb);
309
  var img_thumb = document.createElement('img');
@@ -363,7 +362,7 @@ class BWGViewGalleries_bwg {
363
  var a_crop = document.createElement('a');
364
  a_crop.setAttribute('class', "thickbox thickbox-preview");
365
  a_crop.setAttribute('onclick', "spider_set_href(this, '" + bwg_j + "', 'crop');");
366
- a_crop.innerHTML = "<?php _e("Crop", 'bwg_back'); ?>";
367
  span_edit_crop.appendChild(a_crop);
368
  div_edit.innerHTML += " | ";
369
  var span_edit_rotate = document.createElement('span');
@@ -372,7 +371,7 @@ class BWGViewGalleries_bwg {
372
  var a_rotate = document.createElement('a');
373
  a_rotate.setAttribute('class', "thickbox thickbox-preview");
374
  a_rotate.setAttribute('onclick', "spider_set_href(this, '" + bwg_j + "', 'rotate');");
375
- a_rotate.innerHTML = "<?php _e("Edit", 'bwg_back'); ?>";
376
  span_edit_rotate.appendChild(a_rotate);
377
  div_edit.innerHTML += " | "
378
  var span_edit_recover = document.createElement('span');
@@ -380,7 +379,7 @@ class BWGViewGalleries_bwg {
380
  div_edit.appendChild(span_edit_recover);
381
  var a_recover = document.createElement('a');
382
  a_recover.setAttribute('onclick', 'if (confirm("<?php echo addslashes(__("Do you want to reset the image?", 'bwg_back')); ?>")) { spider_set_input_value("ajax_task", "recover"); spider_set_input_value("image_current_id", "' + bwg_j + '"); spider_ajax_save("galleries_form");} return false;');
383
- a_recover.innerHTML = "<?php _e("Reset", 'bwg_back'); ?>";
384
  span_edit_recover.appendChild(a_recover);
385
  }
386
  var input_image_url = document.createElement('input');
@@ -480,6 +479,7 @@ class BWGViewGalleries_bwg {
480
  tr.appendChild(td_tag);
481
  var a_tag = document.createElement('a');
482
  a_tag.setAttribute('class', "button-small wd-btn wd-btn-primary wd-not-image thickbox thickbox-preview");
 
483
  <?php
484
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
485
  ?>
@@ -706,9 +706,9 @@ class BWGViewGalleries_bwg {
706
  $page_number = (isset($_POST['page_number']) ? esc_html(stripslashes($_POST['page_number'])) : 1);
707
  $ids_string = '';
708
  $per_page = $this->model->per_page();
 
709
  $gallery_row = $this->model->get_row_data($id);
710
  $gallery_type = ($gallery_row->gallery_type == 'instagram' || $gallery_row->gallery_type == 'instagram_post') ? 'instagram' : '';
711
- $pager = 0;
712
  $image_array = array(
713
  'image_set_watermark' => __('Set Watermark', 'bwg_back'),
714
  'image_get_resize' => __('Resize', 'bwg_back'),
@@ -716,74 +716,72 @@ class BWGViewGalleries_bwg {
716
  'image_recover_all' => __('Reset', 'bwg_back'),
717
  'image_publish_all' => __('Publish', 'bwg_back'),
718
  'image_unpublish_all' => __('Unpublish', 'bwg_back'),
719
- 'image_delete_all' => __('Delete', 'bwg_back')
 
720
  );
721
  ?>
722
- <!--<div id="draganddrop" class="wd_updated" style="display:none;"><strong><p><?php _e("Changes made in this table should be saved.", 'bwg_back'); ?></p></strong></div>-->
723
- <div class="buttons_div_left">
724
- <?php
725
  $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'bwg_add_image'), admin_url('admin-ajax.php'));
726
- $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
727
- $query_url = add_query_arg(array( 'TB_iframe' => '1'), $query_url);
728
- ?>
729
- <a href="<?php echo $query_url; ?>" id="add_image_bwg" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview" id="content-add_media" title="<?php _e("Add Images", 'bwg_back'); ?>" onclick="return false;" style="margin-bottom:5px; <?php if($gallery_type !='') {echo 'display:none';} ?>" >
730
- <?php _e("Add Images", 'bwg_back'); ?>
731
- </a>
732
- <?php
733
- $query_url = wp_nonce_url( admin_url('admin-ajax.php'), '', 'bwg_nonce' );
734
- /*(re?)define ajax_url to add nonce only in admin*/
735
- ?>
736
- <script>
737
- var ajax_url = "<?php echo $query_url; ?>"
738
- </script>
739
  <input id="show_add_embed" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-media" type="button" title="<?php _e("Embed Media", 'bwg_back'); ?>" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e("Embed Media", 'bwg_back'); ?>" />
740
  <input id="show_bulk_embed" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-bulk_media spider_free_version_button" type="button" title="<?php _e("Social Bulk Embed", 'bwg_back'); ?>" onclick="jQuery('.opacity_bulk_embed').show(); return false;" value="<?php _e("Social Bulk Embed", 'bwg_back'); ?>" />
741
- <?php WDWLibrary::ajax_search(__("Filename", 'bwg_back'), $search_value, 'galleries_form');?>
742
- </div>
743
  <div class="tablenav top buttons_div_left bwg_buttons_div">
744
- <span class="wd-btn wd-btn-primary-gray bwg_check_all non_selectable " onclick="spider_check_all_items()">
745
- <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
746
- <span style="vertical-align: middle;"><?php echo __('Select All', 'bwg_back'); ?></span>
747
- </span>
748
- <select class='select_icon bulk_action_img' <?php if($gallery_type !='') {echo 'display:none';} ?>" >
749
- <option value=""><?php echo __("Bulk Actions"); ?></option>
750
  <?php
751
- foreach($image_array as $key => $value) {
752
- ?>
753
- <option value="<?php echo $key;?>">
754
- <?php echo $value;?>
755
- </option>
756
- <?php
757
  }
758
  ?>
759
- </select>
760
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php echo __("Apply","bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action_img', '')) {return false;}" value="<?php echo __("Apply","bwg_back"); ?>" />
761
- <?php WDWLibrary::ajax_html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form', $per_page, $pager++); ?>
762
- </div>
763
- <div class="opacity_resize_image opacity_add_embed opacity_bulk_embed bwg_opacity_media" onclick="jQuery('.opacity_add_embed').hide(); jQuery('.opacity_bulk_embed').hide(); jQuery('.opacity_resize_image').hide();"></div>
764
  <div id="add_embed" class="opacity_add_embed bwg_add_embed">
765
  <input type="text" id="embed_url" name="embed_url" value="" />
766
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e("Add to gallery", 'bwg_back'); ?>" />
767
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" />
768
  <div class="spider_description">
769
- <p><?php _e("Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here.", 'bwg_back'); ?> <a onclick="jQuery('#add_embed_help').show();" style='text-decoration: underline; color:blue; cursor: pointer;'><?php _e("Help", 'bwg_back'); ?></a></p>
770
  </div>
771
- <div id='add_embed_help' class= "opacity_add_embed bwg_add_embed" style="display:none;">
772
- <p style="text-align:right; margin-top:0px;"><a onclick="jQuery('#add_embed_help').hide();" style="text-decoration: underline; color:blue; cursor: pointer; "><?php _e("Close", 'bwg_back'); ?></a></p>
773
- <p><b>Youtube</b> URL <?php _e("example:", 'bwg_back'); ?> <i style="">https://www.youtube.com/watch?v=fa4RLjE-yM8</i></p>
774
- <p><b>Vimeo</b> URL <?php _e("example:", 'bwg_back'); ?> <i style="">http://vimeo.com/8110647</i></p>
775
- <p><b>Instagram</b> URL <?php _e("example:", 'bwg_back'); ?> <i style="">http://instagram.com/p/ykvv0puS4u</i>. <?php _e("Add", 'bwg_back'); ?> "<i style="text-decoration:underline;"><?php _e("post", 'bwg_back'); ?></i>" <?php _e("to the end of URL if you want to embed the whole Instagram post, not only its content.", 'bwg_back'); ?></p>
776
- <p><b>Flickr</b> URL <?php _e("example:", 'bwg_back'); ?> <i style="">https://www.flickr.com/photos/sui-fong/15250186998/in/gallery-flickr-72157648726328108/</i></p>
777
- <p><b>Dailymotion</b> URL <?php _e("example:", 'bwg_back'); ?> <i style="">http://www.dailymotion.com/video/xexaq0_frank-sinatra-strangers-in-the-nigh_music</i></p>
778
  </div>
779
  </div>
780
  <div id="bulk_embed" class="opacity_bulk_embed bwg_bulk_embed">
781
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_bulk_embed').hide(); jQuery('#opacity_div').hide(); jQuery('#loading_div').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" style="float:right; margin-left:5px;"/>
782
- <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add spider_free_version_button" type="button" value="<?php _e("Add to gallery", 'bwg_back'); ?>" style="float:right; margin-left:5px;"/>
783
  <div class="spider_description"></div>
784
- <table class="spider_free_version ">
785
- <thead>
786
- <tr>
787
  <td class="spider_label_galleries"><label for="bulk_embed_from" class="spider_free_version_label_color"><?php _e("Bulk embed from:", 'bwg_back'); ?> </label></td>
788
  <td>
789
  <input type="radio" disabled="disabled" class="inputbox" id="bulk_embed_from_instagram" onclick="jQuery('#instagram_bulk_params').show();" checked="checked" value="<?php _e("instagram", 'bwg_back'); ?>" >
@@ -808,26 +806,50 @@ class BWGViewGalleries_bwg {
808
  <input type="radio" disabled="disabled" class="inputbox" id="popup_instagram_post_gallery_1" value="1" >
809
  <label for="popup_instagram_post_gallery_1" class="spider_free_version_label_color"><?php _e("Whole post", 'bwg_back'); ?></label>
810
  </td>
811
- <tr>
812
- </tbody>
813
  </table>
814
  </div>
815
- <div id="" class="opacity_resize_image bwg_resize_image">
816
  <?php _e("Resize images to: ", 'bwg_back'); ?>
817
  <input type="text" name="image_width" id="image_width" value="1600" /> x
818
  <input type="text" name="image_height" id="image_height" value="1200" /> px
819
  <input class="wd-btn wd-btn-primary wd-not-image" type="button" onclick="spider_set_input_value('ajax_task', 'image_resize');
820
- spider_ajax_save('galleries_form');
821
- jQuery('.opacity_resize_image').hide();
822
- return false;" value="<?php _e("Resize", 'bwg_back'); ?>" />
823
  <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_resize_image').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" />
824
  <div class="spider_description"><?php _e("The maximum size of resized image.", 'bwg_back'); ?></div>
825
  </div>
826
- <div id="draganddrop" class="wd_updated" style="display:none;"><strong><p><?php echo __('Changes made in this table should be saved.', 'bwg_back'); ?></p></strong></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
827
  <table id="images_table" class="wp-list-table widefat fixed pages">
828
  <thead>
829
  <th class="check-column table_small_col table_medium_col manage-column column-title sorted asc" style="margin: 0px auto 0px 15px; width: 60px; vertical-align: middle;">
830
- <a id="show_hide_weights" class="bwg_order_column" title="<?php echo __('Hide order column', 'bwg_back'); ?>" onclick="spider_show_hide_weights();return false;" value="<?php echo __('Hide order column', 'bwg_back'); ?>"></a>
831
  <a id="th_order" onclick="spider_set_input_value('task', '');
832
  spider_set_input_value('image_order_by', 'order');
833
  spider_set_input_value('image_asc_or_desc', 'desc');
@@ -839,13 +861,13 @@ class BWGViewGalleries_bwg {
839
 
840
  </th>
841
  <th class="table_small_col">#</th>
842
- <th class="table_extra_large_col"><?php echo __('Thumbnail', 'bwg_back'); ?></th>
843
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'filename') {echo $order_class;} ?>">
844
  <a onclick="spider_set_input_value('task', '');
845
  spider_set_input_value('image_order_by', 'filename');
846
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'filename' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
847
  spider_ajax_save('galleries_form');">
848
- <span><?php echo __('Filename', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
849
  </a>
850
  </th>
851
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'alt') {echo $order_class;} ?>">
@@ -853,7 +875,7 @@ class BWGViewGalleries_bwg {
853
  spider_set_input_value('image_order_by', 'alt');
854
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'alt' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
855
  spider_ajax_save('galleries_form');">
856
- <span><?php echo __('Alt/Title', 'bwg_back'); ?><?php if ($option_row->thumb_click_action != 'open_lightbox') { ?><br /><?php echo __('Redirect', 'bwg_back'); ?> URL<?php } ?></span><span class="sorting-indicator"></span>
857
  </a>
858
  </th>
859
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'description') {echo $order_class;} ?>">
@@ -861,7 +883,7 @@ class BWGViewGalleries_bwg {
861
  spider_set_input_value('image_order_by', 'description');
862
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'description' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
863
  spider_ajax_save('galleries_form');">
864
- <span><?php echo __('Description', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
865
  </a>
866
  </th>
867
  <?php
@@ -876,7 +898,7 @@ class BWGViewGalleries_bwg {
876
  spider_set_input_value('image_order_by', 'published');
877
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'published' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
878
  spider_ajax_save('galleries_form');">
879
- <span><?php echo __('Published', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
880
  </a>
881
  </th>
882
  <th class="table_small_col"><?php echo __('Delete', 'bwg_back'); ?></th>
@@ -899,7 +921,7 @@ class BWGViewGalleries_bwg {
899
  <td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
900
  <td class="table_small_col"><?php echo ++$i; ?></td>
901
  <td class="table_extra_large_col">
902
- <?php
903
  $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $row_data->filetype) == 1 ? true :false;
904
  $instagram_post_width = 0;
905
  $instagram_post_height = 0;
@@ -911,12 +933,11 @@ class BWGViewGalleries_bwg {
911
  $instagram_post_height = $instagram_post_height[0];
912
  }
913
  }
914
-
915
- $query_url = add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'image_id' => $row_data->id, 'width' => '800', 'height' => '500', 'instagram_post_width' => $instagram_post_width, 'instagram_post_height' => $instagram_post_height), admin_url('admin-ajax.php'));
916
- $query_url = wp_nonce_url( $query_url, 'editThumb', 'bwg_nonce' );
917
- $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
918
  $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$row_data->filetype) == 1 ? true : false;
919
- ?>
920
  <a class="thickbox thickbox-preview" title="<?php echo $row_data->alt; ?>" href="<?php echo $query_url; ?>">
921
  <img id="image_thumb_<?php echo $row_data->id; ?>" class="thumb" src="<?php echo (!$is_embed ? site_url() . '/' . $WD_BWG_UPLOAD_DIR : "") . $row_data->thumb_url . ($is_embed ? '' : '?date=' . date('Y-m-y H:i:s')); ?>" />
922
  </a>
@@ -930,7 +951,7 @@ class BWGViewGalleries_bwg {
930
  <div class="fileDescription" title="<?php _e("Image size", 'bwg_back'); ?>" id="filesize_<?php echo $row_data->id; ?>"><?php echo $row_data->size; ?></div>
931
  <div class="fileDescription" title="<?php _e("Type", 'bwg_back'); ?>" id="filetype_<?php echo $row_data->id; ?>"><?php echo $row_data->filetype; ?></div>
932
  <?php
933
- if (!$is_embed) {
934
  ?>
935
  <div>
936
  <?php
@@ -945,12 +966,12 @@ class BWGViewGalleries_bwg {
945
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
946
  ?>
947
  <span class="edit_thumb"><a class="thickbox thickbox-preview" href="<?php echo $query_url; ?>"><?php _e("Edit", 'bwg_back'); ?></a></span> |
948
- <span class="edit_thumb"><a onclick="if (confirm('<?php echo addslashes(__("Do you want to reset the image?", 'bwg_back')); ?>')) {
949
  spider_set_input_value('ajax_task', 'recover');
950
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
951
  spider_ajax_save('galleries_form');
952
  }
953
- return false;"><?php _e("Reset", 'bwg_back'); ?></a></span>
954
  </div>
955
  <?php } ?>
956
  <input type="hidden" id="image_url_<?php echo $row_data->id; ?>" name="image_url_<?php echo $row_data->id; ?>" value="<?php echo $row_data->image_url; ?>" />
@@ -975,7 +996,7 @@ class BWGViewGalleries_bwg {
975
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
976
  $query_url = add_query_arg(array('action' => 'addTags', 'image_id' => $row_data->id, 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page, 'TB_iframe' => '1'), $query_url);
977
  ?>
978
- <a href="<?php echo $query_url; ?>" class="button-small wd-btn wd-btn-primary wd-not-image thickbox thickbox-preview"><?php _e("Add tag", 'bwg_back'); ?></a>
979
  <div class="tags_div" id="tags_div_<?php echo $row_data->id; ?>">
980
  <?php
981
  $tags_id_string = '';
@@ -1017,6 +1038,7 @@ class BWGViewGalleries_bwg {
1017
  <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1018
  <input id="image_current_id" name="image_current_id" type="hidden" value="" />
1019
  <input id="added_tags_select_all" name="added_tags_select_all" type="hidden" value="" />
 
1020
  </tbody>
1021
  </table>
1022
  <div class="tablenav bottom">
@@ -1029,7 +1051,7 @@ class BWGViewGalleries_bwg {
1029
  </script>
1030
  <?php
1031
  }
1032
-
1033
  ////////////////////////////////////////////////////////////////////////////////////////
1034
  // Getters & Setters //
1035
  ////////////////////////////////////////////////////////////////////////////////////////
67
  <span style="vertical-align: middle;"><?php echo __('Select All', 'bwg_back'); ?></span>
68
  </span>
69
  <select class='select_icon bulk_action'>
70
+ <option value=""><?php _e('Bulk Actions', 'bwg_back'); ?></option>
71
  <?php
72
  foreach($gallery_button_array as $key => $value) {
73
  ?>
78
  }
79
  ?>
80
  </select>
81
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply","bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action', 'gallery_page')) {return false;}" value="<?php _e("Apply","bwg_back"); ?>" />
82
+ <?php WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page); ?>
83
  </div>
84
  <table class="wp-list-table widefat fixed pages">
85
  <thead>
303
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'editThumb', 'bwg_nonce' );
304
  ?>
305
  a_thumb.setAttribute('href', "<?php echo add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'width' => '650', 'height' => '500'), $query_url); ?>&image_id=" + bwg_j + "&TB_iframe=1");
 
306
  a_thumb.setAttribute('title', files[i]['name']);
307
  td_thumb.appendChild(a_thumb);
308
  var img_thumb = document.createElement('img');
362
  var a_crop = document.createElement('a');
363
  a_crop.setAttribute('class', "thickbox thickbox-preview");
364
  a_crop.setAttribute('onclick', "spider_set_href(this, '" + bwg_j + "', 'crop');");
365
+ a_crop.innerHTML = "<?php _e('Crop', 'bwg_back'); ?>";
366
  span_edit_crop.appendChild(a_crop);
367
  div_edit.innerHTML += " | ";
368
  var span_edit_rotate = document.createElement('span');
371
  var a_rotate = document.createElement('a');
372
  a_rotate.setAttribute('class', "thickbox thickbox-preview");
373
  a_rotate.setAttribute('onclick', "spider_set_href(this, '" + bwg_j + "', 'rotate');");
374
+ a_rotate.innerHTML = "<?php _e('Edit', 'bwg_back'); ?>";
375
  span_edit_rotate.appendChild(a_rotate);
376
  div_edit.innerHTML += " | "
377
  var span_edit_recover = document.createElement('span');
379
  div_edit.appendChild(span_edit_recover);
380
  var a_recover = document.createElement('a');
381
  a_recover.setAttribute('onclick', 'if (confirm("<?php echo addslashes(__("Do you want to reset the image?", 'bwg_back')); ?>")) { spider_set_input_value("ajax_task", "recover"); spider_set_input_value("image_current_id", "' + bwg_j + '"); spider_ajax_save("galleries_form");} return false;');
382
+ a_recover.innerHTML = "<?php _e('Reset', 'bwg_back'); ?>";
383
  span_edit_recover.appendChild(a_recover);
384
  }
385
  var input_image_url = document.createElement('input');
479
  tr.appendChild(td_tag);
480
  var a_tag = document.createElement('a');
481
  a_tag.setAttribute('class', "button-small wd-btn wd-btn-primary wd-not-image thickbox thickbox-preview");
482
+ a_tag.setAttribute('title' , "<?php _e("Add tag", 'bwg_back'); ?>");
483
  <?php
484
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
485
  ?>
706
  $page_number = (isset($_POST['page_number']) ? esc_html(stripslashes($_POST['page_number'])) : 1);
707
  $ids_string = '';
708
  $per_page = $this->model->per_page();
709
+ $pager = 0;
710
  $gallery_row = $this->model->get_row_data($id);
711
  $gallery_type = ($gallery_row->gallery_type == 'instagram' || $gallery_row->gallery_type == 'instagram_post') ? 'instagram' : '';
 
712
  $image_array = array(
713
  'image_set_watermark' => __('Set Watermark', 'bwg_back'),
714
  'image_get_resize' => __('Resize', 'bwg_back'),
716
  'image_recover_all' => __('Reset', 'bwg_back'),
717
  'image_publish_all' => __('Publish', 'bwg_back'),
718
  'image_unpublish_all' => __('Unpublish', 'bwg_back'),
719
+ 'image_desc' => __('Edit', 'bwg_back'),
720
+ 'image_delete_all' => __('Delete', 'bwg_back'),
721
  );
722
  ?>
723
+ <div class="buttons_div_left">
724
+ <?php
 
725
  $query_url = add_query_arg(array('action' => 'addImages', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'bwg_add_image'), admin_url('admin-ajax.php'));
726
+ $query_url = wp_nonce_url($query_url, 'addImages', 'bwg_nonce');
727
+ $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
728
+ ?>
729
+ <a href="<?php echo $query_url; ?>" id="add_image_bwg" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview" id="content-add_media" title="<?php _e("Add Images", 'bwg_back'); ?>" onclick="return false;" style="margin-bottom:5px; <?php if($gallery_type !='') {echo 'display:none';} ?>" >
730
+ <?php _e('Add Images', 'bwg_back'); ?>
731
+ </a>
732
+ <?php
733
+ $query_url = wp_nonce_url(admin_url('admin-ajax.php'), '', 'bwg_nonce');
734
+ /*(re?)define ajax_url to add nonce only in admin*/
735
+ ?>
736
+ <script>
737
+ var ajax_url = "<?php echo $query_url; ?>"
738
+ </script>
739
  <input id="show_add_embed" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-media" type="button" title="<?php _e("Embed Media", 'bwg_back'); ?>" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e("Embed Media", 'bwg_back'); ?>" />
740
  <input id="show_bulk_embed" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-bulk_media spider_free_version_button" type="button" title="<?php _e("Social Bulk Embed", 'bwg_back'); ?>" onclick="jQuery('.opacity_bulk_embed').show(); return false;" value="<?php _e("Social Bulk Embed", 'bwg_back'); ?>" />
741
+ <?php WDWLibrary::ajax_search(__('Filename', 'bwg_back'), $search_value, 'galleries_form'); ?>
742
+ </div>
743
  <div class="tablenav top buttons_div_left bwg_buttons_div">
744
+ <span class="wd-btn wd-btn-primary-gray bwg_check_all non_selectable " onclick="spider_check_all_items()">
745
+ <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
746
+ <span style="vertical-align: middle;"><?php echo __('Select All', 'bwg_back'); ?></span>
747
+ </span>
748
+ <select class="select_icon bulk_action_img">
749
+ <option value=""><?php _e('Bulk Actions', 'bwg_back'); ?></option>
750
  <?php
751
+ foreach ($image_array as $key => $value) {
752
+ ?>
753
+ <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
754
+ <?php
 
 
755
  }
756
  ?>
757
+ </select>
758
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" title="<?php _e("Apply", "bwg_back"); ?>" onclick="if (!bwg_bulk_actions('.bulk_action_img', '')) {return false;}" value="<?php _e("Apply", "bwg_back"); ?>" />
759
+ <?php WDWLibrary::ajax_html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form', $per_page, $pager++); ?>
760
+ </div>
761
+ <div class="opacity_resize_image opacity_add_embed opacity_image_desc opacity_bulk_embed bwg_opacity_media" onclick="jQuery('.opacity_add_embed').hide(); jQuery('.opacity_bulk_embed').hide(); jQuery('.opacity_resize_image').hide(); jQuery('.opacity_image_desc').hide();"></div>
762
  <div id="add_embed" class="opacity_add_embed bwg_add_embed">
763
  <input type="text" id="embed_url" name="embed_url" value="" />
764
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add" type="button" onclick="if (bwg_get_embed_info('embed_url')) {jQuery('.opacity_add_embed').hide();} return false;" value="<?php _e('Add to gallery', 'bwg_back'); ?>" />
765
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e('Cancel', 'bwg_back'); ?>" />
766
  <div class="spider_description">
767
+ <p><?php _e('Enter YouTube, Vimeo, Instagram, Flickr or Dailymotion URL here.', 'bwg_back'); ?> <a onclick="jQuery('#add_embed_help').show();" style='text-decoration: underline; color:blue; cursor: pointer;'><?php _e('Help', 'bwg_back'); ?></a></p>
768
  </div>
769
+ <div id="add_embed_help" class="opacity_add_embed bwg_add_embed" style="display: none;">
770
+ <p style="text-align:right; margin-top:0px;"><a onclick="jQuery('#add_embed_help').hide();" style="text-decoration: underline; color:blue; cursor: pointer; "><?php _e('Close', 'bwg_back'); ?></a></p>
771
+ <p><b>Youtube</b> <?php _e('URL example:', 'bwg_back'); ?> <i>https://www.youtube.com/watch?v=fa4RLjE-yM8</i></p>
772
+ <p><b>Vimeo</b> <?php _e('URL example:', 'bwg_back'); ?> <i>http://vimeo.com/8110647</i></p>
773
+ <p><b>Instagram</b> <?php _e('URL example:', 'bwg_back'); ?> <i>http://instagram.com/p/ykvv0puS4u</i>. <?php _e('Add', 'bwg_back'); ?> "<i style="text-decoration:underline;"><?php _e('post', 'bwg_back'); ?></i>" <?php _e('to the end of URL if you want to embed the whole Instagram post, not only its content.', 'bwg_back'); ?></p>
774
+ <p><b>Flickr</b> <?php _e('URL example:', 'bwg_back'); ?> <i>https://www.flickr.com/photos/sui-fong/15250186998/in/gallery-flickr-72157648726328108/</i></p>
775
+ <p><b>Dailymotion</b> <?php _e('URL example:', 'bwg_back'); ?> <i>http://www.dailymotion.com/video/xexaq0_frank-sinatra-strangers-in-the-nigh_music</i></p>
776
  </div>
777
  </div>
778
  <div id="bulk_embed" class="opacity_bulk_embed bwg_bulk_embed">
779
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_bulk_embed').hide(); jQuery('#opacity_div').hide(); jQuery('#loading_div').hide(); return false;" value="<?php _e('Cancel', 'bwg_back'); ?>" style="float: right; margin-left: 5px;" />
780
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add spider_free_version_button" type="button" value="<?php _e('Add to gallery', 'bwg_back'); ?>" style="float:right; margin-left:5px;"/>
781
  <div class="spider_description"></div>
782
+ <table class="spider_free_version ">
783
+ <thead>
784
+ <tr>
785
  <td class="spider_label_galleries"><label for="bulk_embed_from" class="spider_free_version_label_color"><?php _e("Bulk embed from:", 'bwg_back'); ?> </label></td>
786
  <td>
787
  <input type="radio" disabled="disabled" class="inputbox" id="bulk_embed_from_instagram" onclick="jQuery('#instagram_bulk_params').show();" checked="checked" value="<?php _e("instagram", 'bwg_back'); ?>" >
806
  <input type="radio" disabled="disabled" class="inputbox" id="popup_instagram_post_gallery_1" value="1" >
807
  <label for="popup_instagram_post_gallery_1" class="spider_free_version_label_color"><?php _e("Whole post", 'bwg_back'); ?></label>
808
  </td>
809
+ </tr>
810
+ </tbody>
811
  </table>
812
  </div>
813
+ <div class="opacity_resize_image bwg_resize_image">
814
  <?php _e("Resize images to: ", 'bwg_back'); ?>
815
  <input type="text" name="image_width" id="image_width" value="1600" /> x
816
  <input type="text" name="image_height" id="image_height" value="1200" /> px
817
  <input class="wd-btn wd-btn-primary wd-not-image" type="button" onclick="spider_set_input_value('ajax_task', 'image_resize');
818
+ spider_ajax_save('galleries_form');
819
+ jQuery('.opacity_resize_image').hide();
820
+ return false;" value="<?php _e("Resize", 'bwg_back'); ?>" />
821
  <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_resize_image').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" />
822
  <div class="spider_description"><?php _e("The maximum size of resized image.", 'bwg_back'); ?></div>
823
  </div>
824
+ <div id="add_desc" class="opacity_image_desc bwg_image_desc">
825
+ <div>
826
+ <span class="bwg_popup_label">
827
+ <?php _e('Alt/Title: ', 'bwg_back'); ?>
828
+ </span>
829
+ <input class="bwg_popup_input" type="text" id="title" name="title" value="" />
830
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add" type="button" onclick="if (window.parent.bwg_add_title_desc()) {jQuery('.opacity_image_desc').hide();} return false;" value="<?php echo __('Update', 'bwg_back'); ?>" />
831
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="button" onclick="jQuery('.opacity_image_desc').hide(); return false;" value="<?php echo __('Cancel', 'bwg_back'); ?>" />
832
+ </div>
833
+ <?php if ($option_row->thumb_click_action != 'open_lightbox') { ?>
834
+ <div>
835
+ <span class="bwg_popup_label">
836
+ <?php _e('Redirect URL: ', 'bwg_back'); ?>
837
+ </span>
838
+ <input class="bwg_popup_input" type="text" id="redirecturl" name="redirecturl" value="" />
839
+ </div>
840
+ <?php } ?>
841
+ <div>
842
+ <span class="bwg_popup_label">
843
+ <?php _e('Description: ', 'bwg_back'); ?>
844
+ </span>
845
+ <textarea class="bwg_popup_input" type="text" id="desc" name="desc"></textarea>
846
+ </div>
847
+ </div>
848
+ <div id="draganddrop" class="wd_updated" style="display:none;"><strong><p><?php _e('Changes made in this table should be saved.', 'bwg_back'); ?></p></strong></div>
849
  <table id="images_table" class="wp-list-table widefat fixed pages">
850
  <thead>
851
  <th class="check-column table_small_col table_medium_col manage-column column-title sorted asc" style="margin: 0px auto 0px 15px; width: 60px; vertical-align: middle;">
852
+ <a id="show_hide_weights" class="bwg_order_column" title="<?php _e('Hide order column', 'bwg_back'); ?>" onclick="spider_show_hide_weights();return false;" value="<?php _e('Hide order column', 'bwg_back'); ?>"></a>
853
  <a id="th_order" onclick="spider_set_input_value('task', '');
854
  spider_set_input_value('image_order_by', 'order');
855
  spider_set_input_value('image_asc_or_desc', 'desc');
861
 
862
  </th>
863
  <th class="table_small_col">#</th>
864
+ <th class="table_extra_large_col"><?php _e('Thumbnail', 'bwg_back'); ?></th>
865
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'filename') {echo $order_class;} ?>">
866
  <a onclick="spider_set_input_value('task', '');
867
  spider_set_input_value('image_order_by', 'filename');
868
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'filename' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
869
  spider_ajax_save('galleries_form');">
870
+ <span><?php _e('Filename', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
871
  </a>
872
  </th>
873
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'alt') {echo $order_class;} ?>">
875
  spider_set_input_value('image_order_by', 'alt');
876
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'alt' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
877
  spider_ajax_save('galleries_form');">
878
+ <span><?php _e('Alt/Title', 'bwg_back'); ?><?php if ($option_row->thumb_click_action != 'open_lightbox') { ?><br /><?php echo __('Redirect', 'bwg_back'); ?> URL<?php } ?></span><span class="sorting-indicator"></span>
879
  </a>
880
  </th>
881
  <th class="sortable table_extra_large_col <?php if ($image_order_by == 'description') {echo $order_class;} ?>">
883
  spider_set_input_value('image_order_by', 'description');
884
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'description' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
885
  spider_ajax_save('galleries_form');">
886
+ <span><?php _e('Description', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
887
  </a>
888
  </th>
889
  <?php
898
  spider_set_input_value('image_order_by', 'published');
899
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'published' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
900
  spider_ajax_save('galleries_form');">
901
+ <span><?php _e('Published', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
902
  </a>
903
  </th>
904
  <th class="table_small_col"><?php echo __('Delete', 'bwg_back'); ?></th>
921
  <td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
922
  <td class="table_small_col"><?php echo ++$i; ?></td>
923
  <td class="table_extra_large_col">
924
+ <?php
925
  $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/', $row_data->filetype) == 1 ? true :false;
926
  $instagram_post_width = 0;
927
  $instagram_post_height = 0;
933
  $instagram_post_height = $instagram_post_height[0];
934
  }
935
  }
936
+ $query_url = add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'image_id' => $row_data->id, 'width' => '800', 'height' => '500', 'instagram_post_width' => $instagram_post_width, 'instagram_post_height' => $instagram_post_height), admin_url('admin-ajax.php'));
937
+ $query_url = wp_nonce_url( $query_url, 'editThumb', 'bwg_nonce' );
938
+ $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
 
939
  $is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$row_data->filetype) == 1 ? true : false;
940
+ ?>
941
  <a class="thickbox thickbox-preview" title="<?php echo $row_data->alt; ?>" href="<?php echo $query_url; ?>">
942
  <img id="image_thumb_<?php echo $row_data->id; ?>" class="thumb" src="<?php echo (!$is_embed ? site_url() . '/' . $WD_BWG_UPLOAD_DIR : "") . $row_data->thumb_url . ($is_embed ? '' : '?date=' . date('Y-m-y H:i:s')); ?>" />
943
  </a>
951
  <div class="fileDescription" title="<?php _e("Image size", 'bwg_back'); ?>" id="filesize_<?php echo $row_data->id; ?>"><?php echo $row_data->size; ?></div>
952
  <div class="fileDescription" title="<?php _e("Type", 'bwg_back'); ?>" id="filetype_<?php echo $row_data->id; ?>"><?php echo $row_data->filetype; ?></div>
953
  <?php
954
+ if (!$is_embed) {
955
  ?>
956
  <div>
957
  <?php
966
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
967
  ?>
968
  <span class="edit_thumb"><a class="thickbox thickbox-preview" href="<?php echo $query_url; ?>"><?php _e("Edit", 'bwg_back'); ?></a></span> |
969
+ <span class="edit_thumb"><a onclick="if (confirm('<?php echo addslashes(__('Do you want to reset the image?', 'bwg_back')); ?>')) {
970
  spider_set_input_value('ajax_task', 'recover');
971
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
972
  spider_ajax_save('galleries_form');
973
  }
974
+ return false;"><?php _e('Reset', 'bwg_back'); ?></a></span>
975
  </div>
976
  <?php } ?>
977
  <input type="hidden" id="image_url_<?php echo $row_data->id; ?>" name="image_url_<?php echo $row_data->id; ?>" value="<?php echo $row_data->image_url; ?>" />
996
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
997
  $query_url = add_query_arg(array('action' => 'addTags', 'image_id' => $row_data->id, 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page, 'TB_iframe' => '1'), $query_url);
998
  ?>
999
+ <a href="<?php echo $query_url; ?>" title="<?php _e('Add tag', 'bwg_back'); ?>" class="button-small wd-btn wd-btn-primary wd-not-image thickbox thickbox-preview"><?php _e('Add tag', 'bwg_back'); ?></a>
1000
  <div class="tags_div" id="tags_div_<?php echo $row_data->id; ?>">
1001
  <?php
1002
  $tags_id_string = '';
1038
  <input id="ajax_task" name="ajax_task" type="hidden" value="" />
1039
  <input id="image_current_id" name="image_current_id" type="hidden" value="" />
1040
  <input id="added_tags_select_all" name="added_tags_select_all" type="hidden" value="" />
1041
+ <input type="hidden" id="bulk_edit" name="bulk_edit" value="0" />
1042
  </tbody>
1043
  </table>
1044
  <div class="tablenav bottom">
1051
  </script>
1052
  <?php
1053
  }
1054
+
1055
  ////////////////////////////////////////////////////////////////////////////////////////
1056
  // Getters & Setters //
1057
  ////////////////////////////////////////////////////////////////////////////////////////
css/bwg_tables.css CHANGED
@@ -6,7 +6,6 @@
6
  padding: 11px 15px 4px 0;
7
  }
8
 
9
-
10
  .bwg_spider_ajax_loading {
11
  border: none !important;
12
  margin-top: 200px;
@@ -17,7 +16,6 @@
17
  animation: spin 2.5s infinite linear;*/
18
  }
19
 
20
-
21
  @-moz-keyframes spin {
22
  0% {
23
  -moz-transform: rotate(0deg);
@@ -275,6 +273,7 @@
275
  margin: 7px 8px 0 0;
276
  width: 35px;
277
  }
 
278
  .uninstall_icon {
279
  background-image: url("../images/uninstall-icon.png");
280
  background-repeat: no-repeat;
@@ -515,6 +514,7 @@
515
  top: 40%;
516
  }
517
 
 
518
  .bwg_add_embed,
519
  .bwg_resize_image {
520
  display: none;
@@ -539,6 +539,11 @@
539
  margin-left: -200px;
540
  }
541
 
 
 
 
 
 
542
  .bwg_bulk_embed {
543
  display: none;
544
  padding: 10px;
@@ -682,6 +687,7 @@ 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-delete{
686
  background-image:url(../images/icons/delete.png);
687
  }
@@ -734,16 +740,20 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
734
  margin-right:1px;
735
  cursor:pointer;
736
  }
737
- .wd-search-btn{
738
- background: #00A0D2 url(../images/icons/search.png) no-repeat center;
739
- }
740
- .wd-reset-btn{
741
- background: #00A0D2 url(../images/icons/reset.png) no-repeat center;
742
  }
 
743
  .wd-preview-image-btn {
744
- background: url(../images/icons/add_prieview_image.png) no-repeat center;
745
  border:none;
746
  }
 
 
 
 
 
747
  .wd-not-image{
748
  padding: 0px 10px 1px 10px !important;
749
  background-repeat: no-repeat;
@@ -759,6 +769,7 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
759
  width: 12%;
760
  height:31px !important;
761
  }
 
762
  .select_icon_them{
763
  background-image:url('../images/icons/arrow.png');
764
  background-repeat: no-repeat;
@@ -809,6 +820,7 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
809
  vertical-align: middle;
810
  background-size: contain;
811
  }
 
812
  .bwg_img_handle {
813
  background: url("../images/icons/layer.png") no-repeat transparent;
814
  width: 22px;
@@ -830,10 +842,12 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
830
  padding: 0;
831
  background-size: initial;
832
  }
 
833
  #th_order {
834
  display: inline-block;
835
  padding: 0;
836
  }
 
837
  .wd_error {
838
  border-color: #dd3d36 !important;
839
  }
@@ -852,16 +866,13 @@ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
852
  display:inline-block;
853
  width:97%;
854
  }
855
-
856
  input {
857
  height:30px;
858
  }
859
-
860
  th.sortable a span,
861
  th.sorted a span {
862
  float: left;
863
  }
864
-
865
  #show_order_button {
866
  display:inline-block;
867
  margin: 5px auto;
@@ -870,9 +881,9 @@ th.sorted a span {
870
  }
871
 
872
  #current_page {
873
- width:35px !important;
874
- height:28px !important;
875
- padding-top:2px;
876
  }
877
 
878
  .publish_icon {
@@ -881,4 +892,22 @@ th.sorted a span {
881
 
882
  .displaying-num {
883
  line-height: 28px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
  }
6
  padding: 11px 15px 4px 0;
7
  }
8
 
 
9
  .bwg_spider_ajax_loading {
10
  border: none !important;
11
  margin-top: 200px;
16
  animation: spin 2.5s infinite linear;*/
17
  }
18
 
 
19
  @-moz-keyframes spin {
20
  0% {
21
  -moz-transform: rotate(0deg);
273
  margin: 7px 8px 0 0;
274
  width: 35px;
275
  }
276
+
277
  .uninstall_icon {
278
  background-image: url("../images/uninstall-icon.png");
279
  background-repeat: no-repeat;
514
  top: 40%;
515
  }
516
 
517
+ .bwg_image_desc,
518
  .bwg_add_embed,
519
  .bwg_resize_image {
520
  display: none;
539
  margin-left: -200px;
540
  }
541
 
542
+ .bwg_image_desc {
543
+ margin-left: -240px;
544
+ height: 120px;
545
+ }
546
+
547
  .bwg_bulk_embed {
548
  display: none;
549
  padding: 10px;
687
  background-repeat: no-repeat;
688
  background-position: 10% 50%;
689
  }
690
+
691
  .wd-btn-delete{
692
  background-image:url(../images/icons/delete.png);
693
  }
740
  margin-right:1px;
741
  cursor:pointer;
742
  }
743
+
744
+ .wd-search-btn {
745
+ background: #00A0D2 url("../images/icons/search.png") no-repeat center;
 
 
746
  }
747
+
748
  .wd-preview-image-btn {
749
+ background: url("../images/icons/add_prieview_image.png") no-repeat center;
750
  border:none;
751
  }
752
+
753
+ .wd-reset-btn {
754
+ background: #00A0D2 url("../images/icons/reset.png") no-repeat center;
755
+ }
756
+
757
  .wd-not-image{
758
  padding: 0px 10px 1px 10px !important;
759
  background-repeat: no-repeat;
769
  width: 12%;
770
  height:31px !important;
771
  }
772
+
773
  .select_icon_them{
774
  background-image:url('../images/icons/arrow.png');
775
  background-repeat: no-repeat;
820
  vertical-align: middle;
821
  background-size: contain;
822
  }
823
+
824
  .bwg_img_handle {
825
  background: url("../images/icons/layer.png") no-repeat transparent;
826
  width: 22px;
842
  padding: 0;
843
  background-size: initial;
844
  }
845
+
846
  #th_order {
847
  display: inline-block;
848
  padding: 0;
849
  }
850
+
851
  .wd_error {
852
  border-color: #dd3d36 !important;
853
  }
866
  display:inline-block;
867
  width:97%;
868
  }
 
869
  input {
870
  height:30px;
871
  }
 
872
  th.sortable a span,
873
  th.sorted a span {
874
  float: left;
875
  }
 
876
  #show_order_button {
877
  display:inline-block;
878
  margin: 5px auto;
881
  }
882
 
883
  #current_page {
884
+ width: 35px !important;
885
+ height: 28px !important;
886
+ padding-top: 2px;
887
  }
888
 
889
  .publish_icon {
892
 
893
  .displaying-num {
894
  line-height: 28px;
895
+ }
896
+
897
+ .bwg_popup_label {
898
+ display: inline-block;
899
+ font-weight: bold;
900
+ width: 90px;
901
+ }
902
+
903
+ .bwg_popup_input {
904
+ display: inline-block;
905
+ width: 180px;
906
+ margin: 1px;
907
+ }
908
+
909
+ textarea.bwg_popup_input {
910
+ resize: vertical;
911
+ margin: 1px;
912
+ vertical-align: middle;
913
  }
images/notdefault.png DELETED
Binary file
images/notice.png ADDED
Binary file
js/bwg.js CHANGED
@@ -60,7 +60,6 @@ function save_tag(tag_id) {
60
  }
61
  else {
62
  jQuery("#wordpress_message_1").css("display", "block");
63
-
64
  }
65
  }
66
  });
@@ -128,6 +127,11 @@ function spider_ajax_save(form_id, tr_group) {
128
  post_data["image_current_id"] = image_current_id;
129
  post_data["image_width"] = jQuery("#image_width").val();
130
  post_data["image_height"] = jQuery("#image_height").val();
 
 
 
 
 
131
  var flag = false;
132
  if (jQuery("#check_all_items").attr('checked') == 'checked') {
133
  post_data["check_all_items"] = jQuery("#check_all_items").val();
@@ -189,7 +193,7 @@ function spider_ajax_save(form_id, tr_group) {
189
  jQuery('#message_div').show();
190
  }
191
  else if (ajax_task == 'recover') {
192
- jQuery('#draganddrop').attr('class','wd_updated');
193
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.recoverd + "</p></strong>");
194
  jQuery('#draganddrop').show();
195
  }
@@ -251,7 +255,6 @@ function spider_ajax_save(form_id, tr_group) {
251
  else if (ajax_task == 'search') {
252
  jQuery('#message_div').html("");
253
  jQuery('#message_div').hide();
254
-
255
  }
256
  else {
257
  jQuery('#draganddrop').attr('class','wd_updated');
@@ -420,7 +423,7 @@ function spider_show_hide_weights() {
420
  jQuery("#tbody_arr").sortable("enable");
421
  jQuery("#tbody_arr").find(".handle").show(0);
422
  jQuery("#tbody_arr").find(".handles").closest("td").show(0);
423
- jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
424
  jQuery("#th_order").hide(0);
425
  jQuery("#tbody_arr").find(".spider_order").hide(0);
426
  jQuery("#show_hide_weights").val(bwg_objectL10B.bwg_show_order);
@@ -435,6 +438,7 @@ function spider_check_all_items() {
435
  jQuery('#check_all').trigger('click');
436
  // }
437
  }
 
438
  function spider_check_all_items_checkbox() {
439
  if (jQuery('#check_all_items').attr('checked')) {
440
  jQuery('#check_all_items').attr('checked', false);
@@ -726,6 +730,22 @@ function bwg_add_tag(image_id, tagIds, titles) {
726
  tb_remove();
727
  }
728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
729
  function bwg_remove_tag(tag_id, image_id) {
730
  if (jQuery('#' + image_id + '_tag_' + tag_id)) {
731
  jQuery('#' + image_id + '_tag_' + tag_id).remove();
@@ -1013,10 +1033,8 @@ function bwg_change_gallery_type(type_to_set, warning_type) {
1013
  jQuery('#content-add_media').hide();
1014
  jQuery('#show_add_embed').hide();
1015
  jQuery('#show_bulk_embed').hide();
1016
-
1017
  }
1018
- else{
1019
-
1020
  var ids_string = jQuery("#ids_string").val();
1021
  ids_array = ids_string.split(",");
1022
  var tr_count = ids_array[0]=='' ? 0: ids_array.length;
@@ -1053,8 +1071,7 @@ function bwg_change_gallery_type(type_to_set, warning_type) {
1053
  jQuery('#spider_reset_button').show();
1054
  jQuery('#content-add_media').show();
1055
  jQuery('#show_add_embed').show();
1056
- jQuery('#show_bulk_embed').show();
1057
-
1058
  }
1059
  return true;
1060
  }
@@ -1165,52 +1182,66 @@ function bwg_get_embed_info(input_id) {
1165
  return 'ok';
1166
 
1167
  }
 
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();
1175
- }
1176
- else {
1177
- jQuery('#albums_form').submit();
1178
- }
1179
- }
1180
- else {
1181
- return false;
1182
- }
1183
- }
1184
- else if(action != '' && (check == 'gallery_page' || check == 'album_page')) {
1185
  spider_set_input_value('task',action);
1186
- if(check == "gallery_page") {
1187
  jQuery('#galleries_form').submit();
1188
  }
 
 
 
 
 
 
1189
  else {
1190
  jQuery('#albums_form').submit();
1191
  }
1192
  }
1193
- else if(action == 'image_get_resize') {
1194
- jQuery('.opacity_resize_image').show();
1195
  return false;
1196
  }
1197
- else if(action != '' && action != 'image_delete_all') {
1198
- spider_set_input_value('ajax_task',action);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1199
  spider_ajax_save('galleries_form');
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;
1207
- }
1208
- else {
1209
- return false;
1210
- }
1211
- }
1212
  else {
1213
  return false;
1214
  }
 
 
 
 
1215
  return true;
1216
  }
60
  }
61
  else {
62
  jQuery("#wordpress_message_1").css("display", "block");
 
63
  }
64
  }
65
  });
127
  post_data["image_current_id"] = image_current_id;
128
  post_data["image_width"] = jQuery("#image_width").val();
129
  post_data["image_height"] = jQuery("#image_height").val();
130
+ post_data["bulk_edit"] = jQuery("#bulk_edit").val();
131
+ post_data["title"] = jQuery("#title").val();
132
+ post_data["redirecturl"] = jQuery("#redirecturl").val();
133
+ post_data["desc"] = jQuery("#desc").val();
134
+
135
  var flag = false;
136
  if (jQuery("#check_all_items").attr('checked') == 'checked') {
137
  post_data["check_all_items"] = jQuery("#check_all_items").val();
193
  jQuery('#message_div').show();
194
  }
195
  else if (ajax_task == 'recover') {
196
+ jQuery('#draganddrop').attr('class','wd_updated');
197
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.recoverd + "</p></strong>");
198
  jQuery('#draganddrop').show();
199
  }
255
  else if (ajax_task == 'search') {
256
  jQuery('#message_div').html("");
257
  jQuery('#message_div').hide();
 
258
  }
259
  else {
260
  jQuery('#draganddrop').attr('class','wd_updated');
423
  jQuery("#tbody_arr").sortable("enable");
424
  jQuery("#tbody_arr").find(".handle").show(0);
425
  jQuery("#tbody_arr").find(".handles").closest("td").show(0);
426
+ jQuery("#tbody_arr").find(".handle").attr('class', 'bwg_img_handle handle connectedSortable');
427
  jQuery("#th_order").hide(0);
428
  jQuery("#tbody_arr").find(".spider_order").hide(0);
429
  jQuery("#show_hide_weights").val(bwg_objectL10B.bwg_show_order);
438
  jQuery('#check_all').trigger('click');
439
  // }
440
  }
441
+
442
  function spider_check_all_items_checkbox() {
443
  if (jQuery('#check_all_items').attr('checked')) {
444
  jQuery('#check_all_items').attr('checked', false);
730
  tb_remove();
731
  }
732
 
733
+ function bwg_add_title_desc() {
734
+ var ids_string = jQuery("#ids_string").val();
735
+ ids_array = ids_string.split(",");
736
+ for (var i in ids_array) {
737
+ if (ids_array.hasOwnProperty(i) && ids_array[i]) {
738
+ if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
739
+ jQuery("#image_alt_text_" + ids_array[i]).val(jQuery("#title").val());
740
+ jQuery("#redirect_url_" + ids_array[i]).val(jQuery("#redirecturl").val());
741
+ jQuery("#image_description_" + ids_array[i]).val(jQuery("#desc").val());
742
+ }
743
+ }
744
+ }
745
+ jQuery(".opacity_image_desc").hide();
746
+ jQuery("#bulk_edit").val(1);
747
+ }
748
+
749
  function bwg_remove_tag(tag_id, image_id) {
750
  if (jQuery('#' + image_id + '_tag_' + tag_id)) {
751
  jQuery('#' + image_id + '_tag_' + tag_id).remove();
1033
  jQuery('#content-add_media').hide();
1034
  jQuery('#show_add_embed').hide();
1035
  jQuery('#show_bulk_embed').hide();
 
1036
  }
1037
+ else {
 
1038
  var ids_string = jQuery("#ids_string").val();
1039
  ids_array = ids_string.split(",");
1040
  var tr_count = ids_array[0]=='' ? 0: ids_array.length;
1071
  jQuery('#spider_reset_button').show();
1072
  jQuery('#content-add_media').show();
1073
  jQuery('#show_add_embed').show();
1074
+ jQuery('#show_bulk_embed').show();
 
1075
  }
1076
  return true;
1077
  }
1182
  return 'ok';
1183
 
1184
  }
1185
+
1186
  function bwg_bulk_actions(that, check) {
1187
  var action = jQuery(that).val();
1188
+ if (action == 'delete_all') {
1189
  if (confirm(bwg_objectL10B.delete_alert)) {
 
 
 
 
 
 
 
 
 
 
 
 
 
1190
  spider_set_input_value('task',action);
1191
+ if (check == "gallery_page") {
1192
  jQuery('#galleries_form').submit();
1193
  }
1194
+ else if (check == 'comments_page') {
1195
+ jQuery('#comments_form').submit();
1196
+ }
1197
+ else if (check == 'rates_page') {
1198
+ jQuery('#rates_form').submit();
1199
+ }
1200
  else {
1201
  jQuery('#albums_form').submit();
1202
  }
1203
  }
1204
+ else {
 
1205
  return false;
1206
  }
1207
+ }
1208
+ else if (action != '' && (check == 'gallery_page' || check == 'album_page' || check == 'comments_page')) {
1209
+ spider_set_input_value('task',action);
1210
+ if (check == "gallery_page") {
1211
+ jQuery('#galleries_form').submit();
1212
+ }
1213
+ else if (check == 'comments_page') {
1214
+ jQuery('#comments_form').submit();
1215
+ }
1216
+ else {
1217
+ jQuery('#albums_form').submit();
1218
+ }
1219
+ }
1220
+ else if (action == 'image_get_resize') {
1221
+ jQuery('.opacity_resize_image').show();
1222
+ return false;
1223
+ }
1224
+ else if (action == 'image_desc') {
1225
+ jQuery('.opacity_image_desc').show();
1226
+ return false;
1227
+ }
1228
+ else if (action != '' && action != 'image_delete_all') {
1229
+ spider_set_input_value('ajax_task',action);
1230
+ spider_ajax_save('galleries_form');
1231
+ return false;
1232
+ }
1233
+ else if (action == 'image_delete_all') {
1234
+ if (confirm(bwg_objectL10B.delete_alert)) {
1235
+ spider_set_input_value('ajax_task', action);
1236
  spider_ajax_save('galleries_form');
1237
  return false;
1238
  }
 
 
 
 
 
 
 
 
 
 
1239
  else {
1240
  return false;
1241
  }
1242
+ }
1243
+ else {
1244
+ return false;
1245
+ }
1246
  return true;
1247
  }
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.5
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.5';
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.5';
1979
  if ($version && version_compare($version, $new_version, '<')) {
1980
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1981
  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.3.6
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.6';
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.6';
1979
  if ($version && version_compare($version, $new_version, '<')) {
1980
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1981
  bwg_update($version);
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -189,10 +189,9 @@ After downloading the ZIP file,
189
  == Screenshots ==
190
  1. Photo Gallery - Popup View
191
  2. Photo Gallery - Thumbnails View
192
- 3. Photo Gallery - Masonry View
193
- 4. Photo Gallery - Create Shortcode
194
- 5. Photo Gallery - Edit Global Options
195
- 6. Photo Gallery - Edit Watermark
196
 
197
  == Frequently Asked Questions ==
198
 
@@ -225,6 +224,9 @@ To enable the feature of adding Media Library images, go to Photo Gallery > Opti
225
 
226
  == Changelog ==
227
 
 
 
 
228
  = 1.3.5 =
229
  * Fixed: Case sensitive search by name in Filemanager bug.
230
  * Changed: Show last uploaded files as first in Filemanager.
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.6
7
+ Stable tag: 1.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
189
  == Screenshots ==
190
  1. Photo Gallery - Popup View
191
  2. Photo Gallery - Thumbnails View
192
+ 3. Photo Gallery - Create Shortcode
193
+ 4. Photo Gallery - Edit Global Options
194
+ 5. Photo Gallery - Edit Watermark
 
195
 
196
  == Frequently Asked Questions ==
197
 
224
 
225
  == Changelog ==
226
 
227
+ = 1.3.6 =
228
+ * Added: Bulk edit images title, description and redirect url.
229
+
230
  = 1.3.5 =
231
  * Fixed: Case sensitive search by name in Filemanager bug.
232
  * Changed: Show last uploaded files as first in Filemanager.