Photo Gallery by WD – Responsive Photo Gallery - Version 1.3.0

Version Description

  • Changed: Backend design.
  • Fixed: Random order album for widget.
Download this release

Release Info

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

Code changes from version 1.2.108 to 1.3.0

Files changed (109) hide show
  1. admin/controllers/BWGControllerGalleries_bwg.php +18 -18
  2. admin/controllers/BWGControllerOptions_bwg.php +5 -5
  3. admin/controllers/BWGControllerThemes_bwg.php +3 -3
  4. admin/views/BWGViewAddAlbumsGalleries.php +6 -6
  5. admin/views/BWGViewAddTags.php +5 -5
  6. admin/views/BWGViewAlbums_bwg.php +73 -63
  7. admin/views/BWGViewBWGShortcode.php +13 -13
  8. admin/views/BWGViewGalleries_bwg.php +161 -157
  9. admin/views/BWGViewOptions_bwg.php +20 -20
  10. admin/views/BWGViewTags_bwg.php +28 -27
  11. admin/views/BWGViewThemes_bwg.php +4 -1
  12. admin/views/BWGViewUninstall_bwg.php +3 -3
  13. css/bwg_frontend.css +14 -12
  14. css/bwg_shortcode.css +84 -0
  15. css/bwg_tables.css +337 -87
  16. featured/images/featured_plugins_bg.png +0 -0
  17. featured/images/portfolio_gallery.png +0 -0
  18. filemanager/css/default.css +84 -9
  19. filemanager/images/btn_icons/import.png +0 -0
  20. filemanager/images/btn_icons/imports.png +0 -0
  21. filemanager/images/btn_icons/upload.png +0 -0
  22. images/default.png → filemanager/images/btn_icons/uploads.png +0 -0
  23. filemanager/images/icons/add-new.png +0 -0
  24. filemanager/images/icons/apply.png +0 -0
  25. filemanager/images/icons/cancel.png +0 -0
  26. filemanager/images/icons/checkout-option.png +0 -0
  27. filemanager/images/icons/close-red.png +0 -0
  28. filemanager/images/icons/delete.png +0 -0
  29. filemanager/images/icons/edit.png +0 -0
  30. filemanager/images/icons/media.png +0 -0
  31. filemanager/images/icons/save.png +0 -0
  32. filemanager/view.php +20 -16
  33. framework/WDWLibrary.php +48 -32
  34. frontend/views/BWGViewAlbum_compact_preview.php +8 -7
  35. frontend/views/BWGViewAlbum_extended_preview.php +6 -6
  36. frontend/views/BWGViewGalleryBox.php +1 -3
  37. frontend/views/BWGViewImage_browser.php +5 -5
  38. frontend/views/BWGViewSlideshow.php +4 -4
  39. frontend/views/BWGViewThumbnails.php +5 -5
  40. images/add_but.png +0 -0
  41. images/ajax_loader.gif +0 -0
  42. images/album-icon.png +0 -0
  43. images/best-wordpress-gallery.png +0 -0
  44. images/bwg_shortcode.png +0 -0
  45. images/comment-icon.png +0 -0
  46. images/delete.png +0 -0
  47. images/draggable.png +0 -0
  48. images/gallery-icon.png +0 -0
  49. images/icons/add-new.png +0 -0
  50. images/icons/add_prieview_image.png +0 -0
  51. images/icons/album-icon.png +0 -0
  52. images/icons/apply.png +0 -0
  53. images/icons/arrow.png +0 -0
  54. images/icons/best-wordpress-gallery.png +0 -0
  55. images/icons/bulk_embed.png +0 -0
  56. images/icons/bwg_shortcode.png +0 -0
  57. images/icons/cancel.png +0 -0
  58. images/icons/close-red.png +0 -0
  59. images/icons/comment-icon.png +0 -0
  60. images/icons/delete.png +0 -0
  61. images/icons/delete_red.png +0 -0
  62. images/icons/edit.png +0 -0
  63. images/icons/edits.png +0 -0
  64. images/icons/email-option.png +0 -0
  65. images/icons/gallery-icon.png +0 -0
  66. images/icons/general-option-hover.png +0 -0
  67. images/icons/general-option.png +0 -0
  68. images/icons/import.png +0 -0
  69. images/icons/layer.png +0 -0
  70. images/icons/media.png +0 -0
  71. images/icons/order_column.png +0 -0
  72. images/icons/publish-blue.png +0 -0
  73. images/icons/publish.png +0 -0
  74. images/icons/reset.png +0 -0
  75. images/icons/save.png +0 -0
  76. images/icons/save_order.png +0 -0
  77. images/icons/search.png +0 -0
  78. images/icons/tag-icon.png +0 -0
  79. images/icons/theme-icon.png +0 -0
  80. images/icons/tumbnail.png +0 -0
  81. images/icons/unpublish-blue.png +0 -0
  82. images/icons/unpublish.png +0 -0
  83. images/icons/watermark.png +0 -0
  84. images/notice.png +0 -0
  85. images/option-icon.png +0 -0
  86. images/publish.png +0 -0
  87. images/rating-icon.png +0 -0
  88. images/tag-icon.png +0 -0
  89. images/theme-icon.png +0 -0
  90. images/theme_blog_style.png +0 -0
  91. images/theme_carousel.png +0 -0
  92. images/theme_compact_album.png +0 -0
  93. images/theme_extended_album.png +0 -0
  94. images/theme_image_browser.png +0 -0
  95. images/theme_lightbox.png +0 -0
  96. images/theme_masonry.png +0 -0
  97. images/theme_masonry_album.png +0 -0
  98. images/theme_mosaic.png +0 -0
  99. images/theme_page_navigation.png +0 -0
  100. images/theme_slideshow.png +0 -0
  101. images/theme_thumbnails.png +0 -0
  102. images/unpublish.png +0 -0
  103. js/bwg.js +87 -10
  104. js/bwg_editor_button.js +1 -1
  105. js/bwg_frontend.js +1 -1
  106. js/bwg_gallery_box.js +3 -3
  107. js/images/bwg_edit_but.png +0 -0
  108. photo-gallery.php +5 -4
  109. readme.txt +5 -1
admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -723,7 +723,7 @@ class BWGControllerGalleries_bwg {
723
  }
724
 
725
  public function save() {
726
- echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'updated');
727
  $this->display();
728
  }
729
 
@@ -864,10 +864,10 @@ class BWGControllerGalleries_bwg {
864
  ));
865
  }
866
  if ($save !== FALSE) {
867
- echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'updated');
868
  }
869
  else {
870
- echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'error');
871
  }
872
  }
873
 
@@ -890,7 +890,7 @@ class BWGControllerGalleries_bwg {
890
  $i++;
891
  }
892
  if ($flag) {
893
- echo WDWLibrary::message(__('Ordering Succesfully Saved.', 'bwg_back'), 'updated');
894
  }
895
  }
896
  $this->display();
@@ -904,10 +904,10 @@ class BWGControllerGalleries_bwg {
904
  if ($wpdb->query($query)) {
905
  $wpdb->query($query_image);
906
  $wpdb->query($query_album_gallery);
907
- echo WDWLibrary::message(__('Item Succesfully Deleted.', 'bwg_back'), 'updated');
908
  }
909
  else {
910
- echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'error');
911
  }
912
  /* Delete corresponding posts and their meta.*/
913
  $query2 = "SELECT ID, post_content FROM " . $wpdb->posts . " WHERE post_type = 'bwg_gallery'";
@@ -937,10 +937,10 @@ class BWGControllerGalleries_bwg {
937
  }
938
  }
939
  if ($flag) {
940
- echo WDWLibrary::message(__('Items Succesfully Deleted.', 'bwg_back'), 'updated');
941
  }
942
  else {
943
- echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'error');
944
  }
945
  $this->display();
946
  }
@@ -949,10 +949,10 @@ class BWGControllerGalleries_bwg {
949
  global $wpdb;
950
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 1), array('id' => $id));
951
  if ($save !== FALSE) {
952
- echo WDWLibrary::message(__('Item Succesfully Published.', 'bwg_back'), 'updated');
953
  }
954
  else {
955
- echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'error');
956
  }
957
  $this->display();
958
  }
@@ -974,10 +974,10 @@ class BWGControllerGalleries_bwg {
974
  }
975
  }
976
  if ($flag) {
977
- echo WDWLibrary::message(__('Items Succesfully Published.', 'bwg_back'), 'updated');
978
  }
979
  else {
980
- echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'error');
981
  }
982
  $this->display();
983
  }
@@ -986,10 +986,10 @@ class BWGControllerGalleries_bwg {
986
  global $wpdb;
987
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 0), array('id' => $id));
988
  if ($save !== FALSE) {
989
- echo WDWLibrary::message(__('Item Succesfully Unpublished.', 'bwg_back'), 'updated');
990
  }
991
  else {
992
- echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'error');
993
  }
994
  $this->display();
995
  }
@@ -1011,10 +1011,10 @@ class BWGControllerGalleries_bwg {
1011
  }
1012
  }
1013
  if ($flag) {
1014
- echo WDWLibrary::message(__('Items Succesfully Unpublished.', 'bwg_back'), 'updated');
1015
  }
1016
  else {
1017
- echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'error');
1018
  }
1019
  $this->display();
1020
  }
@@ -1093,10 +1093,10 @@ class BWGControllerGalleries_bwg {
1093
  }
1094
  }
1095
  if ($flag == false) {
1096
- echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'error');
1097
  }
1098
  else {
1099
- echo WDWLibrary::message(__('Thumb Succesfully Resized', 'bwg_back'), 'updated');
1100
  }
1101
  }
1102
 
723
  }
724
 
725
  public function save() {
726
+ echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'wd_updated');
727
  $this->display();
728
  }
729
 
864
  ));
865
  }
866
  if ($save !== FALSE) {
867
+ echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'wd_updated');
868
  }
869
  else {
870
+ echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'wd_error');
871
  }
872
  }
873
 
890
  $i++;
891
  }
892
  if ($flag) {
893
+ echo WDWLibrary::message(__('Ordering Succesfully Saved.', 'bwg_back'), 'wd_updated');
894
  }
895
  }
896
  $this->display();
904
  if ($wpdb->query($query)) {
905
  $wpdb->query($query_image);
906
  $wpdb->query($query_album_gallery);
907
+ echo WDWLibrary::message(__('Item Succesfully Deleted.', 'bwg_back'), 'wd_updated');
908
  }
909
  else {
910
+ echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'wd_error');
911
  }
912
  /* Delete corresponding posts and their meta.*/
913
  $query2 = "SELECT ID, post_content FROM " . $wpdb->posts . " WHERE post_type = 'bwg_gallery'";
937
  }
938
  }
939
  if ($flag) {
940
+ echo WDWLibrary::message(__('Items Succesfully Deleted.', 'bwg_back'), 'wd_updated');
941
  }
942
  else {
943
+ echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'wd_error');
944
  }
945
  $this->display();
946
  }
949
  global $wpdb;
950
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 1), array('id' => $id));
951
  if ($save !== FALSE) {
952
+ echo WDWLibrary::message(__('Item Succesfully Published.', 'bwg_back'), 'wd_updated');
953
  }
954
  else {
955
+ echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'wd_error');
956
  }
957
  $this->display();
958
  }
974
  }
975
  }
976
  if ($flag) {
977
+ echo WDWLibrary::message(__('Items Succesfully Published.', 'bwg_back'), 'wd_updated');
978
  }
979
  else {
980
+ echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'wd_error');
981
  }
982
  $this->display();
983
  }
986
  global $wpdb;
987
  $save = $wpdb->update($wpdb->prefix . 'bwg_gallery', array('published' => 0), array('id' => $id));
988
  if ($save !== FALSE) {
989
+ echo WDWLibrary::message(__('Item Succesfully Unpublished.', 'bwg_back'), 'wd_updated');
990
  }
991
  else {
992
+ echo WDWLibrary::message(__('Error. Please install plugin again.', 'bwg_back'), 'wd_error');
993
  }
994
  $this->display();
995
  }
1011
  }
1012
  }
1013
  if ($flag) {
1014
+ echo WDWLibrary::message(__('Items Succesfully Unpublished.', 'bwg_back'), 'wd_updated');
1015
  }
1016
  else {
1017
+ echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'wd_error');
1018
  }
1019
  $this->display();
1020
  }
1093
  }
1094
  }
1095
  if ($flag == false) {
1096
+ echo WDWLibrary::message(__('You must select at least one item.', 'bwg_back'), 'wd_error');
1097
  }
1098
  else {
1099
+ echo WDWLibrary::message(__('Thumb Succesfully Resized', 'bwg_back'), 'wd_updated');
1100
  }
1101
  }
1102
 
admin/controllers/BWGControllerOptions_bwg.php CHANGED
@@ -51,7 +51,7 @@ class BWGControllerOptions_bwg {
51
 
52
  require_once WD_BWG_DIR . "/admin/views/BWGViewOptions_bwg.php";
53
  $view = new BWGViewOptions_bwg($model);
54
- echo WDWLibrary::message('Changes must be saved.', 'error');
55
  $view->display(true);
56
  }
57
 
@@ -69,7 +69,7 @@ class BWGControllerOptions_bwg {
69
  if (isset($_POST['images_directory'])) {
70
  $images_directory = esc_html(stripslashes($_POST['images_directory']));
71
  if (!is_dir(ABSPATH . $images_directory)) {
72
- echo WDWLibrary::message('Uploads directory doesn\'t exist. Old value is restored.', 'error');
73
  if ($old_images_directory) {
74
  $images_directory = $old_images_directory;
75
  }
@@ -389,14 +389,14 @@ class BWGControllerOptions_bwg {
389
  }
390
  if (isset($_POST['recreate']) && $_POST['recreate'] == "resize_image_thumb") {
391
  $this->resize_image_thumb();
392
- echo WDWLibrary::message(__('All thumbnails are successfully recreated.', 'bwg_back'), 'updated');
393
  }
394
  else {
395
- echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'updated');
396
  }
397
  }
398
  else {
399
- echo WDWLibrary::message('Error. Please install plugin again.', 'error');
400
  }
401
  }
402
 
51
 
52
  require_once WD_BWG_DIR . "/admin/views/BWGViewOptions_bwg.php";
53
  $view = new BWGViewOptions_bwg($model);
54
+ echo WDWLibrary::message('Changes must be saved.', 'wd_error');
55
  $view->display(true);
56
  }
57
 
69
  if (isset($_POST['images_directory'])) {
70
  $images_directory = esc_html(stripslashes($_POST['images_directory']));
71
  if (!is_dir(ABSPATH . $images_directory)) {
72
+ echo WDWLibrary::message('Uploads directory doesn\'t exist. Old value is restored.', 'wd_error');
73
  if ($old_images_directory) {
74
  $images_directory = $old_images_directory;
75
  }
389
  }
390
  if (isset($_POST['recreate']) && $_POST['recreate'] == "resize_image_thumb") {
391
  $this->resize_image_thumb();
392
+ echo WDWLibrary::message(__('All thumbnails are successfully recreated.', 'bwg_back'), 'wd_updated');
393
  }
394
  else {
395
+ echo WDWLibrary::message(__('Item Succesfully Saved.', 'bwg_back'), 'wd_updated');
396
  }
397
  }
398
  else {
399
+ echo WDWLibrary::message('Error. Please install plugin again.', 'wd_error');
400
  }
401
  }
402
 
admin/controllers/BWGControllerThemes_bwg.php CHANGED
@@ -73,7 +73,7 @@ class BWGControllerThemes_bwg {
73
  require_once WD_BWG_DIR . "/admin/views/BWGViewThemes_bwg.php";
74
  $view = new BWGViewThemes_bwg($model);
75
  $id = WDWLibrary::get('current_id', 0);
76
- echo WDWLibrary::message('Changes must be saved.', 'error');
77
  $view->edit($id, TRUE);
78
  }
79
 
@@ -1026,12 +1026,12 @@ class BWGControllerThemes_bwg {
1026
  global $wpdb;
1027
  $isDefault = $wpdb->get_var('SELECT default_theme FROM ' . $wpdb->prefix . 'bwg_theme WHERE id=' . $id);
1028
  if ($isDefault) {
1029
- echo WDWLibrary::message("You can't delete default theme", 'error');
1030
  }
1031
  else {
1032
  $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id);
1033
  if ($wpdb->query($query)) {
1034
- echo WDWLibrary::message('Item Succesfully Deleted.', 'updated');
1035
  $message = 3;
1036
  }
1037
  else {
73
  require_once WD_BWG_DIR . "/admin/views/BWGViewThemes_bwg.php";
74
  $view = new BWGViewThemes_bwg($model);
75
  $id = WDWLibrary::get('current_id', 0);
76
+ echo WDWLibrary::message('Changes must be saved.', 'wd_error');
77
  $view->edit($id, TRUE);
78
  }
79
 
1026
  global $wpdb;
1027
  $isDefault = $wpdb->get_var('SELECT default_theme FROM ' . $wpdb->prefix . 'bwg_theme WHERE id=' . $id);
1028
  if ($isDefault) {
1029
+ echo WDWLibrary::message("You can't delete default theme", 'wd_error');
1030
  }
1031
  else {
1032
  $query = $wpdb->prepare('DELETE FROM ' . $wpdb->prefix . 'bwg_theme WHERE id="%d"', $id);
1033
  if ($wpdb->query($query)) {
1034
+ echo WDWLibrary::message('Item Succesfully Deleted.', 'wd_updated');
1035
  $message = 3;
1036
  }
1037
  else {
admin/views/BWGViewAddAlbumsGalleries.php CHANGED
@@ -49,25 +49,25 @@ class BWGViewAddAlbumsGalleries {
49
  <?php wp_nonce_field( 'addAlbumsGalleries', 'bwg_nonce' ); ?>
50
  <h2 style="width:200px;float:left"><?php _e("Albums/Galleries", 'bwg_back'); ?></h2>
51
  <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">
52
- <img id='add_albums' src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
53
  </a>
54
  <div class="tablenav top">
55
  <?php
56
- WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'albums_galleries_form');
57
  WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_galleries_form', $per_page);
58
  ?>
59
  </div>
60
  <table class="wp-list-table widefat fixed pages">
61
  <thead>
62
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
63
- <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
64
  <a onclick="spider_set_input_value('order_by', 'id');
65
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
66
  spider_form_submit(event, 'albums_galleries_form')" href="">
67
  <span>ID</span><span class="sorting-indicator"></span>
68
  </a>
69
  </th>
70
- <th class="table_medium_col_uncenter <?php if ($order_by == 'is_album') {echo $order_class;} ?>">
71
  <a onclick="spider_set_input_value('task', '');
72
  spider_set_input_value('order_by', 'is_album');
73
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'is_album') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
@@ -75,7 +75,7 @@ class BWGViewAddAlbumsGalleries {
75
  <span><?php _e("Type", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
76
  </a>
77
  </th>
78
- <th class="<?php if ($order_by == 'name') {echo $order_class;} ?>">
79
  <a onclick="spider_set_input_value('order_by', 'name');
80
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
81
  spider_form_submit(event, 'albums_galleries_form')" href="">
49
  <?php wp_nonce_field( 'addAlbumsGalleries', 'bwg_nonce' ); ?>
50
  <h2 style="width:200px;float:left"><?php _e("Albums/Galleries", 'bwg_back'); ?></h2>
51
  <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">
52
+ <div id="add_albums" class='wd-btn wd-btn-primary wd-btn-icon wd-btn-add' style="border:none;padding-top:8px !important;" ><?php echo __('ADD','bwg_back');?> </div>
53
  </a>
54
  <div class="tablenav top">
55
  <?php
56
+ WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'albums_galleries_form','position_search');
57
  WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_galleries_form', $per_page);
58
  ?>
59
  </div>
60
  <table class="wp-list-table widefat fixed pages">
61
  <thead>
62
+ <th class="sortable manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
63
+ <th class="sortable table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>" style="padding-left:20px;">
64
  <a onclick="spider_set_input_value('order_by', 'id');
65
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
66
  spider_form_submit(event, 'albums_galleries_form')" href="">
67
  <span>ID</span><span class="sorting-indicator"></span>
68
  </a>
69
  </th>
70
+ <th class="sortable table_medium_col_uncenter <?php if ($order_by == 'is_album') {echo $order_class;} ?>">
71
  <a onclick="spider_set_input_value('task', '');
72
  spider_set_input_value('order_by', 'is_album');
73
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'is_album') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
75
  <span><?php _e("Type", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
76
  </a>
77
  </th>
78
+ <th class="sortable <?php if ($order_by == 'name') {echo $order_class;} ?>">
79
  <a onclick="spider_set_input_value('order_by', 'name');
80
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
81
  spider_form_submit(event, 'albums_galleries_form')" href="">
admin/views/BWGViewAddTags.php CHANGED
@@ -47,31 +47,31 @@ class BWGViewAddTags {
47
  <?php wp_nonce_field( 'addTags', 'bwg_nonce' ); ?>
48
  <h2 style="width:200px; float:left;"><?php _e("Tags", 'bwg_back'); ?></h2>
49
  <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">
50
- <img src="<?php echo WD_BWG_URL . '/images/add_but.png'; ?>" style="border:none;" />
51
  </a>
52
  <div class="tablenav top">
53
  <?php
54
- WDWLibrary::search(__('Name', 'bwg_back'), $search_value, 'tags_form');
55
  WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
56
  ?>
57
  </div>
58
  <table class="wp-list-table widefat fixed pages">
59
  <thead>
60
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
61
- <th class="table_small_col <?php if ($order_by == 'term_id') {echo $order_class;} ?>">
62
  <a onclick="spider_set_input_value('order_by', 'term_id');
63
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'term_id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
64
  spider_form_submit(event, 'tags_form')" href="">
65
  <span>ID</span><span class="sorting-indicator"></span></th>
66
  </a>
67
- <th class="<?php if ($order_by == 'name') {echo $order_class;} ?>">
68
  <a onclick="spider_set_input_value('order_by', 'name');
69
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
70
  spider_form_submit(event, 'tags_form')" href="">
71
  <span><?php _e("Name", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
72
  </a>
73
  </th>
74
- <th class="<?php if ($order_by == 'slug') {echo $order_class;} ?>">
75
  <a onclick="spider_set_input_value('order_by', 'slug');
76
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
77
  spider_form_submit(event, 'tags_form')" href="">
47
  <?php wp_nonce_field( 'addTags', 'bwg_nonce' ); ?>
48
  <h2 style="width:200px; float:left;"><?php _e("Tags", 'bwg_back'); ?></h2>
49
  <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">
50
+ <div class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add" style="border:none;padding-top:8px !important;">ADD </div>
51
  </a>
52
  <div class="tablenav top">
53
  <?php
54
+ WDWLibrary::search(__('Name', 'bwg_back'), $search_value, 'tags_form','position_search');
55
  WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
56
  ?>
57
  </div>
58
  <table class="wp-list-table widefat fixed pages">
59
  <thead>
60
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
61
+ <th class="sortable table_small_col <?php if ($order_by == 'term_id') {echo $order_class;} ?>" style="padding-left:15px">
62
  <a onclick="spider_set_input_value('order_by', 'term_id');
63
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'term_id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
64
  spider_form_submit(event, 'tags_form')" href="">
65
  <span>ID</span><span class="sorting-indicator"></span></th>
66
  </a>
67
+ <th class="sortable <?php if ($order_by == 'name') {echo $order_class;} ?>">
68
  <a onclick="spider_set_input_value('order_by', 'name');
69
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
70
  spider_form_submit(event, 'tags_form')" href="">
71
  <span><?php _e("Name", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
72
  </a>
73
  </th>
74
+ <th class="sortable <?php if ($order_by == 'slug') {echo $order_class;} ?>">
75
  <a onclick="spider_set_input_value('order_by', 'slug');
76
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
77
  spider_form_submit(event, 'tags_form')" href="">
admin/views/BWGViewAlbums_bwg.php CHANGED
@@ -34,6 +34,11 @@ class BWGViewAlbums_bwg {
34
  $ids_string = '';
35
  $per_page = $this->model->per_page();
36
  $pager = 0;
 
 
 
 
 
37
  ?>
38
  <div style="clear: both; float: left; width: 99%;">
39
  <div style="float:left; font-size: 14px; font-weight: bold;">
@@ -54,91 +59,93 @@ class BWGViewAlbums_bwg {
54
  <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
55
  spider_form_submit(event, 'albums_form')"><?php _e("Add new", 'bwg_back'); ?></a>
56
  </h2>
57
- <div id="draganddrop" class="updated" style="display:none;"><strong><p><?php _e("Changes made in this table should be saved.", 'bwg_back'); ?></p></strong></div>
58
- <div class="buttons_div">
59
- <span class="button-secondary non_selectable" onclick="spider_check_all_items()">
 
60
  <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
61
- <span style="vertical-align: middle;"><?php _e("Select All", 'bwg_back'); ?></span>
62
  </span>
63
- <input id="show_hide_weights" class="button-secondary" type="button" onclick="spider_show_hide_weights();return false;" value="<?php _e("Hide order column", 'bwg_back'); ?>" />
64
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="<?php _e("Save Order", 'bwg_back'); ?>" />
65
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="<?php _e("Publish", 'bwg_back'); ?>" />
66
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'unpublish_all')" value="<?php _e("Unpublish", 'bwg_back'); ?>" />
67
- <input class="button-secondary" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected items?", 'bwg_back')); ?>')) {
68
- spider_set_input_value('task', 'delete_all');
69
- } else {
70
- return false;
71
- }" value="<?php _e("Delete", 'bwg_back'); ?>" />
72
- </div>
73
- <div class="tablenav top">
74
  <?php
75
- WDWLibrary::search(__("Name", "bwg_back"), $search_value, 'albums_form');
76
- WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_form', $per_page);
77
  ?>
 
 
 
78
  </div>
79
  <table class="wp-list-table widefat fixed pages">
80
  <thead>
81
- <th class="table_small_col"></th>
82
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" onclick="spider_check_all(this)" type="checkbox" style="margin:0;" /></th>
83
- <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
 
 
 
 
 
 
 
 
 
84
  <a onclick="spider_set_input_value('task', '');
85
  spider_set_input_value('order_by', 'id');
86
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
87
  spider_form_submit(event, 'albums_form')" href="">
88
  <span>ID</span><span class="sorting-indicator"></span>
89
  </a>
90
- </th>
91
- <th class="<?php if ($order_by == 'name') {echo $order_class;} ?>">
 
92
  <a onclick="spider_set_input_value('task', '');
93
  spider_set_input_value('order_by', 'name');
94
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
95
  spider_form_submit(event, 'albums_form')" href="">
96
- <span><?php _e("Name", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
97
  </a>
98
  </th>
99
- <th class="<?php if ($order_by == 'slug') {echo $order_class;} ?>">
100
  <a onclick="spider_set_input_value('task', '');
101
  spider_set_input_value('order_by', 'slug');
102
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
103
  spider_form_submit(event, 'albums_form')" href="">
104
- <span><?php _e("Slug", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
105
  </a>
106
  </th>
107
- <th class="table_extra_large_col"><?php _e("Thumbnail", 'bwg_back'); ?></th>
108
- <th id="th_order" class="table_medium_col <?php if ($order_by == 'order') {echo $order_class;} ?>">
109
- <a onclick="spider_set_input_value('task', '');
110
- spider_set_input_value('order_by', 'order');
111
- spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'order') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
112
- spider_form_submit(event, 'albums_form')" href="">
113
- <span><?php _e("Order", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
114
- </a>
115
- </th>
116
- <th class="<?php if ($order_by == 'display_name') {echo $order_class;} ?>">
117
  <a onclick="spider_set_input_value('task', '');
118
  spider_set_input_value('order_by', 'display_name');
119
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'display_name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
120
  spider_form_submit(event, 'albums_form')" href="">
121
- <span><?php _e("Author", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
122
  </a>
123
  </th>
124
- <th class="table_big_col <?php if ($order_by == 'published') {echo $order_class;} ?>">
125
  <a onclick="spider_set_input_value('task', '');
126
  spider_set_input_value('order_by', 'published');
127
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'published') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
128
  spider_form_submit(event, 'albums_form')" href="">
129
- <span><?php _e("Published", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
130
  </a>
131
  </th>
132
- <th class="table_big_col"><?php _e("Edit", 'bwg_back'); ?></th>
133
- <th class="table_big_col"><?php _e("Delete", 'bwg_back'); ?></th>
134
  </thead>
135
  <tbody id="tbody_arr">
136
  <?php
137
  if ($rows_data) {
138
  foreach ($rows_data as $row_data) {
139
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
140
- $published_image = (($row_data->published) ? 'publish' : 'unpublish');
141
  $published = (($row_data->published) ? 'unpublish' : 'publish');
 
142
  if ($row_data->preview_image == '') {
143
  $preview_image = WD_BWG_URL . '/images/no-image.png';
144
  }
@@ -147,25 +154,28 @@ class BWGViewAlbums_bwg {
147
  }
148
  ?>
149
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
150
- <td class="connectedSortable table_small_col"><div class="handle" style="margin:5px auto 0 auto;" title="Drag to re-order"></div></td>
 
151
  <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>
152
- <td class="table_small_col"><?php echo $row_data->id; ?></td>
153
- <td><a onclick="spider_set_input_value('task', 'edit');
154
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
155
- spider_form_submit(event, 'albums_form')" href="" title="<?php _e("Edit", 'bwg_back'); ?>"><?php echo $row_data->name; ?></a></td>
156
- <td><?php echo $row_data->slug; ?></td>
157
  <td class="table_extra_large_col">
158
  <img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image; ?>">
159
  </td>
160
- <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>
 
 
 
161
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
162
- <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, 'albums_form')" href=""><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
163
- <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
164
- spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
165
- spider_form_submit(event, 'albums_form')" href=""><?php _e("Edit", 'bwg_back'); ?></a></td>
166
- <td class="table_big_col"><a onclick="spider_set_input_value('task', 'delete');
167
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
168
- spider_form_submit(event, 'albums_form')" href=""><?php _e("Delete", 'bwg_back'); ?></a></td>
 
 
 
 
 
 
169
  </tr>
170
  <?php
171
  $ids_string .= $row_data->id . ',';
@@ -176,7 +186,7 @@ class BWGViewAlbums_bwg {
176
  </table>
177
  <div class="tablenav bottom">
178
  <?php
179
- WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_form', $per_page);
180
  ?>
181
  </div>
182
  <input id="task" name="task" type="hidden" value="" />
@@ -269,9 +279,9 @@ class BWGViewAlbums_bwg {
269
  <span class="album-icon"></span>
270
  <h2><?php echo $page_title; ?></h2>
271
  <div style="float:right;">
272
- <input class="button-secondary" id='save_albums' type="submit" onclick="if(spider_check_required('name', 'Name')){return false;};spider_set_input_value('task', 'save')" value="<?php _e("Save", 'bwg_back'); ?>" />
273
- <input class="button-secondary" type="submit" onclick="if(spider_check_required('name', 'Name')){return false;};spider_set_input_value('task', 'apply')" value="<?php _e("Apply", 'bwg_back'); ?>" />
274
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="<?php _e("Cancel", 'bwg_back'); ?>" />
275
  </div>
276
  <table style="clear:both;">
277
  <tbody>
@@ -327,11 +337,11 @@ class BWGViewAlbums_bwg {
327
  ?>
328
  <a href="<?php echo $query_url; ?>"
329
  id="button_preview_image"
330
- class="button-primary thickbox thickbox-preview"
331
- title="Add Preview Image"
332
  onclick="return false;"
333
- style="margin-bottom:5px; display:none;">
334
- <?php _e("Add Preview Image", 'bwg_back'); ?>
335
  </a>
336
  <input type="hidden" id="preview_image" name="preview_image" value="<?php echo $row->preview_image; ?>" style="display:inline-block;"/>
337
  <img id="img_preview_image"
@@ -351,7 +361,7 @@ class BWGViewAlbums_bwg {
351
 
352
 
353
  ?>
354
- <a href="<?php echo $query_url; ?>" class="button-primary thickbox thickbox-preview" id="content-add_media" title="Add Images" onclick="return false;" style="margin-bottom:5px;">
355
  <?php _e("Add Albums/Galleries", 'bwg_back'); ?>
356
  </a>
357
  <?php $albums_galleries = $this->model->get_albums_galleries_rows_data($id) ?>
34
  $ids_string = '';
35
  $per_page = $this->model->per_page();
36
  $pager = 0;
37
+ $album_button_array = array(
38
+ 'publish_all' => __('Publish', 'bwg_back'),
39
+ 'unpublish_all' => __('Unpublish', 'bwg_back'),
40
+ 'delete_all' => __('Delete', 'bwg_back')
41
+ );
42
  ?>
43
  <div style="clear: both; float: left; width: 99%;">
44
  <div style="float:left; font-size: 14px; font-weight: bold;">
59
  <a href="" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
60
  spider_form_submit(event, 'albums_form')"><?php _e("Add new", 'bwg_back'); ?></a>
61
  </h2>
62
+ <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>
63
+ <?php WDWLibrary::search(__('Name','bwg_back'), $search_value, 'albums_form',''); ?>
64
+ <div class="tablenav top buttons_div buttons_div_left">
65
+ <span class="wd-btn wd-btn-primary-gray bwg_check_all non_selectable" onclick="spider_check_all_items()">
66
  <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
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($album_button_array as $key => $value) {
73
+ ?>
74
+ <option value="<?php echo $key;?>">
75
+ <?php echo $value;?>
76
+ </option>
 
 
 
77
  <?php
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', 'album_page')) {return false;}" value="<?php echo __("Apply","bwg_back"); ?>" />
82
+ <?php WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_form', $per_page,''); ?>
83
  </div>
84
  <table class="wp-list-table widefat fixed pages">
85
  <thead>
86
+ <th class="sortable check-column table_small_col manage-column <?php if ($order_by == 'order') {echo $order_class;} ?>" style="margin: 0px auto 5px 10px; width: 77px; vertical-align:middle;">
87
+ <a id="show_hide_weights" class="bwg_order_column" onclick="spider_show_hide_weights();" value="<?php echo __('Hide order column', 'bwg_back'); ?>" ></a>
88
+ <a id="show_order_button" class="bwg_save_order" title="<?php echo __('Save Order', 'bwg_back'); ?>" onclick="spider_set_input_value('task', 'save_order');spider_form_submit(event, 'albums_form')" value="<?php echo __('Save Order', 'bwg_back'); ?>" ></a>
89
+ <a id="th_order" onclick="spider_set_input_value('task', '');
90
+ spider_set_input_value('order_by', 'order');
91
+ spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'order') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
92
+ spider_form_submit(event, 'albums_form')" href="">
93
+ <span class="sorting-indicator"></span>
94
+ </a>
95
+ </th>
96
+ <th class="sortable manage-column column-cb check-column table_small_col" style="padding-top:14px !important;" ><input id="check_all" onclick="spider_check_all(this)" type="checkbox" style="margin:0;" /></th>
97
+ <th class="sortable table_th_middle table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
98
  <a onclick="spider_set_input_value('task', '');
99
  spider_set_input_value('order_by', 'id');
100
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
101
  spider_form_submit(event, 'albums_form')" href="">
102
  <span>ID</span><span class="sorting-indicator"></span>
103
  </a>
104
+ </th>
105
+ <th class="table_extra_large_col"><?php echo __('Thumbnail', 'bwg_back'); ?></th>
106
+ <th class="sortable table_extra_large_col <?php if ($order_by == 'name') {echo $order_class;} ?>">
107
  <a onclick="spider_set_input_value('task', '');
108
  spider_set_input_value('order_by', 'name');
109
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
110
  spider_form_submit(event, 'albums_form')" href="">
111
+ <span><?php echo __('Name', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
112
  </a>
113
  </th>
114
+ <th class="sortable table_extra_large_col<?php if ($order_by == 'slug') {echo $order_class;} ?>">
115
  <a onclick="spider_set_input_value('task', '');
116
  spider_set_input_value('order_by', 'slug');
117
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
118
  spider_form_submit(event, 'albums_form')" href="">
119
+ <span><?php echo __('Slug', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
120
  </a>
121
  </th>
122
+ <th class="sortable table_extra_large_col <?php if ($order_by == 'display_name') {echo $order_class;} ?>">
 
 
 
 
 
 
 
 
 
123
  <a onclick="spider_set_input_value('task', '');
124
  spider_set_input_value('order_by', 'display_name');
125
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'display_name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
126
  spider_form_submit(event, 'albums_form')" href="">
127
+ <span><?php echo __('Author', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
128
  </a>
129
  </th>
130
+ <th class="sortable table_big_col <?php if ($order_by == 'published') {echo $order_class;} ?>" style="padding-left:20px;">
131
  <a onclick="spider_set_input_value('task', '');
132
  spider_set_input_value('order_by', 'published');
133
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'published') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
134
  spider_form_submit(event, 'albums_form')" href="">
135
+ <span><?php echo __('Published', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
136
  </a>
137
  </th>
138
+ <th class="table_small_col"><?php echo __('Edit', 'bwg_back'); ?></th>
139
+ <th class="table_small_col"><?php echo __('Delete', 'bwg_back'); ?></th>
140
  </thead>
141
  <tbody id="tbody_arr">
142
  <?php
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 == '') {
150
  $preview_image = WD_BWG_URL . '/images/no-image.png';
151
  }
154
  }
155
  ?>
156
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
157
+ <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>
158
+ <td class="connectedSortable handles table_small_col"><div class="bwg_img_handle handle" style="margin:5px auto 0 auto;" title="Drag to re-order"></div></td>
159
  <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>
160
+ <td class="table_small_col"><?php echo $row_data->id; ?></td>
 
 
 
 
161
  <td class="table_extra_large_col">
162
  <img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width:60px; max-height:60px;" src="<?php echo $preview_image; ?>">
163
  </td>
164
+ <td><a onclick="spider_set_input_value('task', 'edit');
165
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
166
+ spider_form_submit(event, 'albums_form')" href="" title="<?php echo __('Edit', 'bwg_back'); ?>"><?php echo $row_data->name; ?></a></td>
167
+ <td><?php echo $row_data->slug; ?></td>
168
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
169
+ <td class="table_big_col publish_icon"><a style="background-image:url('<?php echo WD_BWG_URL . '/images/icons/' . $published_image . '.png'; ?>'); background-repeat: no-repeat; display: inline-block; width: 18px; height: 22px;margin: 3px; vertical-align: middle;background-size: contain;" title="<?php echo $unpublished; ?>" onclick="spider_set_input_value('task', '<?php echo $published; ?>');spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');spider_form_submit(event, 'albums_form')" href=""></a></td>
170
+ <td class="table_big_col"><a class="bwg_img_edit" title="<?php echo __('Edit', 'bwg_back'); ?>" onclick="spider_set_input_value('task', 'edit');
 
 
 
171
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
172
+ spider_form_submit(event, 'albums_form')" href=""></a></td>
173
+ <td class="table_big_col"><a class="bwg_img_remove" title="<?php echo __('Delete', 'bwg_back'); ?>" onclick="if(confirm('Do you want to delete selected items?')){ spider_set_input_value('task', 'delete');
174
+ spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
175
+ spider_form_submit(event, 'albums_form')}
176
+ else {
177
+ return false;
178
+ }" href=""></a></td>
179
  </tr>
180
  <?php
181
  $ids_string .= $row_data->id . ',';
186
  </table>
187
  <div class="tablenav bottom">
188
  <?php
189
+ WDWLibrary::html_page_nav($page_nav['total'],$pager++, $page_nav['limit'], 'albums_form', $per_page,'');
190
  ?>
191
  </div>
192
  <input id="task" name="task" type="hidden" value="" />
279
  <span class="album-icon"></span>
280
  <h2><?php echo $page_title; ?></h2>
281
  <div style="float:right;">
282
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" id='save_albums' type="submit" onclick="if(spider_check_required('name', 'Name')){return false;};spider_set_input_value('task', 'save')" value="<?php _e("Save", 'bwg_back'); ?>" />
283
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="submit" onclick="if(spider_check_required('name', 'Name')){return false;};spider_set_input_value('task', 'apply')" value="<?php _e("Apply", 'bwg_back'); ?>" />
284
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="<?php _e("Cancel", 'bwg_back'); ?>" />
285
  </div>
286
  <table style="clear:both;">
287
  <tbody>
337
  ?>
338
  <a href="<?php echo $query_url; ?>"
339
  id="button_preview_image"
340
+ class="wd-preview-image-btn thickbox thickbox-preview"
341
+ title="<?php echo __('Add Preview Image', 'bwg_back'); ?>"
342
  onclick="return false;"
343
+ style="display:none;">
344
+
345
  </a>
346
  <input type="hidden" id="preview_image" name="preview_image" value="<?php echo $row->preview_image; ?>" style="display:inline-block;"/>
347
  <img id="img_preview_image"
361
 
362
 
363
  ?>
364
+ <a href="<?php echo $query_url; ?>" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview" id="content-add_media" title="Add Images" onclick="return false;">
365
  <?php _e("Add Albums/Galleries", 'bwg_back'); ?>
366
  </a>
367
  <?php $albums_galleries = $this->model->get_albums_galleries_rows_data($id) ?>
admin/views/BWGViewBWGShortcode.php CHANGED
@@ -163,7 +163,7 @@ class BWGViewBWGShortcode {
163
  <tr id="tr_theme">
164
  <td <?php echo (get_option("wd_bwg_theme_version") ? 'title="This option is disabled in free version." class="spider_label spider_free_version_label"' : 'class="spider_label"'); ?>><label for="theme"><?php _e("Theme:", 'bwg_back'); ?> </label></td>
165
  <td>
166
- <select name="theme" id="theme" style="width:150px;" <?php echo (get_option("wd_bwg_theme_version") ? 'disabled="disabled"' : ''); ?>>
167
  <option value="0" selected="selected"><?php _e("Select Theme", 'bwg_back'); ?></option>
168
  <?php
169
  foreach ($theme_rows as $theme_row) {
@@ -178,7 +178,7 @@ class BWGViewBWGShortcode {
178
  <tr id="tr_gallery">
179
  <td class="spider_label"><label for="gallery"><?php _e("Gallery:", 'bwg_back'); ?> </label></td>
180
  <td>
181
- <select name="gallery" id="gallery" style="width:150px;">
182
  <option value="0" selected="selected"><?php _e("Select Gallery", 'bwg_back'); ?></option>
183
  <?php
184
  foreach ($gallery_rows as $gallery_row) {
@@ -193,7 +193,7 @@ class BWGViewBWGShortcode {
193
  <tr id="tr_album">
194
  <td title="<?php _e('The selected album expanded content will be displayed.', 'bwg_back'); ?>" class="spider_label"><label for="album"><?php _e("Album:", 'bwg_back'); ?> </label></td>
195
  <td>
196
- <select name="album" id="album" style="width:150px;">
197
  <option value="0" selected="selected"><?php _e("Select Album", 'bwg_back'); ?></option>
198
  <?php
199
  foreach ($album_rows as $album_row) {
@@ -208,7 +208,7 @@ class BWGViewBWGShortcode {
208
  <tr id="tr_sort_by">
209
  <td class="spider_label"><label for="sort_by"><?php _e("Sort images by:", 'bwg_back'); ?> </label></td>
210
  <td>
211
- <select name="sort_by" id="sort_by" style="width:150px;">
212
  <option value="order" selected="selected"><?php _e("Order", 'bwg_back'); ?></option>
213
  <option value="alt"><?php _e("Title", 'bwg_back'); ?></option>
214
  <option value="date"><?php _e("Date", 'bwg_back'); ?></option>
@@ -598,7 +598,7 @@ class BWGViewBWGShortcode {
598
  <tr id="tr_slideshow_effect">
599
  <td class="spider_label"><label for="slideshow_effect"><?php _e("Slideshow Effect:", 'bwg_back'); ?> </label></td>
600
  <td>
601
- <select name="slideshow_effect" id="slideshow_effect" style="width:150px;">
602
  <?php
603
  foreach ($effects as $key => $effect) {
604
  ?>
@@ -789,7 +789,7 @@ class BWGViewBWGShortcode {
789
  <tr id="tr_popup_effect">
790
  <td title="<?php _e("Lightbox slideshow effect.", 'bwg_back'); ?>" class="spider_label"><label for="popup_effect"><?php _e("Lightbox effect:", 'bwg_back'); ?> </label></td>
791
  <td>
792
- <select name="popup_effect" id="popup_effect" style="width:150px;">
793
  <?php
794
  foreach ($effects as $key => $effect) {
795
  ?>
@@ -973,7 +973,7 @@ class BWGViewBWGShortcode {
973
  <tr id="tr_watermark_font">
974
  <td class="spider_label"><label for="watermark_font"><?php _e("Advertisement font style:", 'bwg_back'); ?> </label></td>
975
  <td>
976
- <select name="watermark_font" id="watermark_font" style="width:150px;">
977
  <?php
978
  foreach ($watermark_fonts as $watermark_font) {
979
  ?>
@@ -1030,7 +1030,7 @@ class BWGViewBWGShortcode {
1030
  </div>
1031
  <div class="mceActionPanel">
1032
  <div style="float:left;">
1033
- <a id="bwg_pro_version_link" class="button button-primary" target="_blank" style="line-height: 25px; padding: 0 5px; text-decoration: none; vertical-align: middle; width: inherit; float: left;" href="http://wpdemo.web-dorado.com/thumbnails-view-2/"><?php _e("Please see Pro ", 'bwg_back'); ?><span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
1034
  </div>
1035
  <div style="float:right;">
1036
  <input type="button" id="insert" name="insert" value="<?php _e("Insert", 'bwg_back'); ?>" onClick="bwg_insert_shortcode('');" />
@@ -1051,9 +1051,9 @@ class BWGViewBWGShortcode {
1051
  ?>
1052
  <hr style="float: left; width: 100%;" />
1053
  <span style="float: left; width: 100%;">
1054
- <a id="bwg_pro_version_link" class="button button-primary" target="_blank" style="display: table; margin-bottom: 5px;" href="https://web-dorado.com/files/fromPhotoGallery.php"><?php _e("Please see Pro", 'bwg_back'); ?> <span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
1055
- <input type="button" class="button-primary" id="insert" name="insert" value="<?php echo __("Generate", 'bwg_back'); ?>" onclick="bwg_insert_shortcode('');" />
1056
- <input type="button" class="button-secondary" id="import" name="import" value="<?php echo __("Import", 'bwg_back'); ?>" onclick="bwg_update_shortcode()" />
1057
  <div>
1058
  <input type="text" size="55" id="bwg_shortcode" name="bwg_shortcode" value='<?php echo $tagtext; ?>' onclick="bwg_onKeyDown(event)" />
1059
  <b><?php _e("Shortcode", 'bwg_back'); ?></b>
@@ -1402,7 +1402,7 @@ class BWGViewBWGShortcode {
1402
  jQuery("#extended_album_image_thumb_width").val(short_code['extended_album_image_thumb_width']);
1403
  jQuery("#extended_album_image_thumb_height").val(short_code['extended_album_image_thumb_height']);
1404
  jQuery("#extended_albums_per_page_load_more").val(short_code['extended_albums_per_page_load_more']);
1405
- jQuery("#extended_album_load_more_image_count").val(short_code['extended_album_load_more_image_count']);
1406
  if (short_code['extended_album_enable_page'] == 1) {
1407
  jQuery("#extended_album_page_yes").attr('checked', 'checked');
1408
  }
@@ -1819,7 +1819,7 @@ class BWGViewBWGShortcode {
1819
  short_code += ' id="' + shortcode_id + '"' + title + ']';
1820
  var short_id = ' id="' + shortcode_id + '"' + title;
1821
  short_code = short_code.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function(d, c) {
1822
- return "<img src='<?php echo WD_BWG_URL; ?>/images/bwg_shortcode.png' class='bwg_shortcode mceItem' title='Best_Wordpress_Gallery" + short_id + "' />";
1823
  });
1824
  jQuery("#task").val("save");
1825
  jQuery("#tagtext").val(tagtext);
163
  <tr id="tr_theme">
164
  <td <?php echo (get_option("wd_bwg_theme_version") ? 'title="This option is disabled in free version." class="spider_label spider_free_version_label"' : 'class="spider_label"'); ?>><label for="theme"><?php _e("Theme:", 'bwg_back'); ?> </label></td>
165
  <td>
166
+ <select name="theme" class="select_icon" id="theme" style="width:150px;" <?php echo (get_option("wd_bwg_theme_version") ? 'disabled="disabled"' : ''); ?>>
167
  <option value="0" selected="selected"><?php _e("Select Theme", 'bwg_back'); ?></option>
168
  <?php
169
  foreach ($theme_rows as $theme_row) {
178
  <tr id="tr_gallery">
179
  <td class="spider_label"><label for="gallery"><?php _e("Gallery:", 'bwg_back'); ?> </label></td>
180
  <td>
181
+ <select name="gallery" class="select_icon" id="gallery" style="width:150px;">
182
  <option value="0" selected="selected"><?php _e("Select Gallery", 'bwg_back'); ?></option>
183
  <?php
184
  foreach ($gallery_rows as $gallery_row) {
193
  <tr id="tr_album">
194
  <td title="<?php _e('The selected album expanded content will be displayed.', 'bwg_back'); ?>" class="spider_label"><label for="album"><?php _e("Album:", 'bwg_back'); ?> </label></td>
195
  <td>
196
+ <select name="album" class="select_icon" id="album" style="width:150px;">
197
  <option value="0" selected="selected"><?php _e("Select Album", 'bwg_back'); ?></option>
198
  <?php
199
  foreach ($album_rows as $album_row) {
208
  <tr id="tr_sort_by">
209
  <td class="spider_label"><label for="sort_by"><?php _e("Sort images by:", 'bwg_back'); ?> </label></td>
210
  <td>
211
+ <select name="sort_by" class="select_icon" id="sort_by" style="width:150px;">
212
  <option value="order" selected="selected"><?php _e("Order", 'bwg_back'); ?></option>
213
  <option value="alt"><?php _e("Title", 'bwg_back'); ?></option>
214
  <option value="date"><?php _e("Date", 'bwg_back'); ?></option>
598
  <tr id="tr_slideshow_effect">
599
  <td class="spider_label"><label for="slideshow_effect"><?php _e("Slideshow Effect:", 'bwg_back'); ?> </label></td>
600
  <td>
601
+ <select name="slideshow_effect" class="select_icon" id="slideshow_effect" style="width:150px;">
602
  <?php
603
  foreach ($effects as $key => $effect) {
604
  ?>
789
  <tr id="tr_popup_effect">
790
  <td title="<?php _e("Lightbox slideshow effect.", 'bwg_back'); ?>" class="spider_label"><label for="popup_effect"><?php _e("Lightbox effect:", 'bwg_back'); ?> </label></td>
791
  <td>
792
+ <select name="popup_effect" class="select_icon" id="popup_effect" style="width:150px;">
793
  <?php
794
  foreach ($effects as $key => $effect) {
795
  ?>
973
  <tr id="tr_watermark_font">
974
  <td class="spider_label"><label for="watermark_font"><?php _e("Advertisement font style:", 'bwg_back'); ?> </label></td>
975
  <td>
976
+ <select name="watermark_font" class="select_icon" id="watermark_font" style="width:150px;">
977
  <?php
978
  foreach ($watermark_fonts as $watermark_font) {
979
  ?>
1030
  </div>
1031
  <div class="mceActionPanel">
1032
  <div style="float:left;">
1033
+ <a id="bwg_pro_version_link" class="wd-btn wd-btn-primary-blue wd-not-image" target="_blank" style="line-height: 25px; padding: 0 5px; text-decoration: none; vertical-align: middle; width: inherit; float: left;" href="http://wpdemo.web-dorado.com/thumbnails-view-2/"><?php _e("Please see Pro ", 'bwg_back'); ?><span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
1034
  </div>
1035
  <div style="float:right;">
1036
  <input type="button" id="insert" name="insert" value="<?php _e("Insert", 'bwg_back'); ?>" onClick="bwg_insert_shortcode('');" />
1051
  ?>
1052
  <hr style="float: left; width: 100%;" />
1053
  <span style="float: left; width: 100%;">
1054
+ <a id="bwg_pro_version_link" class="wd-btn wd-btn-primary-blue wd-not-image" target="_blank" style="display: table; margin-bottom: 5px;" href="https://web-dorado.com/files/fromPhotoGallery.php"><?php _e("Please see Pro", 'bwg_back'); ?> <span id="bwg_pro_version"><?php _e("Thumbnail", 'bwg_back'); ?></span> <?php _e("View", 'bwg_back'); ?></a>
1055
+ <input type="button" class="wd-btn wd-btn-primary-blue wd-not-image" id="insert" name="insert" value="<?php echo __("Generate", 'bwg_back'); ?>" onclick="bwg_insert_shortcode('');" />
1056
+ <input type="button" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-import" id="import" name="import" value="<?php echo __("Import", 'bwg_back'); ?>" onclick="bwg_update_shortcode()" />
1057
  <div>
1058
  <input type="text" size="55" id="bwg_shortcode" name="bwg_shortcode" value='<?php echo $tagtext; ?>' onclick="bwg_onKeyDown(event)" />
1059
  <b><?php _e("Shortcode", 'bwg_back'); ?></b>
1402
  jQuery("#extended_album_image_thumb_width").val(short_code['extended_album_image_thumb_width']);
1403
  jQuery("#extended_album_image_thumb_height").val(short_code['extended_album_image_thumb_height']);
1404
  jQuery("#extended_albums_per_page_load_more").val(short_code['extended_albums_per_page_load_more']);
1405
+ jQuery("#extended_album_load_more_image_count").val(short_code['extended_album_load_more_image_count']);
1406
  if (short_code['extended_album_enable_page'] == 1) {
1407
  jQuery("#extended_album_page_yes").attr('checked', 'checked');
1408
  }
1819
  short_code += ' id="' + shortcode_id + '"' + title + ']';
1820
  var short_id = ' id="' + shortcode_id + '"' + title;
1821
  short_code = short_code.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function(d, c) {
1822
+ return "<img src='<?php echo WD_BWG_URL; ?>/images/icons/bwg_shortcode.png' class='bwg_shortcode mceItem' title='Best_Wordpress_Gallery" + short_id + "' />";
1823
  });
1824
  jQuery("#task").val("save");
1825
  jQuery("#tagtext").val(tagtext);
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -34,6 +34,11 @@ class BWGViewGalleries_bwg {
34
  $ids_string = '';
35
  $per_page = $this->model->per_page();
36
  $pager = 0;
 
 
 
 
 
37
  ?>
38
  <div style="clear: both; float: left; width: 99%;">
39
  <div style="float:left; font-size: 14px; font-weight: bold;">
@@ -54,33 +59,42 @@ class BWGViewGalleries_bwg {
54
  <a href="" id="galleries_id" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
55
  spider_form_submit(event, 'galleries_form')"><?php _e("Add new", 'bwg_back'); ?></a>
56
  </h2>
57
- <div id="draganddrop" class="updated" style="display:none;"><strong><p><?php _e("Changes made in this table should be saved.", 'bwg_back'); ?></p></strong></div>
58
- <div class="buttons_div">
59
- <span class="button-secondary non_selectable" onclick="spider_check_all_items()">
 
60
  <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
61
- <span style="vertical-align: middle;"><?php _e("Select All", 'bwg_back'); ?></span>
62
  </span>
63
- <input id="show_hide_weights" class="button-secondary" type="button" onclick="spider_show_hide_weights();return false;" value="<?php _e("Hide order column", 'bwg_back'); ?>" />
64
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'save_order')" value="<?php _e("Save Order", 'bwg_back'); ?>" />
65
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="<?php _e("Publish", 'bwg_back'); ?>" />
66
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'unpublish_all')" value="<?php _e("Unpublish", 'bwg_back'); ?>" />
67
- <input class="button-secondary" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected items?", 'bwg_back')); ?>')) {
68
- spider_set_input_value('task', 'delete_all');
69
- } else {
70
- return false;
71
- }" value="<?php _e("Delete", 'bwg_back'); ?>" />
72
- </div>
73
- <div class="tablenav top">
74
  <?php
75
- WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'galleries_form');
76
- WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page);
77
  ?>
 
 
 
78
  </div>
79
  <table class="wp-list-table widefat fixed pages">
80
  <thead>
81
- <th class="table_small_col"></th>
82
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0;" /></th>
83
- <th class="table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
 
 
 
 
 
 
 
 
 
84
  <a onclick="spider_set_input_value('task', '');
85
  spider_set_input_value('order_by', 'id');
86
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
@@ -88,58 +102,51 @@ class BWGViewGalleries_bwg {
88
  <span>ID</span><span class="sorting-indicator"></span>
89
  </a>
90
  </th>
91
- <th class="table_extra_large_col"><?php _e("Thumbnail", 'bwg_back'); ?></th>
92
- <th class="<?php if ($order_by == 'name') {echo $order_class;} ?>">
93
  <a onclick="spider_set_input_value('task', '');
94
  spider_set_input_value('order_by', 'name');
95
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
96
  spider_form_submit(event, 'galleries_form')" href="">
97
- <span><?php _e("Name", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
98
  </a>
99
  </th>
100
- <th class="<?php if ($order_by == 'slug') {echo $order_class;} ?>">
101
  <a onclick="spider_set_input_value('task', '');
102
  spider_set_input_value('order_by', 'slug');
103
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
104
  spider_form_submit(event, 'galleries_form')" href="">
105
- <span><?php _e("Slug", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
106
  </a>
107
  </th>
108
- <th class="<?php if ($order_by == 'display_name') {echo $order_class;} ?>">
109
  <a onclick="spider_set_input_value('task', '');
110
  spider_set_input_value('order_by', 'display_name');
111
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'display_name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
112
  spider_form_submit(event, 'galleries_form')" href="">
113
- <span><?php _e("Author", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
114
  </a>
115
  </th>
116
- <th class="table_large_col"><?php _e("Images count", 'bwg_back'); ?></th>
117
- <th id="th_order" class="table_medium_col <?php if ($order_by == 'order') {echo $order_class;} ?>">
118
- <a onclick="spider_set_input_value('task', '');
119
- spider_set_input_value('order_by', 'order');
120
- spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'order') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
121
- spider_form_submit(event, 'galleries_form')" href="">
122
- <span><?php _e("Order", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
123
- </a>
124
- </th>
125
- <th class="table_big_col <?php if ($order_by == 'published') {echo $order_class;} ?>">
126
  <a onclick="spider_set_input_value('task', '');
127
  spider_set_input_value('order_by', 'published');
128
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'published') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
129
  spider_form_submit(event, 'galleries_form')" href="">
130
- <span><?php _e("Published", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
131
  </a>
132
  </th>
133
- <th class="table_big_col"><?php _e("Edit", 'bwg_back'); ?></th>
134
- <th class="table_big_col"><?php _e("Delete", 'bwg_back'); ?></th>
135
  </thead>
136
  <tbody id="tbody_arr">
137
  <?php
138
  if ($rows_data) {
139
  foreach ($rows_data as $row_data) {
140
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
141
- $published_image = (($row_data->published) ? 'publish' : 'unpublish');
142
  $published = (($row_data->published) ? 'unpublish' : 'publish');
 
143
  $images_count = $this->model->get_images_count($row_data->id);
144
  if ($row_data->preview_image == '') {
145
  $preview_image = WD_BWG_URL . '/images/no-image.png';
@@ -149,7 +156,8 @@ class BWGViewGalleries_bwg {
149
  }
150
  ?>
151
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
152
- <td class="connectedSortable table_small_col"><div title="Drag to re-order"class="handle" style="margin:5px auto 0 auto;"></div></td>
 
153
  <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>
154
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
155
  <td class="table_extra_large_col">
@@ -166,23 +174,22 @@ class BWGViewGalleries_bwg {
166
  <td><?php echo $row_data->slug; ?></td>
167
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
168
  <td class="table_large_col"><?php echo $images_count; ?></td>
169
- <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>
170
- <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>
171
- <td class="table_big_col"><a onclick="spider_set_input_value('task', 'edit');
172
  spider_set_input_value('page_number', '1');
173
  spider_set_input_value('search_value', '');
174
  spider_set_input_value('search_or_not', '');
175
  spider_set_input_value('asc_or_desc', 'asc');
176
  spider_set_input_value('order_by', 'order');
177
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
178
- spider_form_submit(event, 'galleries_form')" href=""><?php echo __('Edit', 'bwg_back'); ?></a></td>
179
- <td class="table_big_col"><a onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected items?', 'bwg_back')); ?>')) {
180
  spider_set_input_value('task', 'delete');
181
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
182
  spider_form_submit(event, 'galleries_form')
183
  } else {
184
  return false;
185
- }" href=""><?php echo __('Delete', 'bwg_back'); ?></a></td>
186
  </tr>
187
  <?php
188
  $ids_string .= $row_data->id . ',';
@@ -193,7 +200,7 @@ class BWGViewGalleries_bwg {
193
  </table>
194
  <div class="tablenav bottom">
195
  <?php
196
- WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page);
197
  ?>
198
  </div>
199
  <input id="task" name="task" type="hidden" value="" />
@@ -217,7 +224,7 @@ class BWGViewGalleries_bwg {
217
  $images_count = $this->model->get_images_count($id);
218
  ?>
219
  <div style="clear: both; float: left; width: 99%;">
220
- <div id="message_div" class="updated" style="display: none;"></div>
221
  <div style="float:left; font-size: 14px; font-weight: bold;">
222
  <?php _e("This section allows you to add/edit gallery.", 'bwg_back'); ?>
223
  <a style="color: blue; text-decoration: none;" target="_blank" href="https://web-dorado.com/wordpress-gallery/creating-editing-galleries.html"><?php _e("Read More in User Manual", 'bwg_back'); ?></a>
@@ -268,7 +275,7 @@ class BWGViewGalleries_bwg {
268
  td_handle.setAttribute('title', "Drag to re-order");
269
  tr.appendChild(td_handle);
270
  var div_handle = document.createElement('div');
271
- div_handle.setAttribute('class', "handle connectedSortable");
272
  div_handle.setAttribute('style', "margin: 5px auto 0px;");
273
  td_handle.appendChild(div_handle);
274
  // Checkbox TD.
@@ -472,7 +479,7 @@ class BWGViewGalleries_bwg {
472
  td_tag.setAttribute('class', "table_extra_large_col");
473
  tr.appendChild(td_tag);
474
  var a_tag = document.createElement('a');
475
- a_tag.setAttribute('class', "button button-small button-primary thickbox thickbox-preview");
476
  <?php
477
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
478
  ?>
@@ -503,27 +510,28 @@ class BWGViewGalleries_bwg {
503
  td_order.appendChild(input_order);
504
  // Publish TD.
505
  var td_publish = document.createElement('td');
506
- td_publish.setAttribute('class', "table_big_col");
507
  tr.appendChild(td_publish);
508
  var a_publish = document.createElement('a');
 
509
  a_publish.setAttribute('onclick', "spider_set_input_value('ajax_task', 'image_unpublish');spider_set_input_value('image_current_id', '" + bwg_j + "');spider_ajax_save('galleries_form');");
 
510
  td_publish.appendChild(a_publish);
511
- var img_publish = document.createElement('img');
512
- img_publish.setAttribute('src', "<?php echo WD_BWG_URL . '/images/publish.png'; ?>");
513
- a_publish.appendChild(img_publish);
514
  // Delete TD.
515
  var td_delete = document.createElement('td');
516
  td_delete.setAttribute('class', "table_big_col spider_delete_button");
517
  tr.appendChild(td_delete);
518
  var a_delete = document.createElement('a');
 
 
519
  a_delete.setAttribute('onclick', "spider_set_input_value('ajax_task', 'image_delete');spider_set_input_value('image_current_id', '" + bwg_j + "');spider_ajax_save('galleries_form');");
520
- a_delete.innerHTML = 'Delete';
521
  td_delete.appendChild(a_delete);
522
  document.getElementById("ids_string").value += bwg_j + ',';
523
  j_int++;
524
  bwg_j = 'pr_' + j_int;
525
  }
526
  jQuery("#show_hide_weights").val("<?php _e("Hide order column", 'bwg_back'); ?>");
 
527
  spider_show_hide_weights();
528
  }
529
  </script>
@@ -533,18 +541,18 @@ class BWGViewGalleries_bwg {
533
  <span class="gallery-icon"></span>
534
  <h2><?php echo $page_title; ?></h2>
535
  <div style="float:right;">
536
- <input class="button-secondary" id='save_gall' type="button" onclick="if (spider_check_required('name', 'Name')) {return false;};
537
  spider_set_input_value('page_number', '1');
538
  spider_set_input_value('ajax_task', 'ajax_save');
539
  spider_ajax_save('galleries_form');
540
  spider_set_input_value('task', 'save');" value="<?php _e("Save", 'bwg_back'); ?>" />
541
- <input class="button-secondary" type="button" onclick="if (spider_check_required('name', 'Name')) {return false;};
542
  spider_set_input_value('ajax_task', 'ajax_apply');
543
  spider_ajax_save('galleries_form');" value="<?php _e("Apply", 'bwg_back'); ?>" />
544
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('page_number', '1');
545
  spider_set_input_value('task', 'cancel')" value="<?php _e("Cancel", 'bwg_back'); ?>" />
546
  </div>
547
- <table style="clear:both;">
548
  <tbody>
549
  <tr>
550
  <td class="spider_label_galleries"><label for="name"><?php _e("Name:", 'bwg_back'); ?> <span style="color:#FF0000;">*</span> </label></td>
@@ -557,7 +565,7 @@ class BWGViewGalleries_bwg {
557
  <tr>
558
  <td class="spider_label_galleries"><label for="gallery_type" ><?php _e("Gallery content type:", 'bwg_back'); ?> </label></td>
559
  <td class="">
560
- <select id="gallery_type" style="width:150px;" onchange="bwg_gallery_type();">
561
  <option value="" selected="selected"><?php _e("Standard", 'bwg_back'); ?></option>
562
  <option value="instagram"><?php _e("Instagram only", 'bwg_back'); ?></option>
563
  </select>
@@ -642,13 +650,13 @@ class BWGViewGalleries_bwg {
642
  $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
643
  $query_url = add_query_arg(array( 'TB_iframe' => '1'), $query_url);
644
  ?>
645
- <a href="<?php echo $query_url; ?>"
646
  id="button_preview_image"
647
- class="button-primary thickbox thickbox-preview"
648
- title="Add Preview Image"
649
  onclick="return false;"
650
- style="margin-bottom:5px; display:none;">
651
- <?php _e("Add Preview Image", 'bwg_back'); ?>
652
  </a>
653
  <input type="hidden" id="preview_image" name="preview_image" value="<?php echo $row->preview_image; ?>" style="display:inline-block;"/>
654
  <img id="img_preview_image"
@@ -680,7 +688,7 @@ class BWGViewGalleries_bwg {
680
  </script>
681
  <div id="opacity_div" style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
682
  <div id="loading_div" style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
683
- <img src="<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>" class="spider_ajax_loading" style="margin-top: 200px; width:50px;">
684
  </div>
685
  </form>
686
  <?php
@@ -701,15 +709,24 @@ class BWGViewGalleries_bwg {
701
  $gallery_row = $this->model->get_row_data($id);
702
  $gallery_type = ($gallery_row->gallery_type == 'instagram' || $gallery_row->gallery_type == 'instagram_post') ? 'instagram' : '';
703
  $pager = 0;
 
 
 
 
 
 
 
 
 
704
  ?>
705
- <div id="draganddrop" class="updated" style="display:none;"><strong><p><?php _e("Changes made in this table should be saved.", 'bwg_back'); ?></p></strong></div>
706
  <div class="buttons_div_left">
707
  <?php
708
  $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'));
709
  $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
710
  $query_url = add_query_arg(array( 'TB_iframe' => '1'), $query_url);
711
  ?>
712
- <a href="<?php echo $query_url; ?>" id="add_image_bwg" class="button-primary 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';} ?>" >
713
  <?php _e("Add Images", 'bwg_back'); ?>
714
  </a>
715
  <?php
@@ -719,49 +736,35 @@ class BWGViewGalleries_bwg {
719
  <script>
720
  var ajax_url = "<?php echo $query_url; ?>"
721
  </script>
722
- <input id="show_add_embed" class="button-primary" type="button" onclick="jQuery('.opacity_add_embed').show(); jQuery('#add_embed_help').hide(); return false;" value="<?php _e("Embed Media", 'bwg_back'); ?>" />
723
- <input id="show_bulk_embed" class="button-primary spider_free_version_button" type="button" onclick="jQuery('.opacity_bulk_embed').show(); return false;" value="<?php _e("Bulk Embed", 'bwg_back'); ?>" />
724
- </div>
725
- <div class="buttons_div_right">
726
- <span class="button-secondary non_selectable" onclick="spider_check_all_items()">
 
727
  <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
728
- <span style="vertical-align: middle;"><?php _e("Select All", 'bwg_back'); ?></span>
729
  </span>
730
- <input id="show_hide_weights" class="button-secondary" type="button" onclick="spider_show_hide_weights();return false;" value="<?php _e("Hide order column", 'bwg_back'); ?>" />
731
- <input class="button-primary" id='spider_setwatermark_button' type="submit" onclick="spider_set_input_value('ajax_task', 'image_set_watermark');
732
- spider_ajax_save('galleries_form');
733
- return false;" value="<?php _e("Set Watermark", 'bwg_back'); ?>" />
734
- <input class="button-secondary" id='spider_resize_button' type="submit" onclick="jQuery('.opacity_resize_image').show(); return false;" value="<?php _e("Resize", 'bwg_back'); ?>" />
735
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('ajax_task', 'resize_image_thumb'); spider_ajax_save('galleries_form');return false;" value="<?php _e("Recreate Thumbnail", 'bwg_back'); ?>" />
736
- <input class="button-secondary" id='spider_reset_button' type="submit" onclick="spider_set_input_value('ajax_task', 'image_recover_all');
737
- spider_ajax_save('galleries_form');
738
- return false;" value="<?php _e("Reset", 'bwg_back'); ?>" />
739
  <?php
740
- $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
741
- $query_url = add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page ), $query_url);
742
- ?>
743
- <a onclick="return bwg_check_checkboxes();" href="<?php echo $query_url; ?>&TB_iframe=1" class="button-primary thickbox thickbox-preview"><?php _e("Add tag", 'bwg_back'); ?></a>
744
-
745
-
746
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('ajax_task', 'image_publish_all');
747
- spider_ajax_save('galleries_form');
748
- return false;" value="<?php _e("Publish", 'bwg_back'); ?>" />
749
- <input class="button-secondary" type="submit" onclick="spider_set_input_value('ajax_task', 'image_unpublish_all');
750
- spider_ajax_save('galleries_form');
751
- return false;" value="<?php _e("Unpublish", 'bwg_back'); ?>" />
752
- <input class="button-secondary spider_delete_button" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected items?", 'bwg_back')); ?>')) {
753
- spider_set_input_value('ajax_task', 'image_delete_all');
754
- spider_ajax_save('galleries_form');
755
- return false;
756
- } else {
757
- return false;
758
- }" value="<?php _e("Delete", 'bwg_back'); ?>" />
759
  </div>
760
  <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>
761
  <div id="add_embed" class="opacity_add_embed bwg_add_embed">
762
  <input type="text" id="embed_url" name="embed_url" value="" />
763
- <input class="button-primary" 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'); ?>" />
764
- <input class="button-secondary" type="button" onclick="jQuery('.opacity_add_embed').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" />
765
  <div class="spider_description">
766
  <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>
767
  </div>
@@ -775,108 +778,108 @@ class BWGViewGalleries_bwg {
775
  </div>
776
  </div>
777
  <div id="bulk_embed" class="opacity_bulk_embed bwg_bulk_embed">
778
- <input class="button-secondary" 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;"/>
779
- <input class="button-primary spider_free_version_button" type="button" value="<?php _e("Add to gallery", 'bwg_back'); ?>" style="float:right; margin-left:5px;"/>
780
  <div class="spider_description"></div>
781
- <table class="spider_free_version">
782
  <thead>
783
  <tr>
784
- <td class="spider_label_galleries"><label for="bulk_embed_from" class="spider_free_version_label"><?php _e("Bulk embed from:", 'bwg_back'); ?> </label></td>
785
  <td>
786
  <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'); ?>" >
787
- <label for="bulk_embed_from_instagram" class="spider_free_version_label"><?php _e("Instagram", 'bwg_back'); ?></label>&nbsp;
788
  </td>
789
  </tr>
790
  </thead>
791
  <tbody id="instagram_bulk_params">
792
  <tr id='popup_tr_instagram_gallery_source' style='display:table-row'>
793
- <td class="spider_label_galleries"><label for="popup_instagram_gallery_source" class="spider_free_version_label"><?php _e("Instagram username:", 'bwg_back'); ?> </label></td>
794
- <td class="spider_free_version_label"><input type="text" id="popup_instagram_gallery_source" disabled="disabled" value="<?php _e("Bulk embed from Instagram is disabled in free version", 'bwg_back'); ?>" size="64" /></td>
795
  </tr>
796
  <tr id='popup_tr_instagram_image_number' style='display:table-row'>
797
- <td class="spider_label_galleries"><label for="popup_instagram_image_number" class="spider_free_version_label"><?php _e("Number of Instagram recent posts to add to gallery:", 'bwg_back'); ?> </label></td>
798
  <td><input type="number" disabled="disabled" id="popup_instagram_image_number" value="12" /></td>
799
  </tr>
800
  <tr id='popup_tr_instagram_post_gallery' style='display:table-row'>
801
- <td class="spider_label_galleries"><label class="spider_free_version_label"><?php _e("Instagram embed type:", 'bwg_back'); ?> </label></td>
802
- <td class="spider_free_version_label">
803
  <input type="radio" disabled="disabled" class="inputbox" id="popup_instagram_post_gallery_0" checked="checked" value="0" >
804
- <label for="popup_instagram_post_gallery_0" class="spider_free_version_label"><?php _e("Content", 'bwg_back'); ?></label>&nbsp;
805
  <input type="radio" disabled="disabled" class="inputbox" id="popup_instagram_post_gallery_1" value="1" >
806
- <label for="popup_instagram_post_gallery_1" class="spider_free_version_label"><?php _e("Whole post", 'bwg_back'); ?></label>
807
  </td>
808
  <tr>
809
  </tbody>
810
  </table>
811
-
812
-
813
  </div>
814
  <div id="" class="opacity_resize_image bwg_resize_image">
815
  <?php _e("Resize images to: ", 'bwg_back'); ?>
816
  <input type="text" name="image_width" id="image_width" value="1600" /> x
817
  <input type="text" name="image_height" id="image_height" value="1200" /> px
818
- <input class="button-primary" type="button" onclick="spider_set_input_value('ajax_task', 'image_resize');
819
  spider_ajax_save('galleries_form');
820
  jQuery('.opacity_resize_image').hide();
821
  return false;" value="<?php _e("Resize", 'bwg_back'); ?>" />
822
- <input class="button-secondary" type="button" onclick="jQuery('.opacity_resize_image').hide(); return false;" value="<?php _e("Cancel", 'bwg_back'); ?>" />
823
  <div class="spider_description"><?php _e("The maximum size of resized image.", 'bwg_back'); ?></div>
824
  </div>
825
- <div class="tablenav top">
826
- <?php
827
- WDWLibrary::ajax_search(__("Filename", 'bwg_back'), $search_value, 'galleries_form');
828
- WDWLibrary::ajax_html_page_nav($page_nav['total'], $page_nav['limit'], 'galleries_form', $per_page, $pager++);
829
- ?>
830
- </div>
831
-
832
  <table id="images_table" class="wp-list-table widefat fixed pages">
833
  <thead>
834
- <th class="check-column table_small_col"></th>
835
- <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0;" /></th>
 
 
 
 
 
 
 
 
 
 
836
  <th class="table_small_col">#</th>
837
- <th class="table_extra_large_col"><?php _e("Thumbnail", 'bwg_back'); ?></th>
838
- <th class="table_extra_large_col <?php if ($image_order_by == 'filename') {echo $order_class;} ?>">
839
  <a onclick="spider_set_input_value('task', '');
840
  spider_set_input_value('image_order_by', 'filename');
841
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'filename' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
842
  spider_ajax_save('galleries_form');">
843
- <span><?php _e("Filename", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
844
  </a>
845
  </th>
846
- <th class="table_extra_large_col <?php if ($image_order_by == 'alt') {echo $order_class;} ?>">
847
  <a onclick="spider_set_input_value('task', '');
848
  spider_set_input_value('image_order_by', 'alt');
849
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'alt' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
850
  spider_ajax_save('galleries_form');">
851
- <span><?php _e("Alt/Title", 'bwg_back'); ?><?php if ($option_row->thumb_click_action != 'open_lightbox') { ?><br />Redirect URL<?php } ?></span><span class="sorting-indicator"></span>
852
  </a>
853
  </th>
854
- <th class="table_extra_large_col <?php if ($image_order_by == 'description') {echo $order_class;} ?>">
855
  <a onclick="spider_set_input_value('task', '');
856
  spider_set_input_value('image_order_by', 'description');
857
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'description' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
858
  spider_ajax_save('galleries_form');">
859
- <span><?php _e("Description", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
860
  </a>
861
  </th>
862
- <th class="table_extra_large_col"><?php _e("Tags", 'bwg_back'); ?></th>
863
- <th id="th_order" class="table_medium_col <?php if ($image_order_by == 'order') {echo $order_class;} ?>">
864
- <a onclick="spider_set_input_value('task', '');
865
- spider_set_input_value('image_order_by', 'order');
866
- spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'order' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
867
- spider_ajax_save('galleries_form');">
868
- <span><?php _e("Order", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
869
- </a>
870
  </th>
871
- <th class="table_big_col <?php if ($image_order_by == 'published') {echo $order_class;} ?>">
872
  <a onclick="spider_set_input_value('task', '');
873
  spider_set_input_value('image_order_by', 'published');
874
  spider_set_input_value('image_asc_or_desc', '<?php echo ($image_order_by == 'published' && $image_asc_or_desc == 'asc') ? 'desc' : 'asc'; ?>');
875
  spider_ajax_save('galleries_form');">
876
- <span><?php _e("Published", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
877
  </a>
878
  </th>
879
- <th class="table_big_col"><?php _e("Delete", 'bwg_back'); ?></th>
880
  </thead>
881
  <tbody id="tbody_arr">
882
  <?php
@@ -886,11 +889,13 @@ class BWGViewGalleries_bwg {
886
  $is_embed = preg_match('/EMBED/',$row_data->filetype)==1 ? true :false;
887
  $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"';
888
  $rows_tag_data = $this->model->get_tag_rows_data($row_data->id);
889
- $published_image = (($row_data->published) ? 'publish' : 'unpublish');
890
  $published = (($row_data->published) ? 'unpublish' : 'publish');
 
891
  ?>
892
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
893
- <td class="connectedSortable table_small_col"><div title="Drag to re-order" class="handle" style="margin:5px auto 0 auto;"></div></td>
 
894
  <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>
895
  <td class="table_small_col"><?php echo ++$i; ?></td>
896
  <td class="table_extra_large_col">
@@ -970,7 +975,7 @@ class BWGViewGalleries_bwg {
970
  $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
971
  $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);
972
  ?>
973
- <a href="<?php echo $query_url; ?>" class="button button-small button-primary thickbox thickbox-preview"><?php _e("Add tag", 'bwg_back'); ?></a>
974
  <div class="tags_div" id="tags_div_<?php echo $row_data->id; ?>">
975
  <?php
976
  $tags_id_string = '';
@@ -989,17 +994,16 @@ class BWGViewGalleries_bwg {
989
  </div>
990
  <input type="hidden" value="<?php echo $tags_id_string; ?>" id="tags_<?php echo $row_data->id; ?>" name="tags_<?php echo $row_data->id; ?>"/>
991
  </td>
992
- <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>
993
- <td class="table_big_col"><a onclick="spider_set_input_value('ajax_task', 'image_<?php echo $published; ?>');
994
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
995
- spider_ajax_save('galleries_form');"><img src="<?php echo WD_BWG_URL . '/images/' . $published_image . '.png'; ?>"></img></a></td>
996
- <td class="table_big_col spider_delete_button" ><a onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected items?', 'bwg_back')); ?>')) {
997
  spider_set_input_value('ajax_task', 'image_delete');
998
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
999
  spider_ajax_save('galleries_form');
1000
  } else {
1001
  return false;
1002
- }"><?php echo __('Delete', 'bwg_back'); ?></a></td>
1003
  </tr>
1004
  <?php
1005
  $ids_string .= $row_data->id . ',';
34
  $ids_string = '';
35
  $per_page = $this->model->per_page();
36
  $pager = 0;
37
+ $gallery_button_array = array(
38
+ 'publish_all' => __('Publish', 'bwg_back'),
39
+ 'unpublish_all' => __('Unpublish', 'bwg_back'),
40
+ 'delete_all' => __('Delete', 'bwg_back')
41
+ );
42
  ?>
43
  <div style="clear: both; float: left; width: 99%;">
44
  <div style="float:left; font-size: 14px; font-weight: bold;">
59
  <a href="" id="galleries_id" class="add-new-h2" onclick="spider_set_input_value('task', 'add');
60
  spider_form_submit(event, 'galleries_form')"><?php _e("Add new", 'bwg_back'); ?></a>
61
  </h2>
62
+ <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>
63
+ <?php WDWLibrary::search(__('Name','bwg_back'), $search_value, 'galleries_form', '');?>
64
+ <div class="tablenav top buttons_div" >
65
+ <span class="wd-btn wd-btn-primary-gray bwg_check_all non_selectable" onclick="spider_check_all_items()">
66
  <input type="checkbox" id="check_all_items" name="check_all_items" onclick="spider_check_all_items_checkbox()" style="margin: 0; vertical-align: middle;" />
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
+ ?>
74
+ <option value="<?php echo $key; ?>">
75
+ <?php echo $value; ?>
76
+ </option>
 
 
 
77
  <?php
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>
86
+ <th class="sortable check-column table_small_col manage-column <?php if ($order_by == 'order') {echo $order_class;} ?>" style="margin: 0px auto 5px 15px; width: 77px; vertical-align: middle;">
87
+ <a id="show_hide_weights" class="bwg_order_column" title="<?php echo __('Hide order column', 'bwg_back'); ?>" onclick="spider_show_hide_weights();" value="<?php echo __('Hide order column', 'bwg_back'); ?>" ></a>
88
+ <a id="show_order_button" class="bwg_save_order" title="<?php echo __('Save Order', 'bwg_back'); ?>" onclick="spider_set_input_value('task', 'save_order');spider_form_submit(event, 'galleries_form')" value="<?php echo __('Save Order', 'bwg_back'); ?>" ></a>
89
+ <a id="th_order" onclick="spider_set_input_value('task', '');
90
+ spider_set_input_value('order_by', 'order');
91
+ spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'order') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
92
+ spider_form_submit(event, 'galleries_form')" href="">
93
+ <span class="sorting-indicator"></span>
94
+ </a>
95
+ </th>
96
+ <th class="sortable manage-column column-cb check-column table_small_col" style="padding-top:15px !important;"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:0" /></th>
97
+ <th class="sortable table_th_middle table_small_col <?php if ($order_by == 'id') {echo $order_class;} ?>">
98
  <a onclick="spider_set_input_value('task', '');
99
  spider_set_input_value('order_by', 'id');
100
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
102
  <span>ID</span><span class="sorting-indicator"></span>
103
  </a>
104
  </th>
105
+ <th class="table_extra_large_col"><?php echo __('Thumbnail', 'bwg_back'); ?></th>
106
+ <th class="sortable <?php if ($order_by == 'name') {echo $order_class;} ?>">
107
  <a onclick="spider_set_input_value('task', '');
108
  spider_set_input_value('order_by', 'name');
109
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
110
  spider_form_submit(event, 'galleries_form')" href="">
111
+ <span><?php echo __('Name', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
112
  </a>
113
  </th>
114
+ <th class="sortable <?php if ($order_by == 'slug') {echo $order_class;} ?>">
115
  <a onclick="spider_set_input_value('task', '');
116
  spider_set_input_value('order_by', 'slug');
117
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
118
  spider_form_submit(event, 'galleries_form')" href="">
119
+ <span><?php echo __('Slug', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
120
  </a>
121
  </th>
122
+ <th class="sortable <?php if ($order_by == 'display_name') {echo $order_class;} ?>">
123
  <a onclick="spider_set_input_value('task', '');
124
  spider_set_input_value('order_by', 'display_name');
125
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'display_name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
126
  spider_form_submit(event, 'galleries_form')" href="">
127
+ <span><?php echo __('Author', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
128
  </a>
129
  </th>
130
+ <th class="table_big_col"><?php echo __('Images count', 'bwg_back'); ?></th>
131
+ <th class="sortable table_big_col <?php if ($order_by == 'published') {echo $order_class;} ?>" style="padding-left:30px;">
 
 
 
 
 
 
 
 
132
  <a onclick="spider_set_input_value('task', '');
133
  spider_set_input_value('order_by', 'published');
134
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'published') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
135
  spider_form_submit(event, 'galleries_form')" href="">
136
+ <span><?php echo __('Published', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
137
  </a>
138
  </th>
139
+ <th class="table_small_col"><?php echo __('Edit', 'bwg_back'); ?></th>
140
+ <th class="table_small_col"><?php echo __('Delete', 'bwg_back'); ?></th>
141
  </thead>
142
  <tbody id="tbody_arr">
143
  <?php
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);
151
  if ($row_data->preview_image == '') {
152
  $preview_image = WD_BWG_URL . '/images/no-image.png';
156
  }
157
  ?>
158
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
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="connectedSortable handles table_small_col"><div title="Drag to re-order" class="handle" style="margin:5px auto 0 auto;"></div></td>
161
  <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>
162
  <td class="table_small_col"><?php echo $row_data->id; ?></td>
163
  <td class="table_extra_large_col">
174
  <td><?php echo $row_data->slug; ?></td>
175
  <td><?php echo get_userdata($row_data->author)->display_name; ?></td>
176
  <td class="table_large_col"><?php echo $images_count; ?></td>
177
+ <td class="table_big_col publish_icon"><a style="background-image:url('<?php echo WD_BWG_URL . '/images/icons/' . $published_image . '.png'; ?>'); background-repeat: no-repeat; display: inline-block; width: 18px; height: 22px;margin: 3px; vertical-align: middle;background-size: contain;" title="<?php echo $unpublish; ?>" 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=""></a></td>
178
+ <td class="table_big_col"><a class="bwg_img_edit" title="<?php echo __('Edit', 'bwg_back'); ?>" onclick="spider_set_input_value('task', 'edit');
 
179
  spider_set_input_value('page_number', '1');
180
  spider_set_input_value('search_value', '');
181
  spider_set_input_value('search_or_not', '');
182
  spider_set_input_value('asc_or_desc', 'asc');
183
  spider_set_input_value('order_by', 'order');
184
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
185
+ spider_form_submit(event, 'galleries_form')" href=""></a></td>
186
+ <td class="table_big_col"><a class="bwg_img_remove" title="<?php echo __('Delete', 'bwg_back'); ?>" onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected items?', 'bwg_back')); ?>')) {
187
  spider_set_input_value('task', 'delete');
188
  spider_set_input_value('current_id', '<?php echo $row_data->id; ?>');
189
  spider_form_submit(event, 'galleries_form')
190
  } else {
191
  return false;
192
+ }" href=""></a></td>
193
  </tr>
194
  <?php
195
  $ids_string .= $row_data->id . ',';
200
  </table>
201
  <div class="tablenav bottom">
202
  <?php
203
+ WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'galleries_form', $per_page,'');
204
  ?>
205
  </div>
206
  <input id="task" name="task" type="hidden" value="" />
224
  $images_count = $this->model->get_images_count($id);
225
  ?>
226
  <div style="clear: both; float: left; width: 99%;">
227
+ <div id="message_div" class="wd_updated" style="display: none;"></div>
228
  <div style="float:left; font-size: 14px; font-weight: bold;">
229
  <?php _e("This section allows you to add/edit gallery.", 'bwg_back'); ?>
230
  <a style="color: blue; text-decoration: none;" target="_blank" href="https://web-dorado.com/wordpress-gallery/creating-editing-galleries.html"><?php _e("Read More in User Manual", 'bwg_back'); ?></a>
275
  td_handle.setAttribute('title', "Drag to re-order");
276
  tr.appendChild(td_handle);
277
  var div_handle = document.createElement('div');
278
+ div_handle.setAttribute('class', "bwg_img_handle handle connectedSortable");
279
  div_handle.setAttribute('style', "margin: 5px auto 0px;");
280
  td_handle.appendChild(div_handle);
281
  // Checkbox TD.
479
  td_tag.setAttribute('class', "table_extra_large_col");
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
  ?>
510
  td_order.appendChild(input_order);
511
  // Publish TD.
512
  var td_publish = document.createElement('td');
513
+ td_publish.setAttribute('class', "table_big_col publish_icon");
514
  tr.appendChild(td_publish);
515
  var a_publish = document.createElement('a');
516
+ a_publish.setAttribute('style',"background-image:url('<?php echo WD_BWG_URL . '/images/icons/publish-blue.png'; ?>');background-repeat: no-repeat; display: inline-block; width: 18px; height: 22px;margin: 3px; vertical-align: middle;background-size: contain;")
517
  a_publish.setAttribute('onclick', "spider_set_input_value('ajax_task', 'image_unpublish');spider_set_input_value('image_current_id', '" + bwg_j + "');spider_ajax_save('galleries_form');");
518
+ a_publish.setAttribute('title','Publish');
519
  td_publish.appendChild(a_publish);
 
 
 
520
  // Delete TD.
521
  var td_delete = document.createElement('td');
522
  td_delete.setAttribute('class', "table_big_col spider_delete_button");
523
  tr.appendChild(td_delete);
524
  var a_delete = document.createElement('a');
525
+ a_delete.setAttribute('class', "bwg_img_remove");
526
+ a_delete.setAttribute('title', "Delete");
527
  a_delete.setAttribute('onclick', "spider_set_input_value('ajax_task', 'image_delete');spider_set_input_value('image_current_id', '" + bwg_j + "');spider_ajax_save('galleries_form');");
 
528
  td_delete.appendChild(a_delete);
529
  document.getElementById("ids_string").value += bwg_j + ',';
530
  j_int++;
531
  bwg_j = 'pr_' + j_int;
532
  }
533
  jQuery("#show_hide_weights").val("<?php _e("Hide order column", 'bwg_back'); ?>");
534
+ jQuery("#show_hide_weights").attr('title',"<?php _e("Hide order column", 'bwg_back'); ?>");
535
  spider_show_hide_weights();
536
  }
537
  </script>
541
  <span class="gallery-icon"></span>
542
  <h2><?php echo $page_title; ?></h2>
543
  <div style="float:right;">
544
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" id='save_gall' type="button" onclick="if (spider_check_required('name', 'Name')) {return false;};
545
  spider_set_input_value('page_number', '1');
546
  spider_set_input_value('ajax_task', 'ajax_save');
547
  spider_ajax_save('galleries_form');
548
  spider_set_input_value('task', 'save');" value="<?php _e("Save", 'bwg_back'); ?>" />
549
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-apply" type="button" onclick="if (spider_check_required('name', 'Name')) {return false;};
550
  spider_set_input_value('ajax_task', 'ajax_apply');
551
  spider_ajax_save('galleries_form');" value="<?php _e("Apply", 'bwg_back'); ?>" />
552
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel" type="submit" onclick="spider_set_input_value('page_number', '1');
553
  spider_set_input_value('task', 'cancel')" value="<?php _e("Cancel", 'bwg_back'); ?>" />
554
  </div>
555
+ <table style="clear:both; width:99.9%">
556
  <tbody>
557
  <tr>
558
  <td class="spider_label_galleries"><label for="name"><?php _e("Name:", 'bwg_back'); ?> <span style="color:#FF0000;">*</span> </label></td>
565
  <tr>
566
  <td class="spider_label_galleries"><label for="gallery_type" ><?php _e("Gallery content type:", 'bwg_back'); ?> </label></td>
567
  <td class="">
568
+ <select class="select_icon" id="gallery_type" style="width:150px;" onchange="bwg_gallery_type();">
569
  <option value="" selected="selected"><?php _e("Standard", 'bwg_back'); ?></option>
570
  <option value="instagram"><?php _e("Instagram only", 'bwg_back'); ?></option>
571
  </select>
650
  $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
651
  $query_url = add_query_arg(array( 'TB_iframe' => '1'), $query_url);
652
  ?>
653
+ <a href="<?php echo $query_url; ?>"
654
  id="button_preview_image"
655
+ class="wd-preview-image-btn thickbox thickbox-preview"
656
+ title="<?php echo __('Add Preview Image', 'bwg_back'); ?>"
657
  onclick="return false;"
658
+ style="display:none;">
659
+
660
  </a>
661
  <input type="hidden" id="preview_image" name="preview_image" value="<?php echo $row->preview_image; ?>" style="display:inline-block;"/>
662
  <img id="img_preview_image"
688
  </script>
689
  <div id="opacity_div" style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
690
  <div id="loading_div" style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
691
+ <img src="<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>" class="bwg_spider_ajax_loading" style="margin-top: 200px; width:30px;">
692
  </div>
693
  </form>
694
  <?php
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'),
715
+ 'resize_image_thumb' => __('Recreate Thumbnail', '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_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
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>
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'); ?>" >
790
+ <label for="bulk_embed_from_instagram" class="spider_free_version_label_color"><?php _e("Instagram", 'bwg_back'); ?></label>&nbsp;
791
  </td>
792
  </tr>
793
  </thead>
794
  <tbody id="instagram_bulk_params">
795
  <tr id='popup_tr_instagram_gallery_source' style='display:table-row'>
796
+ <td class="spider_label_galleries"><label for="popup_instagram_gallery_source" class="spider_free_version_label_color"><?php _e("Instagram username:", 'bwg_back'); ?> </label></td>
797
+ <td class="spider_free_version_label_color"><input type="text" id="popup_instagram_gallery_source" disabled="disabled" value="<?php _e("Bulk embed from Instagram is disabled in free version", 'bwg_back'); ?>" size="64" /></td>
798
  </tr>
799
  <tr id='popup_tr_instagram_image_number' style='display:table-row'>
800
+ <td class="spider_label_galleries"><label for="popup_instagram_image_number" class="spider_free_version_label_color"><?php _e("Number of Instagram recent posts to add to gallery:", 'bwg_back'); ?> </label></td>
801
  <td><input type="number" disabled="disabled" id="popup_instagram_image_number" value="12" /></td>
802
  </tr>
803
  <tr id='popup_tr_instagram_post_gallery' style='display:table-row'>
804
+ <td class="spider_label_galleries"><label class="spider_free_version_label_color"><?php _e("Instagram embed type:", 'bwg_back'); ?> </label></td>
805
+ <td class="spider_free_version_label_color">
806
  <input type="radio" disabled="disabled" class="inputbox" id="popup_instagram_post_gallery_0" checked="checked" value="0" >
807
+ <label for="popup_instagram_post_gallery_0" class="spider_free_version_label_color"><?php _e("Content", 'bwg_back'); ?></label>&nbsp;
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');
834
+ spider_ajax_save('galleries_form');" style="display: none;">
835
+ <span class="sorting-indicator"></span>
836
+ </a>
837
+ </th>
838
+ <th class="manage-column column-cb check-column table_small_col" style="padding-top:12px !important;"><input id="check_all" type="checkbox" onclick="spider_check_all(this)" style="margin:5px auto 0;" />
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;} ?>">
852
  <a onclick="spider_set_input_value('task', '');
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;} ?>">
860
  <a onclick="spider_set_input_value('task', '');
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
868
+ $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'addTags', 'bwg_nonce' );
869
+ $query_url = add_query_arg(array('action' => 'addTags', 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page ), $query_url);
870
+ ?>
871
+ <th class="table_extra_big_col">
872
+ <a onclick="return bwg_check_checkboxes();" title="<?php echo __('Add tag', 'bwg_back'); ?>" href="<?php echo $query_url; ?>&TB_iframe=1" class="wd-btn wd-btn-primary wd-not-image thickbox thickbox-preview"><?php echo __('Add tag', 'bwg_back'); ?></a>
 
 
873
  </th>
874
+ <th class="sortable table_big_col <?php if ($image_order_by == 'published') {echo $order_class;} ?>">
875
  <a onclick="spider_set_input_value('task', '');
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>
883
  </thead>
884
  <tbody id="tbody_arr">
885
  <?php
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
  ?>
896
  <tr id="tr_<?php echo $row_data->id; ?>" <?php echo $alternate; ?>>
897
+ <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>
898
+ <td class="connectedSortable handles table_small_col"><div title="Drag to re-order" class="handle" style="margin:5px auto 0 auto;"></div></td>
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">
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 = '';
994
  </div>
995
  <input type="hidden" value="<?php echo $tags_id_string; ?>" id="tags_<?php echo $row_data->id; ?>" name="tags_<?php echo $row_data->id; ?>"/>
996
  </td>
997
+ <td class="table_big_col publish_icon"><a style="background-image:url('<?php echo WD_BWG_URL . '/images/icons/' . $published_image . '.png'; ?>'); background-repeat: no-repeat; display: inline-block; width: 18px; height: 22px;margin: 3px; vertical-align: middle;background-size: contain;" title="<?php echo $unpublish; ?>" onclick="spider_set_input_value('ajax_task', 'image_<?php echo $published; ?>');
 
998
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
999
+ spider_ajax_save('galleries_form');"></a></td>
1000
+ <td class="table_big_col spider_delete_button" ><a class="bwg_img_remove" title='<?php echo __('Delete', 'bwg_back'); ?>' onclick="if (confirm('<?php echo addslashes(__('Do you want to delete selected items?', 'bwg_back')); ?>')) {
1001
  spider_set_input_value('ajax_task', 'image_delete');
1002
  spider_set_input_value('image_current_id', '<?php echo $row_data->id; ?>');
1003
  spider_ajax_save('galleries_form');
1004
  } else {
1005
  return false;
1006
+ }"></a></td>
1007
  </tr>
1008
  <?php
1009
  $ids_string .= $row_data->id . ',';
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -95,8 +95,8 @@ class BWGViewOptions_bwg {
95
  <h2 id="ed_options"><?php _e("Edit options", 'bwg_back'); ?></h2>
96
  <div style="display: inline-block; width: 100%;">
97
  <div style="float: right;">
98
- <input class="button-primary" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'save')" value="<?php _e("Save", 'bwg_back'); ?>" />
99
- <input class="button-secondary" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to reset to default?", 'bwg_back')); ?>')) {
100
  spider_set_input_value('task', 'reset');
101
  } else {
102
  return false;
@@ -122,17 +122,6 @@ class BWGViewOptions_bwg {
122
  <div class="spider_div_options" id="div_content_1">
123
  <table>
124
  <tbody>
125
- <tr>
126
- <td class="spider_label_options">
127
- <label><?php echo __('Introduction tour:', 'bwg_back'); ?></label>
128
- </td>
129
- <td>
130
- <a href="admin.php?page=options_bwg&bwg_start_tour=1" class="button" title="<?php echo _e('Start tour', 'bwg_back'); ?>">
131
- <?php _e('Start tour', 'bwg_back'); ?>
132
- </a>
133
- <div class="spider_description"><?php echo __('Take this tour to quickly learn about the use of this plugin.', 'bwg_back'); ?></div>
134
- </td>
135
- </tr>
136
  <tr>
137
  <td class="spider_label_options">
138
  <label for="images_directory"><?php _e("Images directory:", 'bwg_back'); ?></label>
@@ -311,6 +300,17 @@ class BWGViewOptions_bwg {
311
  <div class="spider_description"></div>
312
  </td>
313
  </tr>
 
 
 
 
 
 
 
 
 
 
 
314
  </tbody>
315
  </table>
316
  </div>
@@ -347,7 +347,7 @@ class BWGViewOptions_bwg {
347
  $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
348
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
349
  ?>
350
- <a href="<?php echo $query_url; ?>" id="button_add_built_in_watermark_image" class="button-primary thickbox thickbox-preview"
351
  title="Add image"
352
  onclick="return false;"
353
  style="margin-bottom:5px;">
@@ -388,7 +388,7 @@ class BWGViewOptions_bwg {
388
  <label for="built_in_watermark_font"><?php _e('Watermark font style: ', 'bwg_back'); ?></label>
389
  </td>
390
  <td>
391
- <select name="built_in_watermark_font" id="built_in_watermark_font" style="width:150px;" onchange="preview_built_in_watermark()">
392
  <?php
393
  foreach ($built_in_watermark_fonts as $watermark_font) {
394
  ?>
@@ -508,7 +508,7 @@ class BWGViewOptions_bwg {
508
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
509
  ?>
510
 
511
- <a href="<?php echo $query_url; ?>" id="button_add_watermark_image" class="button-primary thickbox thickbox-preview"
512
  title="Add image"
513
  onclick="return false;"
514
  style="margin-bottom:5px;">
@@ -559,7 +559,7 @@ class BWGViewOptions_bwg {
559
  <label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
560
  </td>
561
  <td>
562
- <select name="watermark_font" id="watermark_font" style="width:150px;" onchange="preview_watermark()">
563
  <?php
564
  foreach ($watermark_fonts as $watermark_font) {
565
  ?>
@@ -659,7 +659,7 @@ class BWGViewOptions_bwg {
659
  <label for="popup_type"><?php _e('Lightbox effect:', 'bwg_back'); ?></label>
660
  </td>
661
  <td>
662
- <select name="popup_type" id="popup_type" style="width:150px;">
663
  <?php
664
  foreach ($effects as $key => $effect) {
665
  ?>
@@ -1089,7 +1089,7 @@ class BWGViewOptions_bwg {
1089
  <label for="slideshow_type"><?php _e("Slideshow effect:", 'bwg_back'); ?> </label>
1090
  </td>
1091
  <td>
1092
- <select name="slideshow_type" id="slideshow_type" style="width:150px;">
1093
  <?php
1094
  foreach ($effects as $key => $effect) {
1095
  ?>
@@ -1371,7 +1371,7 @@ class BWGViewOptions_bwg {
1371
  <td>
1372
  <input type="text" name="upload_thumb_width" id="upload_thumb_width" value="<?php echo $row->upload_thumb_width; ?>" class="spider_int_input" /> x
1373
  <input type="text" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo $row->upload_thumb_height; ?>" class="spider_int_input" /> px
1374
- <input type="submit" class="button-secondary" onclick="spider_set_input_value('task', 'save'); spider_set_input_value('recreate', 'resize_image_thumb');" value="<?php echo __('Recreate', 'bwg_back'); ?>" />
1375
  <div class="spider_description"><?php _e("The maximum size of the generated thumbnail. Its dimensions should be larger than the ones of the frontend thumbnail.", 'bwg_back'); ?></div>
1376
  </td>
1377
  </tr>
95
  <h2 id="ed_options"><?php _e("Edit options", 'bwg_back'); ?></h2>
96
  <div style="display: inline-block; width: 100%;">
97
  <div style="float: right;">
98
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" type="submit" onclick="if (spider_check_required('title', 'Title')) {return false;}; spider_set_input_value('task', 'save')" value="<?php _e("Save", 'bwg_back'); ?>" />
99
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-reset" type="submit" onclick="if (confirm('<?php echo addslashes(__("Do you want to reset to default?", 'bwg_back')); ?>')) {
100
  spider_set_input_value('task', 'reset');
101
  } else {
102
  return false;
122
  <div class="spider_div_options" id="div_content_1">
123
  <table>
124
  <tbody>
 
 
 
 
 
 
 
 
 
 
 
125
  <tr>
126
  <td class="spider_label_options">
127
  <label for="images_directory"><?php _e("Images directory:", 'bwg_back'); ?></label>
300
  <div class="spider_description"></div>
301
  </td>
302
  </tr>
303
+ <tr>
304
+ <td class="spider_label_options">
305
+ <label><?php echo __('Introduction tour:', 'bwg_back'); ?></label>
306
+ </td>
307
+ <td>
308
+ <a href="admin.php?page=options_bwg&bwg_start_tour=1" class="wd-btn wd-btn-primary wd-not-image" title="<?php echo _e('Start tour', 'bwg_back'); ?>">
309
+ <?php _e('Start tour', 'bwg_back'); ?>
310
+ </a>
311
+ <div class="spider_description"><?php echo __('Take this tour to quickly learn about the use of this plugin.', 'bwg_back'); ?></div>
312
+ </td>
313
+ </tr>
314
  </tbody>
315
  </table>
316
  </div>
347
  $query_url = wp_nonce_url( $query_url, 'addImages', 'bwg_nonce' );
348
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
349
  ?>
350
+ <a href="<?php echo $query_url; ?>" id="button_add_built_in_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
351
  title="Add image"
352
  onclick="return false;"
353
  style="margin-bottom:5px;">
388
  <label for="built_in_watermark_font"><?php _e('Watermark font style: ', 'bwg_back'); ?></label>
389
  </td>
390
  <td>
391
+ <select class="select_icon" name="built_in_watermark_font" id="built_in_watermark_font" style="width:150px;" onchange="preview_built_in_watermark()">
392
  <?php
393
  foreach ($built_in_watermark_fonts as $watermark_font) {
394
  ?>
508
  $query_url = add_query_arg(array('TB_iframe' => '1'), $query_url );
509
  ?>
510
 
511
+ <a href="<?php echo $query_url; ?>" id="button_add_watermark_image" class="wd-btn wd-btn-primary wd-btn-icon wd-btn-add thickbox thickbox-preview"
512
  title="Add image"
513
  onclick="return false;"
514
  style="margin-bottom:5px;">
559
  <label for="watermark_font"><?php _e('Advertisement font style:', 'bwg_back'); ?> </label>
560
  </td>
561
  <td>
562
+ <select class="select_icon" name="watermark_font" id="watermark_font" style="width:150px;" onchange="preview_watermark()">
563
  <?php
564
  foreach ($watermark_fonts as $watermark_font) {
565
  ?>
659
  <label for="popup_type"><?php _e('Lightbox effect:', 'bwg_back'); ?></label>
660
  </td>
661
  <td>
662
+ <select class="select_icon" name="popup_type" id="popup_type" style="width:150px;">
663
  <?php
664
  foreach ($effects as $key => $effect) {
665
  ?>
1089
  <label for="slideshow_type"><?php _e("Slideshow effect:", 'bwg_back'); ?> </label>
1090
  </td>
1091
  <td>
1092
+ <select class="select_icon" name="slideshow_type" id="slideshow_type" style="width:150px;">
1093
  <?php
1094
  foreach ($effects as $key => $effect) {
1095
  ?>
1371
  <td>
1372
  <input type="text" name="upload_thumb_width" id="upload_thumb_width" value="<?php echo $row->upload_thumb_width; ?>" class="spider_int_input" /> x
1373
  <input type="text" name="upload_thumb_height" id="upload_thumb_height" value="<?php echo $row->upload_thumb_height; ?>" class="spider_int_input" /> px
1374
+ <input type="submit" class="wd-btn wd-btn-primary wd-not-image" onclick="spider_set_input_value('task', 'save'); spider_set_input_value('recreate', 'resize_image_thumb');" value="<?php echo __('Recreate', 'bwg_back'); ?>" />
1375
  <div class="spider_description"><?php _e("The maximum size of the generated thumbnail. Its dimensions should be larger than the ones of the frontend thumbnail.", 'bwg_back'); ?></div>
1376
  </td>
1377
  </tr>
admin/views/BWGViewTags_bwg.php CHANGED
@@ -49,18 +49,14 @@ class BWGViewTags_bwg {
49
  </a>
50
  </div>
51
  </div>
52
- <div id="wordpress_message_1" style="width:99%;display:none"><div id="wordpress_message_2" class="updated"><p><strong><?php _e("Item Succesfully Saved.", 'bwg_back'); ?></strong></p></div></div>
53
  <form class="wrap bwg_form" id="tags_form" method="post" action="admin.php?page=tags_bwg" style="float:left; width: 99%;">
54
  <?php wp_nonce_field( 'tags_bwg', 'bwg_nonce' ); ?>
55
  <span class="tag_icon"></span>
56
  <h2><?php _e("Tags", 'bwg_back'); ?></h2>
57
- <div class="buttons_div">
58
- <input class="button-secondary" type="submit" value="<?php echo addslashes(__("Save", 'bwg_back')); ?>" onclick="if (confirm('Do you want to save items?')){
59
- spider_set_input_value('task', 'edit_tags');
60
- } else {
61
- return false;
62
- }" />
63
- <input class="button-secondary" type="submit" value="<?php echo addslashes(__("Delete", 'bwg_back')); ?>" onclick="if (confirm('Do you want to delete selected items?')) {
64
  spider_set_input_value('task', 'delete_all');
65
  } else {
66
  return false;
@@ -68,47 +64,47 @@ class BWGViewTags_bwg {
68
  </div>
69
  <div class="tablenav top">
70
  <?php
71
- WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'tags_form');
72
- WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
73
  ?>
74
  </div>
75
  <table class="wp-list-table widefat fixed pages">
76
  <thead>
77
  <tr>
78
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
79
- <th class="table_small_col <?php if ($order_by == 'A.term_id') {echo $order_class;} ?>">
80
  <a onclick="spider_set_input_value('task', '');
81
  spider_set_input_value('order_by', 'A.term_id');
82
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.term_id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
83
  spider_form_submit(event, 'tags_form')" href="">
84
  <span>ID</span><span class="sorting-indicator"></span></th>
85
  </a>
86
- <th class="<?php if ($order_by == 'A.name') {echo $order_class;} ?>">
87
  <a onclick="spider_set_input_value('task', '');
88
  spider_set_input_value('order_by', 'A.name');
89
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
90
  spider_form_submit(event, 'tags_form')" href="">
91
- <span><?php _e("Name", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
92
  </a>
93
  </th>
94
- <th class="<?php if ($order_by == 'A.slug') {echo $order_class;} ?>">
95
  <a onclick="spider_set_input_value('task', '');
96
  spider_set_input_value('order_by', 'A.slug');
97
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
98
  spider_form_submit(event, 'tags_form')" href="">
99
- <span><?php _e("Slug", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
100
  </a>
101
  </th>
102
- <th class="<?php if ($order_by == 'B.count') {echo $order_class;} ?> table_big_col ">
103
  <a onclick="spider_set_input_value('task', '');
104
  spider_set_input_value('order_by', 'B.count');
105
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'B.count') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
106
  spider_form_submit(event, 'tags_form')" href="">
107
- <span><?php _e("Count", 'bwg_back'); ?></span><span class="sorting-indicator"></span>
108
  </a>
109
  </th>
110
- <th class="table_big_col"><?php _e("Edit", 'bwg_back'); ?></th>
111
- <th class="table_big_col"><?php _e("Delete", 'bwg_back'); ?></th>
112
  </tr>
113
  <tr id="tr">
114
  <th></th>
@@ -121,9 +117,9 @@ class BWGViewTags_bwg {
121
  </th>
122
  <th></th>
123
  <th class="table_big_col">
124
- <a class="add_tag_th button-primary button button-small" onclick="spider_set_input_value('task', 'save');
125
  spider_set_input_value('current_id', '');
126
- spider_form_submit(event, 'tags_form')" href=""><?php _e("Add Tag", 'bwg_back'); ?> </a>
127
  </th>
128
  <th></th>
129
  </tr>
@@ -151,16 +147,21 @@ class BWGViewTags_bwg {
151
  <td class="table_big_col" id="td_count_<?php echo $row_data->term_id; ?>" >
152
  <a class="pointer"
153
  id="count<?php echo $row_data->term_id; ?>"
154
- onclick="edit_tag(<?php echo $row_data->term_id; ?>)"
155
  title="<?php _e("Edit", 'bwg_back'); ?>"><?php echo $this->model->get_count_of_images($row_data->term_id); ?></a>
156
  </td>
157
  <td class="table_big_col" id="td_edit_<?php echo $row_data->term_id; ?>">
158
- <a onclick="edit_tag(<?php echo $row_data->term_id; ?>)"><?php _e("Edit", 'bwg_back'); ?></a>
159
  </td>
160
  <td class="table_big_col" id="td_delete_<?php echo $row_data->term_id; ?>">
161
- <a onclick="spider_set_input_value('task', 'delete');
162
- spider_set_input_value('current_id', <?php echo $row_data->term_id; ?>);
163
- spider_form_submit(event, 'tags_form')" href=""><?php _e("Delete", 'bwg_back'); ?></a>
 
 
 
 
 
 
164
  </td>
165
  </tr>
166
  <?php
@@ -172,7 +173,7 @@ class BWGViewTags_bwg {
172
  </table>
173
  <div class="tablenav bottom">
174
  <?php
175
- WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page);
176
  ?>
177
  </div>
178
  <input id="task" name="task" type="hidden" value="" />
49
  </a>
50
  </div>
51
  </div>
52
+ <div id="wordpress_message_1" style="width:99%;display:none;"><div id="wordpress_message_2" class="wd_updated"><p><strong><?php echo __('Item Succesfully Saved.', 'bwg_back'); ?></strong></p></div></div>
53
  <form class="wrap bwg_form" id="tags_form" method="post" action="admin.php?page=tags_bwg" style="float:left; width: 99%;">
54
  <?php wp_nonce_field( 'tags_bwg', 'bwg_nonce' ); ?>
55
  <span class="tag_icon"></span>
56
  <h2><?php _e("Tags", 'bwg_back'); ?></h2>
57
+ <div class="buttons_div_right">
58
+ <input class="wd-btn wd-btn-primary wd-btn-icon wd-btn-save" type="submit" value="<?php echo addslashes(__("Save", 'bwg_back')); ?>" onclick="spider_set_input_value('task', 'edit_tags');" />
59
+ <input class="wd-btn wd-btn-primary-red wd-btn-icon wd-btn-delete" type="submit" value="<?php echo addslashes(__("Delete", 'bwg_back')); ?>" onclick="if (confirm('Do you want to delete selected items?')) {
 
 
 
 
60
  spider_set_input_value('task', 'delete_all');
61
  } else {
62
  return false;
64
  </div>
65
  <div class="tablenav top">
66
  <?php
67
+ WDWLibrary::search(__("Name", 'bwg_back'), $search_value, 'tags_form', 'position_search');
68
+ WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page,'position_pag');
69
  ?>
70
  </div>
71
  <table class="wp-list-table widefat fixed pages">
72
  <thead>
73
  <tr>
74
  <th class="manage-column column-cb check-column table_small_col"><input id="check_all" type="checkbox" style="margin:0;" /></th>
75
+ <th class="sortable table_small_col <?php if ($order_by == 'A.term_id') {echo $order_class;} ?>">
76
  <a onclick="spider_set_input_value('task', '');
77
  spider_set_input_value('order_by', 'A.term_id');
78
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.term_id') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
79
  spider_form_submit(event, 'tags_form')" href="">
80
  <span>ID</span><span class="sorting-indicator"></span></th>
81
  </a>
82
+ <th class="sortable <?php if ($order_by == 'A.name') {echo $order_class;} ?>">
83
  <a onclick="spider_set_input_value('task', '');
84
  spider_set_input_value('order_by', 'A.name');
85
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.name') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
86
  spider_form_submit(event, 'tags_form')" href="">
87
+ <span><?php echo __('Name', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
88
  </a>
89
  </th>
90
+ <th class="sortable <?php if ($order_by == 'A.slug') {echo $order_class;} ?>">
91
  <a onclick="spider_set_input_value('task', '');
92
  spider_set_input_value('order_by', 'A.slug');
93
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'A.slug') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
94
  spider_form_submit(event, 'tags_form')" href="">
95
+ <span><?php echo __('Slug', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
96
  </a>
97
  </th>
98
+ <th class="sortable <?php if ($order_by == 'B.count') {echo $order_class;} ?> table_medium_col" style="padding-left:10px;">
99
  <a onclick="spider_set_input_value('task', '');
100
  spider_set_input_value('order_by', 'B.count');
101
  spider_set_input_value('asc_or_desc', '<?php echo ((isset($_POST['asc_or_desc']) && isset($_POST['order_by']) && (esc_html(stripslashes($_POST['order_by'])) == 'B.count') && esc_html(stripslashes($_POST['asc_or_desc'])) == 'asc') ? 'desc' : 'asc'); ?>');
102
  spider_form_submit(event, 'tags_form')" href="">
103
+ <span><?php echo __('Count', 'bwg_back'); ?></span><span class="sorting-indicator"></span>
104
  </a>
105
  </th>
106
+ <th class="table_big_col"><?php echo __('Edit', 'bwg_back'); ?></th>
107
+ <th class="table_small_col"><?php echo __('Delete', 'bwg_back'); ?></th>
108
  </tr>
109
  <tr id="tr">
110
  <th></th>
117
  </th>
118
  <th></th>
119
  <th class="table_big_col">
120
+ <a class="add_tag_th wd-btn wd-btn-primary wd-not-image button-small" title="<?php echo __('Add Tag ', 'bwg_back'); ?>" onclick="spider_set_input_value('task', 'save');
121
  spider_set_input_value('current_id', '');
122
+ spider_form_submit(event, 'tags_form')" href=""><?php echo __('Add Tag ', 'bwg_back'); ?></a>
123
  </th>
124
  <th></th>
125
  </tr>
147
  <td class="table_big_col" id="td_count_<?php echo $row_data->term_id; ?>" >
148
  <a class="pointer"
149
  id="count<?php echo $row_data->term_id; ?>"
 
150
  title="<?php _e("Edit", 'bwg_back'); ?>"><?php echo $this->model->get_count_of_images($row_data->term_id); ?></a>
151
  </td>
152
  <td class="table_big_col" id="td_edit_<?php echo $row_data->term_id; ?>">
153
+ <a class="bwg_img_edit" title="<?php _e("Edit", 'bwg_back'); ?>" onclick="edit_tag(<?php echo $row_data->term_id; ?>)"></a>
154
  </td>
155
  <td class="table_big_col" id="td_delete_<?php echo $row_data->term_id; ?>">
156
+ <a class="bwg_img_remove" title="<?php _e("Delete", 'bwg_back'); ?>" onclick="if(confirm('Do you want to delete selected items?')) {
157
+ spider_set_input_value('task', 'delete');
158
+ spider_set_input_value('current_id', <?php echo $row_data->term_id; ?>);
159
+ spider_form_submit(event, 'tags_form');
160
+ }
161
+ else {
162
+ return false;
163
+ }
164
+ " href=""></a>
165
  </td>
166
  </tr>
167
  <?php
173
  </table>
174
  <div class="tablenav bottom">
175
  <?php
176
+ WDWLibrary::html_page_nav($page_nav['total'], $pager++, $page_nav['limit'], 'tags_form', $per_page,'');
177
  ?>
178
  </div>
179
  <input id="task" name="task" type="hidden" value="" />
admin/views/BWGViewThemes_bwg.php CHANGED
@@ -56,16 +56,19 @@ class BWGViewThemes_bwg {
56
  <?php
57
  if (get_option("wd_bwg_theme_version")) {
58
  ?>
59
- <div style="clear: both; float: left; width: 97%;">
60
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_thumbnails.png'; ?>" />
61
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_masonry.png'; ?>" />
 
62
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_slideshow.png'; ?>" />
63
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_image_browser.png'; ?>" />
64
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_compact_album.png'; ?>" />
 
65
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_extended_album.png'; ?>" />
66
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_blog_style.png'; ?>" />
67
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_lightbox.png'; ?>" />
68
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_page_navigation.png'; ?>" />
 
69
  </div>
70
  <?php
71
  die();
56
  <?php
57
  if (get_option("wd_bwg_theme_version")) {
58
  ?>
59
+ <div style="clear: both; float: left; width: 99%;">
60
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_thumbnails.png'; ?>" />
61
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_masonry.png'; ?>" />
62
+ <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_mosaic.png'; ?>" />
63
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_slideshow.png'; ?>" />
64
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_image_browser.png'; ?>" />
65
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_compact_album.png'; ?>" />
66
+ <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_masonry_album.png'; ?>" />
67
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_extended_album.png'; ?>" />
68
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_blog_style.png'; ?>" />
69
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_lightbox.png'; ?>" />
70
  <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_page_navigation.png'; ?>" />
71
+ <img style="max-width: 100%;" src="<?php echo WD_BWG_URL . '/images/theme_carousel.png'; ?>" />
72
  </div>
73
  <?php
74
  die();
admin/views/BWGViewUninstall_bwg.php CHANGED
@@ -86,7 +86,7 @@ class BWGViewUninstall_bwg {
86
  <input type="checkbox" name="Photo Gallery" id="check_yes" value="yes" />&nbsp;<label for="check_yes"><?php _e("Yes", 'bwg_back'); ?></label>
87
  </p>
88
  <p style="text-align: center;">
89
- <input type="submit" value="UNINSTALL" class="button-primary" onclick="if (check_yes.checked) {
90
  if (confirm('<?php echo addslashes(__("You are About to Uninstall Photo Gallery from WordPress. This Action Is Not Reversible.", 'bwg_back')); ?>')) {
91
  spider_set_input_value('task', 'uninstall');
92
  } else {
@@ -136,7 +136,7 @@ class BWGViewUninstall_bwg {
136
  $prefix = $wpdb->prefix;
137
  $deactivate_url = wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . WD_BWG_NAME . '/photo-gallery.php', 'deactivate-plugin_' . WD_BWG_NAME . '/photo-gallery.php');
138
  ?>
139
- <div id="message" class="updated fade">
140
  <p><?php _e("The following Database Tables successfully deleted:", 'bwg_back'); ?></p>
141
  <p><?php echo $prefix; ?>bwg_album,</p>
142
  <p><?php echo $prefix; ?>bwg_album_gallery,</p>
@@ -152,7 +152,7 @@ class BWGViewUninstall_bwg {
152
  <?php
153
  if (isset($_POST['bwg_delete_files'])) {
154
  ?>
155
- <div class="<?php echo ($flag) ? 'updated' : 'error'?>">
156
  <p><?php echo ($flag) ? __("The folder was successfully deleted.", 'bwg_back') : __("An error occurred when deleting the folder.", 'bwg_back')?></p>
157
  </div>
158
  <?php
86
  <input type="checkbox" name="Photo Gallery" id="check_yes" value="yes" />&nbsp;<label for="check_yes"><?php _e("Yes", 'bwg_back'); ?></label>
87
  </p>
88
  <p style="text-align: center;">
89
+ <input type="submit" value="<?php echo __('UNINSTALL','bwg_back'); ?>" class="wd-btn wd-btn-primary wd-not-image" onclick="if (check_yes.checked) {
90
  if (confirm('<?php echo addslashes(__("You are About to Uninstall Photo Gallery from WordPress. This Action Is Not Reversible.", 'bwg_back')); ?>')) {
91
  spider_set_input_value('task', 'uninstall');
92
  } else {
136
  $prefix = $wpdb->prefix;
137
  $deactivate_url = wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . WD_BWG_NAME . '/photo-gallery.php', 'deactivate-plugin_' . WD_BWG_NAME . '/photo-gallery.php');
138
  ?>
139
+ <div id="message" class="wd_updated fade">
140
  <p><?php _e("The following Database Tables successfully deleted:", 'bwg_back'); ?></p>
141
  <p><?php echo $prefix; ?>bwg_album,</p>
142
  <p><?php echo $prefix; ?>bwg_album_gallery,</p>
152
  <?php
153
  if (isset($_POST['bwg_delete_files'])) {
154
  ?>
155
+ <div class="<?php echo ($flag) ? 'wd_updated' : 'wd_error'?>">
156
  <p><?php echo ($flag) ? __("The folder was successfully deleted.", 'bwg_back') : __("An error occurred when deleting the folder.", 'bwg_back')?></p>
157
  </div>
158
  <?php
css/bwg_frontend.css CHANGED
@@ -38,41 +38,43 @@ div[id^="bwg_container"] div[id^="bwg_container"] .bwg_img_clear {
38
  }
39
  }
40
 
41
- .spider_popup_loading,
42
- .footer-list-block .bwp_gallery .spider_popup_loading,
43
- .footer-list-block .bwp_gallery_tags .spider_popup_loading {
44
  /*background: url("../images/ajax_loader.gif") no-repeat scroll 0 0 / 50px 50px rgba(0, 0, 0, 0);*/
45
- background-image: url("../images/ajax_loader.png");
46
  background-color: rgba(0, 0, 0, 0);
47
  background-repeat: no-repeat;
48
  background-position: 0 0;
49
- background-size: 50px 50px;
50
  border: none !important;
51
  display: none;
52
- height: 50px;
53
  left: 50%;
54
  margin-left: -20px;
55
  margin-top: -20px;
56
  overflow: hidden;
57
  position: fixed;
58
  top: 50%;
59
- width: 50px;
60
  z-index: 10102;
61
- animation: spin 2.5s infinite linear;
62
  -moz-animation: spin 2.5s infinite linear;
63
  -o-animation: spin 2.5s infinite linear;
64
- -webkit-animation: spin 2.5s infinite linear;
65
  }
66
 
67
  .bwg_filmstrip_thumbnail_img {
68
  max-width: none;
69
  }
70
- .spider_ajax_loading {
71
  border: none !important;
72
- animation: spin 2.5s infinite linear;
 
 
73
  -moz-animation: spin 2.5s infinite linear;
74
  -o-animation: spin 2.5s infinite linear;
75
- -webkit-animation: spin 2.5s infinite linear;
76
  }
77
 
78
  .spider_popup_overlay,
38
  }
39
  }
40
 
41
+ .bwg_spider_popup_loading,
42
+ .footer-list-block .bwp_gallery .bwg_spider_popup_loading,
43
+ .footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading {
44
  /*background: url("../images/ajax_loader.gif") no-repeat scroll 0 0 / 50px 50px rgba(0, 0, 0, 0);*/
45
+ background-image: url("../images/ajax_loader.gif");
46
  background-color: rgba(0, 0, 0, 0);
47
  background-repeat: no-repeat;
48
  background-position: 0 0;
49
+ background-size: 30px 30px;
50
  border: none !important;
51
  display: none;
52
+ height: 30px;
53
  left: 50%;
54
  margin-left: -20px;
55
  margin-top: -20px;
56
  overflow: hidden;
57
  position: fixed;
58
  top: 50%;
59
+ width: 30px;
60
  z-index: 10102;
61
+ /* animation: spin 2.5s infinite linear;
62
  -moz-animation: spin 2.5s infinite linear;
63
  -o-animation: spin 2.5s infinite linear;
64
+ -webkit-animation: spin 2.5s infinite linear;*/
65
  }
66
 
67
  .bwg_filmstrip_thumbnail_img {
68
  max-width: none;
69
  }
70
+ .bwg_spider_ajax_loading {
71
  border: none !important;
72
+ margin-top: 200px;
73
+ width: 30px;
74
+ /*animation: spin 2.5s infinite linear;
75
  -moz-animation: spin 2.5s infinite linear;
76
  -o-animation: spin 2.5s infinite linear;
77
+ -webkit-animation: spin 2.5s infinite linear;*/
78
  }
79
 
80
  .spider_popup_overlay,
css/bwg_shortcode.css CHANGED
@@ -84,3 +84,87 @@
84
  right: auto;
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  right: auto;
85
  }
86
 
87
+ .wd-btn{
88
+ padding: 0 10px 0px 10px;
89
+ margin: 0;
90
+ display: inline-block;
91
+ text-decoration: none;
92
+ font-size: 13px;
93
+ height: 30px;
94
+ cursor: pointer;
95
+ -webkit-appearance: none;
96
+ white-space: nowrap;
97
+ -webkit-box-sizing: border-box;
98
+ -moz-box-sizing: border-box;
99
+ box-sizing: border-box;
100
+ line-height: 13px;
101
+
102
+ }
103
+ a.wd-btn{
104
+ line-height: 26px;
105
+ }
106
+ .wd-btn:focus, .wd-search-btn:focus, .wd-reset-btn:focus{
107
+ outline:none !important;
108
+ }
109
+ .wd-btn-secondary{
110
+ background-color: #FFFFFF;
111
+ color: #666;
112
+ border: 1px solid #ddd;
113
+ }
114
+
115
+ .wd-btn-primary{
116
+ background-color: #ddd;
117
+ color: #000;
118
+ border: 1px solid #ddd;
119
+ }
120
+ .wd-btn-primary-blue{
121
+ background-color: #00A0D2;
122
+ color: #fff ;
123
+ border: 1px solid #00A0D2;
124
+ }
125
+ a.wd-btn-primary:hover, a.wd-btn-primary:active{
126
+ color:#fff;
127
+ }
128
+ .wd-btn-primary-red{
129
+ background-color: #7E2A2A;
130
+ color: #fff;
131
+ border: 1px solid #7E2A2A;
132
+ }
133
+ .wd-btn-icon{
134
+ padding: 0px 10px 1px 36px !important;
135
+ background-repeat: no-repeat;
136
+ background-position: 10% 50%;
137
+ }
138
+
139
+ a.wd-btn-icon{
140
+ line-height:29px;
141
+ }
142
+ a.wd-btn-icon.wd-btn-primary:hover{
143
+ color:#fff;
144
+ }
145
+ .wd-btn-import{
146
+ background-image:url(../images/icons/import.png);
147
+ }
148
+ .wd-not-image{
149
+ padding: 0px 10px 1px 10px !important;
150
+ background-repeat: no-repeat;
151
+ background-position: 10% 50%;
152
+ }
153
+ .select_icon:disabled,.select_icon {
154
+ background-image:url('../images/icons/arrow.png');
155
+ background-repeat: no-repeat;
156
+ -webkit-appearance: none;
157
+ -moz-appearance: none;
158
+ background-position:93% 49%;
159
+ padding: 0 2px 2px 2px !important;
160
+ width: 22%;
161
+ height:28px !important;
162
+ }
163
+
164
+ th.sortable a span,
165
+ th.sorted a span {
166
+ float: left;
167
+ }
168
+ #bwg_pro_version_link {
169
+ color:#fff !important;
170
+ }
css/bwg_tables.css CHANGED
@@ -3,17 +3,21 @@
3
  font-weight: normal;
4
  line-height: 29px;
5
  margin: 0;
6
- padding: 9px 15px 4px 0;
7
  }
8
 
9
- .spider_ajax_loading {
 
10
  border: none !important;
11
- -webkit-animation: spin 2.5s infinite linear;
 
 
12
  -moz-animation: spin 2.5s infinite linear;
13
  -o-animation: spin 2.5s infinite linear;
14
- animation: spin 2.5s infinite linear;
15
  }
16
 
 
17
  @-moz-keyframes spin {
18
  0% {
19
  -moz-transform: rotate(0deg);
@@ -55,13 +59,10 @@
55
  }
56
  }
57
 
58
- #TB_window{
59
- width: 800px !important;
60
- height: 500px !important;
61
- }
62
  #TB_iframeContent {
63
- width: 800px !important;
64
- height: 470px !important;
65
  }
66
 
67
  #TB_window {
@@ -86,7 +87,7 @@
86
  }
87
 
88
  .edit_input {
89
- height: 28px !important;
90
  padding-bottom: 7px !important;
91
  }
92
 
@@ -116,26 +117,24 @@
116
  }
117
 
118
  .spider_div_options {
119
- background: none repeat scroll 0 0 #F4F4F4;
120
- border: 1px solid #8F8D8D;
121
- border-radius: 8px 8px 8px 8px;
122
  display: none;
123
- margin: 2px 0 0 190px;
124
  padding: 13px;
125
- min-height: 300px;
126
  min-width: 600px;
127
  vertical-align: top;
128
  }
129
 
130
  .gallery_type {
131
  background-color: #F4F4F4;
132
- border: 1px solid #8F8D8D;
133
- border-radius: 8px 8px 8px 8px;
134
  cursor: pointer;
135
  display: inline-block;
136
  font-size: 18px;
137
  height: 26px;
138
  padding-top: 10px;
 
139
  margin: 1px;
140
  text-align: center;
141
  vertical-align: middle;
@@ -144,9 +143,12 @@
144
 
145
  .table_small_col {
146
  text-align: center !important;
147
- width: 45px;
 
 
 
 
148
  }
149
-
150
  .table_medium_col {
151
  text-align: center !important;
152
  width: 70px;
@@ -154,12 +156,13 @@
154
 
155
  .table_big_col {
156
  text-align: center !important;
157
- width: 80px;
 
158
  }
159
 
160
  .table_large_col {
161
  text-align: center !important;
162
- width: 140px;
163
  }
164
 
165
  .table_medium_col_uncenter {
@@ -170,7 +173,10 @@
170
  padding: 4px !important;
171
  width: 150px !important;
172
  }
173
-
 
 
 
174
  .first-page,
175
  .prev-page,
176
  .next-page,
@@ -194,8 +200,9 @@
194
  }
195
 
196
  .spider_free_version {
197
- background-color: #DFDFDF;
198
- border: 1px solid #797979;
 
199
  border-radius: 2px;
200
  padding: 2px;
201
  }
@@ -203,51 +210,54 @@
203
  .spider_free_version_label {
204
  color: #808080 !important;
205
  }
 
 
 
206
  .spider_free_version_button{
207
  background-color: #808080 !important;
208
  }
209
 
210
  .handle {
211
- background: url("../images/draggable.png") no-repeat transparent;
212
  border: none;
213
- height: 15px;
214
  margin: 0 auto;
215
  vertical-align: middle;
216
- width: 15px;
217
  }
218
 
219
  .tag_icon {
220
- background-image: url("../images/tag-icon.png");
221
  background-repeat: no-repeat;
222
  border: none;
223
  float: left;
224
- height: 32px;
225
  margin: 7px 8px 0 0;
226
- width: 32px;
227
  }
228
 
229
  .gallery-icon {
230
- background-image: url("../images/gallery-icon.png");
231
  background-repeat: no-repeat;
232
  border: none;
233
  float: left;
234
- height: 32px;
235
  margin: 7px 8px 0 0;
236
- width: 32px;
237
  }
238
 
239
  .album-icon {
240
- background-image: url("../images/album-icon.png");
241
  background-repeat: no-repeat;
242
  border: none;
243
  float: left;
244
- height: 32px;
245
- margin: 7px 8px 0 0;
246
- width: 32px;
247
  }
248
 
249
  .option-icon {
250
- background-image: url("../images/option-icon.png");
251
  background-repeat: no-repeat;
252
  border: none;
253
  float: left;
@@ -257,35 +267,14 @@
257
  }
258
 
259
  .theme_icon {
260
- background-image: url("../images/theme-icon.png");
261
- background-repeat: no-repeat;
262
- border: none;
263
- float: left;
264
- height: 32px;
265
- margin: 7px 8px 0 0;
266
- width: 32px;
267
- }
268
-
269
- .comment_icon{
270
- background-image: url("../images/comment-icon.png");
271
  background-repeat: no-repeat;
272
  border: none;
273
  float: left;
274
- height: 32px;
275
- margin: 7px 8px 0 0;
276
- width: 32px;
277
- }
278
-
279
- .rating_icon{
280
- background-image: url("../images/rating-icon.png");
281
- background-repeat: no-repeat;
282
- border: none;
283
- float: left;
284
- height: 32px;
285
  margin: 7px 8px 0 0;
286
- width: 32px;
287
  }
288
-
289
  .uninstall_icon {
290
  background-image: url("../images/uninstall-icon.png");
291
  background-repeat: no-repeat;
@@ -362,30 +351,35 @@
362
  clear: both;
363
  float: right;
364
  margin: 5px 0;
 
365
  }
366
 
367
  .buttons_div_left {
368
  float: left;
369
  margin: 5px 0;
 
370
  }
371
 
372
  .buttons_div_right {
373
  float: right;
374
  margin: 5px 0;
375
  }
 
 
 
376
 
377
  .spider_delete_img {
378
- background-image: url("../images/delete.png");
379
  border: none;
380
  cursor: pointer;
381
  display: inline-block;
382
  vertical-align: middle;
383
- height: 14px;
384
- width: 14px;
385
  }
386
 
387
  .spider_delete_img_small {
388
- background-image: url("../images/delete.png");
389
  background-size: 10px auto;
390
  border: medium none;
391
  cursor: pointer;
@@ -397,14 +391,15 @@
397
  }
398
 
399
  .spider_fieldset {
400
- background: none repeat scroll 0 0 #F4F4F4;
401
- border: 1px solid #8F8D8D;
402
- border-radius: 8px 8px 8px 8px;
 
403
  display: none;
404
  float: left;
405
- margin: 4px;
406
- padding: 13px;
407
- width: 97%;
408
  }
409
 
410
  .spider_type_fieldset {
@@ -416,9 +411,8 @@
416
  }
417
 
418
  .spider_child_fieldset {
419
- background: none repeat scroll 0 0 #F4F4F4;
420
- border: 1px solid #8F8D8D;
421
- border-radius: 8px 8px 8px 8px;
422
  float: left;
423
  margin: 4px;
424
  width: 30%;
@@ -438,18 +432,19 @@
438
  }
439
 
440
  .theme_type {
441
- background-color: #F4F4F4;
442
- border: 1px solid #8F8D8D;
443
- border-radius: 8px 8px 8px 8px;
 
444
  cursor: pointer;
445
  display: inline-block;
446
  font-size: 13px;
447
  height: 24px;
448
- padding-top: 5px;
449
  text-align: center;
450
  vertical-align: middle;
451
- width: 101px;
452
  margin: 2px 0px 2px 0px;
 
453
  }
454
 
455
  .ui-slider-handle {
@@ -515,7 +510,7 @@
515
  display: none;
516
  }
517
  #add_embed_help {
518
- height: 200px;
519
  width: 672px;
520
  top: 40%;
521
  }
@@ -584,7 +579,10 @@
584
 
585
  .widefat .check-column {
586
  text-align: center;
 
 
587
  }
 
588
  .select_all_album {
589
  margin-left:300px;
590
  width:300px !important;
@@ -602,22 +600,23 @@
602
  .bwg_gallery_save {
603
  margin-left: -40px;
604
  }
 
 
 
 
605
  .bwg_add_gallery_album {
606
  margin-left: 10px;
607
- margin-top: 101px;
608
  }
609
  .bwg_add_album_bwg {
610
  margin: 10px 0 0 20px;
611
  }
612
  .bwg_add_img {
613
- margin: 118px 0 0 -20px;
614
  }
615
  .show_page {
616
  margin-left:50px;
617
  }
618
- .bwg_gallery_album ,.bwg_photo_galleries {
619
- margin-left:22px;
620
- }
621
 
622
  .goodbye-text {
623
  font-size: 16px;
@@ -629,4 +628,255 @@
629
 
630
  .goodbye-text a {
631
  font-size: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
632
  }
3
  font-weight: normal;
4
  line-height: 29px;
5
  margin: 0;
6
+ padding: 11px 15px 4px 0;
7
  }
8
 
9
+
10
+ .bwg_spider_ajax_loading {
11
  border: none !important;
12
+ margin-top: 200px;
13
+ width: 30px;
14
+ /*-webkit-animation: spin 2.5s infinite linear;
15
  -moz-animation: spin 2.5s infinite linear;
16
  -o-animation: spin 2.5s infinite linear;
17
+ animation: spin 2.5s infinite linear;*/
18
  }
19
 
20
+
21
  @-moz-keyframes spin {
22
  0% {
23
  -moz-transform: rotate(0deg);
59
  }
60
  }
61
 
62
+ #TB_window,
 
 
 
63
  #TB_iframeContent {
64
+ width: 800px !important;
65
+ /*height: 500px !important;*/
66
  }
67
 
68
  #TB_window {
87
  }
88
 
89
  .edit_input {
90
+ height: 32px !important;
91
  padding-bottom: 7px !important;
92
  }
93
 
117
  }
118
 
119
  .spider_div_options {
120
+ background: none repeat scroll 0 0 #fff;
121
+ border: 1px solid #00A0D2;
 
122
  display: none;
123
+ margin: 1px 0 0 189px;
124
  padding: 13px;
125
+ min-height: 370px;
126
  min-width: 600px;
127
  vertical-align: top;
128
  }
129
 
130
  .gallery_type {
131
  background-color: #F4F4F4;
 
 
132
  cursor: pointer;
133
  display: inline-block;
134
  font-size: 18px;
135
  height: 26px;
136
  padding-top: 10px;
137
+ padding-left:8px;
138
  margin: 1px;
139
  text-align: center;
140
  vertical-align: middle;
143
 
144
  .table_small_col {
145
  text-align: center !important;
146
+ background-position:center center;
147
+ width: 50px;
148
+ }
149
+ .table_th_middle {
150
+ padding-left:22px !important;
151
  }
 
152
  .table_medium_col {
153
  text-align: center !important;
154
  width: 70px;
156
 
157
  .table_big_col {
158
  text-align: center !important;
159
+ background-position:50% 50%;
160
+ width: 90px;
161
  }
162
 
163
  .table_large_col {
164
  text-align: center !important;
165
+ width: 110px;
166
  }
167
 
168
  .table_medium_col_uncenter {
173
  padding: 4px !important;
174
  width: 150px !important;
175
  }
176
+ .table_extra_big_col {
177
+ padding: 4px !important;
178
+ width: 100px !important;
179
+ }
180
  .first-page,
181
  .prev-page,
182
  .next-page,
200
  }
201
 
202
  .spider_free_version {
203
+ background-color: #00A0D2;
204
+ border: 1px solid #4682B4;
205
+ color:#fff;
206
  border-radius: 2px;
207
  padding: 2px;
208
  }
210
  .spider_free_version_label {
211
  color: #808080 !important;
212
  }
213
+ .spider_free_version_label_color {
214
+ color: #fff !important;
215
+ }
216
  .spider_free_version_button{
217
  background-color: #808080 !important;
218
  }
219
 
220
  .handle {
221
+ background: url("../images/icons/layer.png") no-repeat transparent;
222
  border: none;
223
+ height: 22px;
224
  margin: 0 auto;
225
  vertical-align: middle;
226
+ width: 22px;
227
  }
228
 
229
  .tag_icon {
230
+ background-image: url("../images/icons/tag-icon.png");
231
  background-repeat: no-repeat;
232
  border: none;
233
  float: left;
234
+ height: 35px;
235
  margin: 7px 8px 0 0;
236
+ width: 36px;
237
  }
238
 
239
  .gallery-icon {
240
+ background-image: url("../images/icons/gallery-icon.png");
241
  background-repeat: no-repeat;
242
  border: none;
243
  float: left;
244
+ height: 31px;
245
  margin: 7px 8px 0 0;
246
+ width: 36px;
247
  }
248
 
249
  .album-icon {
250
+ background-image: url("../images/icons/album-icon.png");
251
  background-repeat: no-repeat;
252
  border: none;
253
  float: left;
254
+ height: 30px;
255
+ margin: 8px 8px 0 0;
256
+ width: 29px;
257
  }
258
 
259
  .option-icon {
260
+ background-image: url("../images/icons/general-option-hover.png");
261
  background-repeat: no-repeat;
262
  border: none;
263
  float: left;
267
  }
268
 
269
  .theme_icon {
270
+ background-image: url("../images/icons/theme-icon.png");
 
 
 
 
 
 
 
 
 
 
271
  background-repeat: no-repeat;
272
  border: none;
273
  float: left;
274
+ height: 36px;
 
 
 
 
 
 
 
 
 
 
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;
351
  clear: both;
352
  float: right;
353
  margin: 5px 0;
354
+ width:100%;
355
  }
356
 
357
  .buttons_div_left {
358
  float: left;
359
  margin: 5px 0;
360
+ width:100%;
361
  }
362
 
363
  .buttons_div_right {
364
  float: right;
365
  margin: 5px 0;
366
  }
367
+ .bwg_buttons_div {
368
+ width:100% ;
369
+ }
370
 
371
  .spider_delete_img {
372
+ background-image: url("../images/icons/close-red.png");
373
  border: none;
374
  cursor: pointer;
375
  display: inline-block;
376
  vertical-align: middle;
377
+ height: 16px;
378
+ width: 16px;
379
  }
380
 
381
  .spider_delete_img_small {
382
+ background-image: url("../images/icons/close-red.png");
383
  background-size: 10px auto;
384
  border: medium none;
385
  cursor: pointer;
391
  }
392
 
393
  .spider_fieldset {
394
+ background: none repeat scroll 0 0 #fff;
395
+ border-bottom:1px solid #00A0D2;
396
+ border-left:1px solid #00A0D2;
397
+ border-right:1px solid #00A0D2;
398
  display: none;
399
  float: left;
400
+ margin-top: -3px;
401
+ padding: 12px;
402
+ width: 96%;
403
  }
404
 
405
  .spider_type_fieldset {
411
  }
412
 
413
  .spider_child_fieldset {
414
+ background: none repeat scroll 0 0 #fff;
415
+ border: 1px solid #00A0D2;
 
416
  float: left;
417
  margin: 4px;
418
  width: 30%;
432
  }
433
 
434
  .theme_type {
435
+ background-color: #fff;
436
+ border-top:1px solid #00A0D2;
437
+ border-left:1px solid #00A0D2;
438
+ border-right:1px solid #00A0D2;
439
  cursor: pointer;
440
  display: inline-block;
441
  font-size: 13px;
442
  height: 24px;
443
+ padding: 4px 10px;
444
  text-align: center;
445
  vertical-align: middle;
 
446
  margin: 2px 0px 2px 0px;
447
+ color:#fff;
448
  }
449
 
450
  .ui-slider-handle {
510
  display: none;
511
  }
512
  #add_embed_help {
513
+ height: 290px;
514
  width: 672px;
515
  top: 40%;
516
  }
579
 
580
  .widefat .check-column {
581
  text-align: center;
582
+ vertical-align:top;
583
+ padding:8px 0 !important;
584
  }
585
+
586
  .select_all_album {
587
  margin-left:300px;
588
  width:300px !important;
600
  .bwg_gallery_save {
601
  margin-left: -40px;
602
  }
603
+ .bwg_photo_galleries,
604
+ .bwg_gallery_album {
605
+ margin: 3px 10px;
606
+ }
607
  .bwg_add_gallery_album {
608
  margin-left: 10px;
609
+ margin-top: 97px;
610
  }
611
  .bwg_add_album_bwg {
612
  margin: 10px 0 0 20px;
613
  }
614
  .bwg_add_img {
615
+ margin: 123px 0 0 -20px;
616
  }
617
  .show_page {
618
  margin-left:50px;
619
  }
 
 
 
620
 
621
  .goodbye-text {
622
  font-size: 16px;
628
 
629
  .goodbye-text a {
630
  font-size: 15px;
631
+ }
632
+ .wd-btn{
633
+ padding: 0 10px 0px 10px;
634
+ margin: 0;
635
+ display: inline-block;
636
+ text-decoration: none;
637
+ font-size: 13px;
638
+ height: 30px;
639
+ cursor: pointer;
640
+ -webkit-appearance: none;
641
+ white-space: nowrap;
642
+ -webkit-box-sizing: border-box;
643
+ -moz-box-sizing: border-box;
644
+ box-sizing: border-box;
645
+ line-height: 13px;
646
+
647
+ }
648
+ a.wd-btn{
649
+ color:#fff;
650
+ line-height: 28px;
651
+ }
652
+ .wd-btn:focus, .wd-search-btn:focus, .wd-reset-btn:focus, .wd-preview-image-btn:focus{
653
+ outline:none !important;
654
+ }
655
+ .wd-btn-secondary{
656
+ background-color: #FFFFFF;
657
+ color: #686;
658
+ border: 1px solid #ddd;
659
+ }
660
+
661
+ .wd-btn-primary{
662
+ background-color: #00A0D2;
663
+ color: #fff;
664
+ border: 1px solid #00A0D2;
665
+ }
666
+ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
667
+ color:#fff;
668
+ }
669
+ .wd-btn-primary-red{
670
+ background-color: #7E2A2A;
671
+ color: #fff;
672
+ border: 1px solid #7E2A2A;
673
+ }
674
+ .wd-btn-primary-gray{
675
+ background-color: #FFFFFF;
676
+ color: #000;
677
+ border: 1px solid #FFFFFF;
678
+ }
679
+ .wd-btn-icon{
680
+ padding: 0px 10px 1px 36px !important;
681
+ color:#fff;
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
+ }
694
+ .wd-btn-add{
695
+ background-image:url(../images/icons/add-new.png);
696
+ }
697
+ .wd-btn-save{
698
+ background-image:url(../images/icons/save.png);
699
+ }
700
+ .wd-btn-apply{
701
+ background-image:url(../images/icons/apply.png);
702
+ }
703
+ .wd-btn-cancel{
704
+ background-image:url(../images/icons/cancel.png);
705
+ }
706
+ .wd-btn-import{
707
+ background-image:url(../images/icons/import.png);
708
+ }
709
+ .wd-btn-media{
710
+ background-image:url(../images/icons/media.png);
711
+ }
712
+ .wd-btn-bulk_media{
713
+ background-image:url(../images/icons/bulk_embed.png);
714
+ }
715
+ .wd-btn-watermark{
716
+ background-image:url(../images/icons/watermark.png);
717
+ }
718
+ .wd-btn-tumbnail{
719
+ background-image:url(../images/icons/tumbnail.png);
720
+ }
721
+ .wd-btn-reset{
722
+ background-image:url(../images/icons/reset.png);
723
+ }
724
+ .wd-btn-icon-tumbnail {
725
+ padding: 0px 10px 1px 44px !important;
726
+ background-repeat: no-repeat;
727
+ background-position: 10% 50%;
728
+ }
729
+ .wd-search-btn, .wd-reset-btn, .wd-preview-image-btn{
730
+ padding: 8px 3px;
731
+ margin: 0;
732
+ display: inline-block;
733
+ text-decoration: none;
734
+ font-size: 13px;
735
+ height: 32px;
736
+ background: #00A0D2 url(../images/icons/search.png) no-repeat center;
737
+ border:1px solid #00A0D2;
738
+ width:50px;
739
+ float:left;
740
+ margin-right:1px;
741
+ cursor:pointer;
742
+ }
743
+ .wd-search-btn{
744
+ background: #00A0D2 url(../images/icons/search.png) no-repeat center;
745
+ }
746
+ .wd-reset-btn{
747
+ background: #00A0D2 url(../images/icons/reset.png) no-repeat center;
748
+ }
749
+ .wd-preview-image-btn {
750
+ background: url(../images/icons/add_prieview_image.png) no-repeat center;
751
+ border:none;
752
+ }
753
+ .wd-not-image{
754
+ padding: 0px 10px 1px 10px !important;
755
+ background-repeat: no-repeat;
756
+ background-position: 10% 50%;
757
+ }
758
+ .select_icon{
759
+ background-image:url('../images/icons/arrow.png');
760
+ background-repeat: no-repeat;
761
+ -webkit-appearance: none;
762
+ -moz-appearance: none;
763
+ background-position:93% 49%;
764
+ padding: 0 2px 2px 2px !important;
765
+ width: 12%;
766
+ height:31px !important;
767
+ }
768
+ .select_icon_them{
769
+ background-image:url('../images/icons/arrow.png');
770
+ background-repeat: no-repeat;
771
+ -webkit-appearance: none;
772
+ -moz-appearance: none;
773
+ background-position:93% 49%;
774
+ padding: 0 2px 2px 2px !important;
775
+ width: 63%;
776
+ height:30px !important;
777
+ }
778
+ .bwg_img_remove {
779
+ background-image: url("../images/icons/delete_red.png");
780
+ background-repeat: no-repeat;
781
+ display: inline-block;
782
+ width: 22px;
783
+ height: 22px;
784
+ margin: 3px;
785
+ vertical-align: middle;
786
+ background-size: contain;
787
+ }
788
+ .bwg_order_column{
789
+ background-image: url("../images/icons/order_column.png");
790
+ background-repeat: no-repeat;
791
+ display: inline-block;
792
+ width: 22px;
793
+ height: 22px;
794
+ margin: 3px;
795
+ vertical-align: middle;
796
+ background-size: contain;
797
+ }
798
+ .bwg_save_order{
799
+ background-image: url("../images/icons/save_order.png");
800
+ background-repeat: no-repeat;
801
+ display: inline-block;
802
+ width: 22px;
803
+ height: 22px;
804
+ margin: 3px;
805
+ vertical-align: middle;
806
+ background-size: contain;
807
+ }
808
+ .bwg_img_edit {
809
+ background-image: url("../images/icons/edit.png");
810
+ background-repeat: no-repeat;
811
+ display: inline-block;
812
+ width: 22px;
813
+ height: 22px;
814
+ margin: 3px;
815
+ vertical-align: middle;
816
+ background-size: contain;
817
+ }
818
+ .bwg_img_handle {
819
+ background: url("../images/icons/layer.png") no-repeat transparent;
820
+ width: 22px;
821
+ height: 22px;
822
+ margin: 0px;
823
+ }
824
+ .bwg_check_all {
825
+ padding: 7px 10px 1px 10px !important;
826
+ background-repeat: no-repeat;
827
+ background-position: 10% 50%;
828
+ }
829
+ .bwg_button-secondary {
830
+ margin-right: 5px;
831
+ }
832
+
833
+ #show_hide_weights {
834
+ display: inline-block;
835
+ margin: 5px auto;
836
+ padding: 0;
837
+ background-size: initial;
838
+ }
839
+ #th_order {
840
+ display: inline-block;
841
+ padding: 0;
842
+ }
843
+ .wd_error {
844
+ border-color: #dd3d36 !important;
845
+ }
846
+
847
+ .wd_updated {
848
+ border-color: #7ad03a !important;
849
+ }
850
+
851
+ .wd_error,
852
+ .wd_updated {
853
+ background: #fff none repeat scroll 0 0 ;
854
+ border-left: 4px solid #fff;
855
+ box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
856
+ margin: 15px 0 8px;
857
+ padding: 1px 12px;
858
+ display:inline-block;
859
+ width:97%;
860
+ }
861
+ input{
862
+ height:30px;
863
+ }
864
+
865
+ th.sortable a span,
866
+ th.sorted a span {
867
+ float: left;
868
+ }
869
+ #show_order_button {
870
+ display:inline-block;
871
+ margin: 5px auto;
872
+ padding: 0;
873
+ background-size: initial;
874
+ }
875
+ #current_page {
876
+ width:35px !important;
877
+ height:28px !important;
878
+ padding-top:2px;
879
+ }
880
+ .publish_icon {
881
+ padding-top:11px !important;
882
  }
featured/images/featured_plugins_bg.png ADDED
Binary file
featured/images/portfolio_gallery.png ADDED
Binary file
filemanager/css/default.css CHANGED
@@ -1,9 +1,11 @@
1
- .spider_ajax_loading {
2
  border: none !important;
3
- -webkit-animation: spin 2.5s infinite linear;
 
 
4
  -moz-animation: spin 2.5s infinite linear;
5
  -o-animation: spin 2.5s infinite linear;
6
- animation: spin 2.5s infinite linear;
7
  }
8
 
9
  @-moz-keyframes spin {
@@ -174,7 +176,7 @@ html, body, div, span, th, td, a {
174
 
175
  .upload_thumb {
176
  color: #808080;
177
- font-size: 16px !important;
178
  }
179
 
180
  .ctrl_bar_btn {
@@ -302,8 +304,6 @@ html, body, div, span, th, td, a {
302
  .ctrl_bar_btn.btn_back {
303
  background-image: url("../images/btn_icons/back.png");
304
  }
305
-
306
-
307
  /* sort icons */
308
  .sort_order_asc {
309
  display: inline-block !important;
@@ -334,8 +334,6 @@ html, body, div, span, th, td, a {
334
  text-decoration: none;
335
  cursor: pointer;
336
  }
337
-
338
-
339
  /* path */
340
  #path {
341
  display: table-row;
@@ -536,7 +534,6 @@ html, body, div, span, th, td, a {
536
  margin-left:-30px;
537
  }
538
 
539
-
540
  .wp-pointer.wp-pointer-aligned-right .wp-pointer-arrow {
541
  left: auto;
542
  right: 233px;
@@ -556,4 +553,82 @@ html, body, div, span, th, td, a {
556
  }
557
  .wp-pointer-aligned-center .wp-pointer-arrow {
558
  margin-top:30px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  }
1
+ .bwg_spider_ajax_loading {
2
  border: none !important;
3
+ margin-top: 200px;
4
+ width: 30px;
5
+ /*-webkit-animation: spin 2.5s infinite linear;
6
  -moz-animation: spin 2.5s infinite linear;
7
  -o-animation: spin 2.5s infinite linear;
8
+ animation: spin 2.5s infinite linear;*/
9
  }
10
 
11
  @-moz-keyframes spin {
176
 
177
  .upload_thumb {
178
  color: #808080;
179
+ font-size: 15px !important;
180
  }
181
 
182
  .ctrl_bar_btn {
304
  .ctrl_bar_btn.btn_back {
305
  background-image: url("../images/btn_icons/back.png");
306
  }
 
 
307
  /* sort icons */
308
  .sort_order_asc {
309
  display: inline-block !important;
334
  text-decoration: none;
335
  cursor: pointer;
336
  }
 
 
337
  /* path */
338
  #path {
339
  display: table-row;
534
  margin-left:-30px;
535
  }
536
 
 
537
  .wp-pointer.wp-pointer-aligned-right .wp-pointer-arrow {
538
  left: auto;
539
  right: 233px;
553
  }
554
  .wp-pointer-aligned-center .wp-pointer-arrow {
555
  margin-top:30px;
556
+ }
557
+ .bwg_upload_img {
558
+ margin:10px 0 0 -30px;
559
+ }
560
+
561
+ .bwg_selected_img {
562
+ margin-top :-20px;
563
+ }
564
+ .bwg_select_img {
565
+ margin-top: -50px !important;
566
+ margin-left:10px;
567
+ }
568
+ .wp-pointer-aligned-center .wp-pointer-arrow {
569
+ margin-top:30px;
570
+ }
571
+ .wd-btn{
572
+ padding: 0 10px 0px 10px !important;
573
+ margin: 0;
574
+ text-decoration: none;
575
+ font-size: 13px !important;
576
+ height: 30px;
577
+ cursor: pointer;
578
+ -webkit-appearance: none;
579
+ white-space: nowrap;
580
+ -webkit-box-sizing: border-box;
581
+ -moz-box-sizing: border-box;
582
+ box-sizing: border-box;
583
+ line-height: 13px;
584
+
585
+ }
586
+ a.wd-btn{
587
+ color:#fff;
588
+ line-height: 28px;
589
+ }
590
+ .wd-btn:focus, .wd-search-btn:focus, .wd-reset-btn:focus{
591
+ outline:none !important;
592
+ }
593
+ .wd-btn-secondary{
594
+ background-color: #FFFFFF;
595
+ color: #686;
596
+ border: 1px solid #ddd;
597
+ }
598
+
599
+ .wd-btn-primary{
600
+ background-color: #00A0D2;
601
+ color: #fff;
602
+ border: 1px solid #00A0D2;
603
+ }
604
+ a.wd-btn-primary:hover, a.wd-btn-primary:active, a.wd-btn-primary:link{
605
+ color:#fff;
606
+ }
607
+ .wd-btn-icon{
608
+ padding: 0px 10px 1px 36px !important;
609
+ color:#fff;
610
+ background-repeat: no-repeat;
611
+ background-position: 10% 50%;
612
+ }
613
+ .wd-btn-uplaod{
614
+ background-image:url(../images/btn_icons/upload.png);
615
+ }
616
+ .wd-btn-add{
617
+ background-image:url(../images/icons/add-new.png);
618
+ }
619
+ .wd-btn-apply{
620
+ background-image:url(../images/icons/apply.png);
621
+ }
622
+ .wd-btn-cancel{
623
+ background-image:url(../images/icons/cancel.png);
624
+ }
625
+ .wd-btn-icon-add {
626
+ padding: 0px 10px 1px 42px !important;
627
+ background-repeat: no-repeat;
628
+ background-position: 10% 50%;
629
+ }
630
+ .wd-not-image{
631
+ padding: 0px 10px 1px 10px !important;
632
+ background-repeat: no-repeat;
633
+ background-position: 10% 50%;
634
  }
filemanager/images/btn_icons/import.png CHANGED
Binary file
filemanager/images/btn_icons/imports.png ADDED
Binary file
filemanager/images/btn_icons/upload.png CHANGED
Binary file
images/default.png → filemanager/images/btn_icons/uploads.png RENAMED
Binary file
filemanager/images/icons/add-new.png ADDED
Binary file
filemanager/images/icons/apply.png ADDED
Binary file
filemanager/images/icons/cancel.png ADDED
Binary file
filemanager/images/icons/checkout-option.png ADDED
Binary file
filemanager/images/icons/close-red.png ADDED
Binary file
filemanager/images/icons/delete.png ADDED
Binary file
filemanager/images/icons/edit.png ADDED
Binary file
filemanager/images/icons/media.png ADDED
Binary file
filemanager/images/icons/save.png ADDED
Binary file
filemanager/view.php CHANGED
@@ -55,6 +55,12 @@ class FilemanagerView {
55
  wp_print_scripts('jquery');
56
  wp_print_scripts('jquery-ui-widget');
57
  wp_print_scripts('wp-pointer');
 
 
 
 
 
 
58
  ?>
59
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
60
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
@@ -112,7 +118,7 @@ class FilemanagerView {
112
  <div id="wrapper">
113
  <div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
114
  <div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
115
- <img src="<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>" class="spider_ajax_loading" style="margin-top: 200px; width:50px;">
116
  </div>
117
  <div id="file_manager">
118
  <div class="ctrls_bar ctrls_bar_header">
@@ -126,13 +132,13 @@ class FilemanagerView {
126
  <a class="ctrl_bar_btn btn_paste" onclick="onBtnPasteClick(event, this);" title="<?php echo __('Paste', 'bwg_back'); ?>"> </a>
127
  <a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo __('Remove items', 'bwg_back'); ?>"></a>
128
  <span class="ctrl_bar_divider"></span>
129
- <span class="ctrl_bar_btn btn_primary">
130
- <a id="upload_images" class="ctrl_bar_btn btn_upload_files" onclick="onBtnShowUploaderClick(event, this);"><?php echo __('Upload files', 'bwg_back'); ?></a>
131
  </span>
132
  <?php if ($bwg_options->enable_ML_import) { ?>
133
  <span class="ctrl_bar_divider"></span>
134
- <span class="ctrl_bar_btn btn_primary">
135
- <a class="ctrl_bar_btn btn_import_files" onclick="onBtnShowImportClick(event, this);"><?php echo __('Media library', 'bwg_back'); ?></a>
136
  </span>
137
  <?php } ?>
138
  <span class="ctrl_bar_divider"></span>
@@ -267,16 +273,16 @@ class FilemanagerView {
267
  </div>
268
  <div class="ctrls_bar ctrls_bar_footer">
269
  <div class="ctrls_left">
270
- <a id="select_all_images" class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnSelectAllClick();"><?php echo __('Select All', 'bwg_back'); ?></a>
271
  </div>
272
  <div class="ctrls_right">
273
  <span id="file_names_span">
274
  <span>
275
  </span>
276
  </span>
277
- <a id="add_selectid_img" class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['callback']) && esc_html($_REQUEST['callback']) == 'bwg_add_image') ? __('Add selected images to gallery', 'bwg_back') : __('Add', 'bwg_back')); ?></a>
278
  <span class="ctrl_bar_empty_devider"></span>
279
- <a class="ctrl_bar_btn btn_cancel btn_secondary none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
280
  </div>
281
  </div>
282
  </div>
@@ -352,14 +358,14 @@ class FilemanagerView {
352
  </div>
353
  <div class="ctrls_bar ctrls_bar_footer">
354
  <div class="ctrls_left">
355
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnSelectAllMediLibraryClick();"><?php echo __('Select All','bwg_back'); ?></a>
356
  </div>
357
  <div class="ctrls_right">
358
  <span id="file_names_span">
359
  <span>
360
  </span>
361
  </span>
362
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnImportClick(event, this);"><?php echo __("Import selected images", 'bwg_back'); ?></a>
363
  </div>
364
  </div>
365
  </div>
@@ -386,12 +392,10 @@ class FilemanagerView {
386
  <span><?php echo __('Drag files here or click the button below','bwg_back') . '<br />' . __('to upload files','bwg_back')?></span>
387
  </div>
388
  <div id="btnBrowseContainer">
389
- <?php
390
- $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
391
- $query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'dir' => (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '') . '/'), $query_url);
392
- ?>
393
-
394
-
395
  <input id="jQueryUploader" type="file" name="files[]"
396
  data-url="<?php echo $query_url; ?>"
397
  multiple>
55
  wp_print_scripts('jquery');
56
  wp_print_scripts('jquery-ui-widget');
57
  wp_print_scripts('wp-pointer');
58
+ wp_print_styles('admin-bar');
59
+ wp_print_styles('dashicons');
60
+ wp_print_styles('wp-admin');
61
+ wp_print_styles('buttons');
62
+ wp_print_styles('wp-auth-check');
63
+ wp_print_styles('wp-pointer');
64
  ?>
65
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.iframe-transport.js"></script>
66
  <script src="<?php echo WD_BWG_URL; ?>/filemanager/js/jq_uploader/jquery.fileupload.js"></script>
118
  <div id="wrapper">
119
  <div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
120
  <div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
121
+ <img src="<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>" class="bwg_spider_ajax_loading" style="margin-top: 200px; width:30px;">
122
  </div>
123
  <div id="file_manager">
124
  <div class="ctrls_bar ctrls_bar_header">
132
  <a class="ctrl_bar_btn btn_paste" onclick="onBtnPasteClick(event, this);" title="<?php echo __('Paste', 'bwg_back'); ?>"> </a>
133
  <a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo __('Remove items', 'bwg_back'); ?>"></a>
134
  <span class="ctrl_bar_divider"></span>
135
+ <span class="ctrl_bar_btn">
136
+ <a class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" id="upload_images" onclick="onBtnShowUploaderClick(event, this);"><?php echo __('Upload files', 'bwg_back'); ?></a>
137
  </span>
138
  <?php if ($bwg_options->enable_ML_import) { ?>
139
  <span class="ctrl_bar_divider"></span>
140
+ <span class="ctrl_bar_btn">
141
+ <a class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon btn_import_files" onclick="onBtnShowImportClick(event, this);"><?php echo __('Media library', 'bwg_back'); ?></a>
142
  </span>
143
  <?php } ?>
144
  <span class="ctrl_bar_divider"></span>
273
  </div>
274
  <div class="ctrls_bar ctrls_bar_footer">
275
  <div class="ctrls_left">
276
+ <a class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" id='select_all_images' onclick="onBtnSelectAllClick();"><?php echo __('Select All', 'bwg_back'); ?></a>
277
  </div>
278
  <div class="ctrls_right">
279
  <span id="file_names_span">
280
  <span>
281
  </span>
282
  </span>
283
+ <a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" id='add_selectid_img' onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['callback']) && esc_html($_REQUEST['callback']) == 'bwg_add_image') ? __('Add selected images to gallery', 'bwg_back') : __('Add', 'bwg_back')); ?></a>
284
  <span class="ctrl_bar_empty_devider"></span>
285
+ <a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
286
  </div>
287
  </div>
288
  </div>
358
  </div>
359
  <div class="ctrls_bar ctrls_bar_footer">
360
  <div class="ctrls_left">
361
+ <a class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllMediLibraryClick();"><?php echo __('Select All','bwg_back'); ?></a>
362
  </div>
363
  <div class="ctrls_right">
364
  <span id="file_names_span">
365
  <span>
366
  </span>
367
  </span>
368
+ <a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnImportClick(event, this);"><?php echo __("Import selected images", 'bwg_back'); ?></a>
369
  </div>
370
  </div>
371
  </div>
392
  <span><?php echo __('Drag files here or click the button below','bwg_back') . '<br />' . __('to upload files','bwg_back')?></span>
393
  </div>
394
  <div id="btnBrowseContainer">
395
+ <?php
396
+ $query_url = wp_nonce_url( admin_url('admin-ajax.php'), 'bwg_UploadHandler', 'bwg_nonce' );
397
+ $query_url = add_query_arg(array('action' => 'bwg_UploadHandler', 'dir' => (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '') . '/'), $query_url);
398
+ ?>
 
 
399
  <input id="jQueryUploader" type="file" name="files[]"
400
  data-url="<?php echo $query_url; ?>"
401
  multiple>
framework/WDWLibrary.php CHANGED
@@ -44,103 +44,103 @@ class WDWLibrary {
44
  switch($message_id) {
45
  case 1: {
46
  $message = __('Item Succesfully Saved.', 'bwg_back');
47
- $type = 'updated';
48
  break;
49
 
50
  }
51
  case 2: {
52
  $message = __('Error. Please install plugin again.', 'bwg_back');
53
- $type = 'error';
54
  break;
55
 
56
  }
57
  case 3: {
58
  $message = __('Item Succesfully Deleted.', 'bwg_back');
59
- $type = 'updated';
60
  break;
61
 
62
  }
63
  case 4: {
64
  $message = __("You can't delete default theme", 'bwg_back');
65
- $type = 'error';
66
  break;
67
 
68
  }
69
  case 5: {
70
  $message = __('Items Succesfully Deleted.', 'bwg_back');
71
- $type = 'updated';
72
  break;
73
 
74
  }
75
  case 6: {
76
  $message = __('You must select at least one item.', 'bwg_back');
77
- $type = 'error';
78
  break;
79
 
80
  }
81
  case 7: {
82
  $message = __('The item is successfully set as default.', 'bwg_back');
83
- $type = 'updated';
84
  break;
85
 
86
  }
87
  case 8: {
88
  $message = __('Options Succesfully Saved.', 'bwg_back');
89
- $type = 'updated';
90
  break;
91
 
92
  }
93
  case 9: {
94
  $message = __('Item Succesfully Published.', 'bwg_back');
95
- $type = 'updated';
96
  break;
97
 
98
  }
99
  case 10: {
100
  $message = __('Items Succesfully Published.', 'bwg_back');
101
- $type = 'updated';
102
  break;
103
 
104
  }
105
  case 11: {
106
  $message = __('Item Succesfully Unpublished.', 'bwg_back');
107
- $type = 'updated';
108
  break;
109
 
110
  }
111
  case 12: {
112
  $message = __('Items Succesfully Unpublished.', 'bwg_back');
113
- $type = 'updated';
114
  break;
115
 
116
  }
117
  case 13: {
118
  $message = __('Ordering Succesfully Saved.', 'bwg_back');
119
- $type = 'updated';
120
  break;
121
 
122
  }
123
  case 14: {
124
  $message = __('A term with the name provided already exists.', 'bwg_back');
125
- $type = 'error';
126
  break;
127
 
128
  }
129
  case 15: {
130
  $message = __('Name field is required.', 'bwg_back');
131
- $type = 'error';
132
  break;
133
 
134
  }
135
  case 16: {
136
  $message = __('The slug must be unique.', 'bwg_back');
137
- $type = 'error';
138
  break;
139
 
140
  }
141
  case 17: {
142
  $message = __('Changes must be saved.', 'bwg_back');
143
- $type = 'error';
144
  break;
145
 
146
  }
@@ -165,9 +165,17 @@ class WDWLibrary {
165
  return '<div style="width:99%"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
166
  }
167
 
168
- public static function search($search_by, $search_value, $form_id) {
 
 
 
 
 
 
 
 
169
  ?>
170
- <div class="alignleft actions" style="clear:both;">
171
  <script>
172
  function spider_search() {
173
  document.getElementById("page_number").value = "1";
@@ -194,11 +202,11 @@ class WDWLibrary {
194
  </script>
195
  <div class="alignleft actions" style="">
196
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
197
- <input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
198
  </div>
199
  <div class="alignleft actions">
200
- <input type="button" value="<?php echo __('Search', 'bwg_back'); ?>" onclick="spider_search()" class="button-secondary action">
201
- <input type="button" value="<?php echo __('Reset', 'bwg_back'); ?>" onclick="spider_reset()" class="button-secondary action">
202
  </div>
203
  </div>
204
  <?php
@@ -230,7 +238,7 @@ class WDWLibrary {
230
  <?php
231
  }
232
 
233
- public static function html_page_nav($count_items, $pager, $page_number, $form_id, $items_per_page = 20) {
234
  $limit = $items_per_page;
235
  if ($count_items) {
236
  if ($count_items % $limit) {
@@ -242,6 +250,12 @@ class WDWLibrary {
242
  }
243
  else {
244
  $items_county = 1;
 
 
 
 
 
 
245
  }
246
  if (!$pager) {
247
  ?>
@@ -291,14 +305,15 @@ class WDWLibrary {
291
  }
292
  </script>
293
  <?php } ?>
294
- <div class="tablenav-pages">
295
- <span class="displaying-num">
 
296
  <?php
297
  if ($count_items != 0) {
298
  echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
299
  }
300
  ?>
301
- </span>
302
  <?php
303
  if ($count_items > $items_per_page) {
304
  $first_page = "first-page";
@@ -344,7 +359,7 @@ class WDWLibrary {
344
  }
345
  public static function ajax_search($search_by, $search_value, $form_id) {
346
  ?>
347
- <div class="alignleft actions" style="clear:both;">
348
  <script>
349
  function spider_search() {
350
  document.getElementById("page_number").value = "1";
@@ -368,11 +383,11 @@ class WDWLibrary {
368
  </script>
369
  <div class="alignleft actions" style="">
370
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
371
- <input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px;<?php echo (get_bloginfo('version') > '3.7') ? ' height: 28px;' : ''; ?>" />
372
  </div>
373
  <div class="alignleft actions">
374
- <input type="button" value="<?php echo __('Search', 'bwg_back'); ?>" onclick="spider_search()" class="button-secondary action">
375
- <input type="button" value="<?php echo __('Reset', 'bwg_back'); ?>" onclick="spider_reset()" class="button-secondary action">
376
  </div>
377
  </div>
378
  <?php
@@ -441,8 +456,9 @@ class WDWLibrary {
441
  }
442
  </script>
443
  <?php } ?>
444
- <div id="tablenav-pages" class="tablenav-pages">
445
- <span class="displaying-num">
 
446
  <?php
447
  if ($count_items != 0) {
448
  echo $count_items; ?> <?php echo __('item', 'bwg_back'); ?><?php echo (($count_items == 1) ? '' : 's');
44
  switch($message_id) {
45
  case 1: {
46
  $message = __('Item Succesfully Saved.', 'bwg_back');
47
+ $type = 'wd_updated';
48
  break;
49
 
50
  }
51
  case 2: {
52
  $message = __('Error. Please install plugin again.', 'bwg_back');
53
+ $type = 'wd_error';
54
  break;
55
 
56
  }
57
  case 3: {
58
  $message = __('Item Succesfully Deleted.', 'bwg_back');
59
+ $type = 'wd_updated';
60
  break;
61
 
62
  }
63
  case 4: {
64
  $message = __("You can't delete default theme", 'bwg_back');
65
+ $type = 'wd_error';
66
  break;
67
 
68
  }
69
  case 5: {
70
  $message = __('Items Succesfully Deleted.', 'bwg_back');
71
+ $type = 'wd_updated';
72
  break;
73
 
74
  }
75
  case 6: {
76
  $message = __('You must select at least one item.', 'bwg_back');
77
+ $type = 'wd_error';
78
  break;
79
 
80
  }
81
  case 7: {
82
  $message = __('The item is successfully set as default.', 'bwg_back');
83
+ $type = 'wd_updated';
84
  break;
85
 
86
  }
87
  case 8: {
88
  $message = __('Options Succesfully Saved.', 'bwg_back');
89
+ $type = 'wd_updated';
90
  break;
91
 
92
  }
93
  case 9: {
94
  $message = __('Item Succesfully Published.', 'bwg_back');
95
+ $type = 'wd_updated';
96
  break;
97
 
98
  }
99
  case 10: {
100
  $message = __('Items Succesfully Published.', 'bwg_back');
101
+ $type = 'wd_updated';
102
  break;
103
 
104
  }
105
  case 11: {
106
  $message = __('Item Succesfully Unpublished.', 'bwg_back');
107
+ $type = 'wd_updated';
108
  break;
109
 
110
  }
111
  case 12: {
112
  $message = __('Items Succesfully Unpublished.', 'bwg_back');
113
+ $type = 'wd_updated';
114
  break;
115
 
116
  }
117
  case 13: {
118
  $message = __('Ordering Succesfully Saved.', 'bwg_back');
119
+ $type = 'wd_updated';
120
  break;
121
 
122
  }
123
  case 14: {
124
  $message = __('A term with the name provided already exists.', 'bwg_back');
125
+ $type = 'wd_error';
126
  break;
127
 
128
  }
129
  case 15: {
130
  $message = __('Name field is required.', 'bwg_back');
131
+ $type = 'wd_error';
132
  break;
133
 
134
  }
135
  case 16: {
136
  $message = __('The slug must be unique.', 'bwg_back');
137
+ $type = 'wd_error';
138
  break;
139
 
140
  }
141
  case 17: {
142
  $message = __('Changes must be saved.', 'bwg_back');
143
+ $type = 'wd_error';
144
  break;
145
 
146
  }
165
  return '<div style="width:99%"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
166
  }
167
 
168
+ public static function search($search_by, $search_value, $form_id, $position_search) {
169
+ if($position_search != ''){
170
+ $position_search = 'alignleft';
171
+ $margin_right = 0;
172
+ }
173
+ else {
174
+ $position_search = 'alignright';
175
+ $margin_right = 5;
176
+ }
177
  ?>
178
+ <div class="<?php echo $position_search; ?> actions" style="clear:both;">
179
  <script>
180
  function spider_search() {
181
  document.getElementById("page_number").value = "1";
202
  </script>
203
  <div class="alignleft actions" style="">
204
  <label for="search_value" style="font-size:14px; width:50px; display:inline-block;"><?php echo $search_by; ?>:</label>
205
+ <input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px; margin-right:<?php echo $margin_right; ?>px; <?php echo (get_bloginfo('version') > '3.7') ? ' height: 33px;' : ''; ?>" />
206
  </div>
207
  <div class="alignleft actions">
208
+ <input type="button" value="" onclick="spider_search()" title="<?php echo __('Reset', 'bwg'); ?>" class="wd-search-btn action">
209
+ <input type="button" value="" onclick="spider_reset()" title="<?php echo __('Search', 'bwg'); ?>" class="wd-reset-btn action">
210
  </div>
211
  </div>
212
  <?php
238
  <?php
239
  }
240
 
241
+ public static function html_page_nav($count_items, $pager, $page_number, $form_id, $items_per_page = 20, $position_pag) {
242
  $limit = $items_per_page;
243
  if ($count_items) {
244
  if ($count_items % $limit) {
250
  }
251
  else {
252
  $items_county = 1;
253
+ }
254
+ if($count_items > $items_per_page){
255
+ $margin_top = 0;
256
+ }
257
+ else {
258
+ $margin_top = 12;
259
  }
260
  if (!$pager) {
261
  ?>
305
  }
306
  </script>
307
  <?php } ?>
308
+
309
+ <div class="alignright tablenav-pages" style="<?php if($position_pag == '' || $count_items <= $items_per_page) {echo 'margin-top:'.$margin_top.'px';} ?>">
310
+ <span class="displaying-num">
311
  <?php
312
  if ($count_items != 0) {
313
  echo $count_items; ?> item<?php echo (($count_items == 1) ? '' : 's');
314
  }
315
  ?>
316
+ </span>
317
  <?php
318
  if ($count_items > $items_per_page) {
319
  $first_page = "first-page";
359
  }
360
  public static function ajax_search($search_by, $search_value, $form_id) {
361
  ?>
362
+ <div class="alignright actions" style="clear:both;">
363
  <script>
364
  function spider_search() {
365
  document.getElementById("page_number").value = "1";
383
  </script>
384
  <div class="alignleft actions" style="">
385
  <label for="search_value" style="font-size:14px; width:60px; display:inline-block;"><?php echo $search_by; ?>:</label>
386
+ <input type="text" id="search_value" name="search_value" class="spider_search_value" onkeypress="return check_search_key(event, this);" value="<?php echo esc_html($search_value); ?>" style="width: 150px;margin-right:5px; <?php echo (get_bloginfo('version') > '3.7') ? ' height: 33px;' : ''; ?>" />
387
  </div>
388
  <div class="alignleft actions">
389
+ <input type="button" value="" title="<?php echo __('Reset', 'bwg'); ?>" onclick="spider_search()" class="wd-search-btn action">
390
+ <input type="button" value="" title="<?php echo __('Search', 'bwg'); ?>" onclick="spider_reset()" class="wd-reset-btn action">
391
  </div>
392
  </div>
393
  <?php
456
  }
457
  </script>
458
  <?php } ?>
459
+
460
+ <div id="tablenav-pages" class="alignright tablenav-pages">
461
+ <span class=" displaying-num">
462
  <?php
463
  if ($count_items != 0) {
464
  echo $count_items; ?> <?php echo __('item', 'bwg_back'); ?><?php echo (($count_items == 1) ? '' : 's');
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -148,14 +148,14 @@ class BWGViewAlbum_compact_preview {
148
 
149
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
150
  if (!$theme_row) {
151
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
152
  return;
153
  }
154
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
155
  $album_row_data = $this->model->get_album_row_data($album_gallery_id);
156
 
157
  if (!$album_gallery_id || ($type == 'album' && !$album_row_data)) {
158
- echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
159
  return;
160
  }
161
  if ($type == 'gallery') {
@@ -177,7 +177,7 @@ class BWGViewAlbum_compact_preview {
177
  $image_rows = $this->model->get_image_rows_data($album_gallery_id, $items_per_page, $params['sort_by'], $bwg, $sort_direction);
178
  $images_count = count($image_rows);
179
  if (!$image_rows) {
180
- echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
181
  }
182
  $page_nav = $this->model->gallery_page_nav($album_gallery_id, $bwg);
183
  $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
@@ -187,9 +187,10 @@ class BWGViewAlbum_compact_preview {
187
  $items_per_page = $params['compuct_albums_per_page'];
188
  $items_per_page_arr = array('images_per_page' => $params['compuct_albums_per_page'], 'load_more_image_count' => $params['compuct_albums_per_page']);
189
  $items_col_num = $params['compuct_album_column_number'];
190
- $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, 'order', $bwg, ' ASC ');
 
191
  if (!$album_galleries_row) {
192
- echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
193
  return;
194
  }
195
  $page_nav = $this->model->album_page_nav($album_gallery_id, $bwg);
@@ -589,7 +590,7 @@ class BWGViewAlbum_compact_preview {
589
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
590
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
591
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
592
- <div id="loading_div_<?php echo $bwg; ?>" class="spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>); float: none; width:50px;height:50px;background-size:50px 50px;">
593
  </div>
594
  </div>
595
  </div>
@@ -852,7 +853,7 @@ class BWGViewAlbum_compact_preview {
852
  ?>
853
  </div>
854
  </form>
855
- <div id="spider_popup_loading_<?php echo $bwg; ?>" class="spider_popup_loading"></div>
856
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
857
  </div>
858
  </div>
148
 
149
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
150
  if (!$theme_row) {
151
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
152
  return;
153
  }
154
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
155
  $album_row_data = $this->model->get_album_row_data($album_gallery_id);
156
 
157
  if (!$album_gallery_id || ($type == 'album' && !$album_row_data)) {
158
+ echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'wd_error');
159
  return;
160
  }
161
  if ($type == 'gallery') {
177
  $image_rows = $this->model->get_image_rows_data($album_gallery_id, $items_per_page, $params['sort_by'], $bwg, $sort_direction);
178
  $images_count = count($image_rows);
179
  if (!$image_rows) {
180
+ echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'wd_error');
181
  }
182
  $page_nav = $this->model->gallery_page_nav($album_gallery_id, $bwg);
183
  $album_gallery_div_id = 'bwg_album_compact_' . $bwg;
187
  $items_per_page = $params['compuct_albums_per_page'];
188
  $items_per_page_arr = array('images_per_page' => $params['compuct_albums_per_page'], 'load_more_image_count' => $params['compuct_albums_per_page']);
189
  $items_col_num = $params['compuct_album_column_number'];
190
+ $sort_by = $from === "widget" && $params['show'] == 'random' ? 'RAND()' : 'order';
191
+ $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, $sort_by, $bwg, ' ASC ');
192
  if (!$album_galleries_row) {
193
+ echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'wd_error');
194
  return;
195
  }
196
  $page_nav = $this->model->album_page_nav($album_gallery_id, $bwg);
590
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
591
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
592
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
593
+ <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
594
  </div>
595
  </div>
596
  </div>
853
  ?>
854
  </div>
855
  </form>
856
+ <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
857
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
858
  </div>
859
  </div>
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -92,14 +92,14 @@ class BWGViewAlbum_extended_preview {
92
  $sort_direction = ' ' . $params['order_by'] . ' ';
93
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
94
  if (!$theme_row) {
95
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
96
  return;
97
  }
98
  $type = (isset($_REQUEST['type_' . $bwg]) ? esc_html($_REQUEST['type_' . $bwg]) : 'album');
99
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
100
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
101
  if (!$album_gallery_id || ($type == 'album' && !$this->model->get_album_row_data($album_gallery_id))) {
102
- echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
103
  return;
104
  }
105
  if ($type == 'gallery') {
@@ -121,7 +121,7 @@ class BWGViewAlbum_extended_preview {
121
  $image_rows = $this->model->get_image_rows_data($album_gallery_id, $items_per_page, $params['sort_by'], $bwg, $sort_direction);
122
  $images_count = count($image_rows);
123
  if (!$image_rows) {
124
- echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
125
  }
126
  $page_nav = $this->model->gallery_page_nav($album_gallery_id, $bwg);
127
  $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
@@ -133,7 +133,7 @@ class BWGViewAlbum_extended_preview {
133
  $items_col_num = 1;
134
  $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, 'order', $bwg, ' asc ');
135
  if (!$album_galleries_row) {
136
- echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'error');
137
  return;
138
  }
139
  $page_nav = $this->model->album_page_nav($album_gallery_id, $bwg);
@@ -569,7 +569,7 @@ class BWGViewAlbum_extended_preview {
569
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
570
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color:#FFFFFF; opacity:0.7; filter:Alpha(opacity=70);">
571
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
572
- <div id="loading_div_<?php echo $bwg; ?>" class="spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>); float: none; width:50px;height:50px;background-size:50px 50px;">
573
  </div>
574
  </div>
575
  </div>
@@ -835,7 +835,7 @@ class BWGViewAlbum_extended_preview {
835
  ?>
836
  </div>
837
  </form>
838
- <div id="spider_popup_loading_<?php echo $bwg; ?>" class="spider_popup_loading"></div>
839
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
840
  </div>
841
  </div>
92
  $sort_direction = ' ' . $params['order_by'] . ' ';
93
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
94
  if (!$theme_row) {
95
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
96
  return;
97
  }
98
  $type = (isset($_REQUEST['type_' . $bwg]) ? esc_html($_REQUEST['type_' . $bwg]) : 'album');
99
  $bwg_search = ((isset($_POST['bwg_search_' . $bwg]) && esc_html($_POST['bwg_search_' . $bwg]) != '') ? esc_html($_POST['bwg_search_' . $bwg]) : '');
100
  $album_gallery_id = (isset($_REQUEST['album_gallery_id_' . $bwg]) ? esc_html($_REQUEST['album_gallery_id_' . $bwg]) : $params['album_id']);
101
  if (!$album_gallery_id || ($type == 'album' && !$this->model->get_album_row_data($album_gallery_id))) {
102
+ echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'wd_error');
103
  return;
104
  }
105
  if ($type == 'gallery') {
121
  $image_rows = $this->model->get_image_rows_data($album_gallery_id, $items_per_page, $params['sort_by'], $bwg, $sort_direction);
122
  $images_count = count($image_rows);
123
  if (!$image_rows) {
124
+ echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'wd_error');
125
  }
126
  $page_nav = $this->model->gallery_page_nav($album_gallery_id, $bwg);
127
  $album_gallery_div_id = 'bwg_album_extended_' . $bwg;
133
  $items_col_num = 1;
134
  $album_galleries_row = $this->model->get_alb_gals_row($album_gallery_id, $items_per_page, 'order', $bwg, ' asc ');
135
  if (!$album_galleries_row) {
136
+ echo WDWLibrary::message(__('There is no album selected or the album was deleted.', 'bwg'), 'wd_error');
137
  return;
138
  }
139
  $page_nav = $this->model->album_page_nav($album_gallery_id, $bwg);
569
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display: none;">
570
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color:#FFFFFF; opacity:0.7; filter:Alpha(opacity=70);">
571
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
572
+ <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
573
  </div>
574
  </div>
575
  </div>
835
  ?>
836
  </div>
837
  </form>
838
+ <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
839
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
840
  </div>
841
  </div>
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -45,8 +45,6 @@ class BWGViewGalleryBox {
45
  $popup_enable_rate = WDWLibrary::esc_script('get', 'popup_enable_rate', 0, 'int');
46
  $popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
47
  $slideshow_effect_duration = (isset($_GET['slideshow_effect_duration']) ? (int) $_GET['slideshow_effect_duration'] : 1);
48
-
49
-
50
  $slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
51
  $enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
52
  $enable_comment_social = FALSE;
@@ -764,7 +762,7 @@ class BWGViewGalleryBox {
764
  </script>
765
  <?php
766
  if (!$image_id_exist) {
767
- echo WDWLibrary::message(__('The image has been deleted.', 'bwg'), 'error');
768
  die();
769
  }
770
  ?>
45
  $popup_enable_rate = WDWLibrary::esc_script('get', 'popup_enable_rate', 0, 'int');
46
  $popup_hit_counter = (isset($_GET['popup_hit_counter']) ? esc_html($_GET['popup_hit_counter']) : 0);
47
  $slideshow_effect_duration = (isset($_GET['slideshow_effect_duration']) ? (int) $_GET['slideshow_effect_duration'] : 1);
 
 
48
  $slideshow_interval = (isset($_GET['slideshow_interval']) ? (int) $_GET['slideshow_interval'] : 5);
49
  $enable_image_ctrl_btn = (isset($_GET['enable_image_ctrl_btn']) ? esc_html($_GET['enable_image_ctrl_btn']) : 0);
50
  $enable_comment_social = FALSE;
762
  </script>
763
  <?php
764
  if (!$image_id_exist) {
765
+ echo WDWLibrary::message(__('The image has been deleted.', 'bwg'), 'wd_error');
766
  die();
767
  }
768
  ?>
frontend/views/BWGViewImage_browser.php CHANGED
@@ -67,18 +67,18 @@ class BWGViewImage_browser {
67
  $params['popup_hit_counter'] = 0;
68
  }
69
  if (!$theme_row) {
70
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
71
  return;
72
  }
73
  $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
74
  if (!$gallery_row) {
75
- echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
76
  return;
77
  }
78
  $image_rows = $this->model->get_image_rows_data($params['gallery_id'], 1, $params['sort_by'], $order_by, $bwg);
79
  $images_count = count($image_rows);
80
  if (!$image_rows) {
81
- echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
82
  }
83
  $page_nav = $this->model->page_nav($params['gallery_id'], 1, $bwg);
84
  $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
@@ -449,7 +449,7 @@ class BWGViewImage_browser {
449
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display:none;">
450
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
451
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
452
- <div id="loading_div_<?php echo $bwg; ?>" class="spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>); float: none; width:50px;height:50px;background-size:50px 50px;">
453
  </div>
454
  </div>
455
  </div>
@@ -591,7 +591,7 @@ class BWGViewImage_browser {
591
  </div>
592
  </div>
593
  </form>
594
- <div id="spider_popup_loading_<?php echo $bwg; ?>" class="spider_popup_loading"></div>
595
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
596
  </div>
597
  </div>
67
  $params['popup_hit_counter'] = 0;
68
  }
69
  if (!$theme_row) {
70
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
71
  return;
72
  }
73
  $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
74
  if (!$gallery_row) {
75
+ echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'wd_error');
76
  return;
77
  }
78
  $image_rows = $this->model->get_image_rows_data($params['gallery_id'], 1, $params['sort_by'], $order_by, $bwg);
79
  $images_count = count($image_rows);
80
  if (!$image_rows) {
81
+ echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'wd_error');
82
  }
83
  $page_nav = $this->model->page_nav($params['gallery_id'], 1, $bwg);
84
  $rgb_page_nav_font_color = WDWLibrary::spider_hex2rgb($theme_row->page_nav_font_color);
449
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display:none;">
450
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
451
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
452
+ <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
453
  </div>
454
  </div>
455
  </div>
591
  </div>
592
  </div>
593
  </form>
594
+ <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
595
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
596
  </div>
597
  </div>
frontend/views/BWGViewSlideshow.php CHANGED
@@ -43,7 +43,7 @@ class BWGViewSlideshow {
43
  $theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 1);
44
  $theme_row = $this->model->get_theme_row_data($theme_id);
45
  if (!$theme_row) {
46
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
47
  return;
48
  }
49
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
@@ -84,7 +84,7 @@ class BWGViewSlideshow {
84
  $theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 0);
85
  $theme_row = $this->model->get_theme_row_data($theme_id);
86
  if (!$theme_row) {
87
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
88
  return;
89
  }
90
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
@@ -123,12 +123,12 @@ class BWGViewSlideshow {
123
  }
124
  $gallery_row = $this->model->get_gallery_row_data($gallery_id);
125
  if (!$gallery_row) {
126
- echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
127
  return;
128
  }
129
  $image_rows = $this->model->get_image_rows_data($gallery_id, $sort_by, $order_by, $bwg);
130
  if (!$image_rows) {
131
- echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
132
  }
133
  $current_image_id = ($image_rows ? $image_rows[0]->id : 0);
134
  $play_pause_button_display = 'undefined';
43
  $theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 1);
44
  $theme_row = $this->model->get_theme_row_data($theme_id);
45
  if (!$theme_row) {
46
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
47
  return;
48
  }
49
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
84
  $theme_id = (isset($params['theme_id']) ? esc_html($params['theme_id']) : 0);
85
  $theme_row = $this->model->get_theme_row_data($theme_id);
86
  if (!$theme_row) {
87
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
88
  return;
89
  }
90
  $gallery_id = (isset($params['gallery_id']) ? esc_html($params['gallery_id']) : 0);
123
  }
124
  $gallery_row = $this->model->get_gallery_row_data($gallery_id);
125
  if (!$gallery_row) {
126
+ echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'wd_error');
127
  return;
128
  }
129
  $image_rows = $this->model->get_image_rows_data($gallery_id, $sort_by, $order_by, $bwg);
130
  if (!$image_rows) {
131
+ echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'wd_error');
132
  }
133
  $current_image_id = ($image_rows ? $image_rows[0]->id : 0);
134
  $play_pause_button_display = 'undefined';
frontend/views/BWGViewThumbnails.php CHANGED
@@ -150,7 +150,7 @@ class BWGViewThumbnails {
150
  }
151
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
152
  if (!$theme_row) {
153
- echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'error');
154
  return;
155
  }
156
  if (isset($params['type'])) {
@@ -161,7 +161,7 @@ class BWGViewThumbnails {
161
  }
162
  $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
163
  if (!$gallery_row && ($type == '')) {
164
- echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'error');
165
  return;
166
  }
167
  $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
@@ -169,7 +169,7 @@ class BWGViewThumbnails {
169
  $image_rows = $this->model->get_image_rows_data($params, $bwg, $type, $sort_direction);
170
  $images_count = count($image_rows);
171
  if (!$image_rows) {
172
- echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'error');
173
  }
174
  if ($params['image_enable_page'] && $params['images_per_page']) {
175
  $page_nav = $this->model->page_nav($params['gallery_id'], $bwg, $type);
@@ -388,7 +388,7 @@ class BWGViewThumbnails {
388
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display:none;">
389
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
390
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
391
- <div id="loading_div_<?php echo $bwg; ?>" class="spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.png'; ?>); float: none; width:50px;height:50px;background-size:50px 50px;">
392
  </div>
393
  </div>
394
  </div>
@@ -501,7 +501,7 @@ class BWGViewThumbnails {
501
  ?>
502
  </div>
503
  </form>
504
- <div id="spider_popup_loading_<?php echo $bwg; ?>" class="spider_popup_loading"></div>
505
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
506
  </div>
507
  </div>
150
  }
151
  $theme_row = $this->model->get_theme_row_data($params['theme_id']);
152
  if (!$theme_row) {
153
+ echo WDWLibrary::message(__('There is no theme selected or the theme was deleted.', 'bwg'), 'wd_error');
154
  return;
155
  }
156
  if (isset($params['type'])) {
161
  }
162
  $gallery_row = $this->model->get_gallery_row_data($params['gallery_id']);
163
  if (!$gallery_row && ($type == '')) {
164
+ echo WDWLibrary::message(__('There is no gallery selected or the gallery was deleted.', 'bwg'), 'wd_error');
165
  return;
166
  }
167
  $params['load_more_image_count'] = (isset($params['load_more_image_count']) && ($params['image_enable_page'] == 2)) ? $params['load_more_image_count'] : $params['images_per_page'];
169
  $image_rows = $this->model->get_image_rows_data($params, $bwg, $type, $sort_direction);
170
  $images_count = count($image_rows);
171
  if (!$image_rows) {
172
+ echo WDWLibrary::message(__('There are no images in this gallery.', 'bwg'), 'wd_error');
173
  }
174
  if ($params['image_enable_page'] && $params['images_per_page']) {
175
  $page_nav = $this->model->page_nav($params['gallery_id'], $bwg, $type);
388
  <div id="ajax_loading_<?php echo $bwg; ?>" style="position:absolute;width: 100%; z-index: 115; text-align: center; height: 100%; vertical-align: middle; display:none;">
389
  <div style="display: table; vertical-align: middle; width: 100%; height: 100%; background-color: #FFFFFF; opacity: 0.7; filter: Alpha(opacity=70);">
390
  <div style="display: table-cell; text-align: center; position: relative; vertical-align: middle;" >
391
+ <div id="loading_div_<?php echo $bwg; ?>" class="bwg_spider_ajax_loading" style="display: inline-block; text-align:center; position:relative; vertical-align:middle; background-image:url(<?php echo WD_BWG_URL . '/images/ajax_loader.gif'; ?>); float: none; width:30px;height:30px;background-size:30px 30px;">
392
  </div>
393
  </div>
394
  </div>
501
  ?>
502
  </div>
503
  </form>
504
+ <div id="bwg_spider_popup_loading_<?php echo $bwg; ?>" class="bwg_spider_popup_loading"></div>
505
  <div id="spider_popup_overlay_<?php echo $bwg; ?>" class="spider_popup_overlay" onclick="spider_destroypopup(1000)"></div>
506
  </div>
507
  </div>
images/add_but.png DELETED
Binary file
images/ajax_loader.gif ADDED
Binary file
images/album-icon.png DELETED
Binary file
images/best-wordpress-gallery.png DELETED
Binary file
images/bwg_shortcode.png DELETED
Binary file
images/comment-icon.png DELETED
Binary file
images/delete.png CHANGED
Binary file
images/draggable.png DELETED
Binary file
images/gallery-icon.png DELETED
Binary file
images/icons/add-new.png ADDED
Binary file
images/icons/add_prieview_image.png ADDED
Binary file
images/icons/album-icon.png ADDED
Binary file
images/icons/apply.png ADDED
Binary file
images/icons/arrow.png ADDED
Binary file
images/icons/best-wordpress-gallery.png ADDED
Binary file
images/icons/bulk_embed.png ADDED
Binary file
images/icons/bwg_shortcode.png ADDED
Binary file
images/icons/cancel.png ADDED
Binary file
images/icons/close-red.png ADDED
Binary file
images/icons/comment-icon.png ADDED
Binary file
images/icons/delete.png ADDED
Binary file
images/icons/delete_red.png ADDED
Binary file
images/icons/edit.png ADDED
Binary file
images/icons/edits.png ADDED
Binary file
images/icons/email-option.png ADDED
Binary file
images/icons/gallery-icon.png ADDED
Binary file
images/icons/general-option-hover.png ADDED
Binary file
images/icons/general-option.png ADDED
Binary file
images/icons/import.png ADDED
Binary file
images/icons/layer.png ADDED
Binary file
images/icons/media.png ADDED
Binary file
images/icons/order_column.png ADDED
Binary file
images/icons/publish-blue.png ADDED
Binary file
images/icons/publish.png ADDED
Binary file
images/icons/reset.png ADDED
Binary file
images/icons/save.png ADDED
Binary file
images/icons/save_order.png ADDED
Binary file
images/icons/search.png ADDED
Binary file
images/icons/tag-icon.png ADDED
Binary file
images/icons/theme-icon.png ADDED
Binary file
images/icons/tumbnail.png ADDED
Binary file
images/icons/unpublish-blue.png ADDED
Binary file
images/icons/unpublish.png ADDED
Binary file
images/icons/watermark.png ADDED
Binary file
images/notice.png DELETED
Binary file
images/option-icon.png DELETED
Binary file
images/publish.png DELETED
Binary file
images/rating-icon.png DELETED
Binary file
images/tag-icon.png DELETED
Binary file
images/theme-icon.png DELETED
Binary file
images/theme_blog_style.png CHANGED
Binary file
images/theme_carousel.png ADDED
Binary file
images/theme_compact_album.png CHANGED
Binary file
images/theme_extended_album.png CHANGED
Binary file
images/theme_image_browser.png CHANGED
Binary file
images/theme_lightbox.png CHANGED
Binary file
images/theme_masonry.png CHANGED
Binary file
images/theme_masonry_album.png ADDED
Binary file
images/theme_mosaic.png ADDED
Binary file
images/theme_page_navigation.png CHANGED
Binary file
images/theme_slideshow.png CHANGED
Binary file
images/theme_thumbnails.png CHANGED
Binary file
images/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="button-primary button button-small" onclick="save_tag('+m+')" >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
  }
@@ -39,26 +39,28 @@ function save_tag(tag_id) {
39
  jQuery("#td_count_" + tag_id).attr('class', 'table_big_col');
40
  td_count='<a class="pointer" id="count'+tag_id+'" onclick="edit_tag('+tag_id+')" title="Edit">'+array[2]+'</a>';
41
  jQuery("#td_count_" + tag_id).html(td_count);
42
- td_edit='<a class="pointer" onclick="edit_tag('+tag_id+')" >Edit</a>';
43
  jQuery("#td_edit_" + tag_id).html(td_edit);
44
 
45
  var func1="spider_set_input_value('task', 'delete');";
46
  var func2="spider_set_input_value('current_id', "+tag_id+");";
47
  var func3="spider_form_submit('event', 'tags_form')";
48
- td_delete='<a class="pointer" onclick="'+func1+func2+func3+'" >Delete</a>';
49
  jQuery("#td_delete_" + tag_id).html(td_delete);
50
  }
51
- if ((jQuery( ".updated" ) && jQuery( ".updated" ).attr("id")!='wordpress_message_2' ) || (jQuery( ".error" ) && jQuery( ".error" ).css("display")=="block")) {
52
- if (jQuery( ".updated" ) && jQuery( ".updated" ).attr("id")!='wordpress_message_2' ){
53
- jQuery(".updated").html("<strong><p>"+massege+"</p></strong>");
54
  }
55
  else {
56
- jQuery(".error").html("<strong><p>"+massege+"</p></strong>");
57
- jQuery(".error").attr('class', 'updated');
58
  }
 
59
  }
60
  else {
61
  jQuery("#wordpress_message_1").css("display", "block");
 
62
  }
63
  }
64
  });
@@ -187,50 +189,62 @@ function spider_ajax_save(form_id, tr_group) {
187
  jQuery('#message_div').show();
188
  }
189
  else if (ajax_task == 'recover') {
 
190
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.recoverd + "</p></strong>");
191
  jQuery('#draganddrop').show();
192
  }
193
  else if (ajax_task == 'image_publish') {
 
194
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.published + ".</p></strong>");
195
  jQuery('#draganddrop').show();
196
  }
197
  else if (ajax_task == 'image_unpublish') {
 
198
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.unpublished + "</p></strong>");
199
  jQuery('#draganddrop').show();
200
  }
201
  else if (ajax_task == 'image_delete') {
 
202
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.deleted + "</p></strong>");
203
  jQuery('#draganddrop').show();
204
  }
205
  else if (!flag && ((ajax_task == 'image_publish_all') || (ajax_task == 'image_unpublish_all') || (ajax_task == 'image_delete_all') || (ajax_task == 'image_set_watermark') || (ajax_task == 'image_recover_all') || (ajax_task == 'image_resize') || (ajax_task == 'resize_image_thumb'))) {
 
206
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.one_item + "</p></strong>");
207
  jQuery('#draganddrop').show();
208
  }
209
  else if (ajax_task == 'image_publish_all') {
 
210
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.published + "</p></strong>");
211
  jQuery('#draganddrop').show();
212
  }
213
  else if (ajax_task == 'image_unpublish_all') {
 
214
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.unpublished + "</p></strong>");
215
  jQuery('#draganddrop').show();
216
  }
217
  else if (ajax_task == 'image_delete_all') {
 
218
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.deleted + "</p></strong>");
219
  jQuery('#draganddrop').show();
220
  }
221
  else if (ajax_task == 'resize_image_thumb') {
 
222
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.resized + "</p></strong>");
223
  jQuery('#draganddrop').show();
224
  }
225
  else if (ajax_task == 'image_set_watermark') {
 
226
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.watermark_set + "</p></strong>");
227
  jQuery('#draganddrop').show();
228
  }
229
  else if (ajax_task == 'image_resize') {
 
230
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.resized + "</p></strong>");
231
  jQuery('#draganddrop').show();
232
  }
233
  else if (ajax_task == 'image_recover_all') {
 
234
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.reset + "</p></strong>");
235
  jQuery('#draganddrop').show();
236
  }
@@ -240,6 +254,7 @@ function spider_ajax_save(form_id, tr_group) {
240
 
241
  }
242
  else {
 
243
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.saved + "</p></strong>");
244
  jQuery('#draganddrop').show();
245
  }
@@ -370,9 +385,11 @@ function spider_show_hide_weights() {
370
  if (jQuery("#show_hide_weights").val() == bwg_objectL10B.bwg_show_order) {
371
  jQuery(".connectedSortable").css("cursor", "default");
372
  jQuery("#tbody_arr").find(".handle").hide(0);
 
373
  jQuery("#th_order").show(0);
374
  jQuery("#tbody_arr").find(".spider_order").show(0);
375
  jQuery("#show_hide_weights").val(bwg_objectL10B.bwg_hide_order);
 
376
  if (jQuery("#tbody_arr").sortable()) {
377
  jQuery("#tbody_arr").sortable("disable");
378
  }
@@ -402,10 +419,12 @@ function spider_show_hide_weights() {
402
  });//.disableSelection();
403
  jQuery("#tbody_arr").sortable("enable");
404
  jQuery("#tbody_arr").find(".handle").show(0);
 
405
  jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
406
  jQuery("#th_order").hide(0);
407
  jQuery("#tbody_arr").find(".spider_order").hide(0);
408
  jQuery("#show_hide_weights").val(bwg_objectL10B.bwg_show_order);
 
409
  }
410
  }
411
 
@@ -427,6 +446,7 @@ function spider_check_all_items_checkbox() {
427
  var items_count = added_items + saved_items;
428
  jQuery('#check_all_items').attr('checked', true);
429
  if (items_count) {
 
430
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.selected + ' ' + items_count + ' ' + bwg_objectL10B.item + (items_count > 1 ? "s" : "") + ".</p></strong>");
431
  jQuery('#draganddrop').show();
432
  }
@@ -862,11 +882,19 @@ function bwg_change_option_type(type) {
862
  for (var i = 1; i <= 10; i++) {
863
  if (i == type) {
864
  document.getElementById('div_content_' + i).style.display = 'block';
865
- document.getElementById('div_' + i).style.background = '#C5C5C5';
 
 
 
 
866
  }
867
  else {
868
  document.getElementById('div_content_' + i).style.display = 'none';
869
- document.getElementById('div_' + i).style.background = '#F4F4F4';
 
 
 
 
870
  }
871
  }
872
  document.getElementById('display_panel').style.display = 'inline-block';
@@ -1136,4 +1164,53 @@ function bwg_get_embed_info(input_id) {
1136
  });
1137
  return 'ok';
1138
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1139
  }
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
  }
39
  jQuery("#td_count_" + tag_id).attr('class', 'table_big_col');
40
  td_count='<a class="pointer" id="count'+tag_id+'" onclick="edit_tag('+tag_id+')" title="Edit">'+array[2]+'</a>';
41
  jQuery("#td_count_" + tag_id).html(td_count);
42
+ td_edit='<a class="pointer bwg_img_edit" title="Edit" onclick="edit_tag('+tag_id+')" ></a>';
43
  jQuery("#td_edit_" + tag_id).html(td_edit);
44
 
45
  var func1="spider_set_input_value('task', 'delete');";
46
  var func2="spider_set_input_value('current_id', "+tag_id+");";
47
  var func3="spider_form_submit('event', 'tags_form')";
48
+ td_delete='<a class="pointer bwg_img_remove" title="Delete" onclick="'+func1+func2+func3+'" ></a>';
49
  jQuery("#td_delete_" + tag_id).html(td_delete);
50
  }
51
+ if ((jQuery(".wd_updated" ) && jQuery(".wd_updated" ).attr("id")!='wordpress_message_2' ) || (jQuery( ".wd_error" ) && jQuery( ".wd_error" ).css("display")=="block")) {
52
+ if (jQuery( ".wd_updated" ) && jQuery(".wd_updated" ).attr("id")!='wordpress_message_2' ){
53
+ jQuery(".wd_updated").html("<strong><p>"+massege+"</p></strong>");
54
  }
55
  else {
56
+ jQuery(".wd_error").html("<strong><p>"+massege+"</p></strong>");
57
+ jQuery(".wd_error").attr('class', 'wd_updated');
58
  }
59
+
60
  }
61
  else {
62
  jQuery("#wordpress_message_1").css("display", "block");
63
+
64
  }
65
  }
66
  });
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
  }
196
  else if (ajax_task == 'image_publish') {
197
+ jQuery('#draganddrop').attr('class','wd_updated');
198
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.published + ".</p></strong>");
199
  jQuery('#draganddrop').show();
200
  }
201
  else if (ajax_task == 'image_unpublish') {
202
+ jQuery('#draganddrop').attr('class','wd_updated');
203
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.unpublished + "</p></strong>");
204
  jQuery('#draganddrop').show();
205
  }
206
  else if (ajax_task == 'image_delete') {
207
+ jQuery('#draganddrop').attr('class','wd_updated');
208
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.deleted + "</p></strong>");
209
  jQuery('#draganddrop').show();
210
  }
211
  else if (!flag && ((ajax_task == 'image_publish_all') || (ajax_task == 'image_unpublish_all') || (ajax_task == 'image_delete_all') || (ajax_task == 'image_set_watermark') || (ajax_task == 'image_recover_all') || (ajax_task == 'image_resize') || (ajax_task == 'resize_image_thumb'))) {
212
+ jQuery('#draganddrop').attr('class','wd_error');
213
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.one_item + "</p></strong>");
214
  jQuery('#draganddrop').show();
215
  }
216
  else if (ajax_task == 'image_publish_all') {
217
+ jQuery('#draganddrop').attr('class','wd_updated');
218
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.published + "</p></strong>");
219
  jQuery('#draganddrop').show();
220
  }
221
  else if (ajax_task == 'image_unpublish_all') {
222
+ jQuery('#draganddrop').attr('class','wd_updated');
223
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.unpublished + "</p></strong>");
224
  jQuery('#draganddrop').show();
225
  }
226
  else if (ajax_task == 'image_delete_all') {
227
+ jQuery('#draganddrop').attr('class','wd_updated');
228
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.deleted + "</p></strong>");
229
  jQuery('#draganddrop').show();
230
  }
231
  else if (ajax_task == 'resize_image_thumb') {
232
+ jQuery('#draganddrop').attr('class','wd_updated');
233
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.resized + "</p></strong>");
234
  jQuery('#draganddrop').show();
235
  }
236
  else if (ajax_task == 'image_set_watermark') {
237
+ jQuery('#draganddrop').attr('class','wd_updated');
238
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.watermark_set + "</p></strong>");
239
  jQuery('#draganddrop').show();
240
  }
241
  else if (ajax_task == 'image_resize') {
242
+ jQuery('#draganddrop').attr('class','wd_updated');
243
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.resized + "</p></strong>");
244
  jQuery('#draganddrop').show();
245
  }
246
  else if (ajax_task == 'image_recover_all') {
247
+ jQuery('#draganddrop').attr('class','wd_updated');
248
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.reset + "</p></strong>");
249
  jQuery('#draganddrop').show();
250
  }
254
 
255
  }
256
  else {
257
+ jQuery('#draganddrop').attr('class','wd_updated');
258
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.saved + "</p></strong>");
259
  jQuery('#draganddrop').show();
260
  }
385
  if (jQuery("#show_hide_weights").val() == bwg_objectL10B.bwg_show_order) {
386
  jQuery(".connectedSortable").css("cursor", "default");
387
  jQuery("#tbody_arr").find(".handle").hide(0);
388
+ jQuery("#tbody_arr").find(".handles").closest("td").hide(0);
389
  jQuery("#th_order").show(0);
390
  jQuery("#tbody_arr").find(".spider_order").show(0);
391
  jQuery("#show_hide_weights").val(bwg_objectL10B.bwg_hide_order);
392
+ jQuery("#show_hide_weights").attr('title',bwg_objectL10B.bwg_hide_order);
393
  if (jQuery("#tbody_arr").sortable()) {
394
  jQuery("#tbody_arr").sortable("disable");
395
  }
419
  });//.disableSelection();
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);
427
+ jQuery("#show_hide_weights").attr('title',bwg_objectL10B.bwg_show_order);
428
  }
429
  }
430
 
446
  var items_count = added_items + saved_items;
447
  jQuery('#check_all_items').attr('checked', true);
448
  if (items_count) {
449
+ jQuery('#draganddrop').attr('class','wd_updated');
450
  jQuery('#draganddrop').html("<strong><p>" + bwg_objectL10B.selected + ' ' + items_count + ' ' + bwg_objectL10B.item + (items_count > 1 ? "s" : "") + ".</p></strong>");
451
  jQuery('#draganddrop').show();
452
  }
882
  for (var i = 1; i <= 10; i++) {
883
  if (i == type) {
884
  document.getElementById('div_content_' + i).style.display = 'block';
885
+ document.getElementById('div_' + i).style.background = '#ffffff';
886
+ document.getElementById('div_' + i).style.color = '#00A0D2';
887
+ document.getElementById('div_' + i).style.borderLeft = '1px solid #00A0D2';
888
+ document.getElementById('div_' + i).style.borderTop = '1px solid #00A0D2';
889
+ document.getElementById('div_' + i).style.borderBottom = '1px solid #00A0D2';
890
  }
891
  else {
892
  document.getElementById('div_content_' + i).style.display = 'none';
893
+ document.getElementById('div_' + i).style.background = '#00A0D2';
894
+ document.getElementById('div_' + i).style.color = '#ffffff';
895
+ document.getElementById('div_' + i).style.borderLeft = '1px solid #00A0D2';
896
+ document.getElementById('div_' + i).style.borderTop = '1px solid #00A0D2';
897
+ document.getElementById('div_' + i).style.borderBottom = '1px solid #00A0D2';
898
  }
899
  }
900
  document.getElementById('display_panel').style.display = 'inline-block';
1164
  });
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('Do you want to delete selected items?')) {
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('Do you want to delete selected items?')) {
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
  }
js/bwg_editor_button.js CHANGED
@@ -59,7 +59,7 @@ jQuery(window).load(function(){
59
  },
60
  _do_bwg:function (ed) {
61
  return ed.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function (d, c) {
62
- return '<img src="' + bwg_plugin_url + '/images/bwg_shortcode.png" class="bwg_shortcode mceItem" title="Best_Wordpress_Gallery' + tinymce.DOM.encode(c) + '" />';
63
  })
64
  },
65
  _get_bwg:function (b) {
59
  },
60
  _do_bwg:function (ed) {
61
  return ed.replace(/\[Best_Wordpress_Gallery([^\]]*)\]/g, function (d, c) {
62
+ return '<img src="' + bwg_plugin_url + '/images/icons/bwg_shortcode.png" class="bwg_shortcode mceItem" title="Best_Wordpress_Gallery' + tinymce.DOM.encode(c) + '" />';
63
  })
64
  },
65
  _get_bwg:function (b) {
js/bwg_frontend.js CHANGED
@@ -66,7 +66,7 @@ function spider_frontend_ajax(form_id, current_view, id, album_gallery_id, cur_a
66
  var bwg_images_count = jQuery('#bwg_images_count_' + current_view).val();
67
  if (bwg_images_count == 0) {
68
  var cont = jQuery("#" + id).parent().html();
69
- var error_msg = '<div style="width:95%"><div class="error"><p><strong>' + bwg_objectL10n.bwg_search_result + '</strong></p></div></div>';
70
  jQuery("#" + id).parent().html(error_msg + cont)
71
  }
72
  }
66
  var bwg_images_count = jQuery('#bwg_images_count_' + current_view).val();
67
  if (bwg_images_count == 0) {
68
  var cont = jQuery("#" + id).parent().html();
69
+ var error_msg = '<div style="width:95%"><div class="wd_error"><p><strong>' + bwg_objectL10n.bwg_search_result + '</strong></p></div></div>';
70
  jQuery("#" + id).parent().html(error_msg + cont)
71
  }
72
  }
js/bwg_gallery_box.js CHANGED
@@ -8,7 +8,7 @@ function spider_createpopup(url, current_view, width, height, duration, descript
8
  return;
9
  }
10
  jQuery("html").attr("style", "overflow:hidden !important;");
11
- jQuery("#spider_popup_loading_" + current_view).css({display: "block"});
12
  jQuery("#spider_popup_overlay_" + current_view).css({display: "block"});
13
 
14
  jQuery.get(url, function(data) {
@@ -24,7 +24,7 @@ function spider_createpopup(url, current_view, width, height, duration, descript
24
  .appendTo("body");
25
  spider_showpopup(description, lifetime, popup, duration, lightbox_ctrl_btn_pos);
26
  }).success(function(jqXHR, textStatus, errorThrown) {
27
- jQuery("#spider_popup_loading_" + current_view).css({display: "none !important;"});
28
  });
29
  }
30
 
@@ -69,7 +69,7 @@ function spider_destroypopup(duration) {
69
  }
70
  setTimeout(function () {
71
  jQuery(".spider_popup_wrap").remove();
72
- jQuery(".spider_popup_loading").css({display: "none"});
73
  jQuery(".spider_popup_overlay").css({display: "none"});
74
  jQuery(document).off("keydown");
75
  jQuery("html").attr("style", "overflow:auto !important");
8
  return;
9
  }
10
  jQuery("html").attr("style", "overflow:hidden !important;");
11
+ jQuery("#bwg_spider_popup_loading_" + current_view).css({display: "block"});
12
  jQuery("#spider_popup_overlay_" + current_view).css({display: "block"});
13
 
14
  jQuery.get(url, function(data) {
24
  .appendTo("body");
25
  spider_showpopup(description, lifetime, popup, duration, lightbox_ctrl_btn_pos);
26
  }).success(function(jqXHR, textStatus, errorThrown) {
27
+ jQuery("#bwg_spider_popup_loading_" + current_view).css({display: "none !important;"});
28
  });
29
  }
30
 
69
  }
70
  setTimeout(function () {
71
  jQuery(".spider_popup_wrap").remove();
72
+ jQuery(".bwg_spider_popup_loading").css({display: "none"});
73
  jQuery(".spider_popup_overlay").css({display: "none"});
74
  jQuery(document).off("keydown");
75
  jQuery("html").attr("style", "overflow:auto !important");
js/images/bwg_edit_but.png CHANGED
Binary file
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.2.108
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -51,7 +51,7 @@ else {
51
 
52
  // Plugin menu.
53
  function bwg_options_panel() {
54
- $galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'manage_options', 'galleries_bwg', 'bwg_gallery', WD_BWG_URL . '/images/best-wordpress-gallery.png');
55
 
56
  $galleries_page = add_submenu_page('galleries_bwg', __('Add Galleries/Images', 'bwg_back'), __('Add Galleries/Images', 'bwg_back'), 'manage_options', 'galleries_bwg', 'bwg_gallery');
57
  add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
@@ -1923,7 +1923,7 @@ function bwg_activate() {
1923
  ));
1924
  }
1925
  $version = WD_BWG_VERSION;
1926
- $new_version = '1.2.108';
1927
  if ($version && version_compare($version, $new_version, '<')) {
1928
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1929
  bwg_update($version);
@@ -1977,7 +1977,7 @@ wp_oembed_add_provider( '#https://instagr(\.am|am\.com)/p/.*#i', 'https://api.in
1977
 
1978
  function bwg_update_hook() {
1979
  $version = WD_BWG_VERSION;
1980
- $new_version = '1.2.108';
1981
  if ($version && version_compare($version, $new_version, '<')) {
1982
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1983
  bwg_update($version);
@@ -2039,6 +2039,7 @@ function bwg_scripts() {
2039
  'resized' => __('Items Succesfully resized.', 'bwg_back'),
2040
  'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
2041
  'reset' => __('Items Succesfully Reset.', 'bwg_back'),
 
2042
  ));
2043
 
2044
  global $wp_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.0
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
51
 
52
  // Plugin menu.
53
  function bwg_options_panel() {
54
+ $galleries_page = add_menu_page('Photo Gallery', 'Photo Gallery', 'manage_options', 'galleries_bwg', 'bwg_gallery', WD_BWG_URL . '/images/icons/best-wordpress-gallery.png');
55
 
56
  $galleries_page = add_submenu_page('galleries_bwg', __('Add Galleries/Images', 'bwg_back'), __('Add Galleries/Images', 'bwg_back'), 'manage_options', 'galleries_bwg', 'bwg_gallery');
57
  add_action('admin_print_styles-' . $galleries_page, 'bwg_styles');
1923
  ));
1924
  }
1925
  $version = WD_BWG_VERSION;
1926
+ $new_version = '1.3.0';
1927
  if ($version && version_compare($version, $new_version, '<')) {
1928
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1929
  bwg_update($version);
1977
 
1978
  function bwg_update_hook() {
1979
  $version = WD_BWG_VERSION;
1980
+ $new_version = '1.3.0';
1981
  if ($version && version_compare($version, $new_version, '<')) {
1982
  require_once WD_BWG_DIR . "/update/bwg_update.php";
1983
  bwg_update($version);
2039
  'resized' => __('Items Succesfully resized.', 'bwg_back'),
2040
  'watermark_set' => __('Watermarks Succesfully Set.', 'bwg_back'),
2041
  'reset' => __('Items Succesfully Reset.', 'bwg_back'),
2042
+ 'save_tag' => __('Save Tag', 'bwg_back'),
2043
  ));
2044
 
2045
  global $wp_scripts;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
- Stable tag: 1.2.108
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.2.108 =
229
  * Added: Save as copy themes.
230
  * Fixed: Delete folder with single quote in name.
4
  Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, responsive gallery, add album, add gallery, add pictures, fotoalbum, foto, gallery decription, multiple pictures, photoalbum, upload images, upload photos, view images, view pictures, admin, AJAX, comments, gallery image, image lightbox, image rotate, image slideshow, image slider, jquery, jquery gallery, slide show, slideshow, thumbnail, thumbnail view, thumbnails, thumbs, responsive, watermarking, watermarks,fullscreen slider, lightbox, photography, sidebar, slide, youtube, vimeo, videos, instagram, facebook, mosaic, facebook integration, instagram feed, Flickr, Dailymotion, widget, youtube gallery, ecommerce
5
  Requires at least: 3.4
6
  Tested up to: 4.5
7
+ Stable tag: 1.3.0
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.0 =
229
+ * Changed: Backend design.
230
+ * Fixed: Random order album for widget.
231
+
232
  = 1.2.108 =
233
  * Added: Save as copy themes.
234
  * Fixed: Delete folder with single quote in name.