Slider by WD – Responsive Slider - Version 1.0.5

Version Description

Image for Next / Previous buttons (Default, Custom, Styled) Image for bullets (Default, Custom, Styled)

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (84) hide show
  1. admin/controllers/WDSControllerSliders_wds.php +32 -0
  2. admin/models/WDSModelSliders_wds.php +9 -1
  3. admin/views/WDSViewSliders_wds.php +355 -30
  4. css/wds_tables.css +85 -0
  5. filemanager/UploadHandler.php +1 -1
  6. filemanager/js/default.js +3 -5
  7. filemanager/model.php +16 -18
  8. filemanager/view.php +21 -23
  9. framework/WDW_S_Library.php +3 -0
  10. frontend/views/WDSViewSlider.php +184 -32
  11. images/arrow/arrow1/1/1.png +0 -0
  12. images/arrow/arrow1/1/2.png +0 -0
  13. images/arrow/arrow1/1/3.png +0 -0
  14. images/arrow/arrow1/1/4.png +0 -0
  15. images/arrow/arrow10/1/1.png +0 -0
  16. images/arrow/arrow10/1/2.png +0 -0
  17. images/arrow/arrow10/1/3.png +0 -0
  18. images/arrow/arrow10/1/4.png +0 -0
  19. images/arrow/arrow11/1/1.png +0 -0
  20. images/arrow/arrow11/1/2.png +0 -0
  21. images/arrow/arrow11/1/3.png +0 -0
  22. images/arrow/arrow11/1/4.png +0 -0
  23. images/arrow/arrow12/1/1.png +0 -0
  24. images/arrow/arrow12/1/2.png +0 -0
  25. images/arrow/arrow12/1/3.png +0 -0
  26. images/arrow/arrow12/1/4.png +0 -0
  27. images/arrow/arrow13/1/1.png +0 -0
  28. images/arrow/arrow13/1/2.png +0 -0
  29. images/arrow/arrow13/1/3.png +0 -0
  30. images/arrow/arrow13/1/4.png +0 -0
  31. images/arrow/arrow14/1/1.png +0 -0
  32. images/arrow/arrow14/1/2.png +0 -0
  33. images/arrow/arrow14/1/3.png +0 -0
  34. images/arrow/arrow14/1/4.png +0 -0
  35. images/arrow/arrow2/1/1.png +0 -0
  36. images/arrow/arrow2/1/2.png +0 -0
  37. images/arrow/arrow2/1/3.png +0 -0
  38. images/arrow/arrow2/1/4.png +0 -0
  39. images/arrow/arrow3/1/1.png +0 -0
  40. images/arrow/arrow3/1/2.png +0 -0
  41. images/arrow/arrow3/1/3.png +0 -0
  42. images/arrow/arrow3/1/4.png +0 -0
  43. images/arrow/arrow4/1/1.png +0 -0
  44. images/arrow/arrow4/1/2.png +0 -0
  45. images/arrow/arrow4/1/3.png +0 -0
  46. images/arrow/arrow4/1/4.png +0 -0
  47. images/arrow/arrow5/1/1.png +0 -0
  48. images/arrow/arrow5/1/2.png +0 -0
  49. images/arrow/arrow5/1/3.png +0 -0
  50. images/arrow/arrow5/1/4.png +0 -0
  51. images/arrow/arrow6/1/1.png +0 -0
  52. images/arrow/arrow6/1/2.png +0 -0
  53. images/arrow/arrow6/1/3.png +0 -0
  54. images/arrow/arrow6/1/4.png +0 -0
  55. images/arrow/arrow7/1/1.png +0 -0
  56. images/arrow/arrow7/1/2.png +0 -0
  57. images/arrow/arrow7/1/3.png +0 -0
  58. images/arrow/arrow7/1/4.png +0 -0
  59. images/arrow/arrow8/1/1.png +0 -0
  60. images/arrow/arrow8/1/2.png +0 -0
  61. images/arrow/arrow8/1/3.png +0 -0
  62. images/arrow/arrow8/1/4.png +0 -0
  63. images/arrow/arrow9/1/1.png +0 -0
  64. images/arrow/arrow9/1/2.png +0 -0
  65. images/arrow/arrow9/1/3.png +0 -0
  66. images/arrow/arrow9/1/4.png +0 -0
  67. images/bullet/bullet1/1/1.png +0 -0
  68. images/bullet/bullet1/1/2.png +0 -0
  69. images/bullet/bullet2/1/1.png +0 -0
  70. images/bullet/bullet2/1/2.png +0 -0
  71. images/bullet/bullet3/1/1.png +0 -0
  72. images/bullet/bullet3/1/2.png +0 -0
  73. images/bullet/bullet4/1/1.png +0 -0
  74. images/bullet/bullet4/1/2.png +0 -0
  75. images/bullet/bullet5/1/1.png +0 -0
  76. images/bullet/bullet5/1/2.png +0 -0
  77. images/bullet/bullet6/1/1.png +0 -0
  78. images/bullet/bullet6/1/2.png +0 -0
  79. js/jquery.mobile.js +2 -0
  80. js/wds.js +506 -133
  81. readme.txt +7 -3
  82. slider-wd.php +104 -13
  83. sliders-insert.php +9 -1
  84. sliders-update.php +14 -0
admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -166,6 +166,14 @@ class WDSControllerSliders_wds {
166
  $timer_bar_color = (isset($_POST['timer_bar_color']) ? esc_html(stripslashes($_POST['timer_bar_color'])) : 'FFFFFF');
167
  $timer_bar_transparent = (isset($_POST['timer_bar_transparent']) ? esc_html(stripslashes($_POST['timer_bar_transparent'])) : 50);
168
  $stop_animation = ((isset($_POST['stop_animation'])) ? (int) esc_html(stripslashes($_POST['stop_animation'])) : 0);
 
 
 
 
 
 
 
 
169
  if (!$slider_id) {
170
  $save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
171
  'name' => $name,
@@ -237,6 +245,14 @@ class WDSControllerSliders_wds {
237
  'layer_out_next' => $layer_out_next,
238
  'spider_uploader' => $spider_uploader,
239
  'stop_animation' => $stop_animation,
 
 
 
 
 
 
 
 
240
  ), array(
241
  '%s',
242
  '%d',
@@ -307,6 +323,14 @@ class WDSControllerSliders_wds {
307
  '%d',
308
  '%d',
309
  '%d',
 
 
 
 
 
 
 
 
310
  ));
311
  $_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
312
  }
@@ -381,6 +405,14 @@ class WDSControllerSliders_wds {
381
  'layer_out_next' => $layer_out_next,
382
  'spider_uploader' => $spider_uploader,
383
  'stop_animation' => $stop_animation,
 
 
 
 
 
 
 
 
384
  ), array('id' => $slider_id));
385
  }
386
  if ($save !== FALSE) {
166
  $timer_bar_color = (isset($_POST['timer_bar_color']) ? esc_html(stripslashes($_POST['timer_bar_color'])) : 'FFFFFF');
167
  $timer_bar_transparent = (isset($_POST['timer_bar_transparent']) ? esc_html(stripslashes($_POST['timer_bar_transparent'])) : 50);
168
  $stop_animation = ((isset($_POST['stop_animation'])) ? (int) esc_html(stripslashes($_POST['stop_animation'])) : 0);
169
+ $right_butt_url = (isset($_POST['right_butt_url']) ? esc_html(stripslashes($_POST['right_butt_url'])) : WD_S_URL . '/images/arrow/arrow11/1/2.png');
170
+ $left_butt_url = (isset($_POST['left_butt_url']) ? esc_html(stripslashes($_POST['left_butt_url'])) : WD_S_URL . '/images/arrow/arrow11/1/1.png');
171
+ $right_butt_hov_url = (isset($_POST['right_butt_hov_url']) ? esc_html(stripslashes($_POST['right_butt_hov_url'])) : WD_S_URL . '/images/arrow/arrow11/1/4.png');
172
+ $left_butt_hov_url = (isset($_POST['left_butt_hov_url']) ? esc_html(stripslashes($_POST['left_butt_hov_url'])) : WD_S_URL . '/images/arrow/arrow11/1/3.png');
173
+ $rl_butt_img_or_not = (isset($_POST['rl_butt_img_or_not']) ? esc_html(stripslashes($_POST['rl_butt_img_or_not'])) : 'style');
174
+ $bullets_img_main_url = (isset($_POST['bullets_img_main_url']) ? esc_html(stripslashes($_POST['bullets_img_main_url'])) : WD_S_URL . '/images/bullet/bullet1/1/1.png');
175
+ $bullets_img_hov_url = (isset($_POST['bullets_img_hov_url']) ? esc_html(stripslashes($_POST['bullets_img_hov_url'])) : WD_S_URL . '/images/bullet/bullet1/1/2.png');
176
+ $bull_butt_img_or_not = (isset($_POST['bull_butt_img_or_not']) ? esc_html(stripslashes($_POST['bull_butt_img_or_not'])) : 'style');
177
  if (!$slider_id) {
178
  $save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
179
  'name' => $name,
245
  'layer_out_next' => $layer_out_next,
246
  'spider_uploader' => $spider_uploader,
247
  'stop_animation' => $stop_animation,
248
+ 'right_butt_url' => $right_butt_url,
249
+ 'left_butt_url' => $left_butt_url,
250
+ 'right_butt_hov_url' => $right_butt_hov_url,
251
+ 'left_butt_hov_url' => $left_butt_hov_url,
252
+ 'rl_butt_img_or_not' => $rl_butt_img_or_not,
253
+ 'bullets_img_main_url' => $bullets_img_main_url,
254
+ 'bullets_img_hov_url' => $bullets_img_hov_url,
255
+ 'bull_butt_img_or_not' => $bull_butt_img_or_not,
256
  ), array(
257
  '%s',
258
  '%d',
323
  '%d',
324
  '%d',
325
  '%d',
326
+ '%s',
327
+ '%s',
328
+ '%s',
329
+ '%s',
330
+ '%s',
331
+ '%s',
332
+ '%s',
333
+ '%s',
334
  ));
335
  $_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
336
  }
405
  'layer_out_next' => $layer_out_next,
406
  'spider_uploader' => $spider_uploader,
407
  'stop_animation' => $stop_animation,
408
+ 'right_butt_url' => $right_butt_url,
409
+ 'left_butt_url' => $left_butt_url,
410
+ 'right_butt_hov_url' => $right_butt_hov_url,
411
+ 'left_butt_hov_url' => $left_butt_hov_url,
412
+ 'rl_butt_img_or_not' => $rl_butt_img_or_not,
413
+ 'bullets_img_main_url' => $bullets_img_main_url,
414
+ 'bullets_img_hov_url' => $bullets_img_hov_url,
415
+ 'bull_butt_img_or_not' => $bull_butt_img_or_not,
416
  ), array('id' => $slider_id));
417
  }
418
  if ($save !== FALSE) {
admin/models/WDSModelSliders_wds.php CHANGED
@@ -39,6 +39,7 @@ class WDSModelSliders_wds {
39
  $rows[0]->published = 1;
40
  $rows[0]->link = '';
41
  $rows[0]->order = 1;
 
42
  }
43
  return $rows;
44
  }
@@ -89,7 +90,6 @@ class WDSModelSliders_wds {
89
  }
90
  else {
91
  $row->name = '';
92
-
93
  }
94
  $row->id = $id;
95
  $row->width = 800;
@@ -163,6 +163,14 @@ class WDSModelSliders_wds {
163
  $row->built_in_watermark_opacity = 70;
164
  $row->stop_animation = 0;
165
  $row->css = '';
 
 
 
 
 
 
 
 
166
  }
167
  return $row;
168
  }
39
  $rows[0]->published = 1;
40
  $rows[0]->link = '';
41
  $rows[0]->order = 1;
42
+ $rows[0]->target_attr_slide = 1;
43
  }
44
  return $rows;
45
  }
90
  }
91
  else {
92
  $row->name = '';
 
93
  }
94
  $row->id = $id;
95
  $row->width = 800;
163
  $row->built_in_watermark_opacity = 70;
164
  $row->stop_animation = 0;
165
  $row->css = '';
166
+ $row->right_butt_url = WD_S_URL . '/images/arrow/arrow11/1/2.png';
167
+ $row->left_butt_url = WD_S_URL . '/images/arrow/arrow11/1/1.png';
168
+ $row->right_butt_hov_url = WD_S_URL . '/images/arrow/arrow11/1/4.png';
169
+ $row->left_butt_hov_url = WD_S_URL . '/images/arrow/arrow11/1/3.png';
170
+ $row->rl_butt_img_or_not = 'style';
171
+ $row->bullets_img_main_url = WD_S_URL . '/images/bullet/bullet1/1/1.png';
172
+ $row->bullets_img_hov_url = WD_S_URL . '/images/bullet/bullet1/1/2.png';
173
+ $row->bull_butt_img_or_not = 'style';
174
  }
175
  return $row;
176
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -404,12 +404,13 @@ class WDSViewSliders_wds {
404
  <?php
405
  if ($row->spider_uploader) {
406
  ?>
407
- <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" id="content-add_media" title="Add Images" onclick="return false;">
408
  Add Images
409
  </a>
410
  <?php
411
  }
412
  ?>
 
413
  <input class="button-primary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
414
  spider_set_input_value('task', 'set_watermark');
415
  spider_ajax_save('sliders_form', event);" value="Set Watermark" />
@@ -690,22 +691,187 @@ class WDSViewSliders_wds {
690
  <div class="spider_description">Select between the option of always displaying the navigation buttons or only when hovered.</div>
691
  </td>
692
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
693
  </tbody>
694
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
695
  <?php echo $fv_message; ?>
696
  <tr id="right_left_butt_style">
697
  <td class="spider_label <?php echo $fv_class; ?>"><label for="rl_butt_style">Next / Previous buttons style: </label></td>
698
  <td>
699
- <select name="rl_butt_style" id="rl_butt_style" <?php echo $fv_disabled; ?>>
700
- <?php
701
- foreach ($button_styles as $key => $button_style) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  ?>
703
- <option value="<?php echo $key; ?>" <?php echo (($row->rl_butt_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $button_style; ?></option>
 
704
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
  }
706
- ?>
707
- </select>
708
- <div class="spider_description">Choose the style of the button you prefer to have as navigation buttons.</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
709
  </td>
710
  </tr>
711
  <tr id="right_left_butt_size">
@@ -722,14 +888,14 @@ class WDSViewSliders_wds {
722
  <div class="spider_description">Set the size for the play / pause buttons.</div>
723
  </td>
724
  </tr>
725
- <tr id="buttons_color">
726
  <td class="spider_label <?php echo $fv_class; ?>"><label for="butts_color">Buttons color: </label></td>
727
  <td>
728
- <input type="text" name="butts_color" id="butts_color" value="<?php echo $row->butts_color; ?>" class="color" <?php echo $fv_disabled; ?> />
729
  <div class="spider_description">Select a color for the navigation buttons.</div>
730
  </td>
731
  </tr>
732
- <tr>
733
  <td class="spider_label <?php echo $fv_class; ?>"><label for="hover_color">Hover color: </label></td>
734
  <td>
735
  <input type="text" name="hover_color" id="hover_color" value="<?php echo $row->hover_color; ?>" class="color" <?php echo $fv_disabled; ?> />
@@ -791,22 +957,177 @@ class WDSViewSliders_wds {
791
  <div class="spider_description">Select the position for the navigation bullets.</div>
792
  </td>
793
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
794
  </tbody>
795
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
796
  <?php echo $fv_message; ?>
797
- <tr>
798
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_style">Bullet style: </label></td>
799
  <td>
800
- <select name="bull_style" id="bull_style" <?php echo $fv_disabled; ?>>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
801
  <?php
802
- foreach ($bull_styles as $key => $bull_style) {
803
- ?>
804
- <option value="<?php echo $key; ?>" <?php echo (($row->bull_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $bull_style; ?></option>
805
- <?php
 
 
 
 
 
 
 
 
 
806
  }
807
- ?>
808
- </select>
809
- <div class="spider_description">Choose the style for the bullets.</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
810
  </td>
811
  </tr>
812
  <tr id="bullet_size">
@@ -819,14 +1140,14 @@ class WDSViewSliders_wds {
819
  <tr id="bullets_color">
820
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_color">Color: </label></td>
821
  <td>
822
- <input type="text" name="bull_color" id="bull_color" value="<?php echo $row->bull_color; ?>" class="color" <?php echo $fv_disabled; ?> />
823
  <div class="spider_description">Select the color for the navigation bullets.</div>
824
  </td>
825
  </tr>
826
  <tr id="bullets_act_color">
827
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_act_color">Active color: </label></td>
828
  <td>
829
- <input type="text" name="bull_act_color" id="bull_act_color" value="<?php echo $row->bull_act_color; ?>" class="color" <?php echo $fv_disabled; ?> />
830
  <div class="spider_description">Select the color for the bullet, which is currently displaying a corresponding image.</div>
831
  </td>
832
  </tr>
@@ -840,7 +1161,7 @@ class WDSViewSliders_wds {
840
  </tbody>
841
  </table>
842
  </div>
843
- <div class="wds_nav_box wds_nav_filmstrip_box spider_free_version_label" title="This option is disabled in free version.">
844
  <table>
845
  <tbody>
846
  <tr>
@@ -998,7 +1319,7 @@ class WDSViewSliders_wds {
998
  }
999
  else {
1000
  ?>
1001
- <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'watermark', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" id="content-add_media" title="Add Image" onclick="return false;">
1002
  Add Image
1003
  </a>
1004
  <?php
@@ -1172,7 +1493,7 @@ class WDSViewSliders_wds {
1172
  }
1173
  else {
1174
  ?>
1175
- <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" id="content-add_media" title="Add Image" onclick="return false;">
1176
  Add Image
1177
  </a>
1178
  <?php
@@ -1180,8 +1501,9 @@ class WDSViewSliders_wds {
1180
  ?>
1181
  <input type="button" class="button-primary" onclick="wds_add_image_url('<?php echo $slide_row->id; ?>')" value="Add Image by URL" />
1182
  <input type="button" class="button-secondary wds_free_button" onclick="alert('This functionality is disabled in free version.')" value="Add Video" />
1183
- <input type="button" class="button-secondary" id="delete_image_url<?php echo $slide_row->id; ?>" onclick="spider_remove_url('button_image_url<?php echo $slide_row->id; ?>', 'image_url<?php echo $slide_row->id; ?>', 'delete_image_url<?php echo $slide_row->id; ?>', 'wds_preview_image<?php echo $slide_row->id; ?>')" value="Remove" />
1184
- <input type="hidden" id="image_url<?php echo $slide_row->id; ?>" name="image_url<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->image_url; ?>" style="display: inline-block;" />
 
1185
  <input type="hidden" id="thumb_url<?php echo $slide_row->id; ?>" name="thumb_url<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->thumb_url; ?>" />
1186
  </td>
1187
  </tr>
@@ -1265,7 +1587,7 @@ class WDSViewSliders_wds {
1265
  }
1266
  else {
1267
  ?>
1268
- <a href="<?php echo !$fv ? add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_layer', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')) : ''; ?>" onclick="<?php echo !$fv ? '' : "alert('This functionality is disabled in free version.')"; ?>; return false;" class="button-<?php echo !$fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button"; ?> button button-small" id="content-add_media" title="Add Image Layer">
1269
  Add Image layer
1270
  </a>
1271
  <?php
@@ -1519,6 +1841,7 @@ class WDSViewSliders_wds {
1519
  <input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $layer->image_width; ?>" name="<?php echo $prefix; ?>_image_width" /> x
1520
  <input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $layer->image_height; ?>" name="<?php echo $prefix; ?>_image_height" /> px
1521
  <input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_scale(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($layer->image_scale) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale">Scale</label>
 
1522
  <div class="spider_description">Set width and height of the image.</div>
1523
  </td>
1524
  <td class="spider_label">
@@ -1804,6 +2127,8 @@ class WDSViewSliders_wds {
1804
  </div>
1805
  <script>
1806
  jQuery(document).ready(function() {
 
 
1807
  wds_whr('width');
1808
  wds_drag_layer('<?php echo $slide_row->id; ?>');
1809
  wds_layer_weights('<?php echo $slide_row->id; ?>');
@@ -1844,9 +2169,9 @@ class WDSViewSliders_wds {
1844
  </div>
1845
  <input id="task" name="task" type="hidden" value="" />
1846
  <script>
1847
- var uploader_href = '<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => 'slideID', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>';
1848
  var fv = '<?php echo $fv; ?>';
1849
- jQuery(window).load(function() {
1850
  wds_onload();
1851
  });
1852
  </script>
404
  <?php
405
  if ($row->spider_uploader) {
406
  ?>
407
+ <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Images" onclick="return false;">
408
  Add Images
409
  </a>
410
  <?php
411
  }
412
  ?>
413
+ <input class="button-secondary wds_free_button" type="button" value="Add Posts" onclick="alert('This functionality is disabled in free version.')" />
414
  <input class="button-primary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
415
  spider_set_input_value('task', 'set_watermark');
416
  spider_ajax_save('sliders_form', event);" value="Set Watermark" />
691
  <div class="spider_description">Select between the option of always displaying the navigation buttons or only when hovered.</div>
692
  </td>
693
  </tr>
694
+ <tr>
695
+ <td class="spider_label_options">
696
+ <label>Image for Next / Previous buttons: </label>
697
+ </td>
698
+ <td>
699
+ <input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_our" value="our" <?php if ($row->rl_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('our')" /><label for="rl_butt_img_or_not_our">Default</label>
700
+ <input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_cust" value="custom" <?php if ($row->rl_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('custom')" /><label for="rl_butt_img_or_not_cust">Custom</label>
701
+ <input type="radio" name="rl_butt_img_or_not" id="rl_butt_img_or_not_style" value="style" <?php if ($row->rl_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_next_prev_butt('style')" /><label for="rl_butt_img_or_not_style">Styled</label>
702
+ <input type="hidden" id="right_butt_url" name="right_butt_url" value="<?php echo $row->right_butt_url; ?>" />
703
+ <input type="hidden" id="right_butt_hov_url" name="right_butt_hov_url" value="<?php echo $row->right_butt_hov_url; ?>" />
704
+ <input type="hidden" id="left_butt_url" name="left_butt_url" value="<?php echo $row->left_butt_url; ?>" />
705
+ <input type="hidden" id="left_butt_hov_url" name="left_butt_hov_url" value="<?php echo $row->left_butt_hov_url; ?>" />
706
+ <div class="spider_description">Choose whether to use default navigation buttons or to upload custom ones.</div>
707
+ </td>
708
+ </tr>
709
  </tbody>
710
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
711
  <?php echo $fv_message; ?>
712
  <tr id="right_left_butt_style">
713
  <td class="spider_label <?php echo $fv_class; ?>"><label for="rl_butt_style">Next / Previous buttons style: </label></td>
714
  <td>
715
+ <div style="display: table;">
716
+ <div style="display: table-cell; vertical-align: middle;">
717
+ <select name="rl_butt_style" id="rl_butt_style" onchange="change_rl_butt_style(jQuery(this).val())">
718
+ <?php
719
+ foreach ($button_styles as $key => $button_style) {
720
+ ?>
721
+ <option value="<?php echo $key; ?>" <?php echo (($row->rl_butt_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $button_style; ?></option>
722
+ <?php
723
+ }
724
+ ?>
725
+ </select>
726
+ </div>
727
+ <div style="display: table-cell; vertical-align: middle; background-color: rgba(229, 229, 229, 0.62); text-align: center;">
728
+ <i id="wds_left_style" class="fa <?php echo $row->rl_butt_style; ?>-left" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
729
+ <i id="wds_right_style" class="fa <?php echo $row->rl_butt_style; ?>-right" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
730
+ </div>
731
+ </div>
732
+ <div class="spider_description">Choose the style of the button you prefer to have as navigation buttons.</div>
733
+ </td>
734
+ </tr>
735
+ <tr id="right_butt_upl">
736
+ <td class="spider_label_options" style="vertical-align: middle;">
737
+ <label>Upload buttons images: </label>
738
+ </td>
739
+ <td>
740
+ <div style="display: table;">
741
+ <div style="display: table-cell; vertical-align: middle;">
742
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Previous Button" onclick="alert('This functionality is disabled in free version.')" />
743
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Previous Button Hover" onclick="alert('This functionality is disabled in free version.')" />
744
+ </div>
745
+ <div style="display: table-cell; vertical-align: middle;">
746
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Next Button" onclick="alert('This functionality is disabled in free version.')" />
747
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Next Button Hover" onclick="alert('This functionality is disabled in free version.')" />
748
+ </div>
749
+ <div style="width:100px; display: table-cell; vertical-align: middle; text-align: center;background-color: rgba(229, 229, 229, 0.62); padding-top: 4px; border-radius: 3px;">
750
+ <img id="left_butt_img" src="<?php echo $row->left_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
751
+ <img id="right_butt_img" src="<?php echo $row->right_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
752
+ <img id="left_butt_hov_img" src="<?php echo $row->left_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
753
+ <img id="right_butt_hov_img" src="<?php echo $row->right_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
754
+ </div>
755
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
756
+ <input type="button" class="button button-small wds_reverse" onclick="wds_change_custom_src()" value="Reverse" />
757
+ </div>
758
+ </div>
759
+ </td>
760
+ </tr>
761
+ <script>
762
+ var wds_rl_butt_type = [];
763
+ var rl_butt_dir = '<?php echo WD_S_URL . '/images/arrow/'; ?>';
764
+ var type_cur_fold = '1';
765
+ <?php
766
+ $folder_names = scandir(WD_S_DIR . '/images/arrow');
767
+ $cur_fold_name = '';
768
+ $cur_type_key = '';
769
+ $cur_color_key = '';
770
+ $cur_sub_fold_names = array();
771
+ array_splice($folder_names, 0, 2);
772
+ $flag = FALSE;
773
+ foreach ($folder_names as $type_key => $folder_name) {
774
+ if (is_dir(WD_S_DIR . '/images/arrow/' . $folder_name)) {
775
  ?>
776
+ wds_rl_butt_type["<?php echo $type_key; ?>"] = [];
777
+ wds_rl_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
778
  <?php
779
+ if ($row->left_butt_url != '') {
780
+ /* Getting current button's type folder and color folder.*/
781
+ $check_cur_fold = explode('/' , $row->left_butt_url);
782
+ if (in_array($folder_name, $check_cur_fold)) {
783
+ $flag = TRUE;
784
+ $cur_fold_name = $folder_name;
785
+ $cur_type_key = $type_key;
786
+ $cur_sub_fold_names = scandir(WD_S_DIR . '/images/arrow/' . $cur_fold_name);
787
+ array_splice($cur_sub_fold_names, 0, 2);
788
+ ?>
789
+ type_cur_fold = '<?php echo $cur_type_key;?>';
790
+ <?php
791
+ }
792
+ }
793
+ $sub_folder_names = scandir( WD_S_DIR . '/images/arrow/' . $folder_name);
794
+ array_splice($sub_folder_names, 0, 2);
795
+ foreach ($sub_folder_names as $color_key => $sub_folder_name) {
796
+ if (is_dir(WD_S_DIR . '/images/arrow/' . $folder_name . '/' . $sub_folder_name)) {
797
+ if ($cur_fold_name == $folder_name) {
798
+ /* Getting current button's color key.*/
799
+ if (in_array($sub_folder_name, $check_cur_fold)) {
800
+ $cur_color_key = $color_key;
801
+ }
802
+ }
803
+ ?>
804
+ wds_rl_butt_type["<?php echo $type_key; ?>"]["<?php echo $color_key; ?>"] = "<?php echo $sub_folder_name; ?>";
805
+ <?php
806
+ }
807
+ }
808
  }
809
+ else {
810
+ echo $folder_name . " is not a directory.";
811
+ }
812
+ }
813
+ ?>
814
+ </script>
815
+ <tr id="right_left_butt_select">
816
+ <td class="spider_label_options" style="vertical-align: middle;">
817
+ <label for="right_butt_url">Choose buttons: </label>
818
+ </td>
819
+ <td style="display: block;">
820
+ <div style="display: table; margin-bottom: 14px;">
821
+ <div style="display: table-cell; vertical-align: middle;">
822
+ <div style="display: block; width: 180px;">
823
+ <div class="spider_choose_option" onclick="wds_choose_option(this)">
824
+ <div class="spider_option_main_title">Choose group</div>
825
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
826
+ </div>
827
+ <div class="spider_options_cont">
828
+ <?php
829
+ foreach ($folder_names as $type_key => $folder_name) {
830
+ ?>
831
+ <div class="spider_option_cont wds_rl_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($cur_type_key == $type_key) ? 'selected="selected"; style="background-color: #3399FF;"' : ''); ?> onclick="change_rl_butt_type(this)">
832
+ <div class="spider_option_cont_title">
833
+ <?php echo 'Group-' . ++$type_key; ?>
834
+ </div>
835
+ <div class="spider_option_cont_img">
836
+ <img class="src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
837
+ <img class="src_top_right" style="display: inline-block; width: 14px; height: 14px;" />
838
+ <img class="src_bottom_left" style="display: inline-block; width: 14px; height: 14px;" />
839
+ <img class="src_bottom_right" style="display: inline-block; width: 14px; height: 14px;" />
840
+ </div>
841
+ </div>
842
+ <?php
843
+ }
844
+ if (!$flag) {
845
+ /* Folder doesn't exist.*/
846
+ ?>
847
+ <div class="spider_option_cont" value="0" selected="selected" disabled="disabled">Custom</div>
848
+ <?php
849
+ }
850
+ ?>
851
+ </div>
852
+ </div>
853
+ </div>
854
+ <div style="display:table-cell;vertical-align: middle;">
855
+ <div style="display: block; width: 180px; margin-left: 12px;">
856
+ <div class="spider_choose_option" onclick="alert('This functionality is disabled in free version.')">
857
+ <div class="spider_option_main_title">Choose color</div>
858
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
859
+ </div>
860
+ </div>
861
+ </div>
862
+ <div style="width:100px; display: table-cell; vertical-align: middle; text-align: center;">
863
+ <div style=" display: block; margin-left: 12px; vertical-align: middle; text-align: center;background-color: rgba(229, 229, 229, 0.62); padding-top: 4px; border-radius: 3px;">
864
+ <img id="rl_butt_img_l" src="<?php echo $row->left_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
865
+ <img id="rl_butt_img_r" src="<?php echo $row->right_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
866
+ <img id="rl_butt_hov_img_l" src="<?php echo $row->left_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
867
+ <img id="rl_butt_hov_img_r" src="<?php echo $row->right_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
868
+ </div>
869
+ </div>
870
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
871
+ <input type="button" class="button button-small wds_reverse" onclick="change_src()" value="Reverse" />
872
+ </div>
873
+ </div>
874
+ <div class="spider_description">Choose the type and color for navigation button images. The option is designed for limited preview (colors not included) purposes and can't be saved.</div>
875
  </td>
876
  </tr>
877
  <tr id="right_left_butt_size">
888
  <div class="spider_description">Set the size for the play / pause buttons.</div>
889
  </td>
890
  </tr>
891
+ <tr id="tr_butts_color">
892
  <td class="spider_label <?php echo $fv_class; ?>"><label for="butts_color">Buttons color: </label></td>
893
  <td>
894
+ <input type="text" name="butts_color" id="butts_color" value="<?php echo $row->butts_color; ?>" class="color" <?php echo $fv_disabled; ?> onchange="jQuery('#wds_left_style,#wds_right_style').css({color: '#' + jQuery(this).val()})" />
895
  <div class="spider_description">Select a color for the navigation buttons.</div>
896
  </td>
897
  </tr>
898
+ <tr id="tr_hover_color">
899
  <td class="spider_label <?php echo $fv_class; ?>"><label for="hover_color">Hover color: </label></td>
900
  <td>
901
  <input type="text" name="hover_color" id="hover_color" value="<?php echo $row->hover_color; ?>" class="color" <?php echo $fv_disabled; ?> />
957
  <div class="spider_description">Select the position for the navigation bullets.</div>
958
  </td>
959
  </tr>
960
+ <tr>
961
+ <td class="spider_label_options">
962
+ <label>Image for bullets: </label>
963
+ </td>
964
+ <td>
965
+ <input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_our" value="our" <?php if ($row->bull_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('our')" /><label for="bull_butt_img_or_not_our">Default</label>
966
+ <input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_cust" value="custom" <?php if ($row->bull_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('custom')" /><label for="bull_butt_img_or_not_cust">Custom</label>
967
+ <input type="radio" name="bull_butt_img_or_not" id="bull_butt_img_or_not_stl" value="style" <?php if ($row->bull_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_bull_butt('style')" /><label for="bull_butt_img_or_not_stl">Styled</label>
968
+ <input type="hidden" id="bullets_img_main_url" name="bullets_img_main_url" value="<?php echo $row->bullets_img_main_url; ?>" />
969
+ <input type="hidden" id="bullets_img_hov_url" name="bullets_img_hov_url" value="<?php echo $row->bullets_img_hov_url; ?>" />
970
+ <div class="spider_description">Choose whether to use default or styled bullets.</div>
971
+ </td>
972
+ </tr>
973
  </tbody>
974
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
975
  <?php echo $fv_message; ?>
976
+ <tr id="bullets_style">
977
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_style">Bullet style: </label></td>
978
  <td>
979
+ <div style="display: table;">
980
+ <div style="display: table-cell; vertical-align: middle;">
981
+ <select name="bull_style" id="bull_style" <?php echo $fv_disabled; ?> onchange="change_bull_style(jQuery(this).val())">
982
+ <?php
983
+ foreach ($bull_styles as $key => $bull_style) {
984
+ ?>
985
+ <option value="<?php echo $key; ?>" <?php echo (($row->bull_style == $key) ? 'selected="selected"' : ''); ?>><?php echo $bull_style; ?></option>
986
+ <?php
987
+ }
988
+ ?>
989
+ </select>
990
+ </div>
991
+ <div style="display: table-cell; vertical-align: middle; background-color: rgba(229, 229, 229, 0.62); text-align: center;">
992
+ <i id="wds_act_bull_style" class="fa <?php echo str_replace('-o', '', $row->bull_style); ?>" style="color: #<?php echo $row->bull_act_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
993
+ <i id="wds_deact_bull_style" class="fa <?php echo $row->bull_style; ?>" style="color: #<?php echo $row->bull_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
994
+ </div>
995
+ </div>
996
+ <div class="spider_description">Choose the style for the bullets.</div>
997
+ </td>
998
+ </tr>
999
+ <script>
1000
+ var wds_blt_img_type = [];
1001
+ var blt_img_dir = '<?php echo WD_S_URL . '/images/bullet/'; ?>';
1002
+ var bull_type_cur_fold = '1';
1003
+ <?php
1004
+ $folder_names = scandir(WD_S_DIR . '/images/bullet');
1005
+ $bull_cur_fold_name = '';
1006
+ $bull_cur_type_key = '';
1007
+ $bull_cur_color_key = '';
1008
+ $bull_cur_sub_fold_names = array();
1009
+ array_splice($folder_names, 0, 2);
1010
+ $flag = FALSE;
1011
+ foreach ($folder_names as $type_key => $folder_name) {
1012
+ if (is_dir(WD_S_DIR . '/images/bullet/' . $folder_name)) {
1013
+ ?>
1014
+ wds_blt_img_type["<?php echo $type_key; ?>"] = [];
1015
+ wds_blt_img_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
1016
  <?php
1017
+ if ($row->bullets_img_main_url != '') {
1018
+ /* Getting current button's type folder and color folder.*/
1019
+ $check_bull_cur_fold = explode('/' , $row->bullets_img_main_url);
1020
+ if (in_array($folder_name, $check_bull_cur_fold)) {
1021
+ $flag = TRUE;
1022
+ $bull_cur_fold_name = $folder_name;
1023
+ $bull_cur_type_key = $type_key;
1024
+ $bull_cur_sub_fold_names = scandir(WD_S_DIR . '/images/bullet/' . $bull_cur_fold_name);
1025
+ array_splice($bull_cur_sub_fold_names, 0, 2);
1026
+ ?>
1027
+ bull_type_cur_fold = '<?php echo $bull_cur_type_key;?>';
1028
+ <?php
1029
+ }
1030
  }
1031
+ $sub_folder_names = scandir(WD_S_DIR . '/images/bullet/' . $folder_name);
1032
+ array_splice($sub_folder_names, 0, 2);
1033
+ foreach ($sub_folder_names as $color_key => $sub_folder_name) {
1034
+ if (is_dir(WD_S_DIR . '/images/bullet/' . $folder_name . '/' . $sub_folder_name)) {
1035
+ if ($bull_cur_fold_name == $folder_name) {
1036
+ /* Getting current button's color key.*/
1037
+ if (in_array($sub_folder_name, $check_bull_cur_fold)) {
1038
+ $bull_cur_color_key = $color_key;
1039
+ }
1040
+ }
1041
+ ?>
1042
+ wds_blt_img_type["<?php echo $type_key; ?>"]["<?php echo $color_key; ?>"] = "<?php echo $sub_folder_name; ?>";
1043
+ <?php
1044
+ }
1045
+ }
1046
+ }
1047
+ else {
1048
+ echo $folder_name . " is not a directory";
1049
+ }
1050
+ }
1051
+ ?>
1052
+ </script>
1053
+ <tr id="bullets_images_cust">
1054
+ <td class="spider_label_options" style="vertical-align: middle;">
1055
+ <label>Upload buttons images: </label>
1056
+ </td>
1057
+ <td>
1058
+ <div style="display: table;">
1059
+ <div style="display: table-cell; vertical-align: middle;">
1060
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Active Button" onclick="alert('This functionality is disabled in free version.')" />
1061
+ </div>
1062
+ <div style="display: table-cell; vertical-align: middle;">
1063
+ <input class="button-secondary wds_free_button" type="button" value="Deactive Button" onclick="alert('This functionality is disabled in free version.')" />
1064
+ </div>
1065
+ <div style="width:100px; display: table-cell; vertical-align: middle; text-align: center;background-color: rgba(229, 229, 229, 0.62); padding-top: 4px; border-radius: 3px;">
1066
+ <img id="bull_img_main" src="<?php echo $row->bullets_img_main_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1067
+ <img id="bull_img_hov" src="<?php echo $row->bullets_img_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1068
+ </div>
1069
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
1070
+ <input type="button" class="button button-small wds_reverse" onclick="wds_change_bullets_custom_src()" value="Reverse" />
1071
+ </div>
1072
+ </div>
1073
+ </td>
1074
+ </tr>
1075
+ <tr id="bullets_images_select">
1076
+ <td class="spider_label_options" style="vertical-align: middle;">
1077
+ <label for="bullets_images_url">Chooes buttons: </label>
1078
+ </td>
1079
+ <td style="display: block;">
1080
+ <div style="display: table; margin-bottom: 14px;">
1081
+ <div style="display: table-cell; vertical-align: middle;">
1082
+ <div style="display: block; width: 180px;">
1083
+ <div class="spider_choose_option" onclick="wds_choose_bull_option(this)">
1084
+ <div class="spider_option_main_title">Choose group</div>
1085
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
1086
+ </div>
1087
+ <div class="spider_bull_options_cont">
1088
+ <?php
1089
+ foreach ($folder_names as $type_key => $folder_name) {
1090
+ ?>
1091
+ <div class="spider_option_cont wds_bull_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($bull_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_bullets_images_type(this)">
1092
+ <div class="spider_option_cont_title" style="width: 64%;">
1093
+ <?php echo 'Group-' . ++$type_key; ?>
1094
+ </div>
1095
+ <div class="spider_option_cont_img">
1096
+ <img class="bull_src_left" style="display: inline-block; width: 14px; height: 14px;" />
1097
+ <img class="bull_src_right" style="display: inline-block; width: 14px; height: 14px;" />
1098
+ </div>
1099
+ </div>
1100
+ <?php
1101
+ }
1102
+ if (!$flag) {
1103
+ /* Folder doesn't exist.*/
1104
+ ?>
1105
+ <div class="spider_option_cont" value="0" selected="selected" disabled="disabled">Custom</div>
1106
+ <?php
1107
+ }
1108
+ ?>
1109
+ </div>
1110
+ </div>
1111
+ </div>
1112
+ <div style="display: table-cell; vertical-align: middle;">
1113
+ <div style="display: block; width: 180px; margin-left: 12px;">
1114
+ <div class="spider_choose_option" onclick="alert('This functionality is disabled in free version.')" >
1115
+ <div class="spider_option_main_title" >Choose color</div>
1116
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE;"></i></div>
1117
+ </div>
1118
+ </div>
1119
+ </div>
1120
+ <div style="width: 100px; display: table-cell; vertical-align: middle; text-align: center;">
1121
+ <div style="display: block; vertical-align: middle; margin-left: 12px; text-align: center; background-color: rgba(229, 229, 229, 0.62); padding-top: 4px; border-radius: 3px;">
1122
+ <img id="bullets_img_main" src="<?php echo $row->bullets_img_main_url; ?>" style="display: inline-block; width: 40px; height: 40px;" />
1123
+ <img id="bullets_img_hov" src="<?php echo $row->bullets_img_hov_url; ?>" style="display: inline-block; width: 40px; height: 40px;" />
1124
+ </div>
1125
+ </div>
1126
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
1127
+ <input type="button" class="button button-small wds_reverse" onclick="change_bullets_src()" value="Reverse" />
1128
+ </div>
1129
+ </div>
1130
+ <div class="spider_description">Choose the type and color for the bullets. The option is designed for limited preview (colors not included) purposes and can't be saved.</div>
1131
  </td>
1132
  </tr>
1133
  <tr id="bullet_size">
1140
  <tr id="bullets_color">
1141
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_color">Color: </label></td>
1142
  <td>
1143
+ <input type="text" name="bull_color" id="bull_color" value="<?php echo $row->bull_color; ?>" class="color" <?php echo $fv_disabled; ?> onchange="jQuery('#wds_deact_bull_style').css({color: '#' + jQuery(this).val()})" />
1144
  <div class="spider_description">Select the color for the navigation bullets.</div>
1145
  </td>
1146
  </tr>
1147
  <tr id="bullets_act_color">
1148
  <td class="spider_label <?php echo $fv_class; ?>"><label for="bull_act_color">Active color: </label></td>
1149
  <td>
1150
+ <input type="text" name="bull_act_color" id="bull_act_color" value="<?php echo $row->bull_act_color; ?>" class="color" <?php echo $fv_disabled; ?> onchange="jQuery('#wds_act_bull_style').css({color: '#' + jQuery(this).val()})" />
1151
  <div class="spider_description">Select the color for the bullet, which is currently displaying a corresponding image.</div>
1152
  </td>
1153
  </tr>
1161
  </tbody>
1162
  </table>
1163
  </div>
1164
+ <div class="wds_nav_box wds_nav_filmstrip_box spider_free_version_label" title="This functionality is disabled in free version.">
1165
  <table>
1166
  <tbody>
1167
  <tr>
1319
  }
1320
  else {
1321
  ?>
1322
+ <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'watermark', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Image" onclick="return false;">
1323
  Add Image
1324
  </a>
1325
  <?php
1493
  }
1494
  else {
1495
  ?>
1496
+ <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Image" onclick="return false;">
1497
  Add Image
1498
  </a>
1499
  <?php
1501
  ?>
1502
  <input type="button" class="button-primary" onclick="wds_add_image_url('<?php echo $slide_row->id; ?>')" value="Add Image by URL" />
1503
  <input type="button" class="button-secondary wds_free_button" onclick="alert('This functionality is disabled in free version.')" value="Add Video" />
1504
+ <input class="button-secondary wds_free_button" type="button" value="Add Post" onclick="alert('This functionality is disabled in free version.')" />
1505
+ <input type="button" class="button-secondary" id="delete_image_url<?php echo $slide_row->id; ?>" onclick="spider_remove_url('image_url<?php echo $slide_row->id; ?>', 'wds_preview_image<?php echo $slide_row->id; ?>')" value="Remove" />
1506
+ <input type="hidden" id="image_url<?php echo $slide_row->id; ?>" name="image_url<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->image_url; ?>" />
1507
  <input type="hidden" id="thumb_url<?php echo $slide_row->id; ?>" name="thumb_url<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->thumb_url; ?>" />
1508
  </td>
1509
  </tr>
1587
  }
1588
  else {
1589
  ?>
1590
+ <a href="<?php echo !$fv ? add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_layer', 'slide_id' => $slide_row->id, 'TB_iframe' => '1'), admin_url('admin-ajax.php')) : ''; ?>" onclick="<?php echo !$fv ? '' : "alert('This functionality is disabled in free version.')"; ?>; return false;" class="button-<?php echo !$fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button"; ?> button button-small" title="Add Image Layer">
1591
  Add Image layer
1592
  </a>
1593
  <?php
1841
  <input id="<?php echo $prefix; ?>_image_width" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $layer->image_width; ?>" name="<?php echo $prefix; ?>_image_width" /> x
1842
  <input id="<?php echo $prefix; ?>_image_height" class="spider_int_input" type="text" onkeyup="wds_scale('#<?php echo $prefix; ?>_image_scale', '<?php echo $prefix; ?>')" value="<?php echo $layer->image_height; ?>" name="<?php echo $prefix; ?>_image_height" /> px
1843
  <input id="<?php echo $prefix; ?>_image_scale" type="checkbox" onchange="wds_scale(this, '<?php echo $prefix; ?>')" name="<?php echo $prefix; ?>_image_scale" <?php echo (($layer->image_scale) ? 'checked="checked"' : ''); ?> /><label for="<?php echo $prefix; ?>_image_scale">Scale</label>
1844
+ <input class="button-secondary wds_free_button" type="button" value="Edit Image" onclick="alert('This functionality is disabled in free version.')" />
1845
  <div class="spider_description">Set width and height of the image.</div>
1846
  </td>
1847
  <td class="spider_label">
2127
  </div>
2128
  <script>
2129
  jQuery(document).ready(function() {
2130
+ image_for_next_prev_butt('<?php echo $row->rl_butt_img_or_not; ?>');
2131
+ image_for_bull_butt('<?php echo $row->bull_butt_img_or_not; ?>');
2132
  wds_whr('width');
2133
  wds_drag_layer('<?php echo $slide_row->id; ?>');
2134
  wds_layer_weights('<?php echo $slide_row->id; ?>');
2169
  </div>
2170
  <input id="task" name="task" type="hidden" value="" />
2171
  <script>
2172
+ var uploader_href = '<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_update_slide', 'slide_id' => 'slideID', 'layer_id' => 'layerID', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>';
2173
  var fv = '<?php echo $fv; ?>';
2174
+ jQuery(document).ready(function() {
2175
  wds_onload();
2176
  });
2177
  </script>
css/wds_tables.css CHANGED
@@ -1,3 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .wds_free_button,
2
  .wds_free_button:hover {
3
  background: linear-gradient(to bottom, #E5E5E5, #E5E5E5) repeat scroll 0 0 #f3f3f3 !important;
@@ -274,6 +296,69 @@
274
  width: 150px;
275
  }
276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  .spider_int_input {
278
  width: 45px;
279
  }
1
+ #bullets_images_type,
2
+ #bullets_images_color,
3
+ #bull_style,
4
+ #rl_butt_type,
5
+ #rl_butt_color,
6
+ #rl_butt_style {
7
+ margin: 0 10px 0 0;
8
+ width: 100px;
9
+ }
10
+
11
+ .wds_ctrl_btn_upload {
12
+ display: block !important;
13
+ margin: 5px 0 !important;
14
+ text-align: center;
15
+ vertical-align: middle;
16
+ width: 95%;
17
+ }
18
+
19
+ .wds_reverse {
20
+ margin: 0 5px !important;
21
+ }
22
+
23
  .wds_free_button,
24
  .wds_free_button:hover {
25
  background: linear-gradient(to bottom, #E5E5E5, #E5E5E5) repeat scroll 0 0 #f3f3f3 !important;
296
  width: 150px;
297
  }
298
 
299
+ .spider_choose_option {
300
+ display: table;
301
+ box-shadow: 0px 0px 1px 1px #D2D2D2;
302
+ margin-bottom: 5px;
303
+ border-radius: 2px;
304
+ padding: 2px;
305
+ box-sizing: border-box;
306
+ cursor: pointer;
307
+ width: 100%;
308
+ }
309
+
310
+ .spider_options_cont, .spider_bull_options_cont, .spider_options_color_cont, .spider_bull_options_color_cont {
311
+ display: none;
312
+ width: 180px;
313
+ height: 150px;
314
+ overflow: scroll;
315
+ overflow-x: hidden;
316
+ overflow-y: scroll;
317
+ }
318
+
319
+ .spider_option_cont {
320
+ display: block;
321
+ border-bottom: 1px solid #D3D3D3;
322
+ padding: 3px 0px 3px 0px;
323
+ box-sizing: content-box;
324
+ width: 98%;
325
+ border-radius: 0px;
326
+ cursor: pointer;
327
+ }
328
+
329
+ .spider_option_cont_title {
330
+ display: table-cell;
331
+ vertical-align: middle;
332
+ padding: 0px 0px 0px 4px;
333
+ }
334
+
335
+ .spider_option_cont_img {
336
+ display: table-cell;
337
+ width: 23%;
338
+ height: 15px;
339
+ text-align: right;
340
+ padding: 5px 4px 0px 0px;
341
+ box-sizing: border-box;
342
+ background-color: #EEEEEE;
343
+ }
344
+
345
+ .spider_option_main_title {
346
+ display: table-cell;
347
+ width: 65%;
348
+ vertical-align: middle;
349
+ padding: 0px 0px 0px 4px;
350
+ color: #555;
351
+ }
352
+
353
+ .spider_sel_option_ic {
354
+ display: table-cell;
355
+ width: 20%;
356
+ height: 15px;
357
+ text-align: right;
358
+ padding: 0px 6px 0px 0px;
359
+ box-sizing: border-box;
360
+ }
361
+
362
  .spider_int_input {
363
  width: 45px;
364
  }
filemanager/UploadHandler.php CHANGED
@@ -11,7 +11,7 @@
11
  */
12
 
13
  if (function_exists('current_user_can')) {
14
- if (!current_user_can('read')) {
15
  die('Access Denied');
16
  }
17
  }
11
  */
12
 
13
  if (function_exists('current_user_can')) {
14
+ if (!current_user_can('manage_options')) {
15
  die('Access Denied');
16
  }
17
  }
filemanager/js/default.js CHANGED
@@ -174,11 +174,9 @@ function submitFiles() {
174
  var fileData = [];
175
  fileData['name'] = filesSelected[i];
176
  fileData['filename'] = jQuery(file_object).attr("filename");
177
- /*fileData['url'] = dir + "/" + filesSelected[i]; alert(dirUrl);*/
178
- fileData['url'] = dirUrl + "/" + filesSelected[i]; /*alert(dirUrl);*/
179
  fileData['reliative_url'] = dirUrl + "/" + filesSelected[i];
180
- /*fileData['thumb_url'] = dir + "/thumb/" + filesSelected[i];*/
181
- fileData['thumb_url'] = dirUrl + "/thumb/" + filesSelected[i];
182
  fileData['thumb'] = jQuery(file_object).attr("filethumb");
183
  fileData['size'] = jQuery(file_object).attr("filesize");
184
  fileData['filetype'] = jQuery(file_object).attr("filetype");
@@ -187,7 +185,7 @@ function submitFiles() {
187
  filesValid.push(fileData);
188
  }
189
  }
190
- window.parent[callback](filesValid, image_for, slide_id);
191
  window.parent.tb_remove();
192
  }
193
 
174
  var fileData = [];
175
  fileData['name'] = filesSelected[i];
176
  fileData['filename'] = jQuery(file_object).attr("filename");
177
+ fileData['url'] = dirUrl + "/" + filesSelected[i];
 
178
  fileData['reliative_url'] = dirUrl + "/" + filesSelected[i];
179
+ fileData['thumb_url'] = dirUrl + "/thumb/" + filesSelected[i];
 
180
  fileData['thumb'] = jQuery(file_object).attr("filethumb");
181
  fileData['size'] = jQuery(file_object).attr("filesize");
182
  fileData['filetype'] = jQuery(file_object).attr("filetype");
185
  filesValid.push(fileData);
186
  }
187
  }
188
+ window.parent[callback](filesValid, image_for, slide_id, layer_id);
189
  window.parent.tb_remove();
190
  }
191
 
filemanager/model.php CHANGED
@@ -50,8 +50,8 @@ class FilemanagerModel {
50
  /*$data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());*/
51
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
52
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
53
- $data['image_for'] = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '');
54
- $data['slide_id'] = (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : '');
55
 
56
  return $data;
57
  }
@@ -64,20 +64,13 @@ class FilemanagerModel {
64
  // Private Methods //
65
  ////////////////////////////////////////////////////////////////////////////////////////
66
  private function get_from_session($key, $default) {
67
- // if (isset($_SESSION[$key])) {
68
- // if (isset($_REQUEST[$key])) {
69
- if (isset($_REQUEST[$key])) {
70
- // $_SESSION[$key] = $_REQUEST[$key];
71
- $_REQUEST[$key] = stripslashes($_REQUEST[$key]);
72
- }
73
- else {
74
- // $_SESSION[$key] = $default;
75
- $_REQUEST[$key] = stripslashes($default);
76
- }
77
- // return $_SESSION[$key];
78
- return stripslashes($_REQUEST[$key]);
79
- // }
80
- // return '';
81
  }
82
 
83
  public function get_path_components() {
@@ -108,10 +101,15 @@ class FilemanagerModel {
108
  $icons_dir_path = WD_S_DIR . '/filemanager/images/file_icons';
109
  $icons_dir_url = WD_S_URL . '/filemanager/images/file_icons';
110
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
 
111
  $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
112
  $parent_dir_url = $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
113
-
114
-
 
 
 
 
115
  $file_names = $this->get_sorted_file_names($parent_dir, $sort_by, $sort_order);
116
 
117
  $dirs = array();
50
  /*$data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());*/
51
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
52
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
53
+ $data['image_for'] = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '');
54
+ $data['slide_id'] = (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : '');
55
 
56
  return $data;
57
  }
64
  // Private Methods //
65
  ////////////////////////////////////////////////////////////////////////////////////////
66
  private function get_from_session($key, $default) {
67
+ if (isset($_REQUEST[$key])) {
68
+ $_REQUEST[$key] = stripslashes($_REQUEST[$key]);
69
+ }
70
+ else {
71
+ $_REQUEST[$key] = stripslashes($default);
72
+ }
73
+ return esc_html(stripslashes($_REQUEST[$key]));
 
 
 
 
 
 
 
74
  }
75
 
76
  public function get_path_components() {
101
  $icons_dir_path = WD_S_DIR . '/filemanager/images/file_icons';
102
  $icons_dir_url = WD_S_URL . '/filemanager/images/file_icons';
103
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
104
+ $image_for = isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '';
105
  $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
106
  $parent_dir_url = $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
107
+
108
+ if ($image_for == 'nav_right_but' || $image_for == 'nav_right_hov_but' || $image_for == 'nav_left_but' || $image_for == 'nav_left_hov_but') {
109
+ if (!is_dir($parent_dir)) {
110
+ mkdir($parent_dir, 0777);
111
+ }
112
+ }
113
  $file_names = $this->get_sorted_file_names($parent_dir, $sort_by, $sort_order);
114
 
115
  $dirs = array();
filemanager/view.php CHANGED
@@ -72,13 +72,11 @@ class FilemanagerView {
72
  var dir = "<?php echo (isset($_REQUEST['dir']) ? addslashes(esc_html($_REQUEST['dir'])) : ''); ?>";
73
  var dirUrl = "<?php echo $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) . '/' : ''); ?>";
74
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
75
- var image_for = "<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>";
76
- var slide_id = "<?php echo (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : ''); ?>";
 
77
  var sortBy = "<?php echo $sort_by; ?>";
78
  var sortOrder = "<?php echo $sort_order; ?>";
79
-
80
-
81
-
82
  </script>
83
  <script src="<?php echo WD_S_URL; ?>/filemanager/js/default.js?ver=<?php echo get_option("wd_bwg_version"); ?>"></script>
84
  <link href="<?php echo WD_S_URL; ?>/filemanager/css/default.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
@@ -414,24 +412,24 @@ class FilemanagerView {
414
  </div>
415
  </div>
416
  </div>
417
-
418
- <input type="hidden" name="task" value="">
419
- <input type="hidden" name="extensions" value="<?php echo (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '*'); ?>">
420
- <input type="hidden" name="callback" value="<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>">
421
- <input type="hidden" name="image_for" value="<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>">
422
- <input type="hidden" name="slide_id" value="<?php echo (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : ''); ?>">
423
- <input type="hidden" name="sort_by" value="<?php echo $sort_by; ?>">
424
- <input type="hidden" name="sort_order" value="<?php echo $sort_order; ?>">
425
- <input type="hidden" name="items_view" value="<?php echo $items_view; ?>">
426
- <input type="hidden" name="dir" value="<?php echo (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : ''); ?>"/>
427
- <input type="hidden" name="file_names" value=""/>
428
- <input type="hidden" name="file_namesML" value=""/>
429
- <input type="hidden" name="file_new_name" value=""/>
430
- <input type="hidden" name="new_dir_name" value=""/>
431
- <input type="hidden" name="clipboard_task" value="<?php echo $clipboard_task; ?>"/>
432
- <input type="hidden" name="clipboard_files" value="<?php echo $clipboard_files; ?>"/>
433
- <input type="hidden" name="clipboard_src" value="<?php echo $clipboard_src; ?>"/>
434
- <input type="hidden" name="clipboard_dest" value="<?php echo $clipboard_dest; ?>"/>
435
  </form>
436
  <?php
437
  die();
72
  var dir = "<?php echo (isset($_REQUEST['dir']) ? addslashes(esc_html($_REQUEST['dir'])) : ''); ?>";
73
  var dirUrl = "<?php echo $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) . '/' : ''); ?>";
74
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
75
+ var image_for = "<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>";
76
+ var slide_id = "<?php echo (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : ''); ?>";
77
+ var layer_id = "<?php echo (isset($_REQUEST['layer_id']) ? esc_html($_REQUEST['layer_id']) : ''); ?>";
78
  var sortBy = "<?php echo $sort_by; ?>";
79
  var sortOrder = "<?php echo $sort_order; ?>";
 
 
 
80
  </script>
81
  <script src="<?php echo WD_S_URL; ?>/filemanager/js/default.js?ver=<?php echo get_option("wd_bwg_version"); ?>"></script>
82
  <link href="<?php echo WD_S_URL; ?>/filemanager/css/default.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
412
  </div>
413
  </div>
414
  </div>
415
+ <input type="hidden" name="task" value="" />
416
+ <input type="hidden" name="extensions" value="<?php echo (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '*'); ?>" />
417
+ <input type="hidden" name="callback" value="<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>" />
418
+ <input type="hidden" name="image_for" value="<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>" />
419
+ <input type="hidden" name="slide_id" value="<?php echo (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : ''); ?>" />
420
+ <input type="hidden" name="layer_id" value="<?php echo (isset($_REQUEST['layer_id']) ? esc_html($_REQUEST['layer_id']) : ''); ?>" />
421
+ <input type="hidden" name="sort_by" value="<?php echo $sort_by; ?>" />
422
+ <input type="hidden" name="sort_order" value="<?php echo $sort_order; ?>" />
423
+ <input type="hidden" name="items_view" value="<?php echo $items_view; ?>" />
424
+ <input type="hidden" name="dir" value="<?php echo (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : ''); ?>" />
425
+ <input type="hidden" name="file_names" value="" />
426
+ <input type="hidden" name="file_namesML" value="" />
427
+ <input type="hidden" name="file_new_name" value="" />
428
+ <input type="hidden" name="new_dir_name" value="" />
429
+ <input type="hidden" name="clipboard_task" value="<?php echo $clipboard_task; ?>" />
430
+ <input type="hidden" name="clipboard_files" value="<?php echo $clipboard_files; ?>" />
431
+ <input type="hidden" name="clipboard_src" value="<?php echo $clipboard_src; ?>" />
432
+ <input type="hidden" name="clipboard_dest" value="<?php echo $clipboard_dest; ?>" />
433
  </form>
434
  <?php
435
  die();
framework/WDW_S_Library.php CHANGED
@@ -201,6 +201,9 @@ class WDW_S_Library {
201
  if (document.getElementById("search_value")) {
202
  document.getElementById("search_value").value = "";
203
  }
 
 
 
204
  document.getElementById("<?php echo $form_id; ?>").submit();
205
  }
206
  </script>
201
  if (document.getElementById("search_value")) {
202
  document.getElementById("search_value").value = "";
203
  }
204
+ if (document.getElementById("category_id")) {
205
+ document.getElementById("category_id").value = -1;
206
+ }
207
  document.getElementById("<?php echo $form_id; ?>").submit();
208
  }
209
  </script>
frontend/views/WDSViewSlider.php CHANGED
@@ -181,6 +181,7 @@ class WDSViewSlider {
181
  font-size: <?php echo $media_bull_size; ?>px;
182
  width: <?php echo $media_bull_size; ?>px;
183
  margin: <?php echo $media_bull_margin; ?>px;
 
184
  }
185
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_pp_btn_cont {
186
  font-size: <?php echo $media_pp_butt_size; ?>px;
@@ -243,6 +244,68 @@ class WDSViewSlider {
243
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?> {
244
  left: <?php echo $navigation; ?>px;
245
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?> {
247
  opacity: <?php echo $pp_btn_opacity; ?>;
248
  filter: "Alpha(opacity=<?php echo $pp_btn_opacity * 100; ?>)";
@@ -252,7 +315,7 @@ class WDSViewSlider {
252
  color: #<?php echo $slider_row->hover_color; ?>;
253
  cursor: pointer;
254
  }
255
-
256
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_none_selectable_<?php echo $wds; ?> {
257
  -webkit-touch-callout: none;
258
  -webkit-user-select: none;
@@ -338,8 +401,38 @@ class WDSViewSlider {
338
  color: #<?php echo $slider_row->bull_act_color; ?>;
339
  opacity: 1;
340
  filter: Alpha(opacity=100);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  }
342
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_dots_deactive_<?php echo $wds; ?> {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  }
344
 
345
  /* Timer.*/
@@ -421,7 +514,7 @@ class WDSViewSlider {
421
  }
422
  ?>
423
  </script>
424
- <div id="wds_container1_<?php echo $wds; ?>" <?php echo ($enable_slideshow_autoplay && $slider_row->stop_animation) ? 'onmouseover="wds_stop_animation_' . $wds . '();" onmouseout="wds_play_animation_' . $wds . '()"' : ''; ?>>
425
  <div class="wds_loading">
426
  <img src="<?php echo WD_S_URL . '/images/ajax_loader.png'; ?>" class="wds_loading_img" style="float: none; width:50px;" />
427
  </div>
@@ -438,11 +531,24 @@ class WDSViewSlider {
438
  <div class="wds_slideshow_dots_thumbnails_<?php echo $wds; ?>">
439
  <?php
440
  foreach ($slide_rows as $key => $slide_row) {
441
- ?>
 
442
  <i id="wds_dots_<?php echo $key; ?>_<?php echo $wds; ?>"
443
  class="wds_slideshow_dots_<?php echo $wds; ?> fa <?php echo (($slide_row->id == $current_image_id) ? $bull_style_active . ' wds_slideshow_dots_active_' . $wds : $bull_style_deactive . ' wds_slideshow_dots_deactive_' . $wds); ?>"
444
- onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), '<?php echo $key; ?>', wds_data_<?php echo $wds; ?>)" image_id="<?php echo $slide_row->id; ?>" image_key="<?php echo $key; ?>"></i>
445
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
446
  }
447
  ?>
448
  </div>
@@ -483,7 +589,7 @@ class WDSViewSlider {
483
  <?php
484
  if (!$is_video) {
485
  ?>
486
- <div id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
487
  class="wds_slideshow_image_<?php echo $wds; ?>"
488
  onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
489
  style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
@@ -491,7 +597,7 @@ class WDSViewSlider {
491
  }
492
  else {
493
  ?>
494
- <div id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>" class="wds_slideshow_video_<?php echo $wds; ?>" image_id="<?php echo $slide_row->id; ?>">
495
  <iframe class="wds_video_frame_<?php echo $wds; ?>" src="<?php echo ($slide_row->type == "YOUTUBE" ? "//www.youtube.com/embed/" . $slide_row->image_url . "?enablejsapi=1&wmode=transparent" : "//player.vimeo.com/video/" . $slide_row->image_url . "?api=1"); ?>" frameborder="0" allowfullscreen style="width:100%; height:100%;"></iframe>
496
  <?php
497
  }
@@ -565,7 +671,13 @@ class WDSViewSlider {
565
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: left;">
566
  <span class="wds_left_btn_cont">
567
  <span class="wds_left-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>); return false;">
568
- <i class="fa <?php echo $slider_row->rl_butt_style; ?>-left"></i>
 
 
 
 
 
 
569
  </span>
570
  </span>
571
  </span>
@@ -576,7 +688,13 @@ class WDSViewSlider {
576
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: right;">
577
  <span class="wds_right_btn_cont">
578
  <span class="wds_right-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>); return false;">
579
- <i class="fa <?php echo $slider_row->rl_butt_style; ?>-right"></i>
 
 
 
 
 
 
580
  </span>
581
  </span>
582
  </span>
@@ -668,8 +786,10 @@ class WDSViewSlider {
668
  function wds_set_dots_class_<?php echo $wds; ?>() {
669
  jQuery(".wds_slideshow_dots_<?php echo $wds; ?>").removeClass("wds_slideshow_dots_active_<?php echo $wds; ?>").addClass("wds_slideshow_dots_deactive_<?php echo $wds; ?>");
670
  jQuery("#wds_dots_" + wds_current_key_<?php echo $wds; ?> + "_<?php echo $wds; ?>").removeClass("wds_slideshow_dots_deactive_<?php echo $wds; ?>").addClass("wds_slideshow_dots_active_<?php echo $wds; ?>");
 
671
  jQuery(".wds_slideshow_dots_<?php echo $wds; ?>").removeClass("<?php echo $bull_style_active; ?>").addClass("<?php echo $bull_style_deactive; ?>");
672
  jQuery("#wds_dots_" + wds_current_key_<?php echo $wds; ?> + "_<?php echo $wds; ?>").removeClass("<?php echo $bull_style_deactive; ?>").addClass("<?php echo $bull_style_active; ?>");
 
673
  }
674
  function wds_grid_<?php echo $wds; ?>(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction, random, roy, easing) {
675
  /* If browser does not support CSS transitions.*/
@@ -877,9 +997,9 @@ class WDSViewSlider {
877
  jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
878
  });
879
  if (wds_data_<?php echo $wds; ?>[key]) {
880
- /*if (jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause') || ('<?php echo $autoplay; ?>')) {
881
  play_<?php echo $wds; ?>();
882
- }*/
883
  if (!from_effect) {
884
  /* Change image key.*/
885
  jQuery("#wds_current_image_key_<?php echo $wds; ?>").val(key);
@@ -904,8 +1024,8 @@ class WDSViewSlider {
904
  /* Set active thumbnail position.*/
905
  wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
906
  wds_current_key_<?php echo $wds; ?> = key;
907
- /* Change image id, title, description.*/
908
- jQuery("#wds_slideshow_image_<?php echo $wds; ?>").attr('image_id', wds_data_<?php echo $wds; ?>[key]["id"]);
909
  var current_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[current_key]["id"];
910
  var next_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
911
  <?php if ($slider_row->preload_images) { ?>
@@ -915,7 +1035,7 @@ class WDSViewSlider {
915
  <?php } ?>
916
  var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
917
  var next_slide_layers_count = wds_data_<?php echo $wds; ?>[key]["slide_layers_count"];
918
-
919
  /* Clear layers before image change.*/
920
  function set_layer_effect_out_before_change(m) {
921
  wds_clear_layers_effects_out_before_change_<?php echo $wds; ?>[current_key][m] = setTimeout(function() {
@@ -981,9 +1101,11 @@ class WDSViewSlider {
981
  for (var j = 0; j < next_slide_layers_count; j++) {
982
  set_layer_effect_in(j);
983
  }
984
- /* Loop through layers out.*/
985
- for (var i = 0; i < next_slide_layers_count; i++) {
986
- set_layer_effect_out(i);
 
 
987
  }
988
  setTimeout(function() {
989
  if (typeof jQuery().finish !== 'undefined') {
@@ -993,9 +1115,7 @@ class WDSViewSlider {
993
  }
994
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
995
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
996
- <?php
997
- if ($enable_slideshow_autoplay && !$slider_row->stop_animation) {
998
- ?>
999
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1000
  jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1001
  width: "100%"
@@ -1004,8 +1124,8 @@ class WDSViewSlider {
1004
  specialEasing: {width: "linear"}
1005
  });
1006
  }
1007
- <?php
1008
  }
 
1009
  if ($bull_position != 'none' && $slides_count > 1) {
1010
  ?>
1011
  wds_move_dots_<?php echo $wds; ?>();
@@ -1128,6 +1248,26 @@ class WDSViewSlider {
1128
  });
1129
  }
1130
  jQuery(window).load(function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1131
  jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
1132
  jQuery(this).attr("wds_fpaddingl", jQuery(this).css("paddingLeft"));
1133
  jQuery(this).attr("wds_fpaddingr", jQuery(this).css("paddingRight"));
@@ -1190,15 +1330,24 @@ class WDSViewSlider {
1190
  jQuery("#wds_slideshow_play_pause_<?php echo $wds; ?>").on(wds_click, function () {
1191
  if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1192
  /* Play.*/
1193
- play_<?php echo $wds; ?>();
1194
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
1195
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
 
1196
  if (<?php echo $enable_slideshow_music ?>) {
1197
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1198
  }
1199
  }
1200
  else {
1201
  /* Pause.*/
 
 
 
 
 
 
 
 
 
1202
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1203
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Play', 'bwg'); ?>");
1204
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-play");
@@ -1242,9 +1391,15 @@ class WDSViewSlider {
1242
  }
1243
  });
1244
  function wds_stop_animation_<?php echo $wds; ?>() {
1245
- window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1246
- jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Play', 'bwg'); ?>");
1247
- jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-play");
 
 
 
 
 
 
1248
  if (<?php echo $enable_slideshow_music ?>) {
1249
  document.getElementById("wds_audio_<?php echo $wds; ?>").pause();
1250
  }
@@ -1255,9 +1410,10 @@ class WDSViewSlider {
1255
  }
1256
  }
1257
  function wds_play_animation_<?php echo $wds; ?>() {
 
 
 
1258
  play_<?php echo $wds; ?>();
1259
- jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
1260
- jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
1261
  if (<?php echo $enable_slideshow_music ?>) {
1262
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1263
  }
@@ -1291,18 +1447,14 @@ class WDSViewSlider {
1291
  }, wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_end"]);
1292
  }
1293
  function play_<?php echo $wds; ?>() {
1294
- <?php
1295
- if ($enable_slideshow_autoplay) {
1296
- ?>
1297
  jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1298
  width: "100%"
1299
  }, {
1300
  duration: <?php echo $slideshow_interval * 1000; ?>,
1301
  specialEasing: {width: "linear"}
1302
  });
1303
- <?php
1304
  }
1305
- ?>
1306
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1307
  /* Play.*/
1308
  wds_playInterval_<?php echo $wds; ?> = setInterval(function () {
181
  font-size: <?php echo $media_bull_size; ?>px;
182
  width: <?php echo $media_bull_size; ?>px;
183
  margin: <?php echo $media_bull_margin; ?>px;
184
+ height: <?php echo $media_bull_size; ?>px;
185
  }
186
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_pp_btn_cont {
187
  font-size: <?php echo $media_pp_butt_size; ?>px;
244
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?> {
245
  left: <?php echo $navigation; ?>px;
246
  }
247
+ <?php
248
+ if ($slider_row->rl_butt_img_or_not != 'style') {
249
+ ?>
250
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_left-ico_<?php echo $wds; ?> {
251
+ left: -<?php echo $navigation; ?>px;
252
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->left_butt_url, ENT_QUOTES)); ?>');
253
+ background-position: center center;
254
+ background-repeat: no-repeat;
255
+ background-size: cover;
256
+ transition: background-image 0.2s ease-out;
257
+ -ms-transition: background-image 0.2s ease-out;
258
+ -moz-transition: background-image 0.2s ease-out;
259
+ -webkit-transition: background-image 0.2s ease-out;
260
+ }
261
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_left-ico_<?php echo $wds; ?>:before {
262
+ content: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->left_butt_hov_url, ENT_QUOTES)); ?>');
263
+ width: 0;
264
+ height: 0;
265
+ visibility: hidden;
266
+ }
267
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_left-ico_<?php echo $wds; ?>:hover {
268
+ left: -<?php echo $navigation; ?>px;
269
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->left_butt_hov_url, ENT_QUOTES)); ?>');
270
+ background-position: center center;
271
+ background-repeat: no-repeat;
272
+ background-size: cover;
273
+ transition: background-image 0.2s ease-in;
274
+ -ms-transition: background-image 0.2s ease-in;
275
+ -moz-transition: background-image 0.2s ease-in;
276
+ -webkit-transition: background-image 0.2s ease-in;
277
+ }
278
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?> {
279
+ left: <?php echo $navigation; ?>px;
280
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->right_butt_url, ENT_QUOTES)); ?>');
281
+ background-position: center center;
282
+ background-repeat: no-repeat;
283
+ background-size: cover;
284
+ transition: background-image 0.2s ease-out;
285
+ -ms-transition: background-image 0.2s ease-out;
286
+ -moz-transition: background-image 0.2s ease-out;
287
+ -webkit-transition: background-image 0.2s ease-out;
288
+ }
289
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?>:before {
290
+ content: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->right_butt_hov_url, ENT_QUOTES)); ?>');
291
+ width: 0;
292
+ height: 0;
293
+ visibility: hidden;
294
+ }
295
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?>:hover {
296
+ left: <?php echo $navigation; ?>px;
297
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->right_butt_hov_url, ENT_QUOTES)); ?>');
298
+ background-position: center center;
299
+ background-repeat: no-repeat;
300
+ background-size: cover;
301
+ transition: background-image 0.2s ease-in;
302
+ -ms-transition: background-image 0.2s ease-in;
303
+ -moz-transition: background-image 0.2s ease-in;
304
+ -webkit-transition: background-image 0.2s ease-in;
305
+ }
306
+ <?php
307
+ }
308
+ ?>
309
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?> {
310
  opacity: <?php echo $pp_btn_opacity; ?>;
311
  filter: "Alpha(opacity=<?php echo $pp_btn_opacity * 100; ?>)";
315
  color: #<?php echo $slider_row->hover_color; ?>;
316
  cursor: pointer;
317
  }
318
+
319
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_none_selectable_<?php echo $wds; ?> {
320
  -webkit-touch-callout: none;
321
  -webkit-user-select: none;
401
  color: #<?php echo $slider_row->bull_act_color; ?>;
402
  opacity: 1;
403
  filter: Alpha(opacity=100);
404
+ <?php
405
+ if ($slider_row->bull_butt_img_or_not != 'style') {
406
+ ?>
407
+ display: inline-block;
408
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->bullets_img_main_url, ENT_QUOTES)); ?>');
409
+ background-position: center center;
410
+ background-repeat: no-repeat;
411
+ background-size: cover;
412
+ transition: background-image 0.2s ease-in;
413
+ -ms-transition: background-image 0.2s ease-in;
414
+ -moz-transition: background-image 0.2s ease-in;
415
+ -webkit-transition: background-image 0.2s ease-in;
416
+ <?php
417
+ }
418
+ ?>
419
  }
420
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_dots_deactive_<?php echo $wds; ?> {
421
+ <?php
422
+ if ($slider_row->bull_butt_img_or_not != 'style') {
423
+ ?>
424
+ display: inline-block;
425
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->bullets_img_hov_url, ENT_QUOTES)); ?>');
426
+ background-position: center center;
427
+ background-repeat: no-repeat;
428
+ background-size: cover;
429
+ transition: background-image 0.2s ease-in;
430
+ -ms-transition: background-image 0.2s ease-in;
431
+ -moz-transition: background-image 0.2s ease-in;
432
+ -webkit-transition: background-image 0.2s ease-in;
433
+ <?php
434
+ }
435
+ ?>
436
  }
437
 
438
  /* Timer.*/
514
  }
515
  ?>
516
  </script>
517
+ <div id="wds_container1_<?php echo $wds; ?>">
518
  <div class="wds_loading">
519
  <img src="<?php echo WD_S_URL . '/images/ajax_loader.png'; ?>" class="wds_loading_img" style="float: none; width:50px;" />
520
  </div>
531
  <div class="wds_slideshow_dots_thumbnails_<?php echo $wds; ?>">
532
  <?php
533
  foreach ($slide_rows as $key => $slide_row) {
534
+ if ($slider_row->bull_butt_img_or_not == 'style') {
535
+ ?>
536
  <i id="wds_dots_<?php echo $key; ?>_<?php echo $wds; ?>"
537
  class="wds_slideshow_dots_<?php echo $wds; ?> fa <?php echo (($slide_row->id == $current_image_id) ? $bull_style_active . ' wds_slideshow_dots_active_' . $wds : $bull_style_deactive . ' wds_slideshow_dots_deactive_' . $wds); ?>"
538
+ onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), '<?php echo $key; ?>', wds_data_<?php echo $wds; ?>)" image_id="<?php echo $slide_row->id; ?>"
539
+ image_key="<?php echo $key; ?>">
540
+ </i>
541
+ <?php
542
+ }
543
+ else {
544
+ ?>
545
+ <span id="wds_dots_<?php echo $key; ?>_<?php echo $wds; ?>"
546
+ class="wds_slideshow_dots_<?php echo $wds; ?> <?php echo (($slide_row->id == $current_image_id) ? ' wds_slideshow_dots_active_' . $wds : ' wds_slideshow_dots_deactive_' . $wds); ?>"
547
+ onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), '<?php echo $key; ?>', wds_data_<?php echo $wds; ?>)"
548
+ image_id="<?php echo $slide_row->id; ?>" image_key="<?php echo $key; ?>">
549
+ </span>
550
+ <?php
551
+ }
552
  }
553
  ?>
554
  </div>
589
  <?php
590
  if (!$is_video) {
591
  ?>
592
+ <div img_id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
593
  class="wds_slideshow_image_<?php echo $wds; ?>"
594
  onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
595
  style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
597
  }
598
  else {
599
  ?>
600
+ <div img_id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>" class="wds_slideshow_video_<?php echo $wds; ?>" image_id="<?php echo $slide_row->id; ?>">
601
  <iframe class="wds_video_frame_<?php echo $wds; ?>" src="<?php echo ($slide_row->type == "YOUTUBE" ? "//www.youtube.com/embed/" . $slide_row->image_url . "?enablejsapi=1&wmode=transparent" : "//player.vimeo.com/video/" . $slide_row->image_url . "?api=1"); ?>" frameborder="0" allowfullscreen style="width:100%; height:100%;"></iframe>
602
  <?php
603
  }
671
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: left;">
672
  <span class="wds_left_btn_cont">
673
  <span class="wds_left-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>); return false;">
674
+ <?php
675
+ if ($slider_row->rl_butt_img_or_not == 'style') {
676
+ ?>
677
+ <i class="fa <?php echo $slider_row->rl_butt_style; ?>-left"></i>
678
+ <?php
679
+ }
680
+ ?>
681
  </span>
682
  </span>
683
  </span>
688
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: right;">
689
  <span class="wds_right_btn_cont">
690
  <span class="wds_right-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>); return false;">
691
+ <?php
692
+ if ($slider_row->rl_butt_img_or_not == 'style') {
693
+ ?>
694
+ <i class="fa <?php echo $slider_row->rl_butt_style; ?>-right"></i>
695
+ <?php
696
+ }
697
+ ?>
698
  </span>
699
  </span>
700
  </span>
786
  function wds_set_dots_class_<?php echo $wds; ?>() {
787
  jQuery(".wds_slideshow_dots_<?php echo $wds; ?>").removeClass("wds_slideshow_dots_active_<?php echo $wds; ?>").addClass("wds_slideshow_dots_deactive_<?php echo $wds; ?>");
788
  jQuery("#wds_dots_" + wds_current_key_<?php echo $wds; ?> + "_<?php echo $wds; ?>").removeClass("wds_slideshow_dots_deactive_<?php echo $wds; ?>").addClass("wds_slideshow_dots_active_<?php echo $wds; ?>");
789
+ <?php if ($slider_row->bull_butt_img_or_not == 'style') { ?>
790
  jQuery(".wds_slideshow_dots_<?php echo $wds; ?>").removeClass("<?php echo $bull_style_active; ?>").addClass("<?php echo $bull_style_deactive; ?>");
791
  jQuery("#wds_dots_" + wds_current_key_<?php echo $wds; ?> + "_<?php echo $wds; ?>").removeClass("<?php echo $bull_style_deactive; ?>").addClass("<?php echo $bull_style_active; ?>");
792
+ <?php } ?>
793
  }
794
  function wds_grid_<?php echo $wds; ?>(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction, random, roy, easing) {
795
  /* If browser does not support CSS transitions.*/
997
  jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
998
  });
999
  if (wds_data_<?php echo $wds; ?>[key]) {
1000
+ if (jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause') || ('<?php echo $autoplay; ?>')) {
1001
  play_<?php echo $wds; ?>();
1002
+ }
1003
  if (!from_effect) {
1004
  /* Change image key.*/
1005
  jQuery("#wds_current_image_key_<?php echo $wds; ?>").val(key);
1024
  /* Set active thumbnail position.*/
1025
  wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
1026
  wds_current_key_<?php echo $wds; ?> = key;
1027
+ /* Change image id.*/
1028
+ jQuery("div[img_id=wds_slideshow_image_<?php echo $wds; ?>]").attr('image_id', wds_data_<?php echo $wds; ?>[key]["id"]);
1029
  var current_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[current_key]["id"];
1030
  var next_image_class = "#image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
1031
  <?php if ($slider_row->preload_images) { ?>
1035
  <?php } ?>
1036
  var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
1037
  var next_slide_layers_count = wds_data_<?php echo $wds; ?>[key]["slide_layers_count"];
1038
+
1039
  /* Clear layers before image change.*/
1040
  function set_layer_effect_out_before_change(m) {
1041
  wds_clear_layers_effects_out_before_change_<?php echo $wds; ?>[current_key][m] = setTimeout(function() {
1101
  for (var j = 0; j < next_slide_layers_count; j++) {
1102
  set_layer_effect_in(j);
1103
  }
1104
+ /* Loop through layers out if pause button not pressed.*/
1105
+ if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-pause")) {
1106
+ for (var i = 0; i < next_slide_layers_count; i++) {
1107
+ set_layer_effect_out(i);
1108
+ }
1109
  }
1110
  setTimeout(function() {
1111
  if (typeof jQuery().finish !== 'undefined') {
1115
  }
1116
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
1117
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
1118
+ if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
 
 
1119
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1120
  jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1121
  width: "100%"
1124
  specialEasing: {width: "linear"}
1125
  });
1126
  }
 
1127
  }
1128
+ <?php
1129
  if ($bull_position != 'none' && $slides_count > 1) {
1130
  ?>
1131
  wds_move_dots_<?php echo $wds; ?>();
1248
  });
1249
  }
1250
  jQuery(window).load(function () {
1251
+ <?php if ($enable_slideshow_autoplay && $slider_row->stop_animation) {
1252
+ ?>
1253
+ jQuery("#wds_container1_<?php echo $wds; ?>").mouseover(function(e) {
1254
+ wds_stop_animation_<?php echo $wds; ?>();
1255
+ });
1256
+ jQuery("#wds_container1_<?php echo $wds; ?>").mouseout(function(e) {
1257
+ if (!e) {
1258
+ var e = window.event;
1259
+ }
1260
+ var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
1261
+ while (reltg.tagName != 'BODY') {
1262
+ if (reltg.id == this.id){
1263
+ return;
1264
+ }
1265
+ reltg = reltg.parentNode;
1266
+ }
1267
+ wds_play_animation_<?php echo $wds; ?>();
1268
+ });
1269
+ <?php
1270
+ } ?>
1271
  jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
1272
  jQuery(this).attr("wds_fpaddingl", jQuery(this).css("paddingLeft"));
1273
  jQuery(this).attr("wds_fpaddingr", jQuery(this).css("paddingRight"));
1330
  jQuery("#wds_slideshow_play_pause_<?php echo $wds; ?>").on(wds_click, function () {
1331
  if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1332
  /* Play.*/
 
1333
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
1334
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
1335
+ play_<?php echo $wds; ?>();
1336
  if (<?php echo $enable_slideshow_music ?>) {
1337
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1338
  }
1339
  }
1340
  else {
1341
  /* Pause.*/
1342
+ /* Pause layers out effect.*/
1343
+ var current_key = jQuery('#wds_current_image_key_<?php echo $wds; ?>').val();
1344
+ var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
1345
+ setTimeout(function() {
1346
+ for (var k = 0; k < current_slide_layers_count; k++) {
1347
+ clearTimeout(wds_clear_layers_effects_out_<?php echo $wds; ?>[current_key][k]);
1348
+ }
1349
+ }, wds_duration_for_clear_effects_<?php echo $wds; ?>);
1350
+
1351
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1352
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Play', 'bwg'); ?>");
1353
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-play");
1391
  }
1392
  });
1393
  function wds_stop_animation_<?php echo $wds; ?>() {
1394
+ window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1395
+ /* Pause layers out effect.*/
1396
+ var current_key = jQuery('#wds_current_image_key_<?php echo $wds; ?>').val();
1397
+ var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
1398
+ setTimeout(function() {
1399
+ for (var k = 0; k < current_slide_layers_count; k++) {
1400
+ clearTimeout(wds_clear_layers_effects_out_<?php echo $wds; ?>[current_key][k]);
1401
+ }
1402
+ }, wds_duration_for_clear_effects_<?php echo $wds; ?>);
1403
  if (<?php echo $enable_slideshow_music ?>) {
1404
  document.getElementById("wds_audio_<?php echo $wds; ?>").pause();
1405
  }
1410
  }
1411
  }
1412
  function wds_play_animation_<?php echo $wds; ?>() {
1413
+ if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1414
+ return;
1415
+ }
1416
  play_<?php echo $wds; ?>();
 
 
1417
  if (<?php echo $enable_slideshow_music ?>) {
1418
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1419
  }
1447
  }, wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_end"]);
1448
  }
1449
  function play_<?php echo $wds; ?>() {
1450
+ if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
 
 
1451
  jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1452
  width: "100%"
1453
  }, {
1454
  duration: <?php echo $slideshow_interval * 1000; ?>,
1455
  specialEasing: {width: "linear"}
1456
  });
 
1457
  }
 
1458
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1459
  /* Play.*/
1460
  wds_playInterval_<?php echo $wds; ?> = setInterval(function () {
images/arrow/arrow1/1/1.png ADDED
Binary file
images/arrow/arrow1/1/2.png ADDED
Binary file
images/arrow/arrow1/1/3.png ADDED
Binary file
images/arrow/arrow1/1/4.png ADDED
Binary file
images/arrow/arrow10/1/1.png ADDED
Binary file
images/arrow/arrow10/1/2.png ADDED
Binary file
images/arrow/arrow10/1/3.png ADDED
Binary file
images/arrow/arrow10/1/4.png ADDED
Binary file
images/arrow/arrow11/1/1.png ADDED
Binary file
images/arrow/arrow11/1/2.png ADDED
Binary file
images/arrow/arrow11/1/3.png ADDED
Binary file
images/arrow/arrow11/1/4.png ADDED
Binary file
images/arrow/arrow12/1/1.png ADDED
Binary file
images/arrow/arrow12/1/2.png ADDED
Binary file
images/arrow/arrow12/1/3.png ADDED
Binary file
images/arrow/arrow12/1/4.png ADDED
Binary file
images/arrow/arrow13/1/1.png ADDED
Binary file
images/arrow/arrow13/1/2.png ADDED
Binary file
images/arrow/arrow13/1/3.png ADDED
Binary file
images/arrow/arrow13/1/4.png ADDED
Binary file
images/arrow/arrow14/1/1.png ADDED
Binary file
images/arrow/arrow14/1/2.png ADDED
Binary file
images/arrow/arrow14/1/3.png ADDED
Binary file
images/arrow/arrow14/1/4.png ADDED
Binary file
images/arrow/arrow2/1/1.png ADDED
Binary file
images/arrow/arrow2/1/2.png ADDED
Binary file
images/arrow/arrow2/1/3.png ADDED
Binary file
images/arrow/arrow2/1/4.png ADDED
Binary file
images/arrow/arrow3/1/1.png ADDED
Binary file
images/arrow/arrow3/1/2.png ADDED
Binary file
images/arrow/arrow3/1/3.png ADDED
Binary file
images/arrow/arrow3/1/4.png ADDED
Binary file
images/arrow/arrow4/1/1.png ADDED
Binary file
images/arrow/arrow4/1/2.png ADDED
Binary file
images/arrow/arrow4/1/3.png ADDED
Binary file
images/arrow/arrow4/1/4.png ADDED
Binary file
images/arrow/arrow5/1/1.png ADDED
Binary file
images/arrow/arrow5/1/2.png ADDED
Binary file
images/arrow/arrow5/1/3.png ADDED
Binary file
images/arrow/arrow5/1/4.png ADDED
Binary file
images/arrow/arrow6/1/1.png ADDED
Binary file
images/arrow/arrow6/1/2.png ADDED
Binary file
images/arrow/arrow6/1/3.png ADDED
Binary file
images/arrow/arrow6/1/4.png ADDED
Binary file
images/arrow/arrow7/1/1.png ADDED
Binary file
images/arrow/arrow7/1/2.png ADDED
Binary file
images/arrow/arrow7/1/3.png ADDED
Binary file
images/arrow/arrow7/1/4.png ADDED
Binary file
images/arrow/arrow8/1/1.png ADDED
Binary file
images/arrow/arrow8/1/2.png ADDED
Binary file
images/arrow/arrow8/1/3.png ADDED
Binary file
images/arrow/arrow8/1/4.png ADDED
Binary file
images/arrow/arrow9/1/1.png ADDED
Binary file
images/arrow/arrow9/1/2.png ADDED
Binary file
images/arrow/arrow9/1/3.png ADDED
Binary file
images/arrow/arrow9/1/4.png ADDED
Binary file
images/bullet/bullet1/1/1.png ADDED
Binary file
images/bullet/bullet1/1/2.png ADDED
Binary file
images/bullet/bullet2/1/1.png ADDED
Binary file
images/bullet/bullet2/1/2.png ADDED
Binary file
images/bullet/bullet3/1/1.png ADDED
Binary file
images/bullet/bullet3/1/2.png ADDED
Binary file
images/bullet/bullet4/1/1.png ADDED
Binary file
images/bullet/bullet4/1/2.png ADDED
Binary file
images/bullet/bullet5/1/1.png ADDED
Binary file
images/bullet/bullet5/1/2.png ADDED
Binary file
images/bullet/bullet6/1/1.png ADDED
Binary file
images/bullet/bullet6/1/2.png ADDED
Binary file
js/jquery.mobile.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! jQuery Mobile v1.3.2 | Copyright 2010, 2013 jQuery Foundation, Inc. | jquery.org/license */
2
+ (function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function x(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function T(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=x(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;d<v;d++)l=u[d],t[l]=h[l]}return t}function N(t){var n={},r,s;while(t){r=e.data(t,i);for(s in r)r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function C(t,n){var r;while(t){r=e.data(t,i);if(r&&(!n||r[n]))return t;t=t.parentNode}return null}function k(){g=!1}function L(){g=!0}function A(){E=0,v.length=0,m=!1,L()}function O(){k()}function M(){_(),c=setTimeout(function(){c=0,A()},e.vmouse.resetTimerDuration)}function _(){c&&(clearTimeout(c),c=0)}function D(t,n,r){var i;if(r&&r[t]||!r&&C(n.target,t))i=T(n,t),e(n.target).trigger(i);return i}function P(t){var n=e.data(t.target,s);if(!m&&(!E||E!==n)){var r=D("v"+t.type,t);r&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation())}}function H(t){var n=x(t).touches,r,i;if(n&&n.length===1){r=t.target,i=N(r);if(i.hasVirtualBinding){E=w++,e.data(r,s,E),_(),O(),d=!1;var o=x(t).touches[0];h=o.pageX,p=o.pageY,D("vmouseover",t,i),D("vmousedown",t,i)}}}function B(e){if(g)return;d||D("vmousecancel",e,N(e.target)),d=!0,M()}function j(t){if(g)return;var n=x(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=N(t.target);d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i,d&&!r&&D("vmousecancel",t,s),D("vmousemove",t,s),M()}function F(e){if(g)return;L();var t=N(e.target),n;D("vmouseup",e,t);if(!d){var r=D("vclick",e,t);r&&r.isDefaultPrevented()&&(n=x(e).changedTouches[0],v.push({touchID:E,x:n.clientX,y:n.clientY}),m=!0)}D("vmouseout",e,t),d=!1,M()}function I(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function q(){}function R(t){var n=t.substr(1);return{setup:function(r,s){I(this)||e.data(this,i,{});var o=e.data(this,i);o[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.bind(n,P),e(this).bind(n,q),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.bind("touchstart",H).bind("touchend",F).bind("touchmove",j).bind("scroll",B))},teardown:function(r,s){--l[t],l[t]||b.unbind(n,P),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",H).unbind("touchmove",j).unbind("touchend",F).unbind("scroll",B));var o=e(this),u=e.data(this,i);u&&(u[t]=!1),o.unbind(n,q),I(this)||o.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=e.event.props.concat(a),l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var U=0;U<o.length;U++)e.event.special[o[U]]=R(o[U]);y&&n.addEventListener("click",function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n){i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;while(u){for(a=0;a<n;a++){f=v[a],l=0;if(u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID){t.preventDefault(),t.stopPropagation();return}}u=u.parentNode}}},!0)})(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,r){var i=r.type;r.type=n,e.event.dispatch.call(t,r),r.type=i}var i=e(n);e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)});var s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){r=n,l(t,r?"scrollstart":"scrollstop",e)}var t=this,n=e(t),r,i;n.bind(o,function(t){if(!e.event.special.scrollstart.enabled)return;r||s(t,!0),clearTimeout(i),i=setTimeout(function(){s(t,!1)},50)})}},e.event.special.tap={tapholdThreshold:750,setup:function(){var t=this,n=e(t);n.bind("vmousedown",function(r){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),s===e.target&&l(t,"tap",e)}if(r.which&&r.which!==1)return!1;var s=r.target,o=r.originalEvent,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout(function(){l(t,"taphold",e.Event("taphold",{target:s}))},e.event.special.tap.tapholdThreshold)})}},e.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1000,horizontalDistanceThreshold:10,verticalDistanceThreshold:475,start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t;return{time:(new Date).getTime(),coords:[n.pageX,n.pageY],origin:e(t.target)}},stop:function(e){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY]}},handleSwipe:function(t,n){n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold&&t.origin.trigger("swipe").trigger(t.coords[0]>n.coords[0]?"swipeleft":"swiperight")},setup:function(){var t=this,n=e(t);n.bind(u,function(t){function o(t){if(!i)return;s=e.event.special.swipe.stop(t),Math.abs(i.coords[0]-s.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}var i=e.event.special.swipe.start(t),s;n.bind(f,o).one(a,function(){n.unbind(f,o),i&&s&&e.event.special.swipe.handleSwipe(i,s),i=s=r})})}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)}}})}(e,this)});
js/wds.js CHANGED
@@ -41,7 +41,12 @@ function spider_ajax_save(form_id, event) {
41
  post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
42
  post_data["play_paus_butt"] = jQuery("input[name=play_paus_butt]:checked").val();
43
  post_data["navigation"] = jQuery("input[name=navigation]:checked").val();
 
44
  post_data["rl_butt_style"] = jQuery("#rl_butt_style").val();
 
 
 
 
45
  post_data["rl_butt_size"] = jQuery("#rl_butt_size").val();
46
  post_data["pp_butt_size"] = jQuery("#pp_butt_size").val();
47
  post_data["butts_color"] = jQuery("#butts_color").val();
@@ -57,6 +62,9 @@ function spider_ajax_save(form_id, event) {
57
  post_data["enable_bullets"] = jQuery("input[name=enable_bullets]:checked").val();
58
  post_data["bull_position"] = jQuery("#bull_position").val();
59
  post_data["bull_style"] = jQuery("#bull_style").val();
 
 
 
60
  post_data["bull_size"] = jQuery("#bull_size").val();
61
  post_data["bull_color"] = jQuery("#bull_color").val();
62
  post_data["bull_act_color"] = jQuery("#bull_act_color").val();
@@ -287,6 +295,10 @@ function wds_success(form_id, end) {
287
 
288
 
289
  function wds_onload() {
 
 
 
 
290
  jQuery(".wds_tabs").show();
291
  var nav_tab = jQuery("#nav_tab").val();
292
  wds_change_nav(jQuery(".wds_nav_tabs li[tab_type='" + nav_tab + "']"), 'wds_nav_' + nav_tab + '_box');
@@ -301,6 +313,50 @@ function wds_onload() {
301
  else {
302
  bwg_enable_disable('none', 'tr_music_url', 'music0');
303
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  }
305
 
306
  function spider_select_value(obj) {
@@ -468,6 +524,7 @@ function spider_check_all_items() {
468
  jQuery('#check_all').trigger('click');
469
  // }
470
  }
 
471
  function spider_check_all_items_checkbox() {
472
  if (jQuery('#check_all_items').attr('checked')) {
473
  jQuery('#check_all_items').attr('checked', false);
@@ -560,24 +617,15 @@ function spider_uploader(button_id, input_id, delete_id, img_id) {
560
  }
561
 
562
  // Remove uploaded file.
563
- function spider_remove_url(button_id, input_id, delete_id, img_id) {
564
  if (typeof img_id == 'undefined') {
565
  img_id = '';
566
  }
567
- if (document.getElementById(button_id)) {
568
- // document.getElementById(button_id).style.display = '';
569
- }
570
  if (document.getElementById(input_id)) {
571
  document.getElementById(input_id).value = '';
572
- // document.getElementById(input_id).style.display = 'none';
573
- }
574
- if (document.getElementById(delete_id)) {
575
- // document.getElementById(delete_id).style.display = 'none';
576
  }
577
  if ((img_id != '') && document.getElementById(img_id)) {
578
  document.getElementById(img_id).style.backgroundImage = "url('')";
579
- // document.getElementById(img_id).src = '';
580
- // document.getElementById(img_id).style.display = 'none';
581
  }
582
  }
583
 
@@ -653,35 +701,6 @@ function spider_get_items(e) {
653
  window.parent.bwg_add_items(trackIds, titles, types);
654
  }
655
 
656
- function bwg_check_checkboxes() {
657
- var flag = false;
658
- var ids_string = jQuery("#ids_string").val();
659
- ids_array = ids_string.split(",");
660
- for (var i in ids_array) {
661
- if (ids_array.hasOwnProperty(i) && ids_array[i]) {
662
- if (jQuery("#check_" + ids_array[i]).attr('checked') == 'checked') {
663
- flag = true;
664
- }
665
- }
666
- }
667
- if(flag) {
668
- if(jQuery(".buttons_div_right").find("a").hasClass( "thickbox" )) {
669
- return true;
670
- }
671
- else {
672
- jQuery(".buttons_div_right").find("a").addClass( "thickbox thickbox-preview" );
673
- jQuery('#draganddrop').hide();
674
- return true;
675
- }
676
- }
677
- else {
678
- jQuery(".buttons_div_right").find("a").removeClass( "thickbox thickbox-preview" );
679
- jQuery('#draganddrop').html("<strong><p>You must select at least one item.</p></strong>");
680
- jQuery('#draganddrop').show();
681
- return false;
682
- }
683
- }
684
-
685
  function preview_built_in_watermark() {
686
  setTimeout(function() {
687
  watermark_type = window.parent.document.getElementById('built_in_watermark_type_text').checked;
@@ -762,6 +781,247 @@ function bwg_enable_disable(display, id, current) {
762
  jQuery("#" + id).css('display', display);
763
  }
764
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
  function bwg_change_album_view_type(type) {
766
  if (type == 'thumbnail') {
767
  jQuery("#album_thumb_dimensions").html('Album thumb dimensions: ');
@@ -845,6 +1105,45 @@ function spider_media_uploader(id, e) {
845
  document.getElementById("music_url").value = music_url;
846
  break;
847
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
848
  default: {
849
  jQuery("#image_url" + id).val(image_url);
850
  jQuery("#thumb_url" + id).val(thumb_url);
@@ -860,22 +1159,29 @@ function spider_media_uploader(id, e) {
860
  custom_uploader.open();
861
  }
862
 
863
- function wds_add_image(files, image_for, slide_id) {
864
  switch (image_for) {
865
  case 'add_slides': {
 
 
 
 
 
 
 
866
  /* Add one or more slides.*/
867
- for (var i in files) {
868
- wds_add_slide();
869
- var slides_count = jQuery(".wbs_subtab a[id^='wbs_subtab']").length;
870
- var new_slide_id = "pr_" + slides_count;
871
- jQuery("#image_url" + new_slide_id).val(files[i]['url']);
872
- jQuery("#thumb_url" + new_slide_id).val(files[i]['thumb_url']);
873
- jQuery("#wds_preview_image" + new_slide_id).css("background-image", 'url("' + files[i]['url'] + '")');
874
- jQuery("#delete_image_url" + new_slide_id).css("display", "inline-block");
875
- jQuery("#wds_preview_image" + new_slide_id).css("display", "inline-block");
876
- jQuery("#type" + new_slide_id).val("image");
877
- jQuery("#trlink" + new_slide_id).show();
878
- }
879
  break;
880
  }
881
  case 'add_layer': {
@@ -883,6 +1189,16 @@ function wds_add_image(files, image_for, slide_id) {
883
  wds_add_layer('image', slide_id, '', '', '', files);
884
  break;
885
  }
 
 
 
 
 
 
 
 
 
 
886
  case 'add_update_slide': {
887
  /* Add or update current slide.*/
888
  var file_resolution = [];
@@ -893,6 +1209,7 @@ function wds_add_image(files, image_for, slide_id) {
893
  jQuery("#wds_preview_image" + slide_id).css("display", "inline-block");
894
  jQuery("#type" + slide_id).val("image");
895
  jQuery("#trlink" + slide_id).show();
 
896
  }
897
  case 'watermark': {
898
  /* Add image for watermark.*/
@@ -900,6 +1217,42 @@ function wds_add_image(files, image_for, slide_id) {
900
  preview_built_in_watermark();
901
  break;
902
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
903
  default: {
904
  break;
905
  }
@@ -1077,7 +1430,7 @@ function wds_duplicate_layer(type, id, layerID) {
1077
  }
1078
 
1079
  var wds_layerID = 0;
1080
- function wds_add_layer(type, id, layerID, event, duplicate, files) {
1081
  var layers_count = jQuery(".wds_slide" + id + " tbody").length;
1082
  wds_layerID = layers_count;
1083
  if (typeof layerID == "undefined" || layerID == "") {
@@ -1087,6 +1440,9 @@ function wds_add_layer(type, id, layerID, event, duplicate, files) {
1087
  if (typeof duplicate == "undefined") {
1088
  var duplicate = 0;
1089
  }
 
 
 
1090
 
1091
  var layer_effects_in_option = "";
1092
  var layer_effects_out_option = "";
@@ -1277,6 +1633,7 @@ function wds_add_layer(type, id, layerID, event, duplicate, files) {
1277
  '<input type="text" name="' + prefix + '_image_width" id="' + prefix + '_image_width" value="" class="spider_int_input" onkeyup="wds_scale(\'#' + prefix + '_image_scale\', \'' + prefix + '\')" /> x ' +
1278
  '<input type="text" name="' + prefix + '_image_height" id="' + prefix + '_image_height" value="" class="spider_int_input" onkeyup="wds_scale(\'#' + prefix + '_image_scale\', \'' + prefix + '\')" /> px ' +
1279
  '<input type="checkbox" name="' + prefix + '_image_scale" id="' + prefix + '_image_scale" onchange="wds_scale(this, \'' + prefix + '\')" /><label for="' + prefix + '_image_scale">Scale</label>' +
 
1280
  '<div class="spider_description">Set width and height of the image.</div></td>';
1281
  var social_button = '<td class="spider_label"><label for="' + prefix + '_social_button">Social button: </label></td>' +
1282
  '<td><select name="' + prefix + '_social_button" id="' + prefix + '_social_button" onchange="jQuery(\'#' + prefix + '\').attr(\'class\', \'wds_draggable fa fa-\' + jQuery(this).val())">' + social_button_option + '</select><div class="spider_description"></div></td>';
@@ -1370,32 +1727,34 @@ function wds_add_layer(type, id, layerID, event, duplicate, files) {
1370
  break;
1371
  }
1372
  case 'image': {
1373
- var tbody_html = tbody +
1374
- '<tr class="wds_layer_tr">' +
1375
- dimensions +
1376
- layer_effect_in +
1377
- '</tr><tr class="wds_layer_tr">' +
1378
- alt +
1379
- layer_effect_out +
1380
- '</tr><tr class="wds_layer_tr">' +
1381
- link +
1382
- border_width +
1383
- '</tr><tr class="wds_layer_tr">' +
1384
- position +
1385
- border_radius +
1386
- '</tr><tr class="wds_layer_tr">' +
1387
- imgtransparent +
1388
- shadow +
1389
- '</tr><tr class="wds_layer_tr">' +
1390
- published +
1391
- '</tr>' + layer_type;
 
 
1392
  if (!duplicate) {
1393
- if(spider_uploader) { // Add image layer by spider uploader
1394
- wds_add_image_layer_by_spider_uploader(prefix, files, tbodyID, id, layerID, tbody_html);
1395
- }
1396
- else { // Add image layer by media uploader
1397
- image_escape = wds_add_image_layer(prefix, event, tbodyID, id, layerID, tbody_html);
1398
- }
1399
  }
1400
  else {
1401
  jQuery("#" + tbodyID).append(tbody_html);
@@ -1411,6 +1770,7 @@ function wds_add_layer(type, id, layerID, event, duplicate, files) {
1411
  jscolor.bind();
1412
  }
1413
  wds_layer_weights(id);
 
1414
  }
1415
 
1416
  function wds_scale(that, prefix) {
@@ -1439,10 +1799,6 @@ function wds_drag_layer(id) {
1439
  jQuery(".wds_draggable_" + id).bind('dragstart', function(event) {
1440
  jQuery(this).addClass('wds_active_layer');
1441
  }).bind('drag',function(event) {
1442
- // jQuery(this).css({
1443
- // top: event.offsetY,
1444
- // left: event.offsetX
1445
- // });
1446
  var prefix = jQuery(this).attr("id");
1447
  jQuery("#" + prefix + "_left").val(parseInt(jQuery(this).offset().left - jQuery(".wds_preview_image" + id).offset().left));
1448
  jQuery("#" + prefix + "_top").val(parseInt(jQuery(this).offset().top - jQuery(".wds_preview_image" + id).offset().top));
@@ -1486,7 +1842,7 @@ function wds_slide_weights() {
1486
  jQuery(".aui-sortable").disableSelection();
1487
  }
1488
 
1489
- function wds_add_image_layer(prefix, e, tbodyID, id, layerID, tbody_html) {
1490
  var custom_uploader;
1491
  e.preventDefault();
1492
  // If the uploader object has already been created, reopen the dialog.
@@ -1494,6 +1850,9 @@ function wds_add_image_layer(prefix, e, tbodyID, id, layerID, tbody_html) {
1494
  custom_uploader.open();
1495
  return;
1496
  }
 
 
 
1497
  // Extend the wp.media object.
1498
  custom_uploader = wp.media.frames.file_frame = wp.media({
1499
  title: 'Choose Image',
@@ -1505,29 +1864,35 @@ function wds_add_image_layer(prefix, e, tbodyID, id, layerID, tbody_html) {
1505
  custom_uploader.on('select', function() {
1506
  jQuery("#" + tbodyID).append(tbody_html);
1507
  attachment = custom_uploader.state().get('selection').first().toJSON();
1508
- jQuery("#wds_preview_image" + id).append(jQuery("<img />").attr({
1509
- id: prefix,
1510
- "class": "wds_draggable_" + id + " wds_draggable",
1511
- onclick: "wds_showhide_layer('" + tbodyID + "', 1)",
1512
- src: attachment.url,
1513
- style: "z-index: " + layerID.replace("pr_", "") + "; " +
1514
- "left: 0; top: 0; " +
1515
- "border: 2px none #FFFFFF; " +
1516
- "border-radius: 2px; " +
1517
- "opacity: 1; filter: Alpha(opacity=100); " +
1518
- "position: absolute;"
1519
- }));
1520
-
1521
- var att_width = attachment.width ? attachment.width : jQuery("#" + prefix).width();
1522
- var att_height = attachment.height ? attachment.height : jQuery("#" + prefix).height();
1523
- var width = Math.min(att_width, jQuery("#wds_preview_image" + id).width());
1524
- var height = Math.min(att_height, jQuery("#wds_preview_image" + id).height());
1525
-
1526
- jQuery("#" + prefix + "_image_url").val(attachment.url);
1527
- jQuery("#" + prefix + "_image_width").val(width);
1528
- jQuery("#" + prefix + "_image_height").val(height);
1529
- jQuery("#" + prefix + "_image_scale").attr("checked", "checked");
1530
- wds_scale("#" + prefix + "_image_scale", prefix);
 
 
 
 
 
 
1531
  wds_drag_layer(id);
1532
  jscolor.bind();
1533
  });
@@ -1602,8 +1967,8 @@ function wds_add_slide() {
1602
  var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
1603
  var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
1604
  if (spider_uploader) {
1605
- slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="button-primary thickbox thickbox-preview" id="content-add_media" title="Add Image" onclick="return false;">Add Image</a>';
1606
- img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" id="content-add_media" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
1607
  }
1608
  else {
1609
  slide_upload_by = ' <input id="button_image_url' + slideID + '" class="button-primary" type="button" value="Add Image from Media Library" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
@@ -1628,9 +1993,10 @@ function wds_add_slide() {
1628
  slide_upload_by +
1629
  ' <input class="button-primary" type="button" value="Add Image by URL" onclick="wds_add_image_url(\'' + slideID + '\')">' +
1630
  ' <input class="button-secondary wds_free_button" type="button" value="Add Video" onclick="alert(\'This functionality is disabled in free version.\')">' +
1631
- ' <input id="delete_image_url' + slideID + '" class="button-secondary" type="button" value="Remove" onclick="spider_remove_url(\'button_image_url' + slideID + '\', \'image_url' + slideID + '\', \'delete_image_url' + slideID + '\', \'wds_preview_image' + slideID + '\')">' +
1632
- ' <input id="image_url' + slideID + '" type="hidden" style="display: inline-block;" value="" name="image_url' + slideID + '">' +
1633
- ' <input id="thumb_url' + slideID + '" type="hidden" value="" name="thumb_url' + slideID + '"></td>' +
 
1634
  '</tr><tr><td colspan="4">' +
1635
  '<div id="wds_preview_wrapper_' + slideID + '" class="wds_preview_wrapper" style="width: ' + jQuery("#width").val() + 'px; height: ' + jQuery("#height").val() + 'px;">' +
1636
  '<div class="wds_preview" style="overflow: hidden; position: absolute; width: inherit; height: inherit; background-color: transparent; background-image: none; display: block;">' +
@@ -1666,35 +2032,42 @@ function wds_add_slide() {
1666
  'jQuery(window).load(function() {' +
1667
  'wds_drag_layer(\'' + slideID + '\');' +
1668
  '});' +
1669
- 'spider_remove_url(\'button_image_url1\', \'image_url' + slideID + '\', \'delete_image_url' + slideID + '\', \'wds_preview_image' + slideID + '\');' +
1670
  '</script>' +
1671
  '</div>');
1672
  wds_slide_weights();
 
1673
  }
1674
 
1675
- function wds_remove_slide(slideID) {
1676
- if (confirm("Do you want to delete slide?")) {
1677
- jQuery("#sub_tab").val("");
1678
- jQuery(".wds_slides_box *").removeClass("wds_sub_active");
1679
- jQuery(".wds_slide" + slideID).remove();
1680
- jQuery("#wbs_subtab" + slideID).remove();
1681
-
1682
- var slideIDs = jQuery("#slide_ids_string").val();
1683
- slideIDs = slideIDs.replace(slideID + ",", "");
1684
- jQuery("#slide_ids_string").val(slideIDs);
1685
- var delslideIds = jQuery("#del_slide_ids_string").val() + slideID + ",";
1686
- jQuery("#del_slide_ids_string").val(delslideIds);
1687
-
1688
- var slides = jQuery(".wbs_subtab a[id^='wbs_subtab']");
1689
- for (var i in slides) {
1690
- if (slides[i]) {
1691
- firstSlideID = slides[i].id.replace("wbs_subtab", "");
1692
- jQuery("#wbs_subtab" + firstSlideID).addClass("wds_sub_active");
1693
- jQuery(".wds_slide" + firstSlideID).addClass("wds_sub_active");
1694
- }
1695
- break;
1696
  }
1697
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1698
  }
1699
 
1700
  function wds_trans_end(id, effect) {
41
  post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
42
  post_data["play_paus_butt"] = jQuery("input[name=play_paus_butt]:checked").val();
43
  post_data["navigation"] = jQuery("input[name=navigation]:checked").val();
44
+ post_data["rl_butt_img_or_not"] = jQuery("input[name=rl_butt_img_or_not]:checked").val();
45
  post_data["rl_butt_style"] = jQuery("#rl_butt_style").val();
46
+ post_data["right_butt_url"] = jQuery("#right_butt_url").val();
47
+ post_data["left_butt_url"] = jQuery("#left_butt_url").val();
48
+ post_data["right_butt_hov_url"] = jQuery("#right_butt_hov_url").val();
49
+ post_data["left_butt_hov_url"] = jQuery("#left_butt_hov_url").val();
50
  post_data["rl_butt_size"] = jQuery("#rl_butt_size").val();
51
  post_data["pp_butt_size"] = jQuery("#pp_butt_size").val();
52
  post_data["butts_color"] = jQuery("#butts_color").val();
62
  post_data["enable_bullets"] = jQuery("input[name=enable_bullets]:checked").val();
63
  post_data["bull_position"] = jQuery("#bull_position").val();
64
  post_data["bull_style"] = jQuery("#bull_style").val();
65
+ post_data["bullets_img_main_url"] = jQuery("#bullets_img_main_url").val();
66
+ post_data["bullets_img_hov_url"] = jQuery("#bullets_img_hov_url").val();
67
+ post_data["bull_butt_img_or_not"] = jQuery("input[name=bull_butt_img_or_not]:checked").val();
68
  post_data["bull_size"] = jQuery("#bull_size").val();
69
  post_data["bull_color"] = jQuery("#bull_color").val();
70
  post_data["bull_act_color"] = jQuery("#bull_act_color").val();
295
 
296
 
297
  function wds_onload() {
298
+ var type_key;
299
+ var color_key;
300
+ var bull_type_key;
301
+ var bull_color_key;
302
  jQuery(".wds_tabs").show();
303
  var nav_tab = jQuery("#nav_tab").val();
304
  wds_change_nav(jQuery(".wds_nav_tabs li[tab_type='" + nav_tab + "']"), 'wds_nav_' + nav_tab + '_box');
313
  else {
314
  bwg_enable_disable('none', 'tr_music_url', 'music0');
315
  }
316
+
317
+ jQuery('.wds_rl_butt_groups').each(function(i) {
318
+ var type_key = jQuery(this).attr('value');
319
+ var src_top_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
320
+ var src_top_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/2.png';
321
+ var src_bottom_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png';
322
+ var src_bottom_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png';
323
+
324
+ jQuery(this).find('.src_top_left').attr('src', src_top_left);
325
+ jQuery(this).find('.src_top_right').attr('src', src_top_right);
326
+ jQuery(this).find('.src_bottom_left').attr('src', src_bottom_left);
327
+ jQuery(this).find('.src_bottom_right').attr('src', src_bottom_right);
328
+ });
329
+
330
+ jQuery('.wds_rl_butt_col_groups').each(function(i) {
331
+ var color_key = jQuery(this).attr('value');
332
+ src_col_top_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/1.png';
333
+ src_col_top_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/2.png';
334
+ src_col_bottom_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/3.png';
335
+ src_col_bottom_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/4.png';
336
+
337
+ jQuery(this).find('.src_col_top_left').attr('src', src_col_top_left);
338
+ jQuery(this).find('.src_col_top_right').attr('src', src_col_top_right);
339
+ jQuery(this).find('.src_col_bottom_left').attr('src', src_col_bottom_left);
340
+ jQuery(this).find('.src_col_bottom_right').attr('src', src_col_bottom_right);
341
+ });
342
+
343
+ jQuery('.wds_bull_butt_groups').each(function(i) {
344
+ bull_type_key = jQuery(this).attr('value');
345
+ bull_src_left = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/1.png';
346
+ bull_src_right = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/2.png';
347
+
348
+ jQuery(this).find('.bull_src_left').attr('src', bull_src_left);
349
+ jQuery(this).find('.bull_src_right').attr('src', bull_src_right);
350
+ });
351
+
352
+ jQuery('.wds_bull_butt_col_groups').each(function(i) {
353
+ bull_color_key = jQuery(this).attr('value');
354
+ bull_col_src_left = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/1.png';
355
+ bull_col_src_right = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/2.png';
356
+
357
+ jQuery(this).find('.bull_col_src_left').attr('src', bull_col_src_left);
358
+ jQuery(this).find('.bull_col_src_right').attr('src', bull_col_src_right);
359
+ });
360
  }
361
 
362
  function spider_select_value(obj) {
524
  jQuery('#check_all').trigger('click');
525
  // }
526
  }
527
+
528
  function spider_check_all_items_checkbox() {
529
  if (jQuery('#check_all_items').attr('checked')) {
530
  jQuery('#check_all_items').attr('checked', false);
617
  }
618
 
619
  // Remove uploaded file.
620
+ function spider_remove_url(input_id, img_id) {
621
  if (typeof img_id == 'undefined') {
622
  img_id = '';
623
  }
 
 
 
624
  if (document.getElementById(input_id)) {
625
  document.getElementById(input_id).value = '';
 
 
 
 
626
  }
627
  if ((img_id != '') && document.getElementById(img_id)) {
628
  document.getElementById(img_id).style.backgroundImage = "url('')";
 
 
629
  }
630
  }
631
 
701
  window.parent.bwg_add_items(trackIds, titles, types);
702
  }
703
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
704
  function preview_built_in_watermark() {
705
  setTimeout(function() {
706
  watermark_type = window.parent.document.getElementById('built_in_watermark_type_text').checked;
781
  jQuery("#" + id).css('display', display);
782
  }
783
 
784
+ function change_rl_butt_style(type_key) {
785
+ jQuery("#wds_left_style").removeClass().addClass("fa " + type_key + "-left");
786
+ jQuery("#wds_right_style").removeClass().addClass("fa " + type_key + "-right");
787
+ }
788
+
789
+ function change_bull_style(type_key) {
790
+ jQuery("#wds_act_bull_style").removeClass().addClass("fa " + type_key.replace("-o", ""));
791
+ jQuery("#wds_deact_bull_style").removeClass().addClass("fa " + type_key);
792
+ }
793
+
794
+ function change_rl_butt_type(that) {
795
+ var type_key = jQuery(that).attr('value');
796
+ src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
797
+ var options = '';
798
+ var divs = '';
799
+ for (var i = 0; i < wds_rl_butt_type[type_key].length - 1; i++) {
800
+ var num = i + 1;
801
+ divs += '<div class="spider_option_cont" value="' + i + '" onclick="change_rl_butt_color(this, ' + type_key + ')" > ' +
802
+ '<div class="spider_option_cont_title" >' +
803
+ 'Color-'+ num +
804
+ '</div>' +
805
+ '<div class="spider_option_cont_img" >' +
806
+ '<img src="' + rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/'+wds_rl_butt_type[type_key][i]+'/1.png" style="display:inline-block; width: 14px; height: 14px;" />' +
807
+ '<img src="' + rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/'+wds_rl_butt_type[type_key][i]+'/2.png" style="display:inline-block; width: 14px; height: 14px;" />' +
808
+ '<img src="' + rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/'+wds_rl_butt_type[type_key][i]+'/3.png" style="display:inline-block; width: 14px; height: 14px;" />' +
809
+ '<img src="' + rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/'+wds_rl_butt_type[type_key][i]+'/4.png" style="display:inline-block; width: 14px; height: 14px;" />' +
810
+ '</div>' +
811
+ '</div>';
812
+ }
813
+ jQuery(".spider_options_cont .spider_option_cont").css({backgroundColor: ""});
814
+ jQuery(that).css({backgroundColor: "#3399FF"});
815
+ jQuery('.spider_options_color_cont').html(divs);
816
+ jQuery('#rl_butt_img_l').attr("src", rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png');
817
+ jQuery('#rl_butt_img_r').attr("src", rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/2.png');
818
+ jQuery('#rl_butt_hov_img_l').attr("src", rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png');
819
+ jQuery('#rl_butt_hov_img_r').attr("src", rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png');
820
+
821
+ jQuery('#left_butt_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png');
822
+ jQuery('#right_butt_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/2.png');
823
+ jQuery('#left_butt_hov_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png');
824
+ jQuery('#right_butt_hov_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png');
825
+ }
826
+
827
+ function change_rl_butt_color(that, type_key) {
828
+ var color_key = jQuery(that).attr('value');
829
+ var src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/' + wds_rl_butt_type[type_key][color_key];
830
+ jQuery('#rl_butt_img_l').attr("src", src + '/1.png');
831
+ jQuery('#rl_butt_img_r').attr("src", src + '/2.png');
832
+ jQuery('#rl_butt_hov_img_l').attr("src", src + '/3.png');
833
+ jQuery('#rl_butt_hov_img_r').attr("src", src + '/4.png');
834
+
835
+ jQuery('#left_butt_url').val(src + '/1.png');
836
+ jQuery('#right_butt_url').val(src + '/2.png');
837
+ jQuery('#left_butt_hov_url').val(src + '/3.png');
838
+ jQuery('#right_butt_hov_url').val(src + '/4.png');
839
+ jQuery(".spider_options_color_cont .spider_option_cont").css({backgroundColor: ""});
840
+ jQuery(that).css({backgroundColor: "#3399FF"});
841
+ }
842
+
843
+ function change_src() {
844
+ var src_l = jQuery('#rl_butt_img_l').attr("src");
845
+ var src_r = jQuery('#rl_butt_img_r').attr("src");
846
+
847
+ var src_h_l = jQuery('#rl_butt_hov_img_l').attr("src");
848
+ var src_h_r = jQuery('#rl_butt_hov_img_r').attr("src");
849
+
850
+ jQuery('#rl_butt_img_l').attr("src", src_h_l);
851
+ jQuery('#rl_butt_img_r').attr("src", src_h_r);
852
+ jQuery('#rl_butt_hov_img_l').attr("src", src_l);
853
+ jQuery('#rl_butt_hov_img_r').attr("src", src_r);
854
+
855
+ jQuery('#left_butt_url').val(src_h_l);
856
+ jQuery('#right_butt_url').val(src_h_r);
857
+ jQuery('#left_butt_hov_url').val(src_l);
858
+ jQuery('#right_butt_hov_url').val(src_r);
859
+ }
860
+
861
+ function wds_choose_option(that) {
862
+ jQuery('.spider_options_cont').toggle(1, function() {});
863
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
864
+ }
865
+
866
+ function wds_choose_bull_option(that) {
867
+ jQuery('.spider_bull_options_cont').toggle(1, function() {});
868
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
869
+ }
870
+
871
+ function wds_change_custom_src() {
872
+ var src_l = jQuery('#left_butt_img').attr("src");
873
+ var src_r = jQuery('#right_butt_img').attr("src");
874
+
875
+ var src_h_l = jQuery('#left_butt_hov_img').attr("src");
876
+ var src_h_r = jQuery('#right_butt_hov_img').attr("src");
877
+
878
+ jQuery('#left_butt_img').attr("src", src_h_l);
879
+ jQuery('#right_butt_img').attr("src", src_h_r);
880
+ jQuery('#left_butt_hov_img').attr("src", src_l);
881
+ jQuery('#right_butt_hov_img').attr("src", src_r);
882
+
883
+ jQuery('#left_butt_url').val(src_h_l);
884
+ jQuery('#right_butt_url').val(src_h_r);
885
+ jQuery('#left_butt_hov_url').val(src_l);
886
+ jQuery('#right_butt_hov_url').val(src_r);
887
+ }
888
+
889
+ function wds_change_bullets_custom_src() {
890
+ var src_m = jQuery('#bull_img_main').attr("src");
891
+ var src_h = jQuery('#bull_img_hov').attr("src");
892
+
893
+ jQuery('#bull_img_main').attr("src", src_h);
894
+ jQuery('#bull_img_hov').attr("src", src_m);
895
+
896
+ jQuery('#bullets_img_main_url').val(src_h);
897
+ jQuery('#bullets_img_hov_url').val(src_m);
898
+ }
899
+
900
+ function change_bullets_images_type(that) {
901
+ var type_key = jQuery(that).attr('value');
902
+ var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/1.png';
903
+ var options = '';
904
+ var divs = '';
905
+ for (var i = 0; i < wds_blt_img_type[type_key].length-1; i++) {
906
+ var num = i + 1;
907
+ divs += '<div class="spider_option_cont" value="'+i+'" onclick="change_bullets_images_color(this, ' + type_key + ')" > ' +
908
+ '<div class="spider_option_cont_title" style="width: 64%" >' +
909
+ 'Color-'+ num +
910
+ '</div>' +
911
+ '<div class="spider_option_cont_img" style="width: 22%;padding: 6px 5px 0px 5px;" >' +
912
+ '<img src="' + blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/'+wds_blt_img_type[type_key][i]+'/1.png" style="display:inline-block; width: 14px; height: 14px;" />' +
913
+ '<img src="' + blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/'+wds_blt_img_type[type_key][i]+'/2.png" style="display:inline-block; width: 14px; height: 14px;" />' +
914
+ '</div>' +
915
+ '</div>';
916
+
917
+ }
918
+ jQuery(".spider_bull_options_cont .spider_option_cont").css({backgroundColor: ""});
919
+ jQuery(that).css({backgroundColor: "#3399FF"});
920
+ var select = '<select name="bullets_images_color" id="bullets_images_color" onchange="change_bullets_images_color(this, '+type_key+')">' + options + '</select>';
921
+ jQuery('.spider_bull_options_color_cont').html(divs);
922
+ jQuery('#bullets_images_color_cont').html(select);
923
+ jQuery('#bullets_img_main').attr("src", blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/1.png');
924
+ jQuery('#bullets_img_hov').attr("src", blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/2.png');
925
+
926
+ jQuery('#bullets_img_main_url').val(blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/1.png');
927
+ jQuery('#bullets_img_hov_url').val(blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/2.png');
928
+ }
929
+
930
+ function change_bullets_images_color(that, type_key) {
931
+ var color_key = jQuery(that).attr('value');
932
+ jQuery(".spider_bull_options_color_cont .spider_option_cont").css({backgroundColor: ""});
933
+ jQuery(that).css({backgroundColor: "#3399FF"});
934
+ var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/' + wds_blt_img_type[type_key][color_key];
935
+ jQuery('#bullets_img_main').attr("src", src + '/1.png');
936
+ jQuery('#bullets_img_hov').attr("src", src + '/2.png');
937
+
938
+ jQuery('#bullets_img_main_url').val(src + '/1.png');
939
+ jQuery('#bullets_img_hov_url').val(src + '/2.png');
940
+ }
941
+
942
+ function change_bullets_src() {
943
+ var src_l = jQuery('#bullets_img_main').attr("src");
944
+ var src_r = jQuery('#bullets_img_hov').attr("src");
945
+
946
+ jQuery('#bullets_img_main').attr("src", src_r);
947
+ jQuery('#bullets_img_hov').attr("src", src_l);
948
+
949
+ jQuery('#bullets_img_main_url').val(src_r);
950
+ jQuery('#bullets_img_hov_url').val(src_l);
951
+ }
952
+
953
+ function image_for_next_prev_butt(display) {
954
+ switch (display) {
955
+ case 'our' : {
956
+ jQuery("#rl_butt_img_or_not_our").attr('checked', 'checked');
957
+ jQuery("#right_left_butt_style").css('display', 'none');
958
+ jQuery("#right_butt_upl").css('display', 'none');
959
+ jQuery("#right_left_butt_select").css('display', '');
960
+ jQuery("#tr_butts_color").css('display', 'none');
961
+ jQuery("#tr_hover_color").css('display', 'none');
962
+ break;
963
+ }
964
+ case 'custom' : {
965
+ jQuery("#rl_butt_img_or_not_custom").attr('checked', 'checked');
966
+ jQuery("#right_butt_upl").css('display', '');
967
+ jQuery("#right_left_butt_select").css('display', 'none');
968
+ jQuery("#right_left_butt_style").css('display', 'none');
969
+ jQuery("#tr_butts_color").css('display', 'none');
970
+ jQuery("#tr_hover_color").css('display', 'none');
971
+ break;
972
+ }
973
+ case 'style' : {
974
+ jQuery("#rl_butt_img_or_not_0").attr('checked', 'checked');
975
+ jQuery("#right_butt_upl").css('display', 'none');
976
+ jQuery("#right_left_butt_select").css('display', 'none');
977
+ jQuery("#right_left_butt_style").css('display', '');
978
+ jQuery("#tr_butts_color").css('display', '');
979
+ jQuery("#tr_hover_color").css('display', '');
980
+ break;
981
+ }
982
+ default: {
983
+ break;
984
+ }
985
+ }
986
+ }
987
+
988
+ function image_for_bull_butt(display) {
989
+ switch (display) {
990
+ case 'our' : {
991
+ jQuery("#bull_butt_img_or_not_our").attr('checked', 'checked');
992
+ jQuery("#bullets_style").css('display', 'none');
993
+ jQuery("#bullets_images_cust").css('display', 'none');
994
+ jQuery("#bullets_images_select").css('display', '');
995
+ jQuery("#bullets_act_color").css('display', 'none');
996
+ jQuery("#bullets_color").css('display', 'none');
997
+ break;
998
+ }
999
+
1000
+ case 'custom' : {
1001
+ jQuery("#bull_butt_img_or_not_cust").attr('checked', 'checked');
1002
+ jQuery("#bullets_images_cust").css('display', '');
1003
+ jQuery("#bullets_images_select").css('display', 'none');
1004
+ jQuery("#bullets_style").css('display', 'none');
1005
+ jQuery("#bullets_act_color").css('display', 'none');
1006
+ jQuery("#bullets_color").css('display', 'none');
1007
+ break;
1008
+ }
1009
+
1010
+ case 'style' : {
1011
+ jQuery("#bull_butt_img_or_not_stl").attr('checked', 'checked');
1012
+ jQuery("#bullets_images_select").css('display', 'none');
1013
+ jQuery("#bullets_images_cust").css('display', 'none');
1014
+ jQuery("#bullets_style").css('display', '');
1015
+ jQuery("#bullets_act_color").css('display', '');
1016
+ jQuery("#bullets_color").css('display', '');
1017
+ break;
1018
+ }
1019
+ default: {
1020
+ break;
1021
+ }
1022
+ }
1023
+ }
1024
+
1025
  function bwg_change_album_view_type(type) {
1026
  if (type == 'thumbnail') {
1027
  jQuery("#album_thumb_dimensions").html('Album thumb dimensions: ');
1105
  document.getElementById("music_url").value = music_url;
1106
  break;
1107
  }
1108
+ case 'nav_left_but': {
1109
+ /* Add image for left button.*/
1110
+ jQuery("#left_butt_img").attr("src", image_url);
1111
+ jQuery("#left_butt_url").val(image_url);
1112
+ break;
1113
+ }
1114
+ case 'nav_right_but': {
1115
+ /* Add image for right buttons.*/
1116
+ jQuery("#right_butt_img").attr("src", image_url);
1117
+ jQuery("#right_butt_url").val(image_url);
1118
+ break;
1119
+ }
1120
+ case 'nav_left_hov_but': {
1121
+ /* Add hover image for right buttons.*/
1122
+ jQuery("#left_butt_hov_img").attr("src", image_url);
1123
+ jQuery("#left_butt_hov_url").val(image_url);
1124
+ break;
1125
+ }
1126
+ case 'nav_right_hov_but': {
1127
+ /* Add hover image for left button.*/
1128
+ jQuery("#right_butt_hov_img").attr("src", image_url);
1129
+ jQuery("#right_butt_hov_url").val(image_url);
1130
+ break;
1131
+ }
1132
+
1133
+ case 'bullets_main_but': {
1134
+ /* Add image for main button.*/
1135
+ jQuery("#bull_img_main").attr("src", image_url);
1136
+ jQuery("#bullets_img_main_url").val(image_url);
1137
+ break;
1138
+ }
1139
+ case 'bullets_hov_but': {
1140
+ /* Add image for hover button.*/
1141
+ jQuery("#bull_img_hov").attr("src", image_url);
1142
+ jQuery("#bullets_img_hov_url").val(image_url);
1143
+ break;
1144
+ }
1145
+
1146
+
1147
  default: {
1148
  jQuery("#image_url" + id).val(image_url);
1149
  jQuery("#thumb_url" + id).val(thumb_url);
1159
  custom_uploader.open();
1160
  }
1161
 
1162
+ function wds_add_image(files, image_for, slide_id, layer_id) {
1163
  switch (image_for) {
1164
  case 'add_slides': {
1165
+ /* Delete active slide if it has now image.*/
1166
+ jQuery(".wds_box input[id^='image_url']").each(function () {
1167
+ var slide_id = jQuery(this).attr("id").replace("image_url", "");
1168
+ if (!jQuery("#image_url" + slide_id).val() && !jQuery("#slide" + slide_id + "_layer_ids_string").val()) {
1169
+ wds_remove_slide(slide_id, 0);
1170
+ }
1171
+ });
1172
  /* Add one or more slides.*/
1173
+ for (var i in files) {
1174
+ wds_add_slide();
1175
+ var slides_count = jQuery(".wbs_subtab a[id^='wbs_subtab']").length;
1176
+ var new_slide_id = "pr_" + slides_count;
1177
+ jQuery("#image_url" + new_slide_id).val(files[i]['url']);
1178
+ jQuery("#thumb_url" + new_slide_id).val(files[i]['thumb_url']);
1179
+ jQuery("#wds_preview_image" + new_slide_id).css("background-image", 'url("' + files[i]['url'] + '")');
1180
+ jQuery("#delete_image_url" + new_slide_id).css("display", "inline-block");
1181
+ jQuery("#wds_preview_image" + new_slide_id).css("display", "inline-block");
1182
+ jQuery("#type" + new_slide_id).val("image");
1183
+ jQuery("#trlink" + new_slide_id).show();
1184
+ }
1185
  break;
1186
  }
1187
  case 'add_layer': {
1189
  wds_add_layer('image', slide_id, '', '', '', files);
1190
  break;
1191
  }
1192
+ case 'add_update_layer': {
1193
+ /* Update current layer image.*/
1194
+ if (typeof layer_id == "undefined") {
1195
+ var layer_id = "";
1196
+ }
1197
+ console.log(layer_id);
1198
+ jQuery("#slide" + slide_id + "_layer" + layer_id).attr('src', files[0]['url']);
1199
+ jQuery("#slide" + slide_id + "_layer" + layer_id+"_image_url").val(files[0]['url']);
1200
+ break;
1201
+ }
1202
  case 'add_update_slide': {
1203
  /* Add or update current slide.*/
1204
  var file_resolution = [];
1209
  jQuery("#wds_preview_image" + slide_id).css("display", "inline-block");
1210
  jQuery("#type" + slide_id).val("image");
1211
  jQuery("#trlink" + slide_id).show();
1212
+ break;
1213
  }
1214
  case 'watermark': {
1215
  /* Add image for watermark.*/
1217
  preview_built_in_watermark();
1218
  break;
1219
  }
1220
+ case 'nav_right_but': {
1221
+ /* Add image for right buttons.*/
1222
+ document.getElementById("right_butt_url").value = files[0]['url'];
1223
+ document.getElementById("right_butt_img").src = files[0]['url'];
1224
+ break;
1225
+ }
1226
+ case 'nav_left_but': {
1227
+ /* Add image for left button.*/
1228
+ document.getElementById("left_butt_url").value = files[0]['url'];
1229
+ document.getElementById("left_butt_img").src = files[0]['url'];
1230
+ break;
1231
+ }
1232
+ case 'nav_right_hov_but': {
1233
+ /* Add hover image for right buttons.*/
1234
+ document.getElementById("right_butt_hov_url").value = files[0]['url'];
1235
+ document.getElementById("right_butt_hov_img").src = files[0]['url'];
1236
+ break;
1237
+ }
1238
+ case 'nav_left_hov_but': {
1239
+ /* Add hover image for left button.*/
1240
+ document.getElementById("left_butt_hov_url").value = files[0]['url'];
1241
+ document.getElementById("left_butt_hov_img").src = files[0]['url'];
1242
+ break;
1243
+ }
1244
+ case 'bullets_main_but': {
1245
+ /* Add image for main button.*/
1246
+ document.getElementById("bullets_img_main_url").value = files[0]['url'];
1247
+ document.getElementById("bull_img_main").src = files[0]['url'];
1248
+ break;
1249
+ }
1250
+ case 'bullets_hov_but': {
1251
+ /* Add image for hover button.*/
1252
+ document.getElementById("bullets_img_hov_url").value = files[0]['url'];
1253
+ document.getElementById("bull_img_hov").src = files[0]['url'];
1254
+ break;
1255
+ }
1256
  default: {
1257
  break;
1258
  }
1430
  }
1431
 
1432
  var wds_layerID = 0;
1433
+ function wds_add_layer(type, id, layerID, event, duplicate, files, edit) {
1434
  var layers_count = jQuery(".wds_slide" + id + " tbody").length;
1435
  wds_layerID = layers_count;
1436
  if (typeof layerID == "undefined" || layerID == "") {
1440
  if (typeof duplicate == "undefined") {
1441
  var duplicate = 0;
1442
  }
1443
+ if (typeof edit == "undefined") {
1444
+ var edit = 0;
1445
+ }
1446
 
1447
  var layer_effects_in_option = "";
1448
  var layer_effects_out_option = "";
1633
  '<input type="text" name="' + prefix + '_image_width" id="' + prefix + '_image_width" value="" class="spider_int_input" onkeyup="wds_scale(\'#' + prefix + '_image_scale\', \'' + prefix + '\')" /> x ' +
1634
  '<input type="text" name="' + prefix + '_image_height" id="' + prefix + '_image_height" value="" class="spider_int_input" onkeyup="wds_scale(\'#' + prefix + '_image_scale\', \'' + prefix + '\')" /> px ' +
1635
  '<input type="checkbox" name="' + prefix + '_image_scale" id="' + prefix + '_image_scale" onchange="wds_scale(this, \'' + prefix + '\')" /><label for="' + prefix + '_image_scale">Scale</label>' +
1636
+ '<input class="button-secondary wds_free_button" type="button" value="Edit Image" onclick="alert(\'This functionality is disabled in free version.\')" />' +
1637
  '<div class="spider_description">Set width and height of the image.</div></td>';
1638
  var social_button = '<td class="spider_label"><label for="' + prefix + '_social_button">Social button: </label></td>' +
1639
  '<td><select name="' + prefix + '_social_button" id="' + prefix + '_social_button" onchange="jQuery(\'#' + prefix + '\').attr(\'class\', \'wds_draggable fa fa-\' + jQuery(this).val())">' + social_button_option + '</select><div class="spider_description"></div></td>';
1727
  break;
1728
  }
1729
  case 'image': {
1730
+ if(edit == 0) {
1731
+ var tbody_html = tbody +
1732
+ '<tr class="wds_layer_tr">' +
1733
+ dimensions +
1734
+ layer_effect_in +
1735
+ '</tr><tr class="wds_layer_tr">' +
1736
+ alt +
1737
+ layer_effect_out +
1738
+ '</tr><tr class="wds_layer_tr">' +
1739
+ link +
1740
+ border_width +
1741
+ '</tr><tr class="wds_layer_tr">' +
1742
+ position +
1743
+ border_radius +
1744
+ '</tr><tr class="wds_layer_tr">' +
1745
+ imgtransparent +
1746
+ shadow +
1747
+ '</tr><tr class="wds_layer_tr">' +
1748
+ published +
1749
+ '</tr>' + layer_type;
1750
+ }
1751
  if (!duplicate) {
1752
+ if (spider_uploader) { // Add image layer by spider uploader.
1753
+ wds_add_image_layer_by_spider_uploader(prefix, files, tbodyID, id, layerID, tbody_html);
1754
+ }
1755
+ else { // Add image layer by media uploader.
1756
+ image_escape = wds_add_image_layer(prefix, event, tbodyID, id, layerID, tbody_html, edit);
1757
+ }
1758
  }
1759
  else {
1760
  jQuery("#" + tbodyID).append(tbody_html);
1770
  jscolor.bind();
1771
  }
1772
  wds_layer_weights(id);
1773
+ return layerID;
1774
  }
1775
 
1776
  function wds_scale(that, prefix) {
1799
  jQuery(".wds_draggable_" + id).bind('dragstart', function(event) {
1800
  jQuery(this).addClass('wds_active_layer');
1801
  }).bind('drag',function(event) {
 
 
 
 
1802
  var prefix = jQuery(this).attr("id");
1803
  jQuery("#" + prefix + "_left").val(parseInt(jQuery(this).offset().left - jQuery(".wds_preview_image" + id).offset().left));
1804
  jQuery("#" + prefix + "_top").val(parseInt(jQuery(this).offset().top - jQuery(".wds_preview_image" + id).offset().top));
1842
  jQuery(".aui-sortable").disableSelection();
1843
  }
1844
 
1845
+ function wds_add_image_layer(prefix, e, tbodyID, id, layerID, tbody_html, edit) {
1846
  var custom_uploader;
1847
  e.preventDefault();
1848
  // If the uploader object has already been created, reopen the dialog.
1850
  custom_uploader.open();
1851
  return;
1852
  }
1853
+ if (typeof edit == "undefined") {
1854
+ var edit = 0;
1855
+ }
1856
  // Extend the wp.media object.
1857
  custom_uploader = wp.media.frames.file_frame = wp.media({
1858
  title: 'Choose Image',
1864
  custom_uploader.on('select', function() {
1865
  jQuery("#" + tbodyID).append(tbody_html);
1866
  attachment = custom_uploader.state().get('selection').first().toJSON();
1867
+ if (edit == 0) {
1868
+ jQuery("#wds_preview_image" + id).append(jQuery("<img />").attr({
1869
+ id: prefix,
1870
+ "class": "wds_draggable_" + id + " wds_draggable",
1871
+ onclick: "wds_showhide_layer('" + tbodyID + "', 1)",
1872
+ src: attachment.url,
1873
+ style: "z-index: " + layerID.replace("pr_", "") + "; " +
1874
+ "left: 0; top: 0; " +
1875
+ "border: 2px none #FFFFFF; " +
1876
+ "border-radius: 2px; " +
1877
+ "opacity: 1; filter: Alpha(opacity=100); " +
1878
+ "position: absolute;"
1879
+ }));
1880
+
1881
+ var att_width = attachment.width ? attachment.width : jQuery("#" + prefix).width();
1882
+ var att_height = attachment.height ? attachment.height : jQuery("#" + prefix).height();
1883
+ var width = Math.min(att_width, jQuery("#wds_preview_image" + id).width());
1884
+ var height = Math.min(att_height, jQuery("#wds_preview_image" + id).height());
1885
+
1886
+ jQuery("#" + prefix + "_image_url").val(attachment.url);
1887
+ jQuery("#" + prefix + "_image_width").val(width);
1888
+ jQuery("#" + prefix + "_image_height").val(height);
1889
+ jQuery("#" + prefix + "_image_scale").attr("checked", "checked");
1890
+ wds_scale("#" + prefix + "_image_scale", prefix);
1891
+ }
1892
+ else {
1893
+ jQuery("#" + prefix).attr("src", attachment.url);
1894
+ jQuery("#" + prefix + "_image_url").val(attachment.url);
1895
+ }
1896
  wds_drag_layer(id);
1897
  jscolor.bind();
1898
  });
1967
  var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
1968
  var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
1969
  if (spider_uploader) {
1970
+ slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="button-primary thickbox thickbox-preview" title="Add Image" onclick="return false;">Add Image</a>';
1971
+ img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
1972
  }
1973
  else {
1974
  slide_upload_by = ' <input id="button_image_url' + slideID + '" class="button-primary" type="button" value="Add Image from Media Library" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
1993
  slide_upload_by +
1994
  ' <input class="button-primary" type="button" value="Add Image by URL" onclick="wds_add_image_url(\'' + slideID + '\')">' +
1995
  ' <input class="button-secondary wds_free_button" type="button" value="Add Video" onclick="alert(\'This functionality is disabled in free version.\')">' +
1996
+ ' <input class="button-secondary wds_free_button" type="button" value="Add Post" onclick="alert(\'This functionality is disabled in free version.\')">' +
1997
+ ' <input id="delete_image_url' + slideID + '" class="button-secondary" type="button" value="Remove" onclick="spider_remove_url(\'image_url' + slideID + '\', \'wds_preview_image' + slideID + '\')" />' +
1998
+ ' <input id="image_url' + slideID + '" type="hidden" value="" name="image_url' + slideID + '" />' +
1999
+ ' <input id="thumb_url' + slideID + '" type="hidden" value="" name="thumb_url' + slideID + '" /></td>' +
2000
  '</tr><tr><td colspan="4">' +
2001
  '<div id="wds_preview_wrapper_' + slideID + '" class="wds_preview_wrapper" style="width: ' + jQuery("#width").val() + 'px; height: ' + jQuery("#height").val() + 'px;">' +
2002
  '<div class="wds_preview" style="overflow: hidden; position: absolute; width: inherit; height: inherit; background-color: transparent; background-image: none; display: block;">' +
2032
  'jQuery(window).load(function() {' +
2033
  'wds_drag_layer(\'' + slideID + '\');' +
2034
  '});' +
2035
+ 'spider_remove_url(\'image_url' + slideID + '\', \'wds_preview_image' + slideID + '\');' +
2036
  '</script>' +
2037
  '</div>');
2038
  wds_slide_weights();
2039
+ return slideID;
2040
  }
2041
 
2042
+ function wds_remove_slide(slideID, conf) {
2043
+ if (typeof conf == "undefined") {
2044
+ var conf = 1;
2045
+ }
2046
+ if (conf) {
2047
+ if (!confirm("Do you want to delete slide?")) {
2048
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2049
  }
2050
  }
2051
+ jQuery("#sub_tab").val("");
2052
+ jQuery(".wds_slides_box *").removeClass("wds_sub_active");
2053
+ jQuery(".wds_slide" + slideID).remove();
2054
+ jQuery("#wbs_subtab" + slideID).remove();
2055
+
2056
+ var slideIDs = jQuery("#slide_ids_string").val();
2057
+ slideIDs = slideIDs.replace(slideID + ",", "");
2058
+ jQuery("#slide_ids_string").val(slideIDs);
2059
+ var delslideIds = jQuery("#del_slide_ids_string").val() + slideID + ",";
2060
+ jQuery("#del_slide_ids_string").val(delslideIds);
2061
+
2062
+ var slides = jQuery(".wbs_subtab a[id^='wbs_subtab']");
2063
+ for (var i in slides) {
2064
+ if (slides[i]) {
2065
+ firstSlideID = slides[i].id.replace("wbs_subtab", "");
2066
+ jQuery("#wbs_subtab" + firstSlideID).addClass("wds_sub_active");
2067
+ jQuery(".wds_slide" + firstSlideID).addClass("wds_sub_active");
2068
+ }
2069
+ break;
2070
+ }
2071
  }
2072
 
2073
  function wds_trans_end(id, effect) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -45,10 +45,10 @@ The number of the slides for each slider is not limited. Various layers can be a
45
  * Option of opening the slider-related link within the same page
46
 
47
  Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
48
- * 26 transition effects
49
  * 38 layer effects
50
  * 3 types of Layers (text, image, social sharing)
51
- * Slider Share feature for sliders (Google+, Tumblr, Twitter, Pinterest and Facebook)
52
  * Slider Filmstrip possibility
53
  * Navigation button/bullet styles
54
  * Support for Vimeo and YouTube videos
@@ -130,6 +130,10 @@ After downloading the ZIP file of the slider plugin,
130
 
131
  == Changelog ==
132
 
 
 
 
 
133
  = 1.0.4 =
134
  stop on hover option
135
  slide, text layer, image layer link open in a new window option
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider
5
  Requires at least: 3.0
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
45
  * Option of opening the slider-related link within the same page
46
 
47
  Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
48
+ * 26 transition effects for Slider
49
  * 38 layer effects
50
  * 3 types of Layers (text, image, social sharing)
51
+ * Share feature for sliders (Google+, Tumblr, Twitter, Pinterest and Facebook)
52
  * Slider Filmstrip possibility
53
  * Navigation button/bullet styles
54
  * Support for Vimeo and YouTube videos
130
 
131
  == Changelog ==
132
 
133
+ = 1.0.5 =
134
+ Image for Next / Previous buttons (Default, Custom, Styled)
135
+ Image for bullets (Default, Custom, Styled)
136
+
137
  = 1.0.4 =
138
  stop on hover option
139
  slide, text layer, image layer link open in a new window option
slider-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Slider WD
5
  * Plugin URI: http://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
- * Version: 1.0.4
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -97,6 +97,14 @@ function wds_frontend() {
97
  }
98
 
99
  function wds_ajax() {
 
 
 
 
 
 
 
 
100
  require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
101
  $page = WDW_S_Library::get('action');
102
  if ($page != '' && (($page == 'WDSShortcode'))) {
@@ -108,7 +116,7 @@ function wds_ajax() {
108
  }
109
 
110
  function wds_shortcode($params) {
111
- shortcode_atts(array('id' => 0), $params);
112
  ob_start();
113
  wds_front_end($params['id']);
114
  return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
@@ -170,7 +178,7 @@ function wds_admin_ajax() {
170
  }
171
  add_action('admin_head', 'wds_admin_ajax');
172
 
173
- // Add images to Slider
174
  add_action('wp_ajax_wds_UploadHandler', 'wds_UploadHandler');
175
  add_action('wp_ajax_addImage', 'wds_filemanager_ajax');
176
 
@@ -181,7 +189,7 @@ function wds_UploadHandler() {
181
 
182
  function wds_filemanager_ajax() {
183
  if (function_exists('current_user_can')) {
184
- if (!current_user_can('publish_posts')) {
185
  die('Access Denied');
186
  }
187
  }
@@ -209,7 +217,89 @@ function wds_activate() {
209
  global $wpdb;
210
  wds_install();
211
  if (!$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslider")) {
212
- $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslider` VALUES(1, "Default slider", 1, 0, 800, 300, "cover", "center", "none", 5, 1, 0, 0, "", 1, "000000", 100, 0, "none", "FFFFFF", "", 0, "", 0, 1, 1, 0, "hover", "fa-angle", 40, 40, "FFFFFF", 100, "CCCCCC", 0, "none", "FFFFFF", "20px", "FFFFFF", "bottom", "fa-square-o", 20, "FFFFFF", "FFFFFF", 3, "none", 100, 50, "000000", 0, 0, "none", "FFFFFF", 50, "none", "middle-center", 15, "", "", 20, "arial.ttf", "FFFFFF", 70, "#wds_0_slide2_layer2 {\r\n text-align: center !important;\r\n}", "none", 5, "FFFFFF", 50, 1, 0)');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
214
  if (!$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslide")) {
215
  $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(1, 1, "Slide 1", "image", "' . WD_S_URL . '/demo/1.jpg", "' . WD_S_URL . '/demo/1-150x150.jpg", 1, "", 1, 0)');
@@ -221,19 +311,16 @@ register_activation_hook(__FILE__, 'wds_activate');
221
 
222
  function wds_install() {
223
  $version = get_option("wds_version");
224
- $new_version = '1.0.4';
225
  if ($version && version_compare($version, $new_version, '<')) {
226
  require_once WD_S_DIR . "/sliders-update.php";
227
  wds_update($version);
228
  update_option("wds_version", $new_version);
229
  }
230
- else {
231
  require_once WD_S_DIR . "/sliders-insert.php";
232
  wds_insert();
233
- if (!$version) {
234
- var_dump('aa');
235
- add_option("wds_theme_version", '1.0.0', '', 'no');
236
- }
237
  add_option("wds_version", $new_version, '', 'no');
238
  }
239
  }
@@ -243,8 +330,9 @@ if (!isset($_GET['action']) || $_GET['action'] != 'deactivate') {
243
 
244
  // Plugin styles.
245
  function wds_styles() {
 
246
  wp_admin_css('thickbox');
247
- wp_enqueue_style('wds_tables', WD_S_URL . '/css/wds_tables.css');
248
  }
249
 
250
  // Plugin scripts.
@@ -255,7 +343,7 @@ function wds_scripts() {
255
  wp_enqueue_script('jquery');
256
  wp_enqueue_script('jquery-ui-sortable');
257
  wp_enqueue_script('jquery-ui-draggable');
258
- wp_enqueue_script('wds_admin', WD_S_URL . '/js/wds.js', array(), get_option("wds_version"));
259
  wp_enqueue_script('jscolor', WD_S_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
260
  wp_enqueue_style('wds_font-awesome', WD_S_URL . '/css/font-awesome-4.0.1/font-awesome.css', array(), '4.0.1');
261
  wp_enqueue_style('wds_effects', WD_S_URL . '/css/wds_effects.css', array(), $version);
@@ -264,6 +352,9 @@ function wds_scripts() {
264
  function wds_front_end_scripts() {
265
  $version = get_option("wds_version");
266
  wp_enqueue_script('jquery');
 
 
 
267
  wp_enqueue_style('wds_frontend', WD_S_URL . '/css/wds_frontend.css', array(), $version);
268
  wp_enqueue_style('wds_effects', WD_S_URL . '/css/wds_effects.css', array(), $version);
269
 
4
  * Plugin Name: Slider WD
5
  * Plugin URI: http://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
+ * Version: 1.0.5
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
97
  }
98
 
99
  function wds_ajax() {
100
+ if (function_exists('current_user_can')) {
101
+ if (!current_user_can('manage_options')) {
102
+ die('Access Denied');
103
+ }
104
+ }
105
+ else {
106
+ die('Access Denied');
107
+ }
108
  require_once(WD_S_DIR . '/framework/WDW_S_Library.php');
109
  $page = WDW_S_Library::get('action');
110
  if ($page != '' && (($page == 'WDSShortcode'))) {
116
  }
117
 
118
  function wds_shortcode($params) {
119
+ $params = shortcode_atts(array('id' => 0), $params);
120
  ob_start();
121
  wds_front_end($params['id']);
122
  return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
178
  }
179
  add_action('admin_head', 'wds_admin_ajax');
180
 
181
+ // Add images to Slider.
182
  add_action('wp_ajax_wds_UploadHandler', 'wds_UploadHandler');
183
  add_action('wp_ajax_addImage', 'wds_filemanager_ajax');
184
 
189
 
190
  function wds_filemanager_ajax() {
191
  if (function_exists('current_user_can')) {
192
+ if (!current_user_can('manage_options')) {
193
  die('Access Denied');
194
  }
195
  }
217
  global $wpdb;
218
  wds_install();
219
  if (!$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslider")) {
220
+ $wpdb->insert(
221
+ $wpdb->prefix . 'wdsslider',
222
+ array(
223
+ 'id' => 1,
224
+ 'name' => 'Default slider',
225
+ 'published' => 1,
226
+ 'full_width' => 0,
227
+ 'width' => 800,
228
+ 'height' => 300,
229
+ 'bg_fit' => 'cover',
230
+ 'align' => 'center',
231
+ 'effect' => 'none',
232
+ 'time_intervval' => 5,
233
+ 'autoplay' => 1,
234
+ 'shuffle' => 0,
235
+ 'music' => 0,
236
+ 'music_url' => '',
237
+ 'preload_images' => 1,
238
+ 'background_color' => '000000',
239
+ 'background_transparent' => 100,
240
+ 'glb_border_width' => 0,
241
+ 'glb_border_style' => 'none',
242
+ 'glb_border_color' => 'FFFFFF',
243
+ 'glb_border_radius' => '',
244
+ 'glb_margin' => 0,
245
+ 'glb_box_shadow' => '',
246
+ 'image_right_click' => 0,
247
+ 'layer_out_next' => 1,
248
+ 'prev_next_butt' => 1,
249
+ 'play_paus_butt' => 0,
250
+ 'navigation' => 'hover',
251
+ 'rl_butt_style' => 'fa-angle',
252
+ 'rl_butt_size' => 40,
253
+ 'pp_butt_size' => 40,
254
+ 'butts_color' => 'FFFFFF',
255
+ 'butts_transparent' => 100,
256
+ 'hover_color' => 'CCCCCC',
257
+ 'nav_border_width' => 0,
258
+ 'nav_border_style' => 'none',
259
+ 'nav_border_color' => 'FFFFFF',
260
+ 'nav_border_radius' => '20px',
261
+ 'nav_bg_color' => 'FFFFFF',
262
+ 'bull_position' => 'bottom',
263
+ 'bull_style' => 'fa-square-o',
264
+ 'bull_size' => 20,
265
+ 'bull_color' => 'FFFFFF',
266
+ 'bull_act_color' => 'FFFFFF',
267
+ 'bull_margin' => 3,
268
+ 'film_pos' => 'none',
269
+ 'film_thumb_width' => 100,
270
+ 'film_thumb_height' => 50,
271
+ 'film_bg_color' => '000000',
272
+ 'film_tmb_margin' => 0,
273
+ 'film_act_border_width' => 0,
274
+ 'film_act_border_style' => 'none',
275
+ 'film_act_border_color' => 'FFFFFF',
276
+ 'film_dac_transparent' => 50,
277
+ 'timer_bar_type' => 'none',
278
+ 'timer_bar_size' => 5,
279
+ 'timer_bar_color' => 'FFFFFF',
280
+ 'timer_bar_transparent' => 50,
281
+ 'built_in_watermark_type' => 'none',
282
+ 'built_in_watermark_position' => 'middle-center',
283
+ 'built_in_watermark_size' => 15,
284
+ 'built_in_watermark_url' => WD_S_URL . '/images/watermark.png',
285
+ 'built_in_watermark_text' => 'web-dorado.com',
286
+ 'built_in_watermark_font_size' => 20,
287
+ 'built_in_watermark_font' => '',
288
+ 'built_in_watermark_color' => 'FFFFFF',
289
+ 'built_in_watermark_opacity' => 70,
290
+ 'css' => '',
291
+ 'stop_animation' => 0,
292
+ 'spider_uploader' => 1,
293
+ 'right_butt_url' => WD_S_URL . '/images/arrow/arrow11/1/2.png',
294
+ 'left_butt_url' => WD_S_URL . '/images/arrow/arrow11/1/1.png',
295
+ 'right_butt_hov_url' => WD_S_URL . '/images/arrow/arrow11/1/4.png',
296
+ 'left_butt_hov_url' => WD_S_URL . '/images/arrow/arrow11/1/3.png',
297
+ 'rl_butt_img_or_not' => 'style',
298
+ 'bullets_img_main_url' => WD_S_URL . '/images/bullet/bullet1/1/1.png',
299
+ 'bullets_img_hov_url' => WD_S_URL . '/images/bullet/bullet1/1/2.png',
300
+ 'bull_butt_img_or_not' => 'style',
301
+ )
302
+ );
303
  }
304
  if (!$wpdb->get_var("SELECT * FROM " . $wpdb->prefix . "wdsslide")) {
305
  $wpdb->query('INSERT INTO `' . $wpdb->prefix . 'wdsslide` VALUES(1, 1, "Slide 1", "image", "' . WD_S_URL . '/demo/1.jpg", "' . WD_S_URL . '/demo/1-150x150.jpg", 1, "", 1, 0)');
311
 
312
  function wds_install() {
313
  $version = get_option("wds_version");
314
+ $new_version = '1.0.5';
315
  if ($version && version_compare($version, $new_version, '<')) {
316
  require_once WD_S_DIR . "/sliders-update.php";
317
  wds_update($version);
318
  update_option("wds_version", $new_version);
319
  }
320
+ elseif (!$version) {
321
  require_once WD_S_DIR . "/sliders-insert.php";
322
  wds_insert();
323
+ add_option("wds_theme_version", '1.0.0', '', 'no');
 
 
 
324
  add_option("wds_version", $new_version, '', 'no');
325
  }
326
  }
330
 
331
  // Plugin styles.
332
  function wds_styles() {
333
+ $version = get_option("wds_version");
334
  wp_admin_css('thickbox');
335
+ wp_enqueue_style('wds_tables', WD_S_URL . '/css/wds_tables.css', array(), $version);
336
  }
337
 
338
  // Plugin scripts.
343
  wp_enqueue_script('jquery');
344
  wp_enqueue_script('jquery-ui-sortable');
345
  wp_enqueue_script('jquery-ui-draggable');
346
+ wp_enqueue_script('wds_admin', WD_S_URL . '/js/wds.js', array(), $version);
347
  wp_enqueue_script('jscolor', WD_S_URL . '/js/jscolor/jscolor.js', array(), '1.3.9');
348
  wp_enqueue_style('wds_font-awesome', WD_S_URL . '/css/font-awesome-4.0.1/font-awesome.css', array(), '4.0.1');
349
  wp_enqueue_style('wds_effects', WD_S_URL . '/css/wds_effects.css', array(), $version);
352
  function wds_front_end_scripts() {
353
  $version = get_option("wds_version");
354
  wp_enqueue_script('jquery');
355
+
356
+ wp_enqueue_script('wds_jquery_mobile', WD_S_URL . '/js/jquery.mobile.js', array(), $version);
357
+
358
  wp_enqueue_style('wds_frontend', WD_S_URL . '/css/wds_frontend.css', array(), $version);
359
  wp_enqueue_style('wds_effects', WD_S_URL . '/css/wds_effects.css', array(), $version);
360
 
sliders-insert.php CHANGED
@@ -73,6 +73,14 @@ function wds_insert() {
73
  `timer_bar_transparent` int(4) NOT NULL,
74
  `spider_uploader` tinyint(1) NOT NULL,
75
  `stop_animation` tinyint(1) NOT NULL,
 
 
 
 
 
 
 
 
76
  PRIMARY KEY (`id`)
77
  ) DEFAULT CHARSET=utf8;";
78
  $wpdb->query($wdsslider);
@@ -86,7 +94,7 @@ function wds_insert() {
86
  `published` tinyint(1) NOT NULL,
87
  `link` mediumtext NOT NULL,
88
  `order` bigint(20) NOT NULL,
89
- `target_attr_slide`tinyint(1) NOT NULL,
90
  PRIMARY KEY (`id`)
91
  ) DEFAULT CHARSET=utf8;";
92
  $wpdb->query($wdsslide);
73
  `timer_bar_transparent` int(4) NOT NULL,
74
  `spider_uploader` tinyint(1) NOT NULL,
75
  `stop_animation` tinyint(1) NOT NULL,
76
+ `right_butt_url` varchar(255) NOT NULL,
77
+ `left_butt_url` varchar(255) NOT NULL,
78
+ `right_butt_hov_url` varchar(255) NOT NULL,
79
+ `left_butt_hov_url` varchar(255) NOT NULL,
80
+ `rl_butt_img_or_not` varchar(8) NOT NULL,
81
+ `bullets_img_main_url` varchar(255) NOT NULL,
82
+ `bullets_img_hov_url` varchar(255) NOT NULL,
83
+ `bull_butt_img_or_not` varchar(8) NOT NULL,
84
  PRIMARY KEY (`id`)
85
  ) DEFAULT CHARSET=utf8;";
86
  $wpdb->query($wdsslider);
94
  `published` tinyint(1) NOT NULL,
95
  `link` mediumtext NOT NULL,
96
  `order` bigint(20) NOT NULL,
97
+ `target_attr_slide` tinyint(1) NOT NULL,
98
  PRIMARY KEY (`id`)
99
  ) DEFAULT CHARSET=utf8;";
100
  $wpdb->query($wdsslide);
sliders-update.php CHANGED
@@ -12,6 +12,20 @@ function wds_update($version) {
12
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslide ADD `target_attr_slide` tinyint(1) NOT NULL DEFAULT 1");
13
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `target_attr_layer` tinyint(1) NOT NULL DEFAULT 1");
14
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  return;
16
  }
17
 
12
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslide ADD `target_attr_slide` tinyint(1) NOT NULL DEFAULT 1");
13
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `target_attr_layer` tinyint(1) NOT NULL DEFAULT 1");
14
  }
15
+ if (version_compare($version, '1.0.5') == -1) {
16
+ // Add right/left button image/hover image url.
17
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/arrow/arrow11/1/2.png' . "'");
18
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/arrow/arrow11/1/1.png' . "'");
19
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `right_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/arrow/arrow11/1/4.png' . "'");
20
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `left_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/arrow/arrow11/1/3.png' . "'");
21
+ // Whether to display right/left buttons by image or not.
22
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `rl_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
23
+ // Add bullets image/hover image url.
24
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_main_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/bullet/bullet1/1/1.png' . "'");
25
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bullets_img_hov_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/bullet/bullet1/1/2.png' . "'");
26
+ // Whether to display bullets by image or not.
27
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bull_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
28
+ }
29
  return;
30
  }
31