Slider by WD – Responsive Slider - Version 1.0.6

Version Description

custom play/pause buttons slide duplication

Download this release

Release Info

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

Code changes from version 1.0.5 to 1.0.6

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -166,14 +166,19 @@ 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
- $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,
@@ -253,6 +258,13 @@ class WDSControllerSliders_wds {
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',
@@ -331,6 +343,11 @@ class WDSControllerSliders_wds {
331
  '%s',
332
  '%s',
333
  '%s',
 
 
 
 
 
334
  ));
335
  $_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
336
  }
@@ -413,6 +430,11 @@ class WDSControllerSliders_wds {
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) {
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'])) : '');
170
+ $left_butt_url = (isset($_POST['left_butt_url']) ? esc_html(stripslashes($_POST['left_butt_url'])) : '');
171
+ $right_butt_hov_url = (isset($_POST['right_butt_hov_url']) ? esc_html(stripslashes($_POST['right_butt_hov_url'])) : '');
172
+ $left_butt_hov_url = (isset($_POST['left_butt_hov_url']) ? esc_html(stripslashes($_POST['left_butt_hov_url'])) : '');
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'])) : '');
175
+ $bullets_img_hov_url = (isset($_POST['bullets_img_hov_url']) ? esc_html(stripslashes($_POST['bullets_img_hov_url'])) : '');
176
  $bull_butt_img_or_not = (isset($_POST['bull_butt_img_or_not']) ? esc_html(stripslashes($_POST['bull_butt_img_or_not'])) : 'style');
177
+ $play_paus_butt_img_or_not = (isset($_POST['play_paus_butt_img_or_not']) ? esc_html(stripslashes($_POST['play_paus_butt_img_or_not'])) : 'style');
178
+ $play_butt_url = (isset($_POST['play_butt_url']) ? esc_html(stripslashes($_POST['play_butt_url'])) : '');
179
+ $play_butt_hov_url = (isset($_POST['play_butt_hov_url']) ? esc_html(stripslashes($_POST['play_butt_hov_url'])) : '');
180
+ $paus_butt_url = (isset($_POST['paus_butt_url']) ? esc_html(stripslashes($_POST['paus_butt_url'])) : '');
181
+ $paus_butt_hov_url = (isset($_POST['paus_butt_hov_url']) ? esc_html(stripslashes($_POST['paus_butt_hov_url'])) : '');
182
  if (!$slider_id) {
183
  $save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
184
  'name' => $name,
258
  'bullets_img_main_url' => $bullets_img_main_url,
259
  'bullets_img_hov_url' => $bullets_img_hov_url,
260
  'bull_butt_img_or_not' => $bull_butt_img_or_not,
261
+ 'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
262
+ 'play_butt_url' => $play_butt_url,
263
+ 'play_butt_hov_url' => $play_butt_hov_url,
264
+ 'paus_butt_url' => $paus_butt_url,
265
+ 'paus_butt_hov_url' => $paus_butt_hov_url,
266
+
267
+
268
  ), array(
269
  '%s',
270
  '%d',
343
  '%s',
344
  '%s',
345
  '%s',
346
+ '%s',
347
+ '%s',
348
+ '%s',
349
+ '%s',
350
+ '%s',
351
  ));
352
  $_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
353
  }
430
  'bullets_img_main_url' => $bullets_img_main_url,
431
  'bullets_img_hov_url' => $bullets_img_hov_url,
432
  'bull_butt_img_or_not' => $bull_butt_img_or_not,
433
+ 'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
434
+ 'play_butt_url' => $play_butt_url,
435
+ 'play_butt_hov_url' => $play_butt_hov_url,
436
+ 'paus_butt_url' => $paus_butt_url,
437
+ 'paus_butt_hov_url' => $paus_butt_hov_url,
438
  ), array('id' => $slider_id));
439
  }
440
  if ($save !== FALSE) {
admin/models/WDSModelSliders_wds.php CHANGED
@@ -171,6 +171,11 @@ class WDSModelSliders_wds {
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
  }
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
+ $row->play_paus_butt_img_or_not = 'style';
175
+ $row->play_butt_url = WD_S_URL . '/images/button/button4/1/1.png';
176
+ $row->play_butt_hov_url = WD_S_URL . '/images/button/button4/1/2.png';
177
+ $row->paus_butt_url = WD_S_URL . '/images/button/button4/1/3.png';
178
+ $row->paus_butt_hov_url = WD_S_URL . '/images/button/button4/1/4.png';
179
  }
180
  return $row;
181
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -616,7 +616,7 @@ class WDSViewSliders_wds {
616
  <td class="spider_label"><label for="glb_box_shadow">Shadow: </label></td>
617
  <td>
618
  <input type="text" name="glb_box_shadow" id="glb_box_shadow" value="<?php echo $row->glb_box_shadow; ?>" class="spider_box_input" />
619
- <div class="spider_description">Use CSS type values.</div>
620
  </td>
621
  </tr>
622
  <tr>
@@ -671,16 +671,6 @@ class WDSViewSliders_wds {
671
  <div class="spider_description">Choose whether to display Previous and Next buttons or not.</div>
672
  </td>
673
  </tr>
674
- <tr>
675
- <td class="spider_label_options">
676
- <label>Play / Pause button: </label>
677
- </td>
678
- <td>
679
- <input type="radio" name="play_paus_butt" id="play_paus_butt_1" value="1" <?php if ($row->play_paus_butt) echo 'checked="checked"'; ?> /><label for="play_paus_butt_1">Yes</label>
680
- <input type="radio" name="play_paus_butt" id="play_paus_butt_0" value="0" <?php if (!$row->play_paus_butt) echo 'checked="checked"'; ?> /><label for="play_paus_butt_0">No</label>
681
- <div class="spider_description">Choose whether to display Play and Pause buttons or not.</div>
682
- </td>
683
- </tr>
684
  <tr>
685
  <td class="spider_label_options">
686
  <label>Show Navigation buttons: </label>
@@ -761,7 +751,7 @@ class WDSViewSliders_wds {
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 = '';
@@ -785,9 +775,9 @@ class WDSViewSliders_wds {
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);
@@ -828,7 +818,7 @@ class WDSViewSliders_wds {
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>
@@ -881,6 +871,186 @@ class WDSViewSliders_wds {
881
  <div class="spider_description">Set the size for the next / previous buttons.</div>
882
  </td>
883
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
  <tr id="play_pause_butt_size">
885
  <td class="spider_label <?php echo $fv_class; ?>"><label for="pp_butt_size">Play / Pause button size: </label></td>
886
  <td>
@@ -1023,9 +1193,9 @@ class WDSViewSliders_wds {
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);
@@ -1466,6 +1636,7 @@ class WDSViewSliders_wds {
1466
  <a id="wbs_subtab<?php echo $slide_row->id; ?>" class="connectedSortable <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?>" href="#">
1467
  <div class="handle" title="Drag to re-order"></div>
1468
  <input type="text" id="title<?php echo $slide_row->id; ?>" name="title<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->title; ?>" class="wds_tab_title" tab_type="slide<?php echo $slide_row->id; ?>" onclick="wds_change_sub_tab(this, 'wds_slide<?php echo $slide_row->id; ?>')"/>
 
1469
  <span class="wds_tab_remove" title="Delete slide" onclick="wds_remove_slide('<?php echo $slide_row->id; ?>')"></span>
1470
  <input type="hidden" name="order<?php echo $slide_row->id; ?>" id="order<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->order; ?>" />
1471
  </a>
@@ -1540,6 +1711,13 @@ class WDSViewSliders_wds {
1540
  <?php
1541
  break;
1542
  }
 
 
 
 
 
 
 
1543
  case 'social': {
1544
  ?>
1545
  <style>#<?php echo $prefix; ?>:hover {color: #<?php echo $layer->hover_color; ?> !important;}</style>
@@ -1593,6 +1771,7 @@ class WDSViewSliders_wds {
1593
  <?php
1594
  }
1595
  ?>
 
1596
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Social Button Layer" />
1597
  </td>
1598
  </tr>
@@ -1609,7 +1788,7 @@ class WDSViewSliders_wds {
1609
  <div class="handle connectedSortable" title="Drag to re-order"></div>
1610
  <span class="wds_layer_label" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 0)"><input id="<?php echo $prefix; ?>_title" name="<?php echo $prefix; ?>_title" type="text" class="wds_layer_title" style="width: 80px;" value="<?php echo $layer->title; ?>" title="Layer title" /></span>
1611
  <span class="wds_layer_remove" onclick="wds_delete_layer('<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>')" title="Delete layer"></span>
1612
- <span class="wds_layer_dublicate" onclick="wds_add_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '', event, 1); wds_duplicate_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>');" title="Duplicate layer"></span>
1613
  <input id="<?php echo $prefix; ?>_depth" class="wds_layer_depth spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({zIndex: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $layer->depth; ?>" prefix="<?php echo $prefix; ?>" name="<?php echo $prefix; ?>_depth" title="z-index" />
1614
  </td>
1615
  </tr>
@@ -1811,7 +1990,7 @@ class WDSViewSliders_wds {
1811
  </td>
1812
  <td>
1813
  <input id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $layer->shadow; ?>" name="<?php echo $prefix; ?>_shadow" />
1814
- <div class="spider_description">Use CSS type values.</div>
1815
  </td>
1816
  </tr>
1817
  <tr class="wds_layer_tr" style="display: none;">
@@ -2129,6 +2308,7 @@ class WDSViewSliders_wds {
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; ?>');
@@ -2174,6 +2354,9 @@ class WDSViewSliders_wds {
2174
  jQuery(document).ready(function() {
2175
  wds_onload();
2176
  });
 
 
 
2177
  </script>
2178
  <div class="opacity_add_image_url opacity_add_video wds_opacity_video" onclick="jQuery('.opacity_add_video').hide();jQuery('.opacity_add_image_url').hide();"></div>
2179
  <div class="opacity_add_video wds_add_video">
616
  <td class="spider_label"><label for="glb_box_shadow">Shadow: </label></td>
617
  <td>
618
  <input type="text" name="glb_box_shadow" id="glb_box_shadow" value="<?php echo $row->glb_box_shadow; ?>" class="spider_box_input" />
619
+ <div class="spider_description">Use CSS type values (e.g. 10px 10px 5px #888888).</div>
620
  </td>
621
  </tr>
622
  <tr>
671
  <div class="spider_description">Choose whether to display Previous and Next buttons or not.</div>
672
  </td>
673
  </tr>
 
 
 
 
 
 
 
 
 
 
674
  <tr>
675
  <td class="spider_label_options">
676
  <label>Show Navigation buttons: </label>
751
  <script>
752
  var wds_rl_butt_type = [];
753
  var rl_butt_dir = '<?php echo WD_S_URL . '/images/arrow/'; ?>';
754
+ var type_cur_fold = '1';
755
  <?php
756
  $folder_names = scandir(WD_S_DIR . '/images/arrow');
757
  $cur_fold_name = '';
775
  $cur_type_key = $type_key;
776
  $cur_sub_fold_names = scandir(WD_S_DIR . '/images/arrow/' . $cur_fold_name);
777
  array_splice($cur_sub_fold_names, 0, 2);
778
+ ?>
779
+ type_cur_fold = '<?php echo $cur_type_key;?>';
780
+ <?php
781
  }
782
  }
783
  $sub_folder_names = scandir( WD_S_DIR . '/images/arrow/' . $folder_name);
818
  <?php
819
  foreach ($folder_names as $type_key => $folder_name) {
820
  ?>
821
+ <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)">
822
  <div class="spider_option_cont_title">
823
  <?php echo 'Group-' . ++$type_key; ?>
824
  </div>
871
  <div class="spider_description">Set the size for the next / previous buttons.</div>
872
  </td>
873
  </tr>
874
+ <tr>
875
+ <td class="spider_label_options">
876
+ <label>Play / Pause button: </label>
877
+ </td>
878
+ <td>
879
+ <input type="radio" name="play_paus_butt" id="play_paus_butt_1" value="1" <?php if ($row->play_paus_butt) echo 'checked="checked"'; ?> /><label for="play_paus_butt_1">Yes</label>
880
+ <input type="radio" name="play_paus_butt" id="play_paus_butt_0" value="0" <?php if (!$row->play_paus_butt) echo 'checked="checked"'; ?> /><label for="play_paus_butt_0">No</label>
881
+ <div class="spider_description">Choose whether to display Play and Pause buttons or not.</div>
882
+ </td>
883
+ </tr>
884
+ </tbody>
885
+ <tbody>
886
+ <tr>
887
+ <td class="spider_label_options">
888
+ <label>Image for Play / Pause buttons: </label>
889
+ </td>
890
+ <td>
891
+ <input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_our" value="our" <?php if ($row->play_paus_butt_img_or_not == 'our') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('our')" /><label for="play_pause_butt_img_or_not_our">Default</label>
892
+ <input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_cust" value="custom" <?php if ($row->play_paus_butt_img_or_not == 'custom') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('custom')" /><label for="play_pause_butt_img_or_not_cust">Custom</label>
893
+ <input type="radio" name="play_paus_butt_img_or_not" id="play_pause_butt_img_or_not_select" value="style" <?php if ($row->play_paus_butt_img_or_not == 'style') echo 'checked="checked"'; ?> onClick="image_for_play_pause_butt('style')" /><label for="play_pause_butt_img_or_not_select">Styled</label>
894
+ <input type="hidden" id="play_butt_url" name="play_butt_url" value="<?php echo $row->play_butt_url; ?>" />
895
+ <input type="hidden" id="play_butt_hov_url" name="play_butt_hov_url" value="<?php echo $row->play_butt_hov_url; ?>" />
896
+ <input type="hidden" id="paus_butt_url" name="paus_butt_url" value="<?php echo $row->paus_butt_url; ?>" />
897
+ <input type="hidden" id="paus_butt_hov_url" name="paus_butt_hov_url" value="<?php echo $row->paus_butt_hov_url; ?>" />
898
+ <div class="spider_description">Choose whether to use default play/pause buttons or to upload custom ones.</div>
899
+ </td>
900
+ </tr>
901
+ </tbody>
902
+ <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
903
+ <tr id="play_pause_butt_style">
904
+ <td class="spider_label"><label for="pp_butt_style">Play / Pause buttons style: </label></td>
905
+ <td>
906
+ <div style="display: table-cell; vertical-align: middle; background-color: rgba(229, 229, 229, 0.62); text-align: center;">
907
+ <i id="wds_play_style" class="fa fa-play" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
908
+ <i id="wds_paus_style" class="fa fa-pause" style="color: #<?php echo $row->butts_color; ?>; display: inline-block; font-size: 40px; width: 40px; height: 40px;"></i>
909
+ </div>
910
+ </td>
911
+ </tr>
912
+ <tr id="play_pause_butt_cust">
913
+ <td class="spider_label_options" style="vertical-align: middle;">
914
+ <label>Upload buttons images: </label>
915
+ </td>
916
+ <td>
917
+ <div style="display: table;">
918
+ <div style="display: table-cell; vertical-align: middle;">
919
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Play Button" onclick="alert('This functionality is disabled in free version.')" />
920
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Play Button Hover" onclick="alert('This functionality is disabled in free version.')" />
921
+ </div>
922
+ <div style="display: table-cell; vertical-align: middle;">
923
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Pause Button" onclick="alert('This functionality is disabled in free version.')" />
924
+ <input class="button-secondary wds_ctrl_btn_upload wds_free_button" type="button" value="Pause Button Hover" onclick="alert('This functionality is disabled in free version.')" />
925
+ </div>
926
+ <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;">
927
+ <img id="play_butt_img" src="<?php echo $row->play_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
928
+ <img id="paus_butt_img" src="<?php echo $row->paus_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
929
+ <img id="play_butt_hov_img" src="<?php echo $row->play_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
930
+ <img id="paus_butt_hov_img" src="<?php echo $row->paus_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
931
+ </div>
932
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
933
+ <input type="button" class="button button-small wds_reverse" onclick="wds_change_play_paus_custom_src()" value="Reverse" />
934
+ </div>
935
+ </div>
936
+ </td>
937
+ </tr>
938
+ <script>
939
+ var wds_pp_butt_type = [];
940
+ var pp_butt_dir = '<?php echo WD_S_URL . '/images/button/'; ?>';
941
+ var pp_type_cur_fold = '1';
942
+ <?php
943
+ $folder_names = scandir(WD_S_DIR . '/images/button');
944
+ $butt_cur_fold_name = '';
945
+ $butt_cur_type_key = '';
946
+ $butt_cur_color_key = '';
947
+ $butt_cur_sub_fold_names = array();
948
+ array_splice($folder_names, 0, 2);
949
+ $flag = FALSE;
950
+ foreach ($folder_names as $type_key => $folder_name) {
951
+ if (is_dir(WD_S_DIR . '/images/button/' . $folder_name)) {
952
+ ?>
953
+ wds_pp_butt_type["<?php echo $type_key; ?>"] = [];
954
+ wds_pp_butt_type["<?php echo $type_key; ?>"]["type_name"] = "<?php echo $folder_name; ?>";
955
+ <?php
956
+ if ($row->play_butt_url != '') {
957
+ /* Getting current button's type folder and color folder.*/
958
+ $check_butt_cur_fold = explode('/' , $row->play_butt_url);
959
+ if (in_array($folder_name, $check_butt_cur_fold)) {
960
+ $flag = TRUE;
961
+ $butt_cur_fold_name = $folder_name;
962
+ $butt_cur_type_key = $type_key;
963
+ $butt_cur_sub_fold_names = scandir(WD_S_DIR . '/images/button/' . $butt_cur_fold_name);
964
+ array_splice($butt_cur_sub_fold_names, 0, 2);
965
+ ?>
966
+ pp_type_cur_fold = '<?php echo $butt_cur_type_key;?>';
967
+ <?php
968
+ }
969
+ }
970
+ $sub_folder_names = scandir( WD_S_DIR . '/images/button/' . $folder_name);
971
+ array_splice($sub_folder_names, 0, 2);
972
+ foreach ($sub_folder_names as $color_key => $sub_folder_name) {
973
+ if (is_dir(WD_S_DIR . '/images/button/' . $folder_name . '/' . $sub_folder_name)) {
974
+ if ($butt_cur_fold_name == $folder_name) {
975
+ /* Getting current button's color key.*/
976
+ if (in_array($sub_folder_name, $check_butt_cur_fold)) {
977
+ $butt_cur_color_key = $color_key;
978
+ }
979
+ }
980
+ ?>
981
+ wds_pp_butt_type["<?php echo $type_key; ?>"]["<?php echo $color_key; ?>"] = "<?php echo $sub_folder_name; ?>";
982
+ <?php
983
+ }
984
+ }
985
+ }
986
+ else {
987
+ echo $folder_name . " is not a directory.";
988
+ }
989
+ }
990
+ ?>
991
+ </script>
992
+ <tr id="play_pause_butt_select">
993
+ <td class="spider_label_options" style="vertical-align: middle;">
994
+ <label for="right_butt_url">Choose buttons: </label>
995
+ </td>
996
+ <td style="display: block;">
997
+ <div style="display: table; margin-bottom: 14px;">
998
+ <div style="display: table-cell; vertical-align: middle;">
999
+ <div style="display: block; width: 180px;">
1000
+ <div class="spider_choose_option" onclick="wds_choose_pp_option(this)">
1001
+ <div class="spider_option_main_title">Choose group</div>
1002
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color: #1E8CBE"></i></div>
1003
+ </div>
1004
+ <div class="spider_pp_options_cont">
1005
+ <?php
1006
+ foreach ($folder_names as $type_key => $folder_name) {
1007
+ ?>
1008
+ <div class="spider_option_cont wds_pp_butt_groups" value="<?php echo $type_key; ?>" <?php echo (($butt_cur_type_key == $type_key) ? 'selected="selected" style="background-color: #3399FF;"' : ''); ?> onclick="change_play_paus_butt_type(this)">
1009
+ <div class="spider_option_cont_title">
1010
+ <?php echo 'Group-' . ++$type_key; ?>
1011
+ </div>
1012
+ <div class="spider_option_cont_img">
1013
+ <img class="pp_src_top_left" style="display: inline-block; width: 14px; height: 14px;" />
1014
+ <img class="pp_src_top_right" style="display: inline-block; width: 14px; height: 14px;" />
1015
+ <img class="pp_src_bottom_left" style="display: inline-block; width: 14px; height: 14px;" />
1016
+ <img class="pp_src_bottom_right" style="display: inline-block; width: 14px; height: 14px;" />
1017
+ </div>
1018
+ </div>
1019
+ <?php
1020
+ }
1021
+ if (!$flag) {
1022
+ /* Folder doesn't exist.*/
1023
+ ?>
1024
+ <div class="spider_option_cont" value="0" selected="selected" disabled="disabled">Custom</div>
1025
+ <?php
1026
+ }
1027
+ ?>
1028
+ </div>
1029
+ </div>
1030
+ </div>
1031
+ <div style="display:table-cell;vertical-align: middle;">
1032
+ <div style="display: block; width: 180px; margin-left: 12px;">
1033
+ <div class="spider_choose_option" onclick="alert('This functionality is disabled in free version.')">
1034
+ <div class="spider_option_main_title">Choose color</div>
1035
+ <div class="spider_sel_option_ic"><i class="fa fa-angle-down fa-lg" style="color:#1E8CBE"></i></div>
1036
+ </div>
1037
+ </div>
1038
+ </div>
1039
+ <div style="width:100px; display: table-cell; vertical-align: middle; text-align: center;">
1040
+ <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;">
1041
+ <img id="pp_butt_img_play" src="<?php echo $row->play_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1042
+ <img id="pp_butt_img_paus" src="<?php echo $row->paus_butt_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1043
+ <img id="pp_butt_hov_img_play" src="<?php echo $row->play_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1044
+ <img id="pp_butt_hov_img_paus" src="<?php echo $row->paus_butt_hov_url; ?>" style="display:inline-block; width: 40px; height: 40px;" />
1045
+ </div>
1046
+ </div>
1047
+ <div style="display: table-cell; text-align: center; vertical-align: middle;">
1048
+ <input type="button" class="button button-small wds_reverse" onclick="change_play_paus_src()" value="Reverse" />
1049
+ </div>
1050
+ </div>
1051
+ <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>
1052
+ </td>
1053
+ </tr>
1054
  <tr id="play_pause_butt_size">
1055
  <td class="spider_label <?php echo $fv_class; ?>"><label for="pp_butt_size">Play / Pause button size: </label></td>
1056
  <td>
1193
  $bull_cur_type_key = $type_key;
1194
  $bull_cur_sub_fold_names = scandir(WD_S_DIR . '/images/bullet/' . $bull_cur_fold_name);
1195
  array_splice($bull_cur_sub_fold_names, 0, 2);
1196
+ ?>
1197
+ bull_type_cur_fold = '<?php echo $bull_cur_type_key;?>';
1198
+ <?php
1199
  }
1200
  }
1201
  $sub_folder_names = scandir(WD_S_DIR . '/images/bullet/' . $folder_name);
1636
  <a id="wbs_subtab<?php echo $slide_row->id; ?>" class="connectedSortable <?php echo (((($id == 0 || !$sub_tab_type) || (strpos($sub_tab_type, 'pr') !== FALSE)) && $key == 0) || ('slide' . $slide_row->id == $sub_tab_type)) ? 'wds_sub_active' : ''; ?>" href="#">
1637
  <div class="handle" title="Drag to re-order"></div>
1638
  <input type="text" id="title<?php echo $slide_row->id; ?>" name="title<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->title; ?>" class="wds_tab_title" tab_type="slide<?php echo $slide_row->id; ?>" onclick="wds_change_sub_tab(this, 'wds_slide<?php echo $slide_row->id; ?>')"/>
1639
+ <span class="wds_slide_dublicate" onclick="wds_duplicate_slide('<?php echo $slide_row->id; ?>');" title="Duplicate slide"></span>
1640
  <span class="wds_tab_remove" title="Delete slide" onclick="wds_remove_slide('<?php echo $slide_row->id; ?>')"></span>
1641
  <input type="hidden" name="order<?php echo $slide_row->id; ?>" id="order<?php echo $slide_row->id; ?>" value="<?php echo $slide_row->order; ?>" />
1642
  </a>
1711
  <?php
1712
  break;
1713
  }
1714
+ case 'video': {
1715
+ ?>
1716
+ <img id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)" src="<?php echo $layer->image_url; ?>"
1717
+ style="max-width: <?php echo $layer->image_width; ?>px; width: <?php echo $layer->image_width; ?>px; max-height: <?php echo $layer->image_height; ?>px; height: <?php echo $layer->image_height; ?>px; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>;" />
1718
+ <?php
1719
+ break;
1720
+ }
1721
  case 'social': {
1722
  ?>
1723
  <style>#<?php echo $prefix; ?>:hover {color: #<?php echo $layer->hover_color; ?> !important;}</style>
1771
  <?php
1772
  }
1773
  ?>
1774
+ <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Video Layer" />
1775
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Social Button Layer" />
1776
  </td>
1777
  </tr>
1788
  <div class="handle connectedSortable" title="Drag to re-order"></div>
1789
  <span class="wds_layer_label" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 0)"><input id="<?php echo $prefix; ?>_title" name="<?php echo $prefix; ?>_title" type="text" class="wds_layer_title" style="width: 80px;" value="<?php echo $layer->title; ?>" title="Layer title" /></span>
1790
  <span class="wds_layer_remove" onclick="wds_delete_layer('<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>')" title="Delete layer"></span>
1791
+ <span class="wds_layer_dublicate" onclick="wds_add_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '', 1, 0); wds_duplicate_layer('<?php echo $layer->type; ?>', '<?php echo $slide_row->id; ?>', '<?php echo $layer->id; ?>');" title="Duplicate layer"></span>
1792
  <input id="<?php echo $prefix; ?>_depth" class="wds_layer_depth spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({zIndex: jQuery(this).val()})" onkeypress="return spider_check_isnum(event)" value="<?php echo $layer->depth; ?>" prefix="<?php echo $prefix; ?>" name="<?php echo $prefix; ?>_depth" title="z-index" />
1793
  </td>
1794
  </tr>
1990
  </td>
1991
  <td>
1992
  <input id="<?php echo $prefix; ?>_shadow" class="spider_char_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({boxShadow: jQuery(this).val()})" value="<?php echo $layer->shadow; ?>" name="<?php echo $prefix; ?>_shadow" />
1993
+ <div class="spider_description">Use CSS type values (e.g. 10px 10px 5px #888888).</div>
1994
  </td>
1995
  </tr>
1996
  <tr class="wds_layer_tr" style="display: none;">
2308
  jQuery(document).ready(function() {
2309
  image_for_next_prev_butt('<?php echo $row->rl_butt_img_or_not; ?>');
2310
  image_for_bull_butt('<?php echo $row->bull_butt_img_or_not; ?>');
2311
+ image_for_play_pause_butt('<?php echo $row->play_paus_butt_img_or_not; ?>');
2312
  wds_whr('width');
2313
  wds_drag_layer('<?php echo $slide_row->id; ?>');
2314
  wds_layer_weights('<?php echo $slide_row->id; ?>');
2354
  jQuery(document).ready(function() {
2355
  wds_onload();
2356
  });
2357
+ jQuery("#sliders_form").on("click", "a", function(e) {
2358
+ e.preventDefault();
2359
+ });
2360
  </script>
2361
  <div class="opacity_add_image_url opacity_add_video wds_opacity_video" onclick="jQuery('.opacity_add_video').hide();jQuery('.opacity_add_image_url').hide();"></div>
2362
  <div class="opacity_add_video wds_add_video">
css/wds_tables.css CHANGED
@@ -307,7 +307,12 @@
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;
@@ -630,7 +635,7 @@
630
  font: bold 14px/26px Arial,serif;
631
  height: 26px;
632
  padding: 0 5px;
633
- width: 87px;
634
  }
635
 
636
  .wds_add_layer {
@@ -671,6 +676,7 @@
671
  height: 9px;
672
  opacity: 0.5;
673
  filter: Alpha(opacity=50);
 
674
  }
675
 
676
  .wds_layer_remove {
@@ -695,6 +701,16 @@
695
  float: right;
696
  }
697
 
 
 
 
 
 
 
 
 
 
 
698
  .wds_layer_depth {
699
  float: right;
700
  font-size: 13px;
307
  width: 100%;
308
  }
309
 
310
+ .spider_options_cont,
311
+ .spider_bull_options_cont,
312
+ .spider_pp_options_cont,
313
+ .spider_options_color_cont,
314
+ .spider_bull_options_color_cont,
315
+ .spider_pp_options_color_cont {
316
  display: none;
317
  width: 180px;
318
  height: 150px;
635
  font: bold 14px/26px Arial,serif;
636
  height: 26px;
637
  padding: 0 5px;
638
+ width: 105px;
639
  }
640
 
641
  .wds_add_layer {
676
  height: 9px;
677
  opacity: 0.5;
678
  filter: Alpha(opacity=50);
679
+ vertical-align: middle;
680
  }
681
 
682
  .wds_layer_remove {
701
  float: right;
702
  }
703
 
704
+ .wds_slide_dublicate {
705
+ background-image: url("../images/duplicate.png");
706
+ background-repeat: no-repeat;
707
+ background-size: 100% 100%;
708
+ display: inline-block;
709
+ width: 12px;
710
+ height: 12px;
711
+ vertical-align: middle;
712
+ }
713
+
714
  .wds_layer_depth {
715
  float: right;
716
  font-size: 13px;
filemanager/UploadHandler.php CHANGED
@@ -20,7 +20,7 @@ else {
20
  }
21
 
22
  $upload_handler = new UploadHandler(array(
23
- 'upload_dir' => $_GET['dir'],
24
  'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
25
  ));
26
 
20
  }
21
 
22
  $upload_handler = new UploadHandler(array(
23
+ 'upload_dir' => (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
24
  'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
25
  ));
26
 
filemanager/model.php CHANGED
@@ -74,7 +74,7 @@ class FilemanagerModel {
74
  }
75
 
76
  public function get_path_components() {
77
- $dir_names = explode('/', (isset($_REQUEST['dir']) ? $_REQUEST['dir'] : ''));
78
  $path = '';
79
 
80
  $components = array();
74
  }
75
 
76
  public function get_path_components() {
77
+ $dir_names = explode('/', (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : ''));
78
  $path = '';
79
 
80
  $components = array();
filemanager/view.php CHANGED
@@ -192,6 +192,9 @@ class FilemanagerView {
192
  <div id="explorer_body">
193
  <?php
194
  foreach ($file_manager_data['files'] as $file) {
 
 
 
195
  ?>
196
  <div class="explorer_item" draggable="true"
197
  name="<?php echo $file['name']; ?>"
@@ -276,6 +279,9 @@ class FilemanagerView {
276
  <div id="importer_body">
277
  <?php
278
  foreach ($file_manager_data['media_library_files'] as $file) {
 
 
 
279
  ?>
280
  <div class="importer_item" draggable="true"
281
  name="<?php echo $file['name']; ?>"
192
  <div id="explorer_body">
193
  <?php
194
  foreach ($file_manager_data['files'] as $file) {
195
+ $file['name'] = esc_html($file['name']);
196
+ $file['filename'] = esc_html($file['filename']);
197
+ $file['thumb'] = esc_html($file['thumb']);
198
  ?>
199
  <div class="explorer_item" draggable="true"
200
  name="<?php echo $file['name']; ?>"
279
  <div id="importer_body">
280
  <?php
281
  foreach ($file_manager_data['media_library_files'] as $file) {
282
+ $file['name'] = esc_html($file['name']);
283
+ $file['filename'] = esc_html($file['filename']);
284
+ $file['thumb'] = esc_html($file['thumb']);
285
  ?>
286
  <div class="importer_item" draggable="true"
287
  name="<?php echo $file['name']; ?>"
frontend/views/WDSViewSlider.php CHANGED
@@ -148,7 +148,7 @@ class WDSViewSlider {
148
  width: 100%;
149
  }
150
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_image_container_<?php echo $wds; ?> {
151
- display: table;
152
  position: absolute;
153
  text-align: center;
154
  <?php echo $filmstrip_position; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $filmstrip_height . 'px' : $filmstrip_width_in_percent . '%'); ?>;
@@ -220,6 +220,68 @@ class WDSViewSlider {
220
  color: #<?php echo $slider_row->hover_color; ?>;
221
  cursor: pointer;
222
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_left-ico_<?php echo $wds; ?>,
224
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?> {
225
  background-color: <?php echo WDW_S_Library::spider_hex2rgba($slider_row->nav_bg_color, (100 - $slider_row->butts_transparent) / 100); ?>;
@@ -623,7 +685,24 @@ class WDSViewSlider {
623
  }
624
  </style>
625
  <span class="wds_layer_<?php echo $layer->id; ?>" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
626
- style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?><?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>word-break: <?php echo ($layer->image_scale ? 'keep-all' : 'break-all'); ?>; text-align: initial; <?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>opacity: 1; filter: 'Alpha(opacity=100)'; display: inline-block; position: absolute; left: <?php echo $left_percent; ?>%; top: <?php echo $top_percent; ?>%; z-index: <?php echo $layer->depth; ?>; color: #<?php echo $layer->color; ?>; font-family: <?php echo $layer->ffamily; ?>; font-weight: <?php echo $layer->fweight; ?>; background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
628
  <?php
629
  break;
@@ -637,7 +716,16 @@ class WDSViewSlider {
637
  }
638
  </style>
639
  <img class="wds_layer_<?php echo $layer->id; ?>" id="<?php echo $prefix; ?>" src="<?php echo $layer->image_url; ?>"
640
- style="<?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>opacity: <?php echo number_format((100 - $layer->imgtransparent) / 100, 2, ".", ""); ?>; filter: Alpha(opacity=<?php echo 100 - $layer->imgtransparent; ?>); position: absolute; left: <?php echo $left_percent; ?>%; top: <?php echo $top_percent; ?>%; z-index: <?php echo $layer->depth; ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"
 
 
 
 
 
 
 
 
 
641
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
642
  wds_scale="<?php echo $layer->image_scale; ?>"
643
  wds_image_width="<?php echo $layer->image_width; ?>"
@@ -708,8 +796,14 @@ class WDSViewSlider {
708
  <div class="wds_btn_cont wds_contTable">
709
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: center;">
710
  <span class="wds_pp_btn_cont">
711
- <span id="wds_slideshow_play_pause_<?php echo $wds; ?>" style="display: <?php echo $play_pause_button_display; ?>;">
 
 
 
712
  <i class="wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-play"></i>
 
 
 
713
  </span>
714
  </span>
715
  </span>
@@ -805,7 +899,8 @@ class WDSViewSlider {
805
  function wds_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
806
  var delay = random ? Math.floor((cols + rows) * count * Math.random()) : (c + r) * count;
807
  /* Return a gridlet elem with styles for specific transition.*/
808
- var grid_div = jQuery('<div class="wds_gridlet_<?php echo $wds; ?>" />').css({
 
809
  width : imgWidth,/*"100%"*/
810
  height : jQuery(".wds_slideshow_image_spun_<?php echo $wds; ?>").height() + "px",
811
  top : -top,
@@ -816,7 +911,8 @@ class WDSViewSlider {
816
  /*backgroundColor: jQuery(".wds_slideshow_image_wrap_<?php echo $wds; ?>").css("background-color"),*/
817
  backgroundRepeat: 'no-repeat'
818
  });
819
- return jQuery('<div class="wds_gridlet_<?php echo $wds; ?>" />').css({
 
820
  width : width,/*"100%"*/
821
  height : height,
822
  top : top,
@@ -832,7 +928,7 @@ class WDSViewSlider {
832
  /* Get the current slide's image.*/
833
  var cur_img = jQuery(current_image_class).find('div');
834
  /* Create a grid to hold the gridlets.*/
835
- var grid = jQuery('<div />').addClass('wds_grid_<?php echo $wds; ?>');
836
  /* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
837
  jQuery(current_image_class).prepend(grid);
838
  /* vars to calculate positioning/size of gridlets*/
@@ -996,6 +1092,11 @@ class WDSViewSlider {
996
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
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; ?>();
@@ -1428,6 +1529,13 @@ class WDSViewSlider {
1428
  else {
1429
  jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1430
  jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_social_button"] + ' animated');
 
 
 
 
 
 
 
1431
  }
1432
  }, wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_start"]);
1433
  }
148
  width: 100%;
149
  }
150
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_image_container_<?php echo $wds; ?> {
151
+ display: /*table*/block;
152
  position: absolute;
153
  text-align: center;
154
  <?php echo $filmstrip_position; ?>: <?php echo ($filmstrip_direction == 'horizontal' ? $filmstrip_height . 'px' : $filmstrip_width_in_percent . '%'); ?>;
220
  color: #<?php echo $slider_row->hover_color; ?>;
221
  cursor: pointer;
222
  }
223
+ <?php
224
+ if ($slider_row->play_paus_butt_img_or_not != 'style') {
225
+ ?>
226
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_play_pause_<?php echo $wds; ?>.fa-pause:before,
227
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_play_pause_<?php echo $wds; ?>.fa-play:before {
228
+ content: "";
229
+ }
230
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-play {
231
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode ($slider_row->play_butt_url, ENT_QUOTES)); ?>');
232
+ background-position: center center;
233
+ background-repeat: no-repeat;
234
+ background-size: cover;
235
+ transition: background-image 0.2s ease-out;
236
+ -ms-transition: background-image 0.2s ease-out;
237
+ -moz-transition: background-image 0.2s ease-out;
238
+ -webkit-transition: background-image 0.2s ease-out;
239
+ }
240
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-play:before {
241
+ content: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->play_butt_hov_url, ENT_QUOTES)); ?>');
242
+ width: 0;
243
+ height: 0;
244
+ visibility: hidden;
245
+ }
246
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-play:hover {
247
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode ($slider_row->play_butt_hov_url, ENT_QUOTES)); ?>');
248
+ background-position: center center;
249
+ background-repeat: no-repeat;
250
+ background-size: cover;
251
+ transition: background-image 0.2s ease-in;
252
+ -ms-transition: background-image 0.2s ease-in;
253
+ -moz-transition: background-image 0.2s ease-in;
254
+ -webkit-transition: background-image 0.2s ease-in;
255
+ }
256
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-pause{
257
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode ($slider_row->paus_butt_url, ENT_QUOTES)); ?>');
258
+ background-position: center center;
259
+ background-repeat: no-repeat;
260
+ background-size: cover;
261
+ transition: background-image 0.2s ease-out;
262
+ -ms-transition: background-image 0.2s ease-out;
263
+ -moz-transition: background-image 0.2s ease-out;
264
+ -webkit-transition: background-image 0.2s ease-out;
265
+ }
266
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-pause:before {
267
+ content: url('<?php echo addslashes(htmlspecialchars_decode($slider_row->paus_butt_hov_url, ENT_QUOTES)); ?>');
268
+ width: 0;
269
+ height: 0;
270
+ visibility: hidden;
271
+ }
272
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #wds_slideshow_play_pause_<?php echo $wds; ?>.fa-pause:hover {
273
+ background-image: url('<?php echo addslashes(htmlspecialchars_decode ($slider_row->paus_butt_hov_url, ENT_QUOTES)); ?>');
274
+ background-position: center center;
275
+ background-repeat: no-repeat;
276
+ background-size: cover;
277
+ transition: background-image 0.2s ease-in;
278
+ -ms-transition: background-image 0.2s ease-in;
279
+ -moz-transition: background-image 0.2s ease-in;
280
+ -webkit-transition: background-image 0.2s ease-in;
281
+ }
282
+ <?php
283
+ }
284
+ ?>
285
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_left-ico_<?php echo $wds; ?>,
286
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_right-ico_<?php echo $wds; ?> {
287
  background-color: <?php echo WDW_S_Library::spider_hex2rgba($slider_row->nav_bg_color, (100 - $slider_row->butts_transparent) / 100); ?>;
685
  }
686
  </style>
687
  <span class="wds_layer_<?php echo $layer->id; ?>" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
688
+ style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
689
+ <?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
690
+ word-break: <?php echo ($layer->image_scale ? 'keep-all' : 'break-all'); ?>;
691
+ text-align: initial; <?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
692
+ opacity: 1;
693
+ filter: 'Alpha(opacity=100)';
694
+ display: inline-block;
695
+ position: absolute;
696
+ left: <?php echo $left_percent; ?>%;
697
+ top: <?php echo $top_percent; ?>%;
698
+ z-index: <?php echo $layer->depth; ?>;
699
+ color: #<?php echo $layer->color; ?>;
700
+ font-family: <?php echo $layer->ffamily; ?>;
701
+ font-weight: <?php echo $layer->fweight; ?>;
702
+ background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>;
703
+ border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>;
704
+ border-radius: <?php echo $layer->border_radius; ?>;
705
+ box-shadow: <?php echo $layer->shadow; ?>"
706
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
707
  <?php
708
  break;
716
  }
717
  </style>
718
  <img class="wds_layer_<?php echo $layer->id; ?>" id="<?php echo $prefix; ?>" src="<?php echo $layer->image_url; ?>"
719
+ style="<?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
720
+ opacity: <?php echo number_format((100 - $layer->imgtransparent) / 100, 2, ".", ""); ?>;
721
+ filter: Alpha(opacity=<?php echo 100 - $layer->imgtransparent; ?>);
722
+ position: absolute;
723
+ left: <?php echo $left_percent; ?>%;
724
+ top: <?php echo $top_percent; ?>%;
725
+ z-index: <?php echo $layer->depth; ?>;
726
+ border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>;
727
+ border-radius: <?php echo $layer->border_radius; ?>;
728
+ box-shadow: <?php echo $layer->shadow; ?>"
729
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
730
  wds_scale="<?php echo $layer->image_scale; ?>"
731
  wds_image_width="<?php echo $layer->image_width; ?>"
796
  <div class="wds_btn_cont wds_contTable">
797
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: center;">
798
  <span class="wds_pp_btn_cont">
799
+ <span id="wds_slideshow_play_pause_<?php echo $wds; ?>" style="display: <?php echo $play_pause_button_display; ?>;" <?php echo ($slider_row->play_paus_butt_img_or_not != 'style') ? 'class="wds_ctrl_btn_' . $wds . ' wds_slideshow_play_pause_' . $wds . ' fa fa-play"' : ''; ?>>
800
+ <?php
801
+ if ($slider_row->play_paus_butt_img_or_not == 'style') {
802
+ ?>
803
  <i class="wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-play"></i>
804
+ <?php
805
+ }
806
+ ?>
807
  </span>
808
  </span>
809
  </span>
899
  function wds_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
900
  var delay = random ? Math.floor((cols + rows) * count * Math.random()) : (c + r) * count;
901
  /* Return a gridlet elem with styles for specific transition.*/
902
+ var grid_div = jQuery('<span class="wds_gridlet_<?php echo $wds; ?>" />').css({
903
+ display: "block",
904
  width : imgWidth,/*"100%"*/
905
  height : jQuery(".wds_slideshow_image_spun_<?php echo $wds; ?>").height() + "px",
906
  top : -top,
911
  /*backgroundColor: jQuery(".wds_slideshow_image_wrap_<?php echo $wds; ?>").css("background-color"),*/
912
  backgroundRepeat: 'no-repeat'
913
  });
914
+ return jQuery('<span class="wds_gridlet_<?php echo $wds; ?>" />').css({
915
+ display: "block",
916
  width : width,/*"100%"*/
917
  height : height,
918
  top : top,
928
  /* Get the current slide's image.*/
929
  var cur_img = jQuery(current_image_class).find('div');
930
  /* Create a grid to hold the gridlets.*/
931
+ var grid = jQuery('<span style="display: block;" />').addClass('wds_grid_<?php echo $wds; ?>');
932
  /* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
933
  jQuery(current_image_class).prepend(grid);
934
  /* vars to calculate positioning/size of gridlets*/
1092
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
1093
  jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
1094
  });
1095
+ /* Pause layer videos.*/
1096
+ jQuery(".wds_video_layer_frame_<?php echo $wds; ?>").each(function () {
1097
+ jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
1098
+ jQuery(this)[0].contentWindow.postMessage('{ "method": "pause" }', "*");
1099
+ });
1100
  if (wds_data_<?php echo $wds; ?>[key]) {
1101
  if (jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause') || ('<?php echo $autoplay; ?>')) {
1102
  play_<?php echo $wds; ?>();
1529
  else {
1530
  jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1531
  jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_social_button"] + ' animated');
1532
+ }
1533
+ /* Play video on layer in.*/
1534
+ if ((wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_type"] == "video") && (wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_video_autoplay"] == "on")) {
1535
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).find("iframe").each(function () {
1536
+ jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
1537
+ jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
1538
+ });
1539
  }
1540
  }, wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_start"]);
1541
  }
images/button/button1/1/1.png ADDED
Binary file
images/button/button1/1/2.png ADDED
Binary file
images/button/button1/1/3.png ADDED
Binary file
images/button/button1/1/4.png ADDED
Binary file
images/button/button2/1/1.png ADDED
Binary file
images/button/button2/1/2.png ADDED
Binary file
images/button/button2/1/3.png ADDED
Binary file
images/button/button2/1/4.png ADDED
Binary file
images/button/button3/1/1.png ADDED
Binary file
images/button/button3/1/2.png ADDED
Binary file
images/button/button3/1/3.png ADDED
Binary file
images/button/button3/1/4.png ADDED
Binary file
images/button/button4/1/1.png ADDED
Binary file
images/button/button4/1/2.png ADDED
Binary file
images/button/button4/1/3.png ADDED
Binary file
images/button/button4/1/4.png ADDED
Binary file
js/wds.js CHANGED
@@ -57,6 +57,11 @@ function spider_ajax_save(form_id, event) {
57
  post_data["nav_border_radius"] = jQuery("#nav_border_radius").val();
58
  post_data["nav_bg_color"] = jQuery("#nav_bg_color").val();
59
  post_data["butts_transparent"] = jQuery("#butts_transparent").val();
 
 
 
 
 
60
 
61
  /* Bullets.*/
62
  post_data["enable_bullets"] = jQuery("input[name=enable_bullets]:checked").val();
@@ -170,6 +175,20 @@ function spider_ajax_save(form_id, event) {
170
  json_data["shadow"] = jQuery("#" + prefix + "_shadow").val();
171
  break;
172
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  case "social": {
174
  json_data["social_button"] = jQuery("#" + prefix + "_social_button").val();
175
  json_data["size"] = jQuery("#" + prefix + "_size").val();
@@ -338,7 +357,33 @@ function wds_onload() {
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');
@@ -823,9 +868,44 @@ function change_rl_butt_type(that) {
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');
@@ -836,8 +916,22 @@ function change_rl_butt_color(that, type_key) {
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() {
@@ -863,11 +957,31 @@ function wds_choose_option(that) {
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");
@@ -886,6 +1000,43 @@ function wds_change_custom_src() {
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");
@@ -1022,6 +1173,41 @@ function image_for_bull_butt(display) {
1022
  }
1023
  }
1024
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1025
  function bwg_change_album_view_type(type) {
1026
  if (type == 'thumbnail') {
1027
  jQuery("#album_thumb_dimensions").html('Album thumb dimensions: ');
@@ -1142,8 +1328,33 @@ function spider_media_uploader(id, e) {
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);
@@ -1186,7 +1397,7 @@ function wds_add_image(files, image_for, slide_id, layer_id) {
1186
  }
1187
  case 'add_layer': {
1188
  /* Add image layer to current slide.*/
1189
- wds_add_layer('image', slide_id, '', '', '', files);
1190
  break;
1191
  }
1192
  case 'add_update_layer': {
@@ -1253,6 +1464,32 @@ function wds_add_image(files, image_for, slide_id, layer_id) {
1253
  document.getElementById("bull_img_hov").src = files[0]['url'];
1254
  break;
1255
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1256
  default: {
1257
  break;
1258
  }
@@ -1313,15 +1550,24 @@ function wds_delete_layer(id, layerID) {
1313
  }
1314
  }
1315
 
1316
- function wds_duplicate_layer(type, id, layerID) {
1317
  var prefix = "slide" + id + "_layer" + layerID;
1318
  var new_layerID = "pr_" + wds_layerID;
1319
  var new_prefix = "slide" + id + "_layer" + new_layerID;
1320
- var new_tbodyID = new_prefix + "_tbody";
 
 
 
 
 
 
 
 
 
 
 
1321
  jQuery("#" + new_prefix + "_text").val(jQuery("#" + prefix + "_text").val());
1322
  jQuery("#" + new_prefix + "_link").val(jQuery("#" + prefix + "_link").val());
1323
- jQuery("#" + new_prefix + "_left").val(0);
1324
- jQuery("#" + new_prefix + "_top").val(0);
1325
  jQuery("#" + new_prefix + "_start").val(jQuery("#" + prefix + "_start").val());
1326
  jQuery("#" + new_prefix + "_end").val(jQuery("#" + prefix + "_end").val());
1327
  jQuery("#" + new_prefix + "_delay").val(jQuery("#" + prefix + "_delay").val());
@@ -1349,8 +1595,18 @@ function wds_duplicate_layer(type, id, layerID) {
1349
  else if (jQuery("#" + prefix + "_published0").is(":checked")) {
1350
  jQuery("#" + new_prefix + "_published0").attr("checked", "checked");
1351
  }
1352
- if (jQuery("#" + prefix + "_image_scale").is(":checked")) {
1353
- jQuery("#" + new_prefix + "_image_scale").attr("checked", "checked");
 
 
 
 
 
 
 
 
 
 
1354
  }
1355
  jQuery("#" + new_prefix + "_transition option").each(function() {
1356
  if (jQuery(this).val() == jQuery("#" + prefix + "_transition").val()) {
@@ -1392,8 +1648,10 @@ function wds_duplicate_layer(type, id, layerID) {
1392
  jQuery("#" + new_prefix).attr({
1393
  id: new_prefix,
1394
  onclick: "wds_showhide_layer('" + new_prefix + "_tbody', 1)",
1395
- style: "z-index: " + jQuery("#" + new_prefix + "_depth").val() +
1396
- "left: 0; top: 0; display: inline-block;" +
 
 
1397
  "color: #" + jQuery("#" + prefix + "_color").val() + "; " +
1398
  "font-size: " + jQuery("#" + prefix + "_size").val() + "px; " +
1399
  "line-height: 1.25em; " +
@@ -1416,7 +1674,8 @@ function wds_duplicate_layer(type, id, layerID) {
1416
  "class": "wds_draggable_" + id + " wds_draggable",
1417
  onclick: "wds_showhide_layer('" + new_prefix + "_tbody', 1)",
1418
  style: "z-index: " + jQuery("#" + new_prefix + "_depth").val() + "; " +
1419
- "left: 0; top: 0; " +
 
1420
  "opacity: " + (100 - jQuery("#" + prefix + "_imgtransparent").val()) / 100 + "; filter: Alpha(opacity=" + (100 - jQuery("#" + prefix+ "_imgtransparent").val()) + "); " +
1421
  "border: " + jQuery("#" + prefix + "_border_width").val() + "px " + jQuery("#" + prefix+ "_border_style").val() + " #" + jQuery("#" + prefix+ "_border_color").val() + "; " +
1422
  "border-radius: " + jQuery("#" + prefix + "_border_radius").val() + "; " +
@@ -1429,8 +1688,43 @@ function wds_duplicate_layer(type, id, layerID) {
1429
  wds_drag_layer(id);
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 == "") {
@@ -1578,7 +1872,7 @@ function wds_add_layer(type, id, layerID, event, duplicate, files, edit) {
1578
  '<div class="handle connectedSortable" title="Drag to re-order"></div>' +
1579
  '<span class="wds_layer_label" onclick="wds_showhide_layer(\'' + tbodyID + '\', 0)"><input id="' + prefix + '_title" name="' + prefix + '_title" type="text" class="wds_layer_title" style="width: 80px;" value="Layer ' + wds_layerID + '" title="Layer title" /></span>' +
1580
  '<span class="wds_layer_remove" title="Delete layer" onclick="wds_delete_layer(\'' + id + '\', \'' + layerID + '\')"></span>' +
1581
- '<span class="wds_layer_dublicate" title="Duplicate layer" onclick="wds_add_layer(\'' + type + '\', \'' + id + '\', \'\', event, 1); wds_duplicate_layer(\'' + type + '\', \'' + id + '\', \'' + layerID + '\');"></span>' +
1582
  '<input type="text" name="' + prefix + '_depth" id="' + prefix + '_depth" prefix="' + prefix + '" value="' + wds_layerID + '" class="wds_layer_depth spider_int_input" onkeypress="return spider_check_isnum(event)" onchange="jQuery(\'#' + prefix + '\').css({zIndex: jQuery(this).val()})" title="z-index" /></td>' +
1583
  '</tr>';
1584
  var text = '<td class="spider_label"><label for="' + prefix + '_text">Text: </label></td>' +
@@ -1626,7 +1920,7 @@ function wds_add_layer(type, id, layerID, event, duplicate, files, edit) {
1626
  var border_radius = '<td class="spider_label"><label for="' + prefix + '_border_radius">Radius: </label></td>' +
1627
  '<td><input type="text" name="' + prefix + '_border_radius" id="' + prefix + '_border_radius" value="2px" class="spider_char_input" onchange="jQuery(\'#' + prefix + '\').css({borderRadius: jQuery(this).val()})" /><div class="spider_description">Use CSS type values.</div></td>';
1628
  var shadow = '<td class="spider_label"><label for="' + prefix + '_shadow">Shadow: </label></td>' +
1629
- '<td><input type="text" name="' + prefix + '_shadow" id="' + prefix + '_shadow" value="" class="spider_char_input" onchange="jQuery(\'#' + prefix + '\').css({boxShadow: jQuery(this).val()})" /><div class="spider_description">Use CSS type values.</div></td>';
1630
  var dimensions = '<td class="spider_label"><label>Dimensions: </label></td>' +
1631
  '<td>' +
1632
  '<input type="hidden" name="' + prefix + '_image_url" id="' + prefix + '_image_url" />' +
@@ -1753,7 +2047,7 @@ function wds_add_layer(type, id, layerID, event, duplicate, files, edit) {
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 {
@@ -1781,7 +2075,7 @@ function wds_scale(that, prefix) {
1781
  var width = jQuery("#" + prefix + "_image_width").val();
1782
  var height = jQuery("#" + prefix + "_image_height").val();
1783
  jQuery("#" + prefix).css({maxWidth: width + "px", maxHeight: height + "px", width: "", height: ""});
1784
- if (!jQuery(that).is(':checked')) {
1785
  jQuery("#" + prefix).css({width: width + "px", height: height + "px"});
1786
  }
1787
  else if (wds_origWidth <= width || wds_origHeight <= height) {
@@ -1842,9 +2136,9 @@ function wds_slide_weights() {
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.
1849
  if (custom_uploader) {
1850
  custom_uploader.open();
@@ -1980,6 +2274,7 @@ function wds_add_slide() {
1980
  '<a id="wbs_subtab' + slideID + '" class="connectedSortable wds_sub_active" href="#">' +
1981
  '<div class="handle" title="Drag to re-order"></div>' +
1982
  ' <input type="text" id="title' + slideID + '" name="title' + slideID + '" value="Slide ' + slides_count + '" class="wds_tab_title" tab_type="slide' + slideID + '" onclick="wds_change_sub_tab(this, \'wds_slide' + slideID + '\')" />' +
 
1983
  ' <span class="wds_tab_remove" title="Delete slide" onclick="wds_remove_slide(\'' + slideID + '\')"></span>' +
1984
  ' <input type="hidden" name="order' + slideID + '" id="order' + slideID + '" value="' + slides_count + '" /></a>').insertBefore(".wds_add_layer");
1985
  wds_change_sub_tab(jQuery('#title' + slideID), 'wds_slide' + slideID);
@@ -2007,10 +2302,10 @@ function wds_add_slide() {
2007
  'background-repeat: no-repeat; ' +
2008
  'background-size: ' + jQuery('input[name=bg_fit]:radio:checked').val() + '; ' +
2009
  'border-width: ' + jQuery('#glb_border_width').val() + 'px; ' +
2010
- 'border-style: ' + jQuery('#glb_border_style').val() + '; ' +
2011
  'border-color: #' + jQuery('#glb_border_color').val() + '; ' +
2012
  'border-radius: ' + jQuery('#glb_border_radius').val() + '; ' +
2013
- 'box-shadow: ' + jQuery('#glb_box_shadow').val() + '; ' +
2014
  'width: inherit; height: inherit;"> </div></div></div></td>' +
2015
  '</tr><tr><td class="spider_label"><label>Published: </label></td>' +
2016
  '<td><input id="published' + slideID + '1" type="radio" value="1" checked="checked" name="published' + slideID + '">' +
@@ -2024,6 +2319,7 @@ function wds_add_slide() {
2024
  '</tr><tr><td colspan="4">' +
2025
  ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Text Layer" onclick="' + (!fv ? "wds_add_layer(\'text\', \'' + slideID + '\')" : "alert('This functionality is disabled in free version.')") + '; return false;">' +
2026
  img_layer_upload_by +
 
2027
  ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Social Buttons Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;"></td>' +
2028
  '</tr></tbody></table>' +
2029
  '<input id="slide' + slideID + '_layer_ids_string" name="slide' + slideID + '_layer_ids_string" type="hidden" value="" />' +
@@ -2154,7 +2450,7 @@ function wds_text_width(that, prefix) {
2154
  }
2155
  else {
2156
  jQuery("#" + prefix).css({width: ""});
2157
- jQuery(that).val("");
2158
  }
2159
  }
2160
 
@@ -2180,7 +2476,7 @@ function wds_text_height(that, prefix) {
2180
  }
2181
  else {
2182
  jQuery("#" + prefix).css({height: ""});
2183
- jQuery(that).val("");
2184
  }
2185
  }
2186
 
57
  post_data["nav_border_radius"] = jQuery("#nav_border_radius").val();
58
  post_data["nav_bg_color"] = jQuery("#nav_bg_color").val();
59
  post_data["butts_transparent"] = jQuery("#butts_transparent").val();
60
+ post_data["play_paus_butt_img_or_not"] = jQuery("input[name=play_paus_butt_img_or_not]:checked").val();
61
+ post_data["play_butt_url"] = jQuery("#play_butt_url").val();
62
+ post_data["play_butt_hov_url"] = jQuery("#play_butt_hov_url").val();
63
+ post_data["paus_butt_url"] = jQuery("#paus_butt_url").val();
64
+ post_data["paus_butt_hov_url"] = jQuery("#paus_butt_hov_url").val();
65
 
66
  /* Bullets.*/
67
  post_data["enable_bullets"] = jQuery("input[name=enable_bullets]:checked").val();
175
  json_data["shadow"] = jQuery("#" + prefix + "_shadow").val();
176
  break;
177
  }
178
+ case "video": {
179
+ json_data["image_url"] = jQuery("#" + prefix + "_image_url").val();
180
+ json_data["image_width"] = jQuery("#" + prefix + "_image_width").val();
181
+ json_data["image_height"] = jQuery("#" + prefix + "_image_height").val();
182
+ json_data["image_scale"] = jQuery("input[name=slide" + slide_id + "_layer" + layer_id + "_image_scale]:checked").val();
183
+ json_data["link"] = jQuery("#" + prefix + "_link").val();
184
+ json_data["alt"] = jQuery("#" + prefix + "_alt").val();
185
+ json_data["border_width"] = jQuery("#" + prefix + "_border_width").val();
186
+ json_data["border_style"] = jQuery("#" + prefix + "_border_style").val();
187
+ json_data["border_color"] = jQuery("#" + prefix + "_border_color").val();
188
+ json_data["border_radius"] = jQuery("#" + prefix + "_border_radius").val();
189
+ json_data["shadow"] = jQuery("#" + prefix + "_shadow").val();
190
+ break;
191
+ }
192
  case "social": {
193
  json_data["social_button"] = jQuery("#" + prefix + "_social_button").val();
194
  json_data["size"] = jQuery("#" + prefix + "_size").val();
357
  jQuery(this).find('.src_col_top_right').attr('src', src_col_top_right);
358
  jQuery(this).find('.src_col_bottom_left').attr('src', src_col_bottom_left);
359
  jQuery(this).find('.src_col_bottom_right').attr('src', src_col_bottom_right);
360
+ });
361
+
362
+ jQuery('.wds_pp_butt_groups').each(function(i) {
363
+ var pp_type_key = jQuery(this).attr('value');
364
+ var pp_src_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/1.png';
365
+ var pp_src_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/2.png';
366
+ var pp_src_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/3.png';
367
+ var pp_src_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/4.png';
368
+
369
+ jQuery(this).find('.pp_src_top_left').attr('src', pp_src_top_left);
370
+ jQuery(this).find('.pp_src_top_right').attr('src', pp_src_top_right);
371
+ jQuery(this).find('.pp_src_bottom_left').attr('src', pp_src_bottom_left);
372
+ jQuery(this).find('.pp_src_bottom_right').attr('src', pp_src_bottom_right);
373
+ });
374
+
375
+ jQuery('.wds_pp_butt_col_groups').each(function(i) {
376
+ var pp_color_key = jQuery(this).attr('value');
377
+ var pp_src_col_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/1.png';
378
+ var pp_src_col_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/2.png';
379
+ var pp_src_col_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/3.png';
380
+ var pp_src_col_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/4.png';
381
+
382
+ jQuery(this).find('.pp_src_col_top_left').attr('src', pp_src_col_top_left);
383
+ jQuery(this).find('.pp_src_col_top_right').attr('src', pp_src_col_top_right);
384
+ jQuery(this).find('.pp_src_col_bottom_left').attr('src', pp_src_col_bottom_left);
385
+ jQuery(this).find('.pp_src_col_bottom_right').attr('src', pp_src_col_bottom_right);
386
+ });
387
 
388
  jQuery('.wds_bull_butt_groups').each(function(i) {
389
  bull_type_key = jQuery(this).attr('value');
868
  jQuery('#left_butt_hov_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png');
869
  jQuery('#right_butt_hov_url').val(rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png');
870
  }
871
+
872
+ function change_play_paus_butt_type(that) {
873
+ var type_key = jQuery(that).attr('value');
874
+ var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/1.png';
875
+ var options = '';
876
+ var divs = '';
877
+ for (var i = 0; i < wds_pp_butt_type[type_key].length; i++) {
878
+ var num = i + 1;
879
+ divs += '<div class="spider_option_cont" value="' + i + '" onclick="change_play_paus_butt_color(this, ' + type_key + ')" > ' +
880
+ '<div class="spider_option_cont_title" >' +
881
+ 'Color-'+ num +
882
+ '</div>' +
883
+ '<div class="spider_option_cont_img" >' +
884
+ '<img src="' + pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/'+wds_pp_butt_type[type_key][i]+'/1.png" style="display:inline-block; width: 14px; height: 14px;" />' +
885
+ '<img src="' + pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/'+wds_pp_butt_type[type_key][i]+'/2.png" style="display:inline-block; width: 14px; height: 14px;" />' +
886
+ '<img src="' + pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/'+wds_pp_butt_type[type_key][i]+'/3.png" style="display:inline-block; width: 14px; height: 14px;" />' +
887
+ '<img src="' + pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/'+wds_pp_butt_type[type_key][i]+'/4.png" style="display:inline-block; width: 14px; height: 14px;" />' +
888
+ '</div>' +
889
+ '</div>';
890
+ }
891
+ jQuery(".spider_pp_options_cont .spider_option_cont").css({backgroundColor: ""});
892
+ jQuery(that).css({backgroundColor: "#3399FF"});
893
+ jQuery('.spider_pp_options_color_cont').html(divs);
894
+ jQuery('#pp_butt_img_play').attr("src", pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/1.png');
895
+ jQuery('#pp_butt_img_paus').attr("src", pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/3.png');
896
+ jQuery('#pp_butt_hov_img_play').attr("src", pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/2.png');
897
+ jQuery('#pp_butt_hov_img_paus').attr("src", pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/4.png');
898
+
899
+ jQuery('#play_butt_url').val(pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/1.png');
900
+ jQuery('#paus_butt_url').val(pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/3.png');
901
+ jQuery('#play_butt_hov_url').val(pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/2.png');
902
+ jQuery('#paus_butt_hov_url').val(pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/4.png');
903
+ }
904
+
905
  function change_rl_butt_color(that, type_key) {
906
  var color_key = jQuery(that).attr('value');
907
+ jQuery(".spider_options_color_cont .spider_option_cont").css({backgroundColor: ""});
908
+ jQuery(that).css({backgroundColor: "#3399FF"});
909
  var src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/' + wds_rl_butt_type[type_key][color_key];
910
  jQuery('#rl_butt_img_l').attr("src", src + '/1.png');
911
  jQuery('#rl_butt_img_r').attr("src", src + '/2.png');
916
  jQuery('#right_butt_url').val(src + '/2.png');
917
  jQuery('#left_butt_hov_url').val(src + '/3.png');
918
  jQuery('#right_butt_hov_url').val(src + '/4.png');
919
+ }
920
+
921
+ function change_play_paus_butt_color(that, type_key) {
922
+ var color_key = jQuery(that).attr('value');
923
+ jQuery(".spider_pp_options_color_cont .spider_option_cont").css({backgroundColor: ""});
924
  jQuery(that).css({backgroundColor: "#3399FF"});
925
+ var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/' + wds_pp_butt_type[type_key][color_key];
926
+ jQuery('#pp_butt_img_play').attr("src", src + '/1.png');
927
+ jQuery('#pp_butt_img_paus').attr("src", src + '/3.png');
928
+ jQuery('#pp_butt_hov_img_play').attr("src", src + '/2.png');
929
+ jQuery('#pp_butt_hov_img_paus').attr("src", src + '/4.png');
930
+
931
+ jQuery('#play_butt_url').val(src + '/1.png');
932
+ jQuery('#paus_butt_url').val(src + '/3.png');
933
+ jQuery('#play_butt_hov_url').val(src + '/2.png');
934
+ jQuery('#paus_butt_hov_url').val(src + '/4.png');
935
  }
936
 
937
  function change_src() {
957
  jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
958
  }
959
 
960
+ function wds_choose_option_color(that) {
961
+ jQuery('.spider_options_color_cont').toggle(1, function() {});
962
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
963
+ }
964
+
965
+ function wds_choose_pp_option(that) {
966
+ jQuery('.spider_pp_options_cont').toggle(1, function() {});
967
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
968
+ }
969
+
970
+ function wds_choose_pp_option_color(that) {
971
+ jQuery('.spider_pp_options_color_cont').toggle(1, function() {});
972
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
973
+ }
974
+
975
  function wds_choose_bull_option(that) {
976
  jQuery('.spider_bull_options_cont').toggle(1, function() {});
977
  jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
978
  }
979
 
980
+ function wds_choose_bull_option_color(that) {
981
+ jQuery('.spider_bull_options_color_cont').toggle(1, function() {});
982
+ jQuery(that).find("i").toggleClass("fa-angle-down").toggleClass("fa-angle-up");
983
+ }
984
+
985
  function wds_change_custom_src() {
986
  var src_l = jQuery('#left_butt_img').attr("src");
987
  var src_r = jQuery('#right_butt_img').attr("src");
1000
  jQuery('#right_butt_hov_url').val(src_r);
1001
  }
1002
 
1003
+ function wds_change_play_paus_custom_src() {
1004
+ var src_l = jQuery('#play_butt_img').attr("src");
1005
+ var src_r = jQuery('#paus_butt_img').attr("src");
1006
+
1007
+ var src_h_l = jQuery('#play_butt_hov_img').attr("src");
1008
+ var src_h_r = jQuery('#paus_butt_hov_img').attr("src");
1009
+
1010
+ jQuery('#play_butt_img').attr("src", src_h_l);
1011
+ jQuery('#paus_butt_img').attr("src", src_h_r);
1012
+ jQuery('#play_butt_hov_img').attr("src", src_l);
1013
+ jQuery('#paus_butt_hov_img').attr("src", src_r);
1014
+
1015
+ jQuery('#play_butt_url').val(src_h_l);
1016
+ jQuery('#paus_butt_url').val(src_h_r);
1017
+ jQuery('#play_butt_hov_url').val(src_l);
1018
+ jQuery('#paus_butt_hov_url').val(src_r);
1019
+ }
1020
+
1021
+
1022
+ function change_play_paus_src() {
1023
+ var src_l = jQuery('#pp_butt_img_play').attr("src");
1024
+ var src_r = jQuery('#pp_butt_img_paus').attr("src");
1025
+
1026
+ var src_h_l = jQuery('#pp_butt_hov_img_play').attr("src");
1027
+ var src_h_r = jQuery('#pp_butt_hov_img_paus').attr("src");
1028
+
1029
+ jQuery('#pp_butt_img_play').attr("src", src_h_l);
1030
+ jQuery('#pp_butt_img_paus').attr("src", src_h_r);
1031
+ jQuery('#pp_butt_hov_img_play').attr("src", src_l);
1032
+ jQuery('#pp_butt_hov_img_paus').attr("src", src_r);
1033
+
1034
+ jQuery('#play_butt_url').val(src_h_l);
1035
+ jQuery('#paus_butt_url').val(src_h_r);
1036
+ jQuery('#play_butt_hov_url').val(src_l);
1037
+ jQuery('#paus_butt_hov_url').val(src_r);
1038
+ }
1039
+
1040
  function wds_change_bullets_custom_src() {
1041
  var src_m = jQuery('#bull_img_main').attr("src");
1042
  var src_h = jQuery('#bull_img_hov').attr("src");
1173
  }
1174
  }
1175
 
1176
+ function image_for_play_pause_butt(display) {
1177
+ switch (display) {
1178
+ case 'our' : {
1179
+ jQuery("#play_pause_butt_img_or_not_our").attr('checked', 'checked');
1180
+ jQuery("#play_pause_butt_style").css('display', 'none');
1181
+ jQuery("#play_pause_butt_cust").css('display', 'none');
1182
+ jQuery("#play_pause_butt_select").css('display', '');
1183
+ jQuery("#tr_butts_color").css('display', 'none');
1184
+ jQuery("#tr_hover_color").css('display', 'none');
1185
+ break;
1186
+ }
1187
+ case 'custom' : {
1188
+ jQuery("#play_pause_butt_img_or_not_cust").attr('checked', 'checked');
1189
+ jQuery("#play_pause_butt_cust").css('display', '');
1190
+ jQuery("#play_pause_butt_select").css('display', 'none');
1191
+ jQuery("#play_pause_butt_style").css('display', 'none');
1192
+ jQuery("#tr_butts_color").css('display', 'none');
1193
+ jQuery("#tr_hover_color").css('display', 'none');
1194
+ break;
1195
+ }
1196
+ case 'style' : {
1197
+ jQuery("#play_pause_butt_img_or_not_style").attr('checked', 'checked');
1198
+ jQuery("#play_pause_butt_cust").css('display', 'none');
1199
+ jQuery("#play_pause_butt_select").css('display', 'none');
1200
+ jQuery("#play_pause_butt_style").css('display', '');
1201
+ jQuery("#tr_butts_color").css('display', '');
1202
+ jQuery("#tr_hover_color").css('display', '');
1203
+ break;
1204
+ }
1205
+ default: {
1206
+ break;
1207
+ }
1208
+ }
1209
+ }
1210
+
1211
  function bwg_change_album_view_type(type) {
1212
  if (type == 'thumbnail') {
1213
  jQuery("#album_thumb_dimensions").html('Album thumb dimensions: ');
1328
  jQuery("#bullets_img_hov_url").val(image_url);
1329
  break;
1330
  }
1331
+
1332
+ case 'play_but': {
1333
+ /* Add image for play button.*/
1334
+ jQuery("#play_butt_img").attr("src", image_url);
1335
+ jQuery("#play_butt_url").val(image_url);
1336
+ break;
1337
+ }
1338
+ case 'play_hov_but': {
1339
+ /* Add image for pause button.*/
1340
+ jQuery("#play_butt_hov_img").attr("src", image_url);
1341
+ jQuery("#play_butt_hov_url").val(image_url);
1342
+ break;
1343
+ }
1344
+
1345
+ case 'paus_but': {
1346
+ /* Add hover image for play button.*/
1347
+ jQuery("#paus_butt_img").attr("src", image_url);
1348
+ jQuery("#paus_butt_url").val(image_url);
1349
+ break;
1350
+ }
1351
+ case 'paus_hov_but': {
1352
+ /* Add hover image for pause button.*/
1353
+ jQuery("#paus_butt_hov_img").attr("src", image_url);
1354
+ jQuery("#paus_butt_hov_url").val(image_url);
1355
+ break;
1356
+ }
1357
+
1358
  default: {
1359
  jQuery("#image_url" + id).val(image_url);
1360
  jQuery("#thumb_url" + id).val(thumb_url);
1397
  }
1398
  case 'add_layer': {
1399
  /* Add image layer to current slide.*/
1400
+ wds_add_layer('image', slide_id, '', '', files);
1401
  break;
1402
  }
1403
  case 'add_update_layer': {
1464
  document.getElementById("bull_img_hov").src = files[0]['url'];
1465
  break;
1466
  }
1467
+
1468
+ case 'play_but': {
1469
+ /* Add hover image for right buttons.*/
1470
+ document.getElementById("play_butt_url").value = files[0]['url'];
1471
+ document.getElementById("play_butt_img").src = files[0]['url'];
1472
+ break;
1473
+ }
1474
+ case 'play_hov_but': {
1475
+ /* Add hover image for left button.*/
1476
+ document.getElementById("play_butt_hov_url").value = files[0]['url'];
1477
+ document.getElementById("play_butt_hov_img").src = files[0]['url'];
1478
+ break;
1479
+ }
1480
+
1481
+ case 'paus_but': {
1482
+ /* Add image for main button.*/
1483
+ document.getElementById("paus_butt_url").value = files[0]['url'];
1484
+ document.getElementById("paus_butt_img").src = files[0]['url'];
1485
+ break;
1486
+ }
1487
+ case 'paus_hov_but': {
1488
+ /* Add image for hover button.*/
1489
+ document.getElementById("paus_butt_hov_url").value = files[0]['url'];
1490
+ document.getElementById("paus_butt_hov_img").src = files[0]['url'];
1491
+ break;
1492
+ }
1493
  default: {
1494
  break;
1495
  }
1550
  }
1551
  }
1552
 
1553
+ function wds_duplicate_layer(type, id, layerID, new_id) {
1554
  var prefix = "slide" + id + "_layer" + layerID;
1555
  var new_layerID = "pr_" + wds_layerID;
1556
  var new_prefix = "slide" + id + "_layer" + new_layerID;
1557
+ if (typeof new_id != 'undefined') {
1558
+ /* From slide duplication.*/
1559
+ new_prefix = "slide" + new_id + "_layer" + new_layerID;
1560
+ id = new_id;
1561
+ jQuery("#" + new_prefix + "_left").val(jQuery("#" + prefix + "_left").val());
1562
+ jQuery("#" + new_prefix + "_top").val(jQuery("#" + prefix + "_top").val());
1563
+ }
1564
+ else {
1565
+ /* From layer duplication.*/
1566
+ jQuery("#" + new_prefix + "_left").val(0);
1567
+ jQuery("#" + new_prefix + "_top").val(0);
1568
+ }
1569
  jQuery("#" + new_prefix + "_text").val(jQuery("#" + prefix + "_text").val());
1570
  jQuery("#" + new_prefix + "_link").val(jQuery("#" + prefix + "_link").val());
 
 
1571
  jQuery("#" + new_prefix + "_start").val(jQuery("#" + prefix + "_start").val());
1572
  jQuery("#" + new_prefix + "_end").val(jQuery("#" + prefix + "_end").val());
1573
  jQuery("#" + new_prefix + "_delay").val(jQuery("#" + prefix + "_delay").val());
1595
  else if (jQuery("#" + prefix + "_published0").is(":checked")) {
1596
  jQuery("#" + new_prefix + "_published0").attr("checked", "checked");
1597
  }
1598
+ if (type == "video") {
1599
+ if (jQuery("#" + prefix + "_image_scale1").is(":checked")) {
1600
+ jQuery("#" + new_prefix + "_image_scale1").attr("checked", "checked");
1601
+ }
1602
+ else if (jQuery("#" + prefix + "_image_scale0").is(":checked")) {
1603
+ jQuery("#" + new_prefix + "_image_scale0").attr("checked", "checked");
1604
+ }
1605
+ }
1606
+ else {
1607
+ if (jQuery("#" + prefix + "_image_scale").is(":checked")) {
1608
+ jQuery("#" + new_prefix + "_image_scale").attr("checked", "checked");
1609
+ }
1610
  }
1611
  jQuery("#" + new_prefix + "_transition option").each(function() {
1612
  if (jQuery(this).val() == jQuery("#" + prefix + "_transition").val()) {
1648
  jQuery("#" + new_prefix).attr({
1649
  id: new_prefix,
1650
  onclick: "wds_showhide_layer('" + new_prefix + "_tbody', 1)",
1651
+ style: "z-index: " + jQuery("#" + new_prefix + "_depth").val() + ";" +
1652
+ "left: " + jQuery("#" + new_prefix + "_left").val() + "px;" +
1653
+ "top: " + jQuery("#" + new_prefix + "_top").val() + "px;" +
1654
+ "display: inline-block;" +
1655
  "color: #" + jQuery("#" + prefix + "_color").val() + "; " +
1656
  "font-size: " + jQuery("#" + prefix + "_size").val() + "px; " +
1657
  "line-height: 1.25em; " +
1674
  "class": "wds_draggable_" + id + " wds_draggable",
1675
  onclick: "wds_showhide_layer('" + new_prefix + "_tbody', 1)",
1676
  style: "z-index: " + jQuery("#" + new_prefix + "_depth").val() + "; " +
1677
+ "left: " + jQuery("#" + new_prefix + "_left").val() + "px;" +
1678
+ "top: " + jQuery("#" + new_prefix + "_top").val() + "px;" +
1679
  "opacity: " + (100 - jQuery("#" + prefix + "_imgtransparent").val()) / 100 + "; filter: Alpha(opacity=" + (100 - jQuery("#" + prefix+ "_imgtransparent").val()) + "); " +
1680
  "border: " + jQuery("#" + prefix + "_border_width").val() + "px " + jQuery("#" + prefix+ "_border_style").val() + " #" + jQuery("#" + prefix+ "_border_color").val() + "; " +
1681
  "border-radius: " + jQuery("#" + prefix + "_border_radius").val() + "; " +
1688
  wds_drag_layer(id);
1689
  }
1690
 
1691
+ function wds_duplicate_slide(slide_id) {
1692
+ var new_slide_id = wds_add_slide();
1693
+ var type;
1694
+ var prefix;
1695
+ var layer_id;
1696
+ jQuery("input[name=published" + new_slide_id + "]:checked").val(jQuery("input[name=published" + slide_id + "]:checked").val());
1697
+ jQuery("#link" + new_slide_id).val(jQuery("#link" + slide_id).val());
1698
+ jQuery("input[name=target_attr_slide" + new_slide_id +" ]:checked").val(jQuery("input[name=target_attr_slide" + slide_id +" ]:checked").val());
1699
+ jQuery("#type" + new_slide_id).val(jQuery("#type" + slide_id).val());
1700
+ jQuery("#image_url" + new_slide_id).val(jQuery("#image_url" + slide_id).val());
1701
+ jQuery("#thumb_url" + new_slide_id).val(jQuery("#thumb_url" + slide_id).val());
1702
+ /*If type is video*/
1703
+ if (jQuery("#type" + new_slide_id).val() == 'YOUTUBE' || jQuery("#type" + new_slide_id).val() == 'VIMEO') {
1704
+ jQuery("#wds_preview_image" + new_slide_id).css("background-image", 'url("' + jQuery("#thumb_url" + slide_id).val() + '")');
1705
+ jQuery("#trlink" + new_slide_id).hide();
1706
+ }
1707
+ else {
1708
+ jQuery("#wds_preview_image" + new_slide_id).css("background-image", 'url("' + jQuery("#image_url" + slide_id).val() + '")');
1709
+ jQuery("#trlink" + new_slide_id).show();
1710
+ }
1711
+ var layer_ids_string = jQuery("#slide" + slide_id + "_layer_ids_string").val();
1712
+ if (layer_ids_string) {
1713
+ var layer_ids_array = layer_ids_string.split(",");
1714
+ for (var i in layer_ids_array) {
1715
+ if (layer_ids_array.hasOwnProperty(i) && layer_ids_array[i] && layer_ids_array[i] != ",") {
1716
+ layer_id = layer_ids_array[i];
1717
+ prefix = "slide" + slide_id + "_layer" + layer_id;
1718
+ type = jQuery("#" + prefix + "_type").val();
1719
+ wds_add_layer(type, new_slide_id, '', 1);
1720
+ wds_duplicate_layer(type, slide_id, layer_id, new_slide_id);
1721
+ }
1722
+ }
1723
+ }
1724
+ }
1725
+
1726
  var wds_layerID = 0;
1727
+ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
1728
  var layers_count = jQuery(".wds_slide" + id + " tbody").length;
1729
  wds_layerID = layers_count;
1730
  if (typeof layerID == "undefined" || layerID == "") {
1872
  '<div class="handle connectedSortable" title="Drag to re-order"></div>' +
1873
  '<span class="wds_layer_label" onclick="wds_showhide_layer(\'' + tbodyID + '\', 0)"><input id="' + prefix + '_title" name="' + prefix + '_title" type="text" class="wds_layer_title" style="width: 80px;" value="Layer ' + wds_layerID + '" title="Layer title" /></span>' +
1874
  '<span class="wds_layer_remove" title="Delete layer" onclick="wds_delete_layer(\'' + id + '\', \'' + layerID + '\')"></span>' +
1875
+ '<span class="wds_layer_dublicate" title="Duplicate layer" onclick="wds_add_layer(\'' + type + '\', \'' + id + '\', \'\', 1); wds_duplicate_layer(\'' + type + '\', \'' + id + '\', \'' + layerID + '\');"></span>' +
1876
  '<input type="text" name="' + prefix + '_depth" id="' + prefix + '_depth" prefix="' + prefix + '" value="' + wds_layerID + '" class="wds_layer_depth spider_int_input" onkeypress="return spider_check_isnum(event)" onchange="jQuery(\'#' + prefix + '\').css({zIndex: jQuery(this).val()})" title="z-index" /></td>' +
1877
  '</tr>';
1878
  var text = '<td class="spider_label"><label for="' + prefix + '_text">Text: </label></td>' +
1920
  var border_radius = '<td class="spider_label"><label for="' + prefix + '_border_radius">Radius: </label></td>' +
1921
  '<td><input type="text" name="' + prefix + '_border_radius" id="' + prefix + '_border_radius" value="2px" class="spider_char_input" onchange="jQuery(\'#' + prefix + '\').css({borderRadius: jQuery(this).val()})" /><div class="spider_description">Use CSS type values.</div></td>';
1922
  var shadow = '<td class="spider_label"><label for="' + prefix + '_shadow">Shadow: </label></td>' +
1923
+ '<td><input type="text" name="' + prefix + '_shadow" id="' + prefix + '_shadow" value="" class="spider_char_input" onchange="jQuery(\'#' + prefix + '\').css({boxShadow: jQuery(this).val()})" /><div class="spider_description">Use CSS type values (e.g. 10px 10px 5px #888888).</div></td>';
1924
  var dimensions = '<td class="spider_label"><label>Dimensions: </label></td>' +
1925
  '<td>' +
1926
  '<input type="hidden" name="' + prefix + '_image_url" id="' + prefix + '_image_url" />' +
2047
  wds_add_image_layer_by_spider_uploader(prefix, files, tbodyID, id, layerID, tbody_html);
2048
  }
2049
  else { // Add image layer by media uploader.
2050
+ image_escape = wds_add_image_layer(prefix, tbodyID, id, layerID, tbody_html, edit);
2051
  }
2052
  }
2053
  else {
2075
  var width = jQuery("#" + prefix + "_image_width").val();
2076
  var height = jQuery("#" + prefix + "_image_height").val();
2077
  jQuery("#" + prefix).css({maxWidth: width + "px", maxHeight: height + "px", width: "", height: ""});
2078
+ if (!jQuery(that).is(':checked') || !jQuery(that).val()) {
2079
  jQuery("#" + prefix).css({width: width + "px", height: height + "px"});
2080
  }
2081
  else if (wds_origWidth <= width || wds_origHeight <= height) {
2136
  jQuery(".aui-sortable").disableSelection();
2137
  }
2138
 
2139
+ function wds_add_image_layer(prefix, tbodyID, id, layerID, tbody_html, edit) {
2140
  var custom_uploader;
2141
+ /*event.preventDefault();*/
2142
  // If the uploader object has already been created, reopen the dialog.
2143
  if (custom_uploader) {
2144
  custom_uploader.open();
2274
  '<a id="wbs_subtab' + slideID + '" class="connectedSortable wds_sub_active" href="#">' +
2275
  '<div class="handle" title="Drag to re-order"></div>' +
2276
  ' <input type="text" id="title' + slideID + '" name="title' + slideID + '" value="Slide ' + slides_count + '" class="wds_tab_title" tab_type="slide' + slideID + '" onclick="wds_change_sub_tab(this, \'wds_slide' + slideID + '\')" />' +
2277
+ ' <span class="wds_slide_dublicate" onclick="wds_duplicate_slide(\'' + slideID + '\');" title="Duplicate slide"></span>' +
2278
  ' <span class="wds_tab_remove" title="Delete slide" onclick="wds_remove_slide(\'' + slideID + '\')"></span>' +
2279
  ' <input type="hidden" name="order' + slideID + '" id="order' + slideID + '" value="' + slides_count + '" /></a>').insertBefore(".wds_add_layer");
2280
  wds_change_sub_tab(jQuery('#title' + slideID), 'wds_slide' + slideID);
2302
  'background-repeat: no-repeat; ' +
2303
  'background-size: ' + jQuery('input[name=bg_fit]:radio:checked').val() + '; ' +
2304
  'border-width: ' + jQuery('#glb_border_width').val() + 'px; ' +
2305
+ /*'border-style: ' + jQuery('#glb_border_style').val() + '; ' +
2306
  'border-color: #' + jQuery('#glb_border_color').val() + '; ' +
2307
  'border-radius: ' + jQuery('#glb_border_radius').val() + '; ' +
2308
+ 'box-shadow: ' + jQuery('#glb_box_shadow').val() + '; ' +*/
2309
  'width: inherit; height: inherit;"> </div></div></div></td>' +
2310
  '</tr><tr><td class="spider_label"><label>Published: </label></td>' +
2311
  '<td><input id="published' + slideID + '1" type="radio" value="1" checked="checked" name="published' + slideID + '">' +
2319
  '</tr><tr><td colspan="4">' +
2320
  ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Text Layer" onclick="' + (!fv ? "wds_add_layer(\'text\', \'' + slideID + '\')" : "alert('This functionality is disabled in free version.')") + '; return false;">' +
2321
  img_layer_upload_by +
2322
+ ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Video Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;" />' +
2323
  ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Social Buttons Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;"></td>' +
2324
  '</tr></tbody></table>' +
2325
  '<input id="slide' + slideID + '_layer_ids_string" name="slide' + slideID + '_layer_ids_string" type="hidden" value="" />' +
2450
  }
2451
  else {
2452
  jQuery("#" + prefix).css({width: ""});
2453
+ jQuery(that).val("0");
2454
  }
2455
  }
2456
 
2476
  }
2477
  else {
2478
  jQuery("#" + prefix).css({height: ""});
2479
+ jQuery(that).val("0");
2480
  }
2481
  }
2482
 
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.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,6 +43,7 @@ The number of the slides for each slider is not limited. Various layers can be a
43
  * Possibility to use Slider WD Media Upload for uploading multiple images at once
44
  * Text and image watermarking possibility
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
@@ -130,6 +131,10 @@ After downloading the ZIP file of the slider plugin,
130
 
131
  == Changelog ==
132
 
 
 
 
 
133
  = 1.0.5 =
134
  Image for Next / Previous buttons (Default, Custom, Styled)
135
  Image for bullets (Default, Custom, Styled)
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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
43
  * Possibility to use Slider WD Media Upload for uploading multiple images at once
44
  * Text and image watermarking possibility
45
  * Option of opening the slider-related link within the same page
46
+ * Slide duplication
47
 
48
  Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
49
  * 26 transition effects for Slider
131
 
132
  == Changelog ==
133
 
134
+ = 1.0.6 =
135
+ custom play/pause buttons
136
+ slide duplication
137
+
138
  = 1.0.5 =
139
  Image for Next / Previous buttons (Default, Custom, Styled)
140
  Image for bullets (Default, Custom, Styled)
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.5
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -23,8 +23,9 @@ else {
23
 
24
  // Plugin menu.
25
  function wds_options_panel() {
26
- $sliders_page = add_menu_page('Slider WD', 'Slider WD', 'manage_options', 'sliders_wds', 'wd_sliders', WD_S_URL . '/images/wd_slider.png');
27
 
 
28
  add_action('admin_print_styles-' . $sliders_page, 'wds_styles');
29
  add_action('admin_print_scripts-' . $sliders_page, 'wds_scripts');
30
 
@@ -298,6 +299,11 @@ function wds_activate() {
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
  }
@@ -311,7 +317,7 @@ register_activation_hook(__FILE__, 'wds_activate');
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);
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.6
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
23
 
24
  // Plugin menu.
25
  function wds_options_panel() {
26
+ add_menu_page('Slider WD', 'Slider WD', 'manage_options', 'sliders_wds', 'wd_sliders', WD_S_URL . '/images/wd_slider.png');
27
 
28
+ $sliders_page = add_submenu_page('sliders_wds', 'Sliders', 'Sliders', 'manage_options', 'sliders_wds', 'wd_sliders');
29
  add_action('admin_print_styles-' . $sliders_page, 'wds_styles');
30
  add_action('admin_print_scripts-' . $sliders_page, 'wds_scripts');
31
 
299
  'bullets_img_main_url' => WD_S_URL . '/images/bullet/bullet1/1/1.png',
300
  'bullets_img_hov_url' => WD_S_URL . '/images/bullet/bullet1/1/2.png',
301
  'bull_butt_img_or_not' => 'style',
302
+ 'play_butt_url' => WD_S_URL . '/images/button/button4/1/1.png',
303
+ 'paus_butt_url' => WD_S_URL . '/images/button/button4/1/3.png',
304
+ 'play_butt_hov_url' => WD_S_URL . '/images/button/button4/1/2.png',
305
+ 'paus_butt_hov_url' => WD_S_URL . '/images/button/button4/1/4.png',
306
+ 'play_paus_butt_img_or_not' => 'style',
307
  )
308
  );
309
  }
317
 
318
  function wds_install() {
319
  $version = get_option("wds_version");
320
+ $new_version = '1.0.6';
321
  if ($version && version_compare($version, $new_version, '<')) {
322
  require_once WD_S_DIR . "/sliders-update.php";
323
  wds_update($version);
sliders-insert.php CHANGED
@@ -81,6 +81,11 @@ function wds_insert() {
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);
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
+ `play_paus_butt_img_or_not` varchar(8) NOT NULL,
85
+ `play_butt_url` varchar(255) NOT NULL,
86
+ `play_butt_hov_url` varchar(255) NOT NULL,
87
+ `paus_butt_url` varchar(255) NOT NULL,
88
+ `paus_butt_hov_url` varchar(255) NOT NULL,
89
  PRIMARY KEY (`id`)
90
  ) DEFAULT CHARSET=utf8;";
91
  $wpdb->query($wdsslider);
sliders-update.php CHANGED
@@ -26,6 +26,15 @@ function wds_update($version) {
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
 
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
+ if (version_compare($version, '1.0.6') == -1) {
30
+ // Add play/pause button image/hover image url.
31
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/button/button4/1/1.png' . "'");
32
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/button/button4/1/3.png' . "'");
33
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/button/button4/1/2.png' . "'");
34
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `paus_butt_hov_url` varchar(255) NOT NULL DEFAULT '" . WD_S_URL . '/images/button/button4/1/4.png' . "'");
35
+ // Whether to display play/pause buttons by image or not.
36
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_paus_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
37
+ }
38
  return;
39
  }
40