Photo Gallery by WD – Responsive Photo Gallery - Version 1.0.9

Version Description

Download this release

Release Info

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

Code changes from version 1.0.8 to 1.0.9

admin/controllers/BWGControllerGalleries_bwg.php CHANGED
@@ -500,8 +500,11 @@ class BWGControllerGalleries_bwg {
500
  '%d',
501
  '%d',
502
  ));
503
- $image_id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'bwg_image');
504
- $_POST['check_' . $image_id] = 'on';
 
 
 
505
  if (isset($_POST['image_current_id']) && strpos(esc_html($_POST['image_current_id']), 'pr_') !== FALSE) {
506
  $_POST['image_current_id'] = $image_id;
507
  }
500
  '%d',
501
  '%d',
502
  ));
503
+ $new_image_id = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'bwg_image');
504
+ if (isset($_POST['check_' . $image_id])) {
505
+ $_POST['check_' . $new_image_id] = 'on';
506
+ }
507
+ $image_id = $new_image_id;
508
  if (isset($_POST['image_current_id']) && strpos(esc_html($_POST['image_current_id']), 'pr_') !== FALSE) {
509
  $_POST['image_current_id'] = $image_id;
510
  }
admin/views/BWGViewBWGShortcode.php CHANGED
@@ -30,7 +30,21 @@ class BWGViewBWGShortcode {
30
  $from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
31
  $effects = array(
32
  'none' => 'None',
 
 
33
  'fade' => 'Fade',
 
 
 
 
 
 
 
 
 
 
 
 
34
  );
35
  $watermark_fonts = array(
36
  'arial' => 'Arial',
@@ -89,7 +103,7 @@ class BWGViewBWGShortcode {
89
  }
90
  else {
91
  ?>
92
- <div id="display_panel" style="width: 99%; margin-top: 10px;">
93
  <?php
94
  }
95
  ?>
@@ -398,7 +412,7 @@ class BWGViewBWGShortcode {
398
  <?php
399
  foreach ($effects as $key => $effect) {
400
  ?>
401
- <option value="<?php echo $key; ?>" <?php echo ($option_row->slideshow_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
402
  <?php
403
  }
404
  ?>
@@ -550,7 +564,7 @@ class BWGViewBWGShortcode {
550
  <?php
551
  foreach ($effects as $key => $effect) {
552
  ?>
553
- <option value="<?php echo $key; ?>" <?php echo ($option_row->popup_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
554
  <?php
555
  }
556
  ?>
@@ -723,12 +737,14 @@ class BWGViewBWGShortcode {
723
  ?>
724
  </div>
725
  </div>
 
726
  <div class="mceActionPanel">
727
  <div style="float:left;">
728
- <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();" />
729
  </div>
730
  <div style="float:right;">
731
  <input type="submit" id="insert" name="insert" value="Insert" onClick="bwg_insert_shortcode('');" />
 
732
  </div>
733
  </div>
734
  </form>
@@ -737,9 +753,12 @@ class BWGViewBWGShortcode {
737
  else {
738
  ?>
739
  <hr style="float: left; width: 100%;" />
740
- <input type="button" class="button-primary" id="insert" name="insert" value="Generate" onclick="bwg_insert_shortcode('');" />
741
- <input type="button" class="button" id="import" name="import" value="Import" onclick="bwg_update_shortcode()" />
742
- <textarea style="width: 100%; resize: vertical" id="bwg_shortcode" rows="4" onkeydown="bwg_onKeyDown(event)"></textarea>
 
 
 
743
  </div>
744
  <?php
745
  }
30
  $from_menu = ((isset($_GET['page']) && (esc_html($_GET['page']) == 'BWGShortcode')) ? TRUE : FALSE);
31
  $effects = array(
32
  'none' => 'None',
33
+ 'cubeH' => 'Cube Horizontal',
34
+ 'cubeV' => 'Cube Vertical',
35
  'fade' => 'Fade',
36
+ 'sliceH' => 'Slice Horizontal',
37
+ 'sliceV' => 'Slice Vertical',
38
+ 'slideH' => 'Slide Horizontal',
39
+ 'slideV' => 'Slide Vertical',
40
+ 'scaleOut' => 'Scale Out',
41
+ 'scaleIn' => 'Scale In',
42
+ 'blockScale' => 'Block Scale',
43
+ 'kaleidoscope' => 'Kaleidoscope',
44
+ 'fan' => 'Fan',
45
+ 'blindH' => 'Blind Horizontal',
46
+ 'blindV' => 'Blind Vertical',
47
+ 'random' => 'Random',
48
  );
49
  $watermark_fonts = array(
50
  'arial' => 'Arial',
103
  }
104
  else {
105
  ?>
106
+ <div id="display_panel" style="width: 99%; margin-top: 30px;">
107
  <?php
108
  }
109
  ?>
412
  <?php
413
  foreach ($effects as $key => $effect) {
414
  ?>
415
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php echo ($option_row->slideshow_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
416
  <?php
417
  }
418
  ?>
564
  <?php
565
  foreach ($effects as $key => $effect) {
566
  ?>
567
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php echo ($option_row->popup_type == $key) ? 'selected' : ''; ?>><?php echo $effect; ?></option>
568
  <?php
569
  }
570
  ?>
737
  ?>
738
  </div>
739
  </div>
740
+
741
  <div class="mceActionPanel">
742
  <div style="float:left;">
743
+ <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/">Please see Pro <span id="bwg_pro_version">Thumbnail</span> View</a>
744
  </div>
745
  <div style="float:right;">
746
  <input type="submit" id="insert" name="insert" value="Insert" onClick="bwg_insert_shortcode('');" />
747
+ <input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();" />
748
  </div>
749
  </div>
750
  </form>
753
  else {
754
  ?>
755
  <hr style="float: left; width: 100%;" />
756
+ <span style="float: left; width: 100%;">
757
+ <a id="bwg_pro_version_link" class="button button-primary" target="_blank" style="display: table; margin-bottom: 5px;" href="http://web-dorado.com/products/wordpress-photo-gallery-plugin.html">Please see Pro <span id="bwg_pro_version">Thumbnail</span> View</a>
758
+ <input type="button" class="button-primary" id="insert" name="insert" value="Generate" onclick="bwg_insert_shortcode('');" />
759
+ <input type="button" class="button" id="import" name="import" value="Import" onclick="bwg_update_shortcode()" />
760
+ <textarea style="width: 100%; resize: vertical; margin-top: 5px;" id="bwg_shortcode" rows="4" onkeydown="bwg_onKeyDown(event)"></textarea>
761
+ </span>
762
  </div>
763
  <?php
764
  }
admin/views/BWGViewEditThumb.php CHANGED
@@ -81,6 +81,7 @@ class BWGViewEditThumb {
81
  $h = (isset($_POST['h']) ? (int) $_POST['h'] : 0);
82
 
83
  if (isset($_GET['image_url'])) {
 
84
  $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
85
  $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
86
  $filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url;
@@ -298,6 +299,7 @@ class BWGViewEditThumb {
298
  $edit_type = (isset($_POST['edit_type']) ? esc_html($_POST['edit_type']) : '');
299
 
300
  if (isset($_GET['image_url'])) {
 
301
  $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
302
  $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
303
  $filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url;
81
  $h = (isset($_POST['h']) ? (int) $_POST['h'] : 0);
82
 
83
  if (isset($_GET['image_url'])) {
84
+ $image_data = new stdClass();
85
  $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
86
  $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
87
  $filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url;
299
  $edit_type = (isset($_POST['edit_type']) ? esc_html($_POST['edit_type']) : '');
300
 
301
  if (isset($_GET['image_url'])) {
302
+ $image_data = new stdClass();
303
  $image_data->image_url = (isset($_GET['image_url']) ? esc_html($_GET['image_url']) : '');
304
  $image_data->thumb_url = (isset($_GET['thumb_url']) ? esc_html($_GET['thumb_url']) : '');
305
  $filename = ABSPATH . $WD_BWG_UPLOAD_DIR . $image_data->image_url;
admin/views/BWGViewGalleries_bwg.php CHANGED
@@ -451,9 +451,9 @@ class BWGViewGalleries_bwg {
451
  document.getElementById("ids_string").value += j + ',';
452
  j_int++;
453
  j = 'pr_' + j_int;
454
- jQuery("#show_hide_weights").val("Hide order column");
455
- spider_show_hide_weights();
456
  }
 
 
457
  }
458
  </script>
459
  <form class="wrap" method="post" id="galleries_form" action="admin.php?page=galleries_bwg" style="float: left; width: 95%;">
451
  document.getElementById("ids_string").value += j + ',';
452
  j_int++;
453
  j = 'pr_' + j_int;
 
 
454
  }
455
+ jQuery("#show_hide_weights").val("Hide order column");
456
+ spider_show_hide_weights();
457
  }
458
  </script>
459
  <form class="wrap" method="post" id="galleries_form" action="admin.php?page=galleries_bwg" style="float: left; width: 95%;">
admin/views/BWGViewOptions_bwg.php CHANGED
@@ -69,7 +69,21 @@ class BWGViewOptions_bwg {
69
  );
70
  $effects = array(
71
  'none' => 'None',
 
 
72
  'fade' => 'Fade',
 
 
 
 
 
 
 
 
 
 
 
 
73
  );
74
  ?>
75
  <form method="post" class="wrap" action="admin.php?page=options_bwg" style="float: left; width: 95%;">
@@ -463,7 +477,7 @@ class BWGViewOptions_bwg {
463
  <?php
464
  foreach ($effects as $key => $effect) {
465
  ?>
466
- <option value="<?php echo $key; ?>" <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
467
  <?php
468
  }
469
  ?>
@@ -713,7 +727,7 @@ class BWGViewOptions_bwg {
713
  <?php
714
  foreach ($effects as $key => $effect) {
715
  ?>
716
- <option value="<?php echo $key; ?>" <?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
717
  <?php
718
  }
719
  ?>
69
  );
70
  $effects = array(
71
  'none' => 'None',
72
+ 'cubeH' => 'Cube Horizontal',
73
+ 'cubeV' => 'Cube Vertical',
74
  'fade' => 'Fade',
75
+ 'sliceH' => 'Slice Horizontal',
76
+ 'sliceV' => 'Slice Vertical',
77
+ 'slideH' => 'Slide Horizontal',
78
+ 'slideV' => 'Slide Vertical',
79
+ 'scaleOut' => 'Scale Out',
80
+ 'scaleIn' => 'Scale In',
81
+ 'blockScale' => 'Block Scale',
82
+ 'kaleidoscope' => 'Kaleidoscope',
83
+ 'fan' => 'Fan',
84
+ 'blindH' => 'Blind Horizontal',
85
+ 'blindV' => 'Blind Vertical',
86
+ 'random' => 'Random',
87
  );
88
  ?>
89
  <form method="post" class="wrap" action="admin.php?page=options_bwg" style="float: left; width: 95%;">
477
  <?php
478
  foreach ($effects as $key => $effect) {
479
  ?>
480
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->popup_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
481
  <?php
482
  }
483
  ?>
727
  <?php
728
  foreach ($effects as $key => $effect) {
729
  ?>
730
+ <option value="<?php echo $key; ?>" <?php echo ($key != 'none' && $key != 'fade') ? 'disabled="disabled" title="This effect is disabled in free version."' : ''; ?> <?php if ($row->slideshow_type == $key) echo 'selected="selected"'; ?>><?php echo $effect; ?></option>
731
  <?php
732
  }
733
  ?>
filemanager/controller.php CHANGED
@@ -139,9 +139,11 @@ class FilemanagerController {
139
  $msg = "Some of the files couldn't be removed.";
140
  }
141
  else {
142
- if (!is_dir(file_path)) {
143
- $this->remove_file_dir($file_path);
144
  $this->remove_file_dir($thumb_file_path);
 
 
145
  $this->remove_file_dir($original_file_path);
146
  }
147
  }
139
  $msg = "Some of the files couldn't be removed.";
140
  }
141
  else {
142
+ $this->remove_file_dir($file_path);
143
+ if (file_exists($thumb_file_path)) {
144
  $this->remove_file_dir($thumb_file_path);
145
+ }
146
+ if (file_exists($original_file_path)) {
147
  $this->remove_file_dir($original_file_path);
148
  }
149
  }
filemanager/js/default.js CHANGED
@@ -271,9 +271,9 @@ function onBtnViewListClick(event, obj) {
271
 
272
  function onBtnBackClick(event, obj) {
273
  if ((isUploading == false) || (confirm(warningCancelUploads) == true)) {
274
- jQuery("#uploader").fadeOut(function () {
275
  submit("", null, null, null, null, null, null, null, null, null, null);
276
- });
277
  }
278
  }
279
 
@@ -332,6 +332,10 @@ function onFileClick(event, obj) {
332
  filesSelected.push(objName);
333
  keyFileSelected = obj;
334
  }
 
 
 
 
335
  }
336
  else if (event.shiftKey == true) {
337
  filesSelected = [];
271
 
272
  function onBtnBackClick(event, obj) {
273
  if ((isUploading == false) || (confirm(warningCancelUploads) == true)) {
274
+ // jQuery("#uploader").fadeOut(function () {
275
  submit("", null, null, null, null, null, null, null, null, null, null);
276
+ // });
277
  }
278
  }
279
 
332
  filesSelected.push(objName);
333
  keyFileSelected = obj;
334
  }
335
+ else {
336
+ filesSelected.splice(filesSelected.indexOf(objName), 1);
337
+ jQuery(obj).removeClass("explorer_item_select");
338
+ }
339
  }
340
  else if (event.shiftKey == true) {
341
  filesSelected = [];
filemanager/model.php CHANGED
@@ -36,7 +36,7 @@ class FilemanagerModel {
36
  $session_data = array();
37
  $session_data['sort_by'] = $this->get_from_session('sort_by', 'name');
38
  $session_data['sort_order'] = $this->get_from_session('sort_order', 'asc');
39
- $session_data['items_view'] = $this->get_from_session('items_view', 'list');
40
  $session_data['clipboard_task'] = $this->get_from_session('clipboard_task', '');
41
  $session_data['clipboard_files'] = $this->get_from_session('clipboard_files', '');
42
  $session_data['clipboard_src'] = $this->get_from_session('clipboard_src', '');
@@ -83,7 +83,8 @@ class FilemanagerModel {
83
 
84
  $components = array();
85
  $component = array();
86
- $component['name'] = 'root';
 
87
  $component['path'] = $path;
88
  $components[] = $component;
89
  for ($i = 0; $i < count($dir_names); $i++) {
@@ -134,7 +135,7 @@ class FilemanagerModel {
134
  $file['is_dir'] = FALSE;
135
  $file['name'] = $file_name;
136
  $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
137
- $file['type'] = end(explode('.', $file_name));
138
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
139
  if (file_exists($icons_dir_path . '/' . $file['type'] . '.png') == FALSE) {
140
  $icon = $icons_dir_url . '/' . '_blank.png';
36
  $session_data = array();
37
  $session_data['sort_by'] = $this->get_from_session('sort_by', 'name');
38
  $session_data['sort_order'] = $this->get_from_session('sort_order', 'asc');
39
+ $session_data['items_view'] = $this->get_from_session('items_view', 'thumbs');
40
  $session_data['clipboard_task'] = $this->get_from_session('clipboard_task', '');
41
  $session_data['clipboard_files'] = $this->get_from_session('clipboard_files', '');
42
  $session_data['clipboard_src'] = $this->get_from_session('clipboard_src', '');
83
 
84
  $components = array();
85
  $component = array();
86
+ global $WD_BWG_UPLOAD_DIR;
87
+ $component['name'] = $WD_BWG_UPLOAD_DIR;
88
  $component['path'] = $path;
89
  $components[] = $component;
90
  for ($i = 0; $i < count($dir_names); $i++) {
135
  $file['is_dir'] = FALSE;
136
  $file['name'] = $file_name;
137
  $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
138
+ $file['type'] = strtolower(end(explode('.', $file_name)));
139
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
140
  if (file_exists($icons_dir_path . '/' . $file['type'] . '.png') == FALSE) {
141
  $icon = $icons_dir_url . '/' . '_blank.png';
filemanager/view.php CHANGED
@@ -119,9 +119,9 @@ class FilemanagerView {
119
  </div>
120
  <div id="path">
121
  <?php
122
- foreach ($file_manager_data['path_components'] as $path_component) {
123
  ?>
124
- <a class="path_component path_dir"
125
  onclick="onPathComponentClick(event, this, '<?php echo addslashes($path_component['path']); ?>');">
126
  <?php echo $path_component['name']; ?></a>
127
  <a class="path_component path_separator"><?php echo '/'; ?></a>
@@ -236,7 +236,7 @@ class FilemanagerView {
236
  <span>
237
  </span>
238
  </span>
239
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnOpenClick(event, this);"><?php echo 'Add selected images to gallery'; ?></a>
240
  <span class="ctrl_bar_empty_devider"></span>
241
  <a class="ctrl_bar_btn btn_cancel btn_secondary none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
242
  </div>
@@ -283,7 +283,9 @@ class FilemanagerView {
283
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
284
  jQuery("#uploader_progress_text").addClass("uploader_text");
285
  });
286
- jQuery(".btn_back").trigger("click");
 
 
287
  }
288
  },
289
  done: function (e, data) {
119
  </div>
120
  <div id="path">
121
  <?php
122
+ foreach ($file_manager_data['path_components'] as $key => $path_component) {
123
  ?>
124
+ <a <?php echo ($key == 0) ? 'title="To change upload directory go to Options page."' : ''; ?> class="path_component path_dir"
125
  onclick="onPathComponentClick(event, this, '<?php echo addslashes($path_component['path']); ?>');">
126
  <?php echo $path_component['name']; ?></a>
127
  <a class="path_component path_separator"><?php echo '/'; ?></a>
236
  <span>
237
  </span>
238
  </span>
239
+ <a 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' : 'Add'); ?></a>
240
  <span class="ctrl_bar_empty_devider"></span>
241
  <a class="ctrl_bar_btn btn_cancel btn_secondary none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
242
  </div>
283
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
284
  jQuery("#uploader_progress_text").addClass("uploader_text");
285
  });
286
+ setTimeout(function () {
287
+ onBtnBackClick();
288
+ }, 500);
289
  }
290
  },
291
  done: function (e, data) {
frontend/views/BWGViewAlbum_compact_preview.php CHANGED
@@ -196,7 +196,6 @@ class BWGViewAlbum_compact_preview {
196
  cursor: pointer;
197
  text-decoration: none;
198
  }
199
-
200
  /*Image thumbs styles.*/
201
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_span1_<?php echo $bwg; ?> {
202
  background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
@@ -299,7 +298,7 @@ class BWGViewAlbum_compact_preview {
299
  word-break: break-all;
300
  word-wrap: break-word;
301
  }
302
- /*Pagination styles.*/
303
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
304
  text-align: <?php echo $theme_row->page_nav_align; ?>;
305
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
@@ -356,7 +355,7 @@ class BWGViewAlbum_compact_preview {
356
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
357
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
358
  }
359
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
360
  background-color: rgba(0, 0, 0, 0);
361
  color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
362
  cursor: pointer;
@@ -367,7 +366,7 @@ class BWGViewAlbum_compact_preview {
367
  text-decoration: none;
368
  padding: <?php echo $theme_row->album_compact_back_padding; ?>;
369
  }
370
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
371
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
372
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
373
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
@@ -536,7 +535,7 @@ class BWGViewAlbum_compact_preview {
536
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
537
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
538
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
539
- <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
540
  <?php
541
  if ($params['compuct_album_image_title'] == 'hover') {
542
  ?>
196
  cursor: pointer;
197
  text-decoration: none;
198
  }
 
199
  /*Image thumbs styles.*/
200
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_span1_<?php echo $bwg; ?> {
201
  background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
298
  word-break: break-all;
299
  word-wrap: break-word;
300
  }
301
+ /*Pagination styles.*/
302
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
303
  text-align: <?php echo $theme_row->page_nav_align; ?>;
304
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
355
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
356
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
357
  }
358
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
359
  background-color: rgba(0, 0, 0, 0);
360
  color: #<?php echo $theme_row->album_compact_back_font_color; ?> !important;
361
  cursor: pointer;
366
  text-decoration: none;
367
  padding: <?php echo $theme_row->album_compact_back_padding; ?>;
368
  }
369
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
370
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
371
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
372
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
535
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
536
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
537
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
538
+ <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
539
  <?php
540
  if ($params['compuct_album_image_title'] == 'hover') {
541
  ?>
frontend/views/BWGViewAlbum_extended_preview.php CHANGED
@@ -173,7 +173,7 @@ class BWGViewAlbum_extended_preview {
173
  font-size: <?php echo $theme_row->album_extended_desc_more_size; ?>px;
174
  font-weight: normal;
175
  }
176
- /*Album thumbs styles.*/
177
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_<?php echo $bwg; ?> {
178
  display: inline-block;
179
  text-align: center;
@@ -213,7 +213,7 @@ class BWGViewAlbum_extended_preview {
213
  overflow: hidden;
214
  width: <?php echo $params['extended_album_thumb_width']; ?>px;
215
  }
216
- /*Image thumbs styles.*/
217
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_span1_<?php echo $bwg; ?> {
218
  background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
219
  border-radius: <?php echo $theme_row->thumb_border_radius; ?>;
@@ -315,7 +315,7 @@ class BWGViewAlbum_extended_preview {
315
  word-break: break-all;
316
  word-wrap: break-word;
317
  }
318
- /*Pagination styles.*/
319
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
320
  text-align: <?php echo $theme_row->page_nav_align; ?>;
321
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
@@ -372,7 +372,7 @@ class BWGViewAlbum_extended_preview {
372
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
373
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
374
  }
375
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
376
  background-color: rgba(0, 0, 0, 0);
377
  color: #<?php echo $theme_row->album_extended_back_font_color; ?> !important;
378
  cursor: pointer;
@@ -383,7 +383,7 @@ class BWGViewAlbum_extended_preview {
383
  text-decoration: none;
384
  padding: <?php echo $theme_row->album_extended_back_padding; ?>;
385
  }
386
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
387
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
388
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
389
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
@@ -571,7 +571,7 @@ class BWGViewAlbum_extended_preview {
571
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
572
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
573
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
574
- <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
575
  <?php
576
  if ($params['extended_album_image_title'] == 'hover') {
577
  ?>
173
  font-size: <?php echo $theme_row->album_extended_desc_more_size; ?>px;
174
  font-weight: normal;
175
  }
176
+ /*Album thumbs styles.*/
177
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_album_thumb_<?php echo $bwg; ?> {
178
  display: inline-block;
179
  text-align: center;
213
  overflow: hidden;
214
  width: <?php echo $params['extended_album_thumb_width']; ?>px;
215
  }
216
+ /*Image thumbs styles.*/
217
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_standart_thumb_span1_<?php echo $bwg; ?> {
218
  background-color: #<?php echo $theme_row->thumb_bg_color; ?>;
219
  border-radius: <?php echo $theme_row->thumb_border_radius; ?>;
315
  word-break: break-all;
316
  word-wrap: break-word;
317
  }
318
+ /*Pagination styles.*/
319
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
320
  text-align: <?php echo $theme_row->page_nav_align; ?>;
321
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
372
  box-shadow: <?php echo $theme_row->page_nav_box_shadow; ?>;
373
  <?php echo ($theme_row->page_nav_button_transition ) ? 'transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s;' : ''; ?>
374
  }
375
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_back_<?php echo $bwg; ?> {
376
  background-color: rgba(0, 0, 0, 0);
377
  color: #<?php echo $theme_row->album_extended_back_font_color; ?> !important;
378
  cursor: pointer;
383
  text-decoration: none;
384
  padding: <?php echo $theme_row->album_extended_back_padding; ?>;
385
  }
386
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_popup_overlay_<?php echo $bwg; ?> {
387
  background-color: #<?php echo $theme_row->lightbox_overlay_bg_color; ?>;
388
  opacity: <?php echo $theme_row->lightbox_overlay_bg_transparent / 100; ?>;
389
  filter: Alpha(opacity=<?php echo $theme_row->lightbox_overlay_bg_transparent; ?>);
571
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
572
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
573
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
574
+ <img style="max-height:none; max-width:none; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
575
  <?php
576
  if ($params['extended_album_image_title'] == 'hover') {
577
  ?>
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -127,15 +127,6 @@ class BWGViewGalleryBox {
127
  -webkit-box-sizing: border-box;
128
  box-sizing: border-box;
129
  }
130
- /*.bwg_filmstrip_container *,
131
- .bwg_image_container *,
132
- .bwg_ctrl_btn_container *,
133
- .bwg_toggle_container * {
134
- backface-visibility: visibility;
135
- -webkit-backface-visibility: visibility;
136
- -moz-backface-visibility: visibility;
137
- -ms-backface-visibility: visibility;
138
- }*/
139
  .ui-tooltip {
140
  z-index: 2147483650;
141
  word-wrap: break-word;
@@ -382,7 +373,6 @@ class BWGViewGalleryBox {
382
  margin: 5px;
383
  z-index: 10150;
384
  }
385
-
386
  .bwg_comment_textarea::-webkit-scrollbar {
387
  width: 4px;
388
  }
@@ -395,7 +385,6 @@ class BWGViewGalleryBox {
395
  .bwg_comment_textarea::-webkit-scrollbar-thumb:hover {
396
  background-color: #D9D9D9;
397
  }
398
-
399
  .bwg_ctrl_btn_container a,
400
  .bwg_ctrl_btn_container a:hover {
401
  text-decoration: none;
@@ -414,7 +403,7 @@ class BWGViewGalleryBox {
414
  .bwg_google {
415
  color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
416
  }
417
- .bwg_image_container {
418
  display: table;
419
  position: absolute;
420
  text-align: center;
@@ -422,6 +411,7 @@ class BWGViewGalleryBox {
422
  vertical-align: middle;
423
  width: 100%;
424
  }
 
425
  .bwg_filmstrip_container {
426
  display: table;
427
  height: <?php echo $image_filmstrip_height; ?>px;
@@ -537,7 +527,6 @@ class BWGViewGalleryBox {
537
  position: relative;
538
  z-index: 10141;
539
  }
540
-
541
  .bwg_slide_container {
542
  display: table-cell;
543
  position: absolute;
@@ -757,7 +746,6 @@ class BWGViewGalleryBox {
757
  }
758
  });
759
  }
760
-
761
  var bwg_current_key = '<?php echo $current_key; ?>';
762
  var bwg_current_filmstrip_pos = <?php echo $current_pos; ?>;
763
  // Set filmstrip initial position.
@@ -809,7 +797,6 @@ class BWGViewGalleryBox {
809
  jQuery(".bwg_filmstrip_right").show();
810
  }
811
  }
812
-
813
  function bwg_testBrowser_cssTransitions() {
814
  return bwg_testDom('Transition');
815
  }
@@ -838,11 +825,9 @@ class BWGViewGalleryBox {
838
  return bwg_fallback3d(current_image_class, next_image_class, direction);
839
  }
840
  bwg_trans_in_progress = true;
841
-
842
  // Set active thumbnail.
843
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
844
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
845
-
846
  jQuery(".bwg_slide_bg").css('perspective', 1000);
847
  jQuery(current_image_class).css({
848
  transform : 'translateZ(' + tz + 'px)',
@@ -912,7 +897,6 @@ class BWGViewGalleryBox {
912
  // Set active thumbnail.
913
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
914
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
915
-
916
  if (bwg_testBrowser_cssTransitions()) {
917
  jQuery(next_image_class).css('transition', 'opacity ' + bwg_transition_duration + 'ms linear');
918
  jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
@@ -939,11 +923,9 @@ class BWGViewGalleryBox {
939
  return bwg_fallback(current_image_class, next_image_class, direction);
940
  }
941
  bwg_trans_in_progress = true;
942
-
943
  // Set active thumbnail.
944
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
945
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
946
-
947
  // The time (in ms) added to/subtracted from the delay total for each new gridlet.
948
  var count = (bwg_transition_duration) / (cols + rows);
949
  // Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)
@@ -1020,7 +1002,6 @@ class BWGViewGalleryBox {
1020
  img_leftDist -= newColWidth;
1021
  leftDist += newColWidth;
1022
  }
1023
-
1024
  // Set event listener on last gridlet to finish transitioning.
1025
  var last_gridlet = grid.children().last();
1026
  // Show grid & hide the image it replaces.
@@ -1090,12 +1071,10 @@ class BWGViewGalleryBox {
1090
  // current_key = jQuery(".bwg_thumb_active").children("img").attr("image_key");
1091
  // }
1092
  }
1093
-
1094
  if (bwg_trans_in_progress) {
1095
  event_stack.push(current_key + '-' + key);
1096
  return;
1097
  }
1098
-
1099
  var direction = 'right';
1100
  if (bwg_current_key > key) {
1101
  var direction = 'left';
@@ -1114,25 +1093,20 @@ class BWGViewGalleryBox {
1114
  }
1115
  // Set filmstrip initial position.
1116
  jQuery(".bwg_watermark").css({display: 'none'});
1117
-
1118
  // Set active thumbnail position.
1119
  bwg_current_filmstrip_pos = key * (jQuery(".bwg_filmstrip_thumbnail").width() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
1120
  bwg_current_key = key;
1121
-
1122
  // Change image id, title, description.
1123
  jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
1124
  jQuery(".bwg_info").attr('title', data[key]["alt"] + "<br />" + jQuery('<div />').html(data[key]["description"]).text());
1125
-
1126
  var current_image_class = "#image_id_" + data[current_key]["id"];
1127
  var next_image_class = "#image_id_" + data[key]["id"];
1128
  bwg_<?php echo $image_effect; ?>(current_image_class, next_image_class, direction);
1129
-
1130
  jQuery("#bwg_fullsize_image").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
1131
  jQuery("#bwg_download").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
1132
  jQuery("#bwg_download").attr("download", data[key]['image_url']);
1133
  // Add image url to meta.
1134
  jQuery("#bwg_facebook_a").attr("href", "https://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode($current_url); ?>&p[title]=" + data[key]['alt'] + "&p[summary]=" + data[key]['description'] + "&p[images][0]=<?php echo urlencode(site_url() . '/' . $WD_BWG_UPLOAD_DIR); ?>" + data[key]['thumb_url']);
1135
-
1136
  // Load comments.
1137
  if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
1138
  if (data[key]["comment_count"] == 0) {
@@ -1152,7 +1126,6 @@ class BWGViewGalleryBox {
1152
  }
1153
  });
1154
  jQuery(".mCSB_scrollTools").hide();
1155
-
1156
  <?php
1157
  if ($enable_image_filmstrip) {
1158
  ?>
@@ -1162,7 +1135,6 @@ class BWGViewGalleryBox {
1162
  ?>
1163
  }
1164
  }
1165
-
1166
  jQuery(document).on('keydown', function (e) {
1167
  if (e.keyCode === 39) { // Right arrow.
1168
  bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
@@ -1230,7 +1202,6 @@ class BWGViewGalleryBox {
1230
  jQuery(".bwg_popup_image").css({
1231
  maxWidth: <?php echo $image_width; ?> - comment_container_width
1232
  });
1233
-
1234
  jQuery(".bwg_filmstrip_container").css({width: <?php echo $image_width; ?> - comment_container_width});
1235
  jQuery(".bwg_filmstrip").css({width: (<?php echo $image_width; ?> - comment_container_width- 40)});
1236
  bwg_popup_current_width = <?php echo $image_width; ?>;
@@ -1246,7 +1217,6 @@ class BWGViewGalleryBox {
1246
  jQuery(".bwg_popup_image").css({
1247
  maxWidth: jQuery(window).width() - comment_container_width
1248
  });
1249
-
1250
  jQuery(".bwg_filmstrip_container").css({width: (jQuery(window).width() - comment_container_width)});
1251
  jQuery(".bwg_filmstrip").css({width: (jQuery(window).width() - comment_container_width - 40)});
1252
  bwg_popup_current_width = jQuery(window).width();
@@ -1270,7 +1240,6 @@ class BWGViewGalleryBox {
1270
  // Popup current width/height.
1271
  var bwg_popup_current_width = <?php echo $image_width; ?>;
1272
  var bwg_popup_current_height = <?php echo $image_height; ?>;
1273
-
1274
  // Open/close comments.
1275
  function bwg_comment() {
1276
  jQuery(".bwg_watermark").css({display: 'none'});
@@ -1342,7 +1311,15 @@ class BWGViewGalleryBox {
1342
  }
1343
  }
1344
  }
 
 
 
 
 
 
 
1345
  jQuery(document).ready(function () {
 
1346
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
1347
  var bwg_click = isMobile ? 'touchend' : 'click';
1348
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
@@ -1357,7 +1334,6 @@ class BWGViewGalleryBox {
1357
  setTimeout(function () {
1358
  bwg_change_watermark_container();
1359
  }, 500);
1360
-
1361
  // If browser doesn't support Fullscreen API.
1362
  if (!jQuery.fullscreen.isNativelySupported()) {
1363
  jQuery(".bwg_fullscreen").hide();
@@ -1373,7 +1349,6 @@ class BWGViewGalleryBox {
1373
  });
1374
  // Change default scrollbar in comments.
1375
  jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150});
1376
-
1377
  var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel" //FF doesn't recognize mousewheel as of FF3.x
1378
  jQuery('.bwg_filmstrip').on(mousewheelevt, function(e) {
1379
  var evt = window.event || e // Equalize event object.
@@ -1429,7 +1404,6 @@ class BWGViewGalleryBox {
1429
  bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width());
1430
  // Open/close comments.
1431
  jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment()});
1432
-
1433
  // Open/close control buttons.
1434
  jQuery(".bwg_toggle_container").on(bwg_click, function () {
1435
  var bwg_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-up' : 'fa-angle-down'; ?>";
@@ -1455,7 +1429,6 @@ class BWGViewGalleryBox {
1455
  });
1456
  }
1457
  });
1458
-
1459
  // Maximize/minimize.
1460
  jQuery(".bwg_resize-full").on(bwg_click, function () {
1461
  jQuery(".bwg_watermark").css({display: 'none'});
@@ -1498,7 +1471,6 @@ class BWGViewGalleryBox {
1498
  jQuery(".bwg_filmstrip").animate({width: bwg_popup_current_width - comment_container_width - 40}, 500);
1499
  // Set filmstrip initial position.
1500
  bwg_set_filmstrip_pos(bwg_popup_current_width - 40);
1501
-
1502
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-full");
1503
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
1504
  }
@@ -1527,13 +1499,11 @@ class BWGViewGalleryBox {
1527
  jQuery(".bwg_filmstrip").animate({width: jQuery(window).width() - comment_container_width - 40}, 500);
1528
  // Set filmstrip initial position.
1529
  bwg_set_filmstrip_pos(jQuery(window).width() - comment_container_width - 40);
1530
-
1531
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-small");
1532
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Restore', 'bwg'); ?>");
1533
  jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
1534
  }
1535
  });
1536
-
1537
  // Fullscreen.
1538
  jQuery(".bwg_fullscreen").on(bwg_click, function () {
1539
  jQuery(".bwg_watermark").css({display: 'none'});
@@ -1573,12 +1543,10 @@ class BWGViewGalleryBox {
1573
  });
1574
  // Set watermark container size.
1575
  bwg_change_watermark_container();
1576
-
1577
  jQuery(".bwg_filmstrip_container").css({width: bwg_popup_current_width - comment_container_width});
1578
  jQuery(".bwg_filmstrip").css({width: bwg_popup_current_width - comment_container_width- 40});
1579
  // Set filmstrip initial position.
1580
  bwg_set_filmstrip_pos(bwg_popup_current_width - 40);
1581
-
1582
  jQuery(".bwg_resize-full").show();
1583
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-full");
1584
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
@@ -1621,23 +1589,19 @@ class BWGViewGalleryBox {
1621
 
1622
  // Set watermark container size.
1623
  bwg_change_watermark_container();
1624
-
1625
  jQuery(".bwg_filmstrip_container").css({width: (screen_width - comment_container_width)});
1626
  jQuery(".bwg_filmstrip").css({width: (screen_width - comment_container_width - 40)});
1627
  // Set filmstrip initial position.
1628
  bwg_set_filmstrip_pos(screen_width - comment_container_width - 40);
1629
-
1630
  jQuery(".bwg_resize-full").hide();
1631
  jQuery(".bwg_fullscreen").attr("class", "bwg_ctrl_btn bwg_fullscreen fa fa-resize-small");
1632
  jQuery(".bwg_fullscreen").attr("title", "<?php echo __('Exit Fullscreen', 'bwg'); ?>");
1633
  jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
1634
  // });
1635
  // }
1636
-
1637
  }
1638
  return false;
1639
  });
1640
-
1641
  // Play/pause.
1642
  jQuery(".bwg_play_pause, .bwg_popup_image").on(bwg_click, function () {
1643
  if (jQuery(".bwg_ctrl_btn").hasClass("fa-play")) {
127
  -webkit-box-sizing: border-box;
128
  box-sizing: border-box;
129
  }
 
 
 
 
 
 
 
 
 
130
  .ui-tooltip {
131
  z-index: 2147483650;
132
  word-wrap: break-word;
373
  margin: 5px;
374
  z-index: 10150;
375
  }
 
376
  .bwg_comment_textarea::-webkit-scrollbar {
377
  width: 4px;
378
  }
385
  .bwg_comment_textarea::-webkit-scrollbar-thumb:hover {
386
  background-color: #D9D9D9;
387
  }
 
388
  .bwg_ctrl_btn_container a,
389
  .bwg_ctrl_btn_container a:hover {
390
  text-decoration: none;
403
  .bwg_google {
404
  color: #<?php echo $theme_row->lightbox_comment_share_button_color; ?>;
405
  }
406
+ .bwg_image_container {
407
  display: table;
408
  position: absolute;
409
  text-align: center;
411
  vertical-align: middle;
412
  width: 100%;
413
  }
414
+
415
  .bwg_filmstrip_container {
416
  display: table;
417
  height: <?php echo $image_filmstrip_height; ?>px;
527
  position: relative;
528
  z-index: 10141;
529
  }
 
530
  .bwg_slide_container {
531
  display: table-cell;
532
  position: absolute;
746
  }
747
  });
748
  }
 
749
  var bwg_current_key = '<?php echo $current_key; ?>';
750
  var bwg_current_filmstrip_pos = <?php echo $current_pos; ?>;
751
  // Set filmstrip initial position.
797
  jQuery(".bwg_filmstrip_right").show();
798
  }
799
  }
 
800
  function bwg_testBrowser_cssTransitions() {
801
  return bwg_testDom('Transition');
802
  }
825
  return bwg_fallback3d(current_image_class, next_image_class, direction);
826
  }
827
  bwg_trans_in_progress = true;
 
828
  // Set active thumbnail.
829
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
830
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
 
831
  jQuery(".bwg_slide_bg").css('perspective', 1000);
832
  jQuery(current_image_class).css({
833
  transform : 'translateZ(' + tz + 'px)',
897
  // Set active thumbnail.
898
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
899
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
 
900
  if (bwg_testBrowser_cssTransitions()) {
901
  jQuery(next_image_class).css('transition', 'opacity ' + bwg_transition_duration + 'ms linear');
902
  jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
923
  return bwg_fallback(current_image_class, next_image_class, direction);
924
  }
925
  bwg_trans_in_progress = true;
 
926
  // Set active thumbnail.
927
  jQuery(".bwg_filmstrip_thumbnail").removeClass("bwg_thumb_active").addClass("bwg_thumb_deactive");
928
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key).removeClass("bwg_thumb_deactive").addClass("bwg_thumb_active");
 
929
  // The time (in ms) added to/subtracted from the delay total for each new gridlet.
930
  var count = (bwg_transition_duration) / (cols + rows);
931
  // Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)
1002
  img_leftDist -= newColWidth;
1003
  leftDist += newColWidth;
1004
  }
 
1005
  // Set event listener on last gridlet to finish transitioning.
1006
  var last_gridlet = grid.children().last();
1007
  // Show grid & hide the image it replaces.
1071
  // current_key = jQuery(".bwg_thumb_active").children("img").attr("image_key");
1072
  // }
1073
  }
 
1074
  if (bwg_trans_in_progress) {
1075
  event_stack.push(current_key + '-' + key);
1076
  return;
1077
  }
 
1078
  var direction = 'right';
1079
  if (bwg_current_key > key) {
1080
  var direction = 'left';
1093
  }
1094
  // Set filmstrip initial position.
1095
  jQuery(".bwg_watermark").css({display: 'none'});
 
1096
  // Set active thumbnail position.
1097
  bwg_current_filmstrip_pos = key * (jQuery(".bwg_filmstrip_thumbnail").width() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
1098
  bwg_current_key = key;
 
1099
  // Change image id, title, description.
1100
  jQuery("#bwg_popup_image").attr('image_id', data[key]["id"]);
1101
  jQuery(".bwg_info").attr('title', data[key]["alt"] + "<br />" + jQuery('<div />').html(data[key]["description"]).text());
 
1102
  var current_image_class = "#image_id_" + data[current_key]["id"];
1103
  var next_image_class = "#image_id_" + data[key]["id"];
1104
  bwg_<?php echo $image_effect; ?>(current_image_class, next_image_class, direction);
 
1105
  jQuery("#bwg_fullsize_image").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
1106
  jQuery("#bwg_download").attr("href", "<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR; ?>" + data[key]['image_url']);
1107
  jQuery("#bwg_download").attr("download", data[key]['image_url']);
1108
  // Add image url to meta.
1109
  jQuery("#bwg_facebook_a").attr("href", "https://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php echo urlencode($current_url); ?>&p[title]=" + data[key]['alt'] + "&p[summary]=" + data[key]['description'] + "&p[images][0]=<?php echo urlencode(site_url() . '/' . $WD_BWG_UPLOAD_DIR); ?>" + data[key]['thumb_url']);
 
1110
  // Load comments.
1111
  if (jQuery(".bwg_comment_container").hasClass("bwg_open")) {
1112
  if (data[key]["comment_count"] == 0) {
1126
  }
1127
  });
1128
  jQuery(".mCSB_scrollTools").hide();
 
1129
  <?php
1130
  if ($enable_image_filmstrip) {
1131
  ?>
1135
  ?>
1136
  }
1137
  }
 
1138
  jQuery(document).on('keydown', function (e) {
1139
  if (e.keyCode === 39) { // Right arrow.
1140
  bwg_change_image(parseInt(jQuery('#bwg_current_image_key').val()), parseInt(jQuery('#bwg_current_image_key').val()) + 1, data)
1202
  jQuery(".bwg_popup_image").css({
1203
  maxWidth: <?php echo $image_width; ?> - comment_container_width
1204
  });
 
1205
  jQuery(".bwg_filmstrip_container").css({width: <?php echo $image_width; ?> - comment_container_width});
1206
  jQuery(".bwg_filmstrip").css({width: (<?php echo $image_width; ?> - comment_container_width- 40)});
1207
  bwg_popup_current_width = <?php echo $image_width; ?>;
1217
  jQuery(".bwg_popup_image").css({
1218
  maxWidth: jQuery(window).width() - comment_container_width
1219
  });
 
1220
  jQuery(".bwg_filmstrip_container").css({width: (jQuery(window).width() - comment_container_width)});
1221
  jQuery(".bwg_filmstrip").css({width: (jQuery(window).width() - comment_container_width - 40)});
1222
  bwg_popup_current_width = jQuery(window).width();
1240
  // Popup current width/height.
1241
  var bwg_popup_current_width = <?php echo $image_width; ?>;
1242
  var bwg_popup_current_height = <?php echo $image_height; ?>;
 
1243
  // Open/close comments.
1244
  function bwg_comment() {
1245
  jQuery(".bwg_watermark").css({display: 'none'});
1311
  }
1312
  }
1313
  }
1314
+ function bwg_reset_zoom() {
1315
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
1316
+ var viewportmeta = document.querySelector('meta[name="viewport"]');
1317
+ if (isMobile && viewportmeta) {
1318
+ viewportmeta.content = 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0';
1319
+ }
1320
+ }
1321
  jQuery(document).ready(function () {
1322
+ bwg_reset_zoom();
1323
  var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
1324
  var bwg_click = isMobile ? 'touchend' : 'click';
1325
  if (navigator.appVersion.indexOf("MSIE 10") != -1 || navigator.appVersion.indexOf("MSIE 9") != -1) {
1334
  setTimeout(function () {
1335
  bwg_change_watermark_container();
1336
  }, 500);
 
1337
  // If browser doesn't support Fullscreen API.
1338
  if (!jQuery.fullscreen.isNativelySupported()) {
1339
  jQuery(".bwg_fullscreen").hide();
1349
  });
1350
  // Change default scrollbar in comments.
1351
  jQuery(".bwg_comments").mCustomScrollbar({scrollInertia: 150});
 
1352
  var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel" //FF doesn't recognize mousewheel as of FF3.x
1353
  jQuery('.bwg_filmstrip').on(mousewheelevt, function(e) {
1354
  var evt = window.event || e // Equalize event object.
1404
  bwg_set_filmstrip_pos(jQuery(".bwg_filmstrip").width());
1405
  // Open/close comments.
1406
  jQuery(".bwg_comment, .bwg_comments_close_btn").on(bwg_click, function() { bwg_comment()});
 
1407
  // Open/close control buttons.
1408
  jQuery(".bwg_toggle_container").on(bwg_click, function () {
1409
  var bwg_open_toggle_btn_class = "<?php echo ($theme_row->lightbox_ctrl_btn_pos == 'top') ? 'fa-angle-up' : 'fa-angle-down'; ?>";
1429
  });
1430
  }
1431
  });
 
1432
  // Maximize/minimize.
1433
  jQuery(".bwg_resize-full").on(bwg_click, function () {
1434
  jQuery(".bwg_watermark").css({display: 'none'});
1471
  jQuery(".bwg_filmstrip").animate({width: bwg_popup_current_width - comment_container_width - 40}, 500);
1472
  // Set filmstrip initial position.
1473
  bwg_set_filmstrip_pos(bwg_popup_current_width - 40);
 
1474
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-full");
1475
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
1476
  }
1499
  jQuery(".bwg_filmstrip").animate({width: jQuery(window).width() - comment_container_width - 40}, 500);
1500
  // Set filmstrip initial position.
1501
  bwg_set_filmstrip_pos(jQuery(window).width() - comment_container_width - 40);
 
1502
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-small");
1503
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Restore', 'bwg'); ?>");
1504
  jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
1505
  }
1506
  });
 
1507
  // Fullscreen.
1508
  jQuery(".bwg_fullscreen").on(bwg_click, function () {
1509
  jQuery(".bwg_watermark").css({display: 'none'});
1543
  });
1544
  // Set watermark container size.
1545
  bwg_change_watermark_container();
 
1546
  jQuery(".bwg_filmstrip_container").css({width: bwg_popup_current_width - comment_container_width});
1547
  jQuery(".bwg_filmstrip").css({width: bwg_popup_current_width - comment_container_width- 40});
1548
  // Set filmstrip initial position.
1549
  bwg_set_filmstrip_pos(bwg_popup_current_width - 40);
 
1550
  jQuery(".bwg_resize-full").show();
1551
  jQuery(".bwg_resize-full").attr("class", "bwg_ctrl_btn bwg_resize-full fa fa-resize-full");
1552
  jQuery(".bwg_resize-full").attr("title", "<?php echo __('Maximize', 'bwg'); ?>");
1589
 
1590
  // Set watermark container size.
1591
  bwg_change_watermark_container();
 
1592
  jQuery(".bwg_filmstrip_container").css({width: (screen_width - comment_container_width)});
1593
  jQuery(".bwg_filmstrip").css({width: (screen_width - comment_container_width - 40)});
1594
  // Set filmstrip initial position.
1595
  bwg_set_filmstrip_pos(screen_width - comment_container_width - 40);
 
1596
  jQuery(".bwg_resize-full").hide();
1597
  jQuery(".bwg_fullscreen").attr("class", "bwg_ctrl_btn bwg_fullscreen fa fa-resize-small");
1598
  jQuery(".bwg_fullscreen").attr("title", "<?php echo __('Exit Fullscreen', 'bwg'); ?>");
1599
  jQuery(".spider_popup_close").attr("class", "bwg_ctrl_btn spider_popup_close_fullscreen");
1600
  // });
1601
  // }
 
1602
  }
1603
  return false;
1604
  });
 
1605
  // Play/pause.
1606
  jQuery(".bwg_play_pause, .bwg_popup_image").on(bwg_click, function () {
1607
  if (jQuery(".bwg_ctrl_btn").hasClass("fa-play")) {
frontend/views/BWGViewImage_browser.php CHANGED
@@ -162,7 +162,7 @@ class BWGViewImage_browser {
162
  height: inherit !important;
163
  width: 100%;
164
  }
165
- @media only screen and (max-width : 320px) {
166
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
167
  display: none;
168
  }
@@ -200,7 +200,7 @@ class BWGViewImage_browser {
200
  font-size: 10px !important;
201
  }
202
  }
203
- /*pagination styles*/
204
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
205
  text-align: <?php echo $theme_row->page_nav_align; ?>;
206
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
@@ -447,7 +447,6 @@ class BWGViewImage_browser {
447
  }
448
  }
449
  }, 3);
450
-
451
  jQuery(window).resize(function() {
452
  if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
453
  jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
162
  height: inherit !important;
163
  width: 100%;
164
  }
165
+ @media only screen and (max-width : 320px) {
166
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .displaying-num_<?php echo $bwg; ?> {
167
  display: none;
168
  }
200
  font-size: 10px !important;
201
  }
202
  }
203
+ /*pagination styles*/
204
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
205
  text-align: <?php echo $theme_row->page_nav_align; ?>;
206
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
447
  }
448
  }
449
  }, 3);
 
450
  jQuery(window).resize(function() {
451
  if (jQuery('.image_browser_images_<?php echo $bwg; ?>').width() <= 108) {
452
  jQuery('.paging-input_<?php echo $bwg; ?>').css('display', 'none');
frontend/views/BWGViewSlideshow.php CHANGED
@@ -145,7 +145,7 @@ class BWGViewSlideshow {
145
  -moz-backface-visibility: hidden;
146
  -ms-backface-visibility: hidden;*/
147
  }
148
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_wrap_<?php echo $bwg; ?> {
149
  background-color: #<?php echo $theme_row->slideshow_cont_bg_color; ?>;
150
  border-collapse: collapse;
151
  display: table;
@@ -228,14 +228,15 @@ class BWGViewSlideshow {
228
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?> {
229
  right: 0;
230
  }
231
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left_<?php echo $bwg; ?>:hover,
232
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?>:hover {
233
  visibility: visible;
234
  }
235
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left_<?php echo $bwg; ?>:hover span {
 
236
  left: 20px;
237
  }
238
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?>:hover span {
239
  left: auto;
240
  right: 20px;
241
  }
@@ -275,7 +276,7 @@ class BWGViewSlideshow {
275
  color: #<?php echo $theme_row->slideshow_close_rl_btn_hover_color; ?>;
276
  cursor: pointer;
277
  }
278
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_container_<?php echo $bwg; ?> {
279
  display: table;
280
  position: absolute;
281
  text-align: center;
@@ -451,11 +452,11 @@ class BWGViewSlideshow {
451
  word-break: break-word;
452
  <?php if (!$enable_slideshow_filmstrip && $slideshow_description_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
453
  }
454
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_description_text_<?php echo $bwg; ?> * {
455
  text-decoration: none;
456
  color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
457
  }
458
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slide_container_<?php echo $bwg; ?> {
459
  display: table-cell;
460
  margin: 0 auto;
461
  position: absolute;
@@ -504,7 +505,7 @@ class BWGViewSlideshow {
504
  filter: Alpha(opacity=100);
505
  position: absolute;
506
  }
507
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_<?php echo $bwg; ?> {
508
  display: inline-block;
509
  position: relative;
510
  width: <?php echo $theme_row->slideshow_dots_width; ?>px;
@@ -516,7 +517,7 @@ class BWGViewSlideshow {
516
  overflow: hidden;
517
  z-index: 17;
518
  }
519
- #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_container_<?php echo $bwg; ?> {
520
  display: block;
521
  overflow: hidden;
522
  position: absolute;
@@ -541,7 +542,6 @@ class BWGViewSlideshow {
541
  }
542
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_deactive_<?php echo $bwg; ?> {
543
  }
544
-
545
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_span1_<?php echo $bwg; ?> {
546
  display: table;
547
  width: inherit;
@@ -572,7 +572,6 @@ class BWGViewSlideshow {
572
  data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["date"] = "<?php echo $image_row->date; ?>";
573
  <?php
574
  }
575
-
576
  ?>
577
  </script>
578
  <div id="bwg_container1_<?php echo $bwg; ?>">
@@ -591,9 +590,7 @@ class BWGViewSlideshow {
591
  $current_key = $key;
592
  }
593
  ?>
594
- <span id="bwg_dots_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_dots_<?php echo $bwg; ?> <?php echo (($image_row->id == $current_image_id) ? 'bwg_slideshow_dots_active_' . $bwg : 'bwg_slideshow_dots_deactive_' . $bwg); ?>" onclick="bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', data_<?php echo $bwg; ?>)"
595
- image_id="<?php echo $image_row->id; ?>"
596
- image_key="<?php echo $key; ?>">
597
  </span>
598
  <?php
599
  }
@@ -627,7 +624,7 @@ class BWGViewSlideshow {
627
  <span class="bwg_slideshow_image_second_span_<?php echo $bwg; ?>" id="image_id_<?php echo $bwg; ?>_<?php echo $image_row->id; ?>">
628
  <span class="bwg_slideshow_image_span1_<?php echo $bwg; ?>">
629
  <span class="bwg_slideshow_image_span2_<?php echo $bwg; ?>">
630
- <img id="bwg_slideshow_image_second_<?php echo $bwg; ?>" class="bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" />
631
  </span>
632
  </span>
633
  </span>
@@ -734,7 +731,6 @@ class BWGViewSlideshow {
734
  jQuery(".bwg_slideshow_title_span_<?php echo $bwg; ?>").height(height);
735
  jQuery(".bwg_slideshow_description_span_<?php echo $bwg; ?>").width(width);
736
  jQuery(".bwg_slideshow_description_span_<?php echo $bwg; ?>").height(height);
737
-
738
  jQuery(".bwg_slideshow_watermark_<?php echo $bwg; ?>").css({display: ''});
739
  if (jQuery.trim(jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").text())) {
740
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").css({display: ''});
@@ -745,7 +741,6 @@ class BWGViewSlideshow {
745
  }
746
  });
747
  }
748
-
749
  var bwg_current_key_<?php echo $bwg; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
750
  var bwg_current_filmstrip_pos_<?php echo $bwg; ?> = <?php echo $current_pos; ?>;
751
  // Set filmstrip initial position.
@@ -824,7 +819,6 @@ class BWGViewSlideshow {
824
  jQuery(".bwg_slideshow_filmstrip_right_<?php echo $bwg; ?>").show();
825
  }
826
  }
827
-
828
  function bwg_testBrowser_cssTransitions_<?php echo $bwg; ?>() {
829
  return bwg_testDom_<?php echo $bwg; ?>('Transition');
830
  }
@@ -853,13 +847,11 @@ class BWGViewSlideshow {
853
  return bwg_fallback3d_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
854
  }
855
  bwg_trans_in_progress_<?php echo $bwg; ?> = true;
856
-
857
  // Set active thumbnail.
858
  jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>");
859
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
860
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
861
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
862
-
863
  jQuery(".bwg_slide_bg_<?php echo $bwg; ?>").css('perspective', 1000);
864
  jQuery(current_image_class).css({
865
  transform : 'translateZ(' + tz + 'px)',
@@ -936,7 +928,6 @@ class BWGViewSlideshow {
936
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
937
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
938
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
939
-
940
  if (bwg_testBrowser_cssTransitions_<?php echo $bwg; ?>()) {
941
  jQuery(next_image_class).css('transition', 'opacity ' + bwg_transition_duration_<?php echo $bwg; ?> + 'ms linear');
942
  jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
@@ -963,13 +954,11 @@ class BWGViewSlideshow {
963
  return bwg_fallback_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
964
  }
965
  bwg_trans_in_progress_<?php echo $bwg; ?> = true;
966
-
967
  // Set active thumbnail.
968
  jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>");
969
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
970
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
971
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
972
-
973
  // The time (in ms) added to/subtracted from the delay total for each new gridlet.
974
  var count = (bwg_transition_duration_<?php echo $bwg; ?>) / (cols + rows);
975
  // Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)
@@ -1099,7 +1088,6 @@ class BWGViewSlideshow {
1099
  function bwg_blindH_<?php echo $bwg; ?>(current_image_class, next_image_class, direction) {
1100
  bwg_grid_<?php echo $bwg; ?>(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
1101
  }
1102
-
1103
  function iterator_<?php echo $bwg; ?>() {
1104
  var iterator = 1;
1105
  if (<?php echo $enable_slideshow_shuffle; ?>) {
@@ -1107,7 +1095,6 @@ class BWGViewSlideshow {
1107
  }
1108
  return iterator;
1109
  }
1110
-
1111
  function bwg_change_image_<?php echo $bwg; ?>(current_key, key, data_<?php echo $bwg; ?>, from_effect) {
1112
  if (data_<?php echo $bwg; ?>[key]) {
1113
  if (jQuery('.bwg_ctrl_btn_<?php echo $bwg; ?>').hasClass('fa-pause')) {
@@ -1125,7 +1112,6 @@ class BWGViewSlideshow {
1125
  }
1126
 
1127
  }
1128
-
1129
  if (bwg_trans_in_progress_<?php echo $bwg; ?>) {
1130
  event_stack_<?php echo $bwg; ?>.push(current_key + '-' + key);
1131
  return;
@@ -1137,21 +1123,16 @@ class BWGViewSlideshow {
1137
  else if (bwg_current_key_<?php echo $bwg; ?> == key) {
1138
  return;
1139
  }
1140
-
1141
  jQuery(".bwg_slideshow_watermark_<?php echo $bwg; ?>").css({display: 'none'});
1142
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").css({display: 'none'});
1143
  jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").css({display: 'none'});
1144
-
1145
  // Set active thumbnail position.
1146
  bwg_current_filmstrip_pos_<?php echo $bwg; ?> = key * (jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").width() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
1147
  bwg_current_key_<?php echo $bwg; ?> = key;
1148
-
1149
-
1150
  // Change image id, title, description.
1151
  jQuery("#bwg_slideshow_image_<?php echo $bwg; ?>").attr('image_id', data_<?php echo $bwg; ?>[key]["id"]);
1152
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").text(data_<?php echo $bwg; ?>[key]["alt"]);
1153
  jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").html(jQuery('<div />').html(data_<?php echo $bwg; ?>[key]["description"]).text());
1154
-
1155
  var current_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[current_key]["id"];
1156
  var next_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[key]["id"];
1157
  bwg_<?php echo $slideshow_effect; ?>_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
@@ -1183,11 +1164,9 @@ class BWGViewSlideshow {
1183
  });
1184
  // Set watermark container size.
1185
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1186
-
1187
  jQuery(".bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>").css({width: <?php echo $image_width; ?>});
1188
  jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").css({width: (<?php echo $image_width; ?> - 40)});
1189
  jQuery(".bwg_slideshow_dots_container_<?php echo $bwg; ?>").css({width: <?php echo $image_width; ?>});
1190
-
1191
  jQuery("#bwg_slideshow_play_pause-ico_<?php echo $bwg; ?>").css({fontSize: (<?php echo $theme_row->slideshow_play_pause_btn_size; ?>)});
1192
  jQuery(".bwg_slideshow_watermark_image_<?php echo $bwg; ?>").css({maxWidth: <?php echo $watermark_width; ?>, maxHeight: <?php echo $watermark_height; ?>});
1193
  jQuery(".bwg_slideshow_watermark_text_<?php echo $bwg; ?>, .bwg_slideshow_watermark_text_<?php echo $bwg; ?>:hover").css({fontSize: (<?php echo $watermark_font_size; ?>)});
@@ -1206,7 +1185,6 @@ class BWGViewSlideshow {
1206
  });
1207
  // Set watermark container size.
1208
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1209
-
1210
  jQuery(".bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>").css({width: (parent_width)});
1211
  jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").css({width: (parent_width - 40)});
1212
  jQuery(".bwg_slideshow_dots_container_<?php echo $bwg; ?>").css({width: (parent_width)});
@@ -1231,7 +1209,6 @@ class BWGViewSlideshow {
1231
  setTimeout(function () {
1232
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1233
  }, 500);
1234
-
1235
  // Set image container height.
1236
  jQuery(".bwg_slideshow_image_container_<?php echo $bwg; ?>").height(jQuery(".bwg_slideshow_image_wrap_<?php echo $bwg; ?>").height() - <?php echo $slideshow_filmstrip_height; ?>);
1237
 
@@ -1286,10 +1263,8 @@ class BWGViewSlideshow {
1286
  }
1287
  }, 500);
1288
  });
1289
-
1290
  // Set filmstrip initial position.
1291
  bwg_set_filmstrip_pos_<?php echo $bwg; ?>(jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").width());
1292
-
1293
  // Play/pause.
1294
  jQuery("#bwg_slideshow_play_pause_<?php echo $bwg; ?>").on(bwg_click, function () {
1295
  if (jQuery(".bwg_ctrl_btn_<?php echo $bwg; ?>").hasClass("fa-play")) {
@@ -1310,7 +1285,6 @@ class BWGViewSlideshow {
1310
  }
1311
  }
1312
  });
1313
-
1314
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1315
  play_<?php echo $bwg; ?>();
1316
  jQuery(".bwg_slideshow_play_pause_<?php echo $bwg; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
145
  -moz-backface-visibility: hidden;
146
  -ms-backface-visibility: hidden;*/
147
  }
148
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_wrap_<?php echo $bwg; ?> {
149
  background-color: #<?php echo $theme_row->slideshow_cont_bg_color; ?>;
150
  border-collapse: collapse;
151
  display: table;
228
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?> {
229
  right: 0;
230
  }
231
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left_<?php echo $bwg; ?>:hover,
232
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?>:hover {
233
  visibility: visible;
234
  }
235
+
236
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_left_<?php echo $bwg; ?>:hover span {
237
  left: 20px;
238
  }
239
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> #spider_slideshow_right_<?php echo $bwg; ?>:hover span {
240
  left: auto;
241
  right: 20px;
242
  }
276
  color: #<?php echo $theme_row->slideshow_close_rl_btn_hover_color; ?>;
277
  cursor: pointer;
278
  }
279
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_container_<?php echo $bwg; ?> {
280
  display: table;
281
  position: absolute;
282
  text-align: center;
452
  word-break: break-word;
453
  <?php if (!$enable_slideshow_filmstrip && $slideshow_description_position[0] == $theme_row->slideshow_filmstrip_pos) echo $theme_row->slideshow_filmstrip_pos . ':' . ($theme_row->slideshow_dots_height + 4) . 'px;'; ?>
454
  }
455
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_description_text_<?php echo $bwg; ?> * {
456
  text-decoration: none;
457
  color: #<?php echo $theme_row->slideshow_description_color; ?> !important;
458
  }
459
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slide_container_<?php echo $bwg; ?> {
460
  display: table-cell;
461
  margin: 0 auto;
462
  position: absolute;
505
  filter: Alpha(opacity=100);
506
  position: absolute;
507
  }
508
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_<?php echo $bwg; ?> {
509
  display: inline-block;
510
  position: relative;
511
  width: <?php echo $theme_row->slideshow_dots_width; ?>px;
517
  overflow: hidden;
518
  z-index: 17;
519
  }
520
+ #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_container_<?php echo $bwg; ?> {
521
  display: block;
522
  overflow: hidden;
523
  position: absolute;
542
  }
543
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_dots_deactive_<?php echo $bwg; ?> {
544
  }
 
545
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .bwg_slideshow_image_span1_<?php echo $bwg; ?> {
546
  display: table;
547
  width: inherit;
572
  data_<?php echo $bwg; ?>["<?php echo $key; ?>"]["date"] = "<?php echo $image_row->date; ?>";
573
  <?php
574
  }
 
575
  ?>
576
  </script>
577
  <div id="bwg_container1_<?php echo $bwg; ?>">
590
  $current_key = $key;
591
  }
592
  ?>
593
+ <span id="bwg_dots_<?php echo $key; ?>_<?php echo $bwg; ?>" class="bwg_slideshow_dots_<?php echo $bwg; ?> <?php echo (($image_row->id == $current_image_id) ? 'bwg_slideshow_dots_active_' . $bwg : 'bwg_slideshow_dots_deactive_' . $bwg); ?>" onclick="bwg_change_image_<?php echo $bwg; ?>(parseInt(jQuery('#bwg_current_image_key_<?php echo $bwg; ?>').val()), '<?php echo $key; ?>', data_<?php echo $bwg; ?>)" image_id="<?php echo $image_row->id; ?>" image_key="<?php echo $key; ?>">
 
 
594
  </span>
595
  <?php
596
  }
624
  <span class="bwg_slideshow_image_second_span_<?php echo $bwg; ?>" id="image_id_<?php echo $bwg; ?>_<?php echo $image_row->id; ?>">
625
  <span class="bwg_slideshow_image_span1_<?php echo $bwg; ?>">
626
  <span class="bwg_slideshow_image_span2_<?php echo $bwg; ?>">
627
+ <img id="bwg_slideshow_image_second_<?php echo $bwg; ?>" class="bwg_slideshow_image_<?php echo $bwg; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->image_url; ?>" />
628
  </span>
629
  </span>
630
  </span>
731
  jQuery(".bwg_slideshow_title_span_<?php echo $bwg; ?>").height(height);
732
  jQuery(".bwg_slideshow_description_span_<?php echo $bwg; ?>").width(width);
733
  jQuery(".bwg_slideshow_description_span_<?php echo $bwg; ?>").height(height);
 
734
  jQuery(".bwg_slideshow_watermark_<?php echo $bwg; ?>").css({display: ''});
735
  if (jQuery.trim(jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").text())) {
736
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").css({display: ''});
741
  }
742
  });
743
  }
 
744
  var bwg_current_key_<?php echo $bwg; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
745
  var bwg_current_filmstrip_pos_<?php echo $bwg; ?> = <?php echo $current_pos; ?>;
746
  // Set filmstrip initial position.
819
  jQuery(".bwg_slideshow_filmstrip_right_<?php echo $bwg; ?>").show();
820
  }
821
  }
 
822
  function bwg_testBrowser_cssTransitions_<?php echo $bwg; ?>() {
823
  return bwg_testDom_<?php echo $bwg; ?>('Transition');
824
  }
847
  return bwg_fallback3d_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
848
  }
849
  bwg_trans_in_progress_<?php echo $bwg; ?> = true;
 
850
  // Set active thumbnail.
851
  jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>");
852
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
853
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
854
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
 
855
  jQuery(".bwg_slide_bg_<?php echo $bwg; ?>").css('perspective', 1000);
856
  jQuery(current_image_class).css({
857
  transform : 'translateZ(' + tz + 'px)',
928
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
929
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
930
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
 
931
  if (bwg_testBrowser_cssTransitions_<?php echo $bwg; ?>()) {
932
  jQuery(next_image_class).css('transition', 'opacity ' + bwg_transition_duration_<?php echo $bwg; ?> + 'ms linear');
933
  jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1});
954
  return bwg_fallback_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
955
  }
956
  bwg_trans_in_progress_<?php echo $bwg; ?> = true;
 
957
  // Set active thumbnail.
958
  jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>");
959
  jQuery("#bwg_filmstrip_thumbnail_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_thumb_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_thumb_active_<?php echo $bwg; ?>");
960
  jQuery(".bwg_slideshow_dots_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>");
961
  jQuery("#bwg_dots_" + bwg_current_key_<?php echo $bwg; ?> + "_<?php echo $bwg; ?>").removeClass("bwg_slideshow_dots_deactive_<?php echo $bwg; ?>").addClass("bwg_slideshow_dots_active_<?php echo $bwg; ?>");
 
962
  // The time (in ms) added to/subtracted from the delay total for each new gridlet.
963
  var count = (bwg_transition_duration_<?php echo $bwg; ?>) / (cols + rows);
964
  // Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)
1088
  function bwg_blindH_<?php echo $bwg; ?>(current_image_class, next_image_class, direction) {
1089
  bwg_grid_<?php echo $bwg; ?>(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
1090
  }
 
1091
  function iterator_<?php echo $bwg; ?>() {
1092
  var iterator = 1;
1093
  if (<?php echo $enable_slideshow_shuffle; ?>) {
1095
  }
1096
  return iterator;
1097
  }
 
1098
  function bwg_change_image_<?php echo $bwg; ?>(current_key, key, data_<?php echo $bwg; ?>, from_effect) {
1099
  if (data_<?php echo $bwg; ?>[key]) {
1100
  if (jQuery('.bwg_ctrl_btn_<?php echo $bwg; ?>').hasClass('fa-pause')) {
1112
  }
1113
 
1114
  }
 
1115
  if (bwg_trans_in_progress_<?php echo $bwg; ?>) {
1116
  event_stack_<?php echo $bwg; ?>.push(current_key + '-' + key);
1117
  return;
1123
  else if (bwg_current_key_<?php echo $bwg; ?> == key) {
1124
  return;
1125
  }
 
1126
  jQuery(".bwg_slideshow_watermark_<?php echo $bwg; ?>").css({display: 'none'});
1127
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").css({display: 'none'});
1128
  jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").css({display: 'none'});
 
1129
  // Set active thumbnail position.
1130
  bwg_current_filmstrip_pos_<?php echo $bwg; ?> = key * (jQuery(".bwg_slideshow_filmstrip_thumbnail_<?php echo $bwg; ?>").width() + 2 + 2 * <?php echo $theme_row->lightbox_filmstrip_thumb_border_width; ?>);
1131
  bwg_current_key_<?php echo $bwg; ?> = key;
 
 
1132
  // Change image id, title, description.
1133
  jQuery("#bwg_slideshow_image_<?php echo $bwg; ?>").attr('image_id', data_<?php echo $bwg; ?>[key]["id"]);
1134
  jQuery(".bwg_slideshow_title_text_<?php echo $bwg; ?>").text(data_<?php echo $bwg; ?>[key]["alt"]);
1135
  jQuery(".bwg_slideshow_description_text_<?php echo $bwg; ?>").html(jQuery('<div />').html(data_<?php echo $bwg; ?>[key]["description"]).text());
 
1136
  var current_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[current_key]["id"];
1137
  var next_image_class = "#image_id_<?php echo $bwg; ?>_" + data_<?php echo $bwg; ?>[key]["id"];
1138
  bwg_<?php echo $slideshow_effect; ?>_<?php echo $bwg; ?>(current_image_class, next_image_class, direction);
1164
  });
1165
  // Set watermark container size.
1166
  bwg_change_watermark_container_<?php echo $bwg; ?>();
 
1167
  jQuery(".bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>").css({width: <?php echo $image_width; ?>});
1168
  jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").css({width: (<?php echo $image_width; ?> - 40)});
1169
  jQuery(".bwg_slideshow_dots_container_<?php echo $bwg; ?>").css({width: <?php echo $image_width; ?>});
 
1170
  jQuery("#bwg_slideshow_play_pause-ico_<?php echo $bwg; ?>").css({fontSize: (<?php echo $theme_row->slideshow_play_pause_btn_size; ?>)});
1171
  jQuery(".bwg_slideshow_watermark_image_<?php echo $bwg; ?>").css({maxWidth: <?php echo $watermark_width; ?>, maxHeight: <?php echo $watermark_height; ?>});
1172
  jQuery(".bwg_slideshow_watermark_text_<?php echo $bwg; ?>, .bwg_slideshow_watermark_text_<?php echo $bwg; ?>:hover").css({fontSize: (<?php echo $watermark_font_size; ?>)});
1185
  });
1186
  // Set watermark container size.
1187
  bwg_change_watermark_container_<?php echo $bwg; ?>();
 
1188
  jQuery(".bwg_slideshow_filmstrip_container_<?php echo $bwg; ?>").css({width: (parent_width)});
1189
  jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").css({width: (parent_width - 40)});
1190
  jQuery(".bwg_slideshow_dots_container_<?php echo $bwg; ?>").css({width: (parent_width)});
1209
  setTimeout(function () {
1210
  bwg_change_watermark_container_<?php echo $bwg; ?>();
1211
  }, 500);
 
1212
  // Set image container height.
1213
  jQuery(".bwg_slideshow_image_container_<?php echo $bwg; ?>").height(jQuery(".bwg_slideshow_image_wrap_<?php echo $bwg; ?>").height() - <?php echo $slideshow_filmstrip_height; ?>);
1214
 
1263
  }
1264
  }, 500);
1265
  });
 
1266
  // Set filmstrip initial position.
1267
  bwg_set_filmstrip_pos_<?php echo $bwg; ?>(jQuery(".bwg_slideshow_filmstrip_<?php echo $bwg; ?>").width());
 
1268
  // Play/pause.
1269
  jQuery("#bwg_slideshow_play_pause_<?php echo $bwg; ?>").on(bwg_click, function () {
1270
  if (jQuery(".bwg_ctrl_btn_<?php echo $bwg; ?>").hasClass("fa-play")) {
1285
  }
1286
  }
1287
  });
 
1288
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1289
  play_<?php echo $bwg; ?>();
1290
  jQuery(".bwg_slideshow_play_pause_<?php echo $bwg; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
frontend/views/BWGViewThumbnails.php CHANGED
@@ -198,7 +198,7 @@ class BWGViewThumbnails {
198
  word-break: break-all;
199
  word-wrap: break-word;
200
  }
201
- /*pagination styles*/
202
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
203
  text-align: <?php echo $theme_row->page_nav_align; ?>;
204
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
@@ -332,7 +332,7 @@ class BWGViewThumbnails {
332
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
333
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
334
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
335
- <img class="bwg_standart_thumb_img_<?php echo $bwg; ?>" style="max-height: none !important; max-width: none !important; padding: 0 !important; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
336
  <?php
337
  if ($params['image_title'] == 'hover') {
338
  ?>
198
  word-break: break-all;
199
  word-wrap: break-word;
200
  }
201
+ /*pagination styles*/
202
  #bwg_container1_<?php echo $bwg; ?> #bwg_container2_<?php echo $bwg; ?> .tablenav-pages_<?php echo $bwg; ?> {
203
  text-align: <?php echo $theme_row->page_nav_align; ?>;
204
  font-size: <?php echo $theme_row->page_nav_font_size; ?>px;
332
  <span class="bwg_standart_thumb_<?php echo $bwg; ?>">
333
  <span class="bwg_standart_thumb_span1_<?php echo $bwg; ?>">
334
  <span class="bwg_standart_thumb_span2_<?php echo $bwg; ?>">
335
+ <img class="bwg_standart_thumb_img_<?php echo $bwg; ?>" style="max-height: none !important; max-width: none !important; padding: 0 !important; width:<?php echo $image_thumb_width; ?>px; height:<?php echo $image_thumb_height; ?>px; margin-left: <?php echo $thumb_left; ?>px; margin-top: <?php echo $thumb_top; ?>px;" id="<?php echo $image_row->id; ?>" src="<?php echo site_url() . '/' . $WD_BWG_UPLOAD_DIR . $image_row->thumb_url; ?>" alt="<?php echo $image_row->alt; ?>" title="<?php echo $image_row->alt; ?>" />
336
  <?php
337
  if ($params['image_title'] == 'hover') {
338
  ?>
js/bwg.js CHANGED
@@ -330,9 +330,14 @@ function spider_check_all_items_checkbox() {
330
  jQuery('#draganddrop').hide();
331
  }
332
  else {
 
 
 
333
  jQuery('#check_all_items').attr('checked', true);
334
- jQuery('#draganddrop').html("<strong><p>Selected all " + jQuery(".displaying-num").html() + ".</p></strong>");
335
- jQuery('#draganddrop').show();
 
 
336
  }
337
  }
338
 
330
  jQuery('#draganddrop').hide();
331
  }
332
  else {
333
+ var saved_items = (parseInt(jQuery(".displaying-num").html()) ? parseInt(jQuery(".displaying-num").html()) : 0);
334
+ var added_items = (jQuery('input[id^="check_pr_"]').length ? parseInt(jQuery('input[id^="check_pr_"]').length) : 0);
335
+ var items_count = added_items + saved_items;
336
  jQuery('#check_all_items').attr('checked', true);
337
+ if (items_count) {
338
+ jQuery('#draganddrop').html("<strong><p>Selected " + items_count + " item" + (items_count > 1 ? "s" : "") + ".</p></strong>");
339
+ jQuery('#draganddrop').show();
340
+ }
341
  }
342
  }
343
 
js/bwg_gallery_box.js CHANGED
@@ -59,6 +59,11 @@ function spider_destroypopup(duration) {
59
  jQuery("html").attr("style", "overflow:auto !important");
60
  }
61
  isPopUpOpened = false;
 
 
 
 
 
62
  }
63
 
64
  // Submit popup.
59
  jQuery("html").attr("style", "overflow:auto !important");
60
  }
61
  isPopUpOpened = false;
62
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
63
+ var viewportmeta = document.querySelector('meta[name="viewport"]');
64
+ if (isMobile && viewportmeta) {
65
+ viewportmeta.content = 'width=device-width, initial-scale=1';
66
+ }
67
  }
68
 
69
  // Submit popup.
js/bwg_shortcode.js CHANGED
@@ -163,6 +163,8 @@ function bwg_gallery_type(gallery_type) {
163
  jQuery("#tr_image_title_hover").css('display', '');
164
  jQuery("#tr_image_enable_page").css('display', '');
165
  jQuery("#tr_thumb_width_height").css('display', '');
 
 
166
  break;
167
 
168
  }
@@ -227,6 +229,8 @@ function bwg_gallery_type(gallery_type) {
227
  else {
228
  bwg_enable_disable('none', 'tr_slideshow_music_url', 'slideshow_music_no');
229
  }
 
 
230
  break;
231
 
232
  }
@@ -236,6 +240,8 @@ function bwg_gallery_type(gallery_type) {
236
  jQuery("#tr_image_browser_width_height").css('display', '');
237
  jQuery("#tr_image_browser_title_enable").css('display', '');
238
  jQuery("#tr_image_browser_description_enable").css('display', '');
 
 
239
  break;
240
 
241
  }
@@ -251,6 +257,8 @@ function bwg_gallery_type(gallery_type) {
251
  jQuery("#tr_compuct_album_image_title").css('display', '');
252
  jQuery("#tr_compuct_album_image_thumb_width_height").css('display', '');
253
  jQuery("#tr_compuct_album_enable_page").css('display', '');
 
 
254
  break;
255
 
256
  }
@@ -265,6 +273,8 @@ function bwg_gallery_type(gallery_type) {
265
  jQuery("#tr_extended_album_image_title").css('display', '');
266
  jQuery("#tr_extended_album_image_thumb_width_height").css('display', '');
267
  jQuery("#tr_extended_album_enable_page").css('display', '');
 
 
268
  break;
269
 
270
  }
163
  jQuery("#tr_image_title_hover").css('display', '');
164
  jQuery("#tr_image_enable_page").css('display', '');
165
  jQuery("#tr_thumb_width_height").css('display', '');
166
+ jQuery("#bwg_pro_version").html('Thumbnails');
167
+ jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/thumbnails-view-2/");
168
  break;
169
 
170
  }
229
  else {
230
  bwg_enable_disable('none', 'tr_slideshow_music_url', 'slideshow_music_no');
231
  }
232
+ jQuery("#bwg_pro_version").html('Slideshow');
233
+ jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/slideshow-view/");
234
  break;
235
 
236
  }
240
  jQuery("#tr_image_browser_width_height").css('display', '');
241
  jQuery("#tr_image_browser_title_enable").css('display', '');
242
  jQuery("#tr_image_browser_description_enable").css('display', '');
243
+ jQuery("#bwg_pro_version").html('Image Browser');
244
+ jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/image-browser-view/");
245
  break;
246
 
247
  }
257
  jQuery("#tr_compuct_album_image_title").css('display', '');
258
  jQuery("#tr_compuct_album_image_thumb_width_height").css('display', '');
259
  jQuery("#tr_compuct_album_enable_page").css('display', '');
260
+ jQuery("#bwg_pro_version").html('Compact Album');
261
+ jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/compact-album-view/");
262
  break;
263
 
264
  }
273
  jQuery("#tr_extended_album_image_title").css('display', '');
274
  jQuery("#tr_extended_album_image_thumb_width_height").css('display', '');
275
  jQuery("#tr_extended_album_enable_page").css('display', '');
276
+ jQuery("#bwg_pro_version").html('Extended Album');
277
+ jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/extended-album-view/");
278
  break;
279
 
280
  }
photo-gallery.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
- * Version: 1.0.8
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
@@ -2387,7 +2387,7 @@ function bwg_activate() {
2387
  ));
2388
  }
2389
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2390
- $new_version = 107;
2391
  if ($version && $version < $new_version) {
2392
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2393
  for ($i = $version; $i < $new_version; $i++) {
@@ -2396,10 +2396,10 @@ function bwg_activate() {
2396
  $func_name();
2397
  }
2398
  }
2399
- update_option("wd_bwg_version", '1.0.7');
2400
  }
2401
  else {
2402
- add_option("wd_bwg_version", '1.0.7', '', 'no');
2403
  }
2404
  }
2405
  register_activation_hook(__FILE__, 'bwg_activate');
@@ -2414,6 +2414,14 @@ function bwg_styles() {
2414
  function bwg_scripts() {
2415
  wp_enqueue_script('thickbox');
2416
  wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
 
 
 
 
 
 
 
 
2417
  wp_enqueue_script('jquery');
2418
  wp_enqueue_script('jquery-ui-sortable');
2419
  }
@@ -2429,11 +2437,27 @@ function bwg_licensing_styles() {
2429
  function bwg_options_scripts() {
2430
  wp_enqueue_script('thickbox');
2431
  wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
 
 
 
 
 
 
 
 
2432
  wp_enqueue_script('jquery');
2433
  wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
2434
  }
2435
 
2436
  function bwg_front_end_scripts() {
 
 
 
 
 
 
 
 
2437
  wp_enqueue_script('jquery');
2438
  wp_enqueue_script('jquery-ui-tooltip');
2439
  wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css');
4
  * Plugin Name: Photo Gallery
5
  * Plugin URI: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
6
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
7
+ * Version: 1.0.9
8
  * Author: http://web-dorado.com/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
2387
  ));
2388
  }
2389
  $version = str_replace('.', '', get_option("wd_bwg_version"));
2390
+ $new_version = 109;
2391
  if ($version && $version < $new_version) {
2392
  require_once WD_BWG_DIR . "/update/bwg_update.php";
2393
  for ($i = $version; $i < $new_version; $i++) {
2396
  $func_name();
2397
  }
2398
  }
2399
+ update_option("wd_bwg_version", '1.0.9');
2400
  }
2401
  else {
2402
+ add_option("wd_bwg_version", '1.0.9', '', 'no');
2403
  }
2404
  }
2405
  register_activation_hook(__FILE__, 'bwg_activate');
2414
  function bwg_scripts() {
2415
  wp_enqueue_script('thickbox');
2416
  wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
2417
+ global $wp_scripts;
2418
+ if (isset($wp_scripts->registered['jquery'])) {
2419
+ $jquery = $wp_scripts->registered['jquery'];
2420
+ if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.10.2', '<')) {
2421
+ wp_deregister_script('jquery');
2422
+ wp_register_script('jquery', FALSE, array('jquery-core', 'jquery-migrate'), '1.10.2' );
2423
+ }
2424
+ }
2425
  wp_enqueue_script('jquery');
2426
  wp_enqueue_script('jquery-ui-sortable');
2427
  }
2437
  function bwg_options_scripts() {
2438
  wp_enqueue_script('thickbox');
2439
  wp_enqueue_script('bwg_admin', WD_BWG_URL . '/js/bwg.js', array(), get_option("wd_bwg_version"));
2440
+ global $wp_scripts;
2441
+ if (isset($wp_scripts->registered['jquery'])) {
2442
+ $jquery = $wp_scripts->registered['jquery'];
2443
+ if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.10.2', '<')) {
2444
+ wp_deregister_script('jquery');
2445
+ wp_register_script('jquery', FALSE, array('jquery-core', 'jquery-migrate'), '1.10.2' );
2446
+ }
2447
+ }
2448
  wp_enqueue_script('jquery');
2449
  wp_enqueue_script('jscolor', WD_BWG_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
2450
  }
2451
 
2452
  function bwg_front_end_scripts() {
2453
+ global $wp_scripts;
2454
+ if (isset($wp_scripts->registered['jquery'])) {
2455
+ $jquery = $wp_scripts->registered['jquery'];
2456
+ if (!isset($jquery->ver) OR version_compare($jquery->ver, '1.10.2', '<')) {
2457
+ wp_deregister_script('jquery');
2458
+ wp_register_script('jquery', FALSE, array('jquery-core', 'jquery-migrate'), '1.10.2' );
2459
+ }
2460
+ }
2461
  wp_enqueue_script('jquery');
2462
  wp_enqueue_script('jquery-ui-tooltip');
2463
  wp_enqueue_style('jquery-ui', WD_BWG_URL . '/css/jquery-ui-1.10.3.custom.css');
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
- Tags: gallery, galleries, photo , photo gallery , image gallery, video gallery, 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, image, photogallery, widget gallery, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.8
7
- Stable tag: 1.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -172,7 +172,7 @@ If the installation succeeded you will see the success message. If any problem o
172
 
173
 
174
  Step 2: Creating/Editing Galleries for the Photo Gallery.
175
- 2.1 On the left menu select Photo Gallery> Galleries> Add new.
176
  2.2 Name. Specify the name of the gallery.
177
  2.3 Slug. Specify the alias in your website for the gallery.
178
  2.4 Description. Fill in the information you would like to share with the gallery. The description will be visible with some of the gallery views.
@@ -190,7 +190,8 @@ Photo Gallery File Manager
190
  2.8.5 Cut. You can cut images and directories.
191
  2.8.6 Paste. You can paste copied/cut images and directories.
192
  2.8.7 Remove items. You can remove any amount of items from the list.
193
- 2.8.8 Upload files. You can upload images from your PC and other devices using this feature. Multi-upload is also possible.
 
194
  Important! Before uploading an image, you should provide dimensions for the generated thumbnail at the top of the Media Upload window or leave it to default value set in the Thumbnail options (Options Menu).
195
  2.8.9 View options: View thumbnails. Displays images in Thumbnail view.
196
  View list. Displays images in list view.
1
  === Photo Gallery ===
2
  Contributors: webdorado
3
  Donate link: http://web-dorado.com/products/wordpress-photo-gallery-plugin.html
4
+ Tags: photo, photo gallery, image gallery, video gallery, gallery, galleries, wordpress gallery plugin, images gallery, album, photo albums, Simple gallery, best gallery plugin, free photo gallery, wp gallery, wordpress gallery, website gallery, gallery shortcode, best gallery, picture, pictures, gallery slider, photo album, photogallery, widget gallery, image, images, photos, gallery lightbox, photoset, wordpress photo gallery plugin, wp gallery plugins, responsive wordpress photo gallery, media, image album, filterable gallery, banner rotator, fullscreen gallery, Fotogalerie, Galleria, galerie, galeri
5
  Requires at least: 3.0
6
  Tested up to: 3.8
7
+ Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
172
 
173
 
174
  Step 2: Creating/Editing Galleries for the Photo Gallery.
175
+ 2.1 On the left menu select Photo Gallery>Add Galleries/Images> Add new.
176
  2.2 Name. Specify the name of the gallery.
177
  2.3 Slug. Specify the alias in your website for the gallery.
178
  2.4 Description. Fill in the information you would like to share with the gallery. The description will be visible with some of the gallery views.
190
  2.8.5 Cut. You can cut images and directories.
191
  2.8.6 Paste. You can paste copied/cut images and directories.
192
  2.8.7 Remove items. You can remove any amount of items from the list.
193
+ 2.8.8 Upload files. You can upload images from your PC and other devices using this feature. Multi-upload is also possible. To upload all images, you should first press Ctrl+A.
194
+ To add the images to your Gallery, you should press Add the selected images to gallery button.
195
  Important! Before uploading an image, you should provide dimensions for the generated thumbnail at the top of the Media Upload window or leave it to default value set in the Thumbnail options (Options Menu).
196
  2.8.9 View options: View thumbnails. Displays images in Thumbnail view.
197
  View list. Displays images in list view.