Slider by WD – Responsive Slider - Version 1.0.7

Version Description

New: Circle timer. New: Slider duplication. Fixed: Disable swipe on navigation off. Fixed: Layer click on 3D animations.

Download this release

Release Info

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

Code changes from version 1.0.6 to 1.0.7

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -163,7 +163,7 @@ class WDSControllerSliders_wds {
163
  $timer_bar_type = 'none';
164
  }
165
  $timer_bar_size = (isset($_POST['timer_bar_size']) ? esc_html(stripslashes($_POST['timer_bar_size'])) : 5);
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'])) : '');
@@ -789,6 +789,320 @@ class WDSControllerSliders_wds {
789
  echo WDW_S_Library::message('Changes must be saved.', 'error');
790
  $view->edit($slider_id, TRUE);
791
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
792
 
793
  function bwg_hex2rgb($hex) {
794
  $hex = str_replace("#", "", $hex);
163
  $timer_bar_type = 'none';
164
  }
165
  $timer_bar_size = (isset($_POST['timer_bar_size']) ? esc_html(stripslashes($_POST['timer_bar_size'])) : 5);
166
+ $timer_bar_color = (isset($_POST['timer_bar_color']) ? esc_html(stripslashes($_POST['timer_bar_color'])) : 'BBBBBB');
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'])) : '');
789
  echo WDW_S_Library::message('Changes must be saved.', 'error');
790
  $view->edit($slider_id, TRUE);
791
  }
792
+ public function duplicate() {
793
+ $slider_id = WDW_S_Library::get('current_id', 0);
794
+ $new_slider_id = $this->duplicate_tabels($slider_id);
795
+ require_once WD_S_DIR . "/admin/models/WDSModelSliders_wds.php";
796
+ $model = new WDSModelSliders_wds();
797
+ require_once WD_S_DIR . "/admin/views/WDSViewSliders_wds.php";
798
+ $view = new WDSViewSliders_wds($model);
799
+ echo WDW_S_Library::message('Item Succesfully Duplicated.', 'updated');
800
+ $view->edit($new_slider_id);
801
+ }
802
+
803
+ public function duplicate_all($id) {
804
+ global $wpdb;
805
+ $sliders_ids_col = $wpdb->get_col('SELECT id FROM ' . $wpdb->prefix . 'wdsslider');
806
+ foreach ($sliders_ids_col as $slider_id) {
807
+ if (isset($_POST['check_' . $slider_id])) {
808
+ $this->duplicate_tabels($slider_id);
809
+ }
810
+ }
811
+ echo WDW_S_Library::message('Items Succesfully Duplicated.', 'updated');
812
+ $this->display();
813
+ }
814
+
815
+ public function duplicate_tabels($slider_id) {
816
+ global $wpdb;
817
+ if ($slider_id) {
818
+ $slider_row = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslider where id="%d"', $slider_id));
819
+ }
820
+ if ($slider_row) {
821
+ $save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
822
+ 'name' => $slider_row->name,
823
+ 'published' => $slider_row->published,
824
+ 'full_width' => $slider_row->full_width,
825
+ 'width' => $slider_row->width,
826
+ 'height' => $slider_row->height,
827
+ 'bg_fit' => $slider_row->bg_fit,
828
+ 'align' => $slider_row->align,
829
+ 'effect' => $slider_row->effect,
830
+ 'time_intervval' => $slider_row->time_intervval,
831
+ 'autoplay' => $slider_row->autoplay,
832
+ 'shuffle' => $slider_row->shuffle,
833
+ 'music' => $slider_row->music,
834
+ 'music_url' => $slider_row->music_url,
835
+ 'preload_images' => $slider_row->preload_images,
836
+ 'background_color' => $slider_row->background_color,
837
+ 'background_transparent' =>$slider_row-> background_transparent,
838
+ 'glb_border_width' => $slider_row->glb_border_width,
839
+ 'glb_border_style' => $slider_row->glb_border_style,
840
+ 'glb_border_color' => $slider_row->glb_border_color,
841
+ 'glb_border_radius' => $slider_row->glb_border_radius,
842
+ 'glb_margin' => $slider_row->glb_margin,
843
+ 'glb_box_shadow' => $slider_row->glb_box_shadow,
844
+ 'image_right_click' => $slider_row->image_right_click,
845
+ 'prev_next_butt' => $slider_row->prev_next_butt,
846
+ 'play_paus_butt' => $slider_row->play_paus_butt,
847
+ 'navigation' => $slider_row->navigation,
848
+ 'rl_butt_style' => $slider_row->rl_butt_style,
849
+ 'rl_butt_size' => $slider_row->rl_butt_size,
850
+ 'pp_butt_size' => $slider_row->pp_butt_size,
851
+ 'butts_color' => $slider_row->butts_color,
852
+ 'butts_transparent' => $slider_row->butts_transparent,
853
+ 'hover_color' => $slider_row->hover_color,
854
+ 'nav_border_width' => $slider_row->nav_border_width,
855
+ 'nav_border_style' => $slider_row->nav_border_style,
856
+ 'nav_border_color' => $slider_row->nav_border_color,
857
+ 'nav_border_radius' => $slider_row->nav_border_radius,
858
+ 'nav_bg_color' => $slider_row->nav_bg_color,
859
+ 'bull_position' => $slider_row->bull_position,
860
+ 'bull_style' => $slider_row->bull_style,
861
+ 'bull_size' => $slider_row->bull_size,
862
+ 'bull_color' => $slider_row->bull_color,
863
+ 'bull_act_color' => $slider_row->bull_act_color,
864
+ 'bull_margin' => $slider_row->bull_margin,
865
+ 'film_pos' => $slider_row->film_pos,
866
+ 'film_thumb_width' => $slider_row->film_thumb_width,
867
+ 'film_thumb_height' => $slider_row->film_thumb_height,
868
+ 'film_bg_color' => $slider_row->film_bg_color,
869
+ 'film_tmb_margin' => $slider_row->film_tmb_margin,
870
+ 'film_act_border_width' => $slider_row->film_act_border_width,
871
+ 'film_act_border_style' => $slider_row->film_act_border_style,
872
+ 'film_act_border_color' => $slider_row->film_act_border_color,
873
+ 'film_dac_transparent' => $slider_row->film_dac_transparent,
874
+ 'built_in_watermark_type' => $slider_row->built_in_watermark_type,
875
+ 'built_in_watermark_position' => $slider_row->built_in_watermark_position,
876
+ 'built_in_watermark_size' => $slider_row->built_in_watermark_size,
877
+ 'built_in_watermark_url' => $slider_row->built_in_watermark_url,
878
+ 'built_in_watermark_text' => $slider_row->built_in_watermark_text,
879
+ 'built_in_watermark_opacity' => $slider_row->built_in_watermark_opacity,
880
+ 'built_in_watermark_font_size' => $slider_row->built_in_watermark_font_size,
881
+ 'built_in_watermark_font' => $slider_row->built_in_watermark_font,
882
+ 'built_in_watermark_color' => $slider_row->built_in_watermark_color,
883
+ 'css' => $slider_row->css,
884
+ 'timer_bar_type' => $slider_row->timer_bar_type,
885
+ 'timer_bar_size' => $slider_row->timer_bar_size,
886
+ 'timer_bar_color' => $slider_row->timer_bar_color,
887
+ 'timer_bar_transparent' => $slider_row->timer_bar_transparent,
888
+ 'layer_out_next' => $slider_row->layer_out_next,
889
+ 'spider_uploader' => $slider_row->spider_uploader,
890
+ 'stop_animation' => $slider_row->stop_animation,
891
+ 'right_butt_url' => $slider_row->right_butt_url,
892
+ 'left_butt_url' => $slider_row->left_butt_url,
893
+ 'right_butt_hov_url' => $slider_row->right_butt_hov_url,
894
+ 'left_butt_hov_url' => $slider_row->left_butt_hov_url,
895
+ 'rl_butt_img_or_not' => $slider_row->rl_butt_img_or_not,
896
+ 'bullets_img_main_url' => $slider_row->bullets_img_main_url,
897
+ 'bullets_img_hov_url' => $slider_row->bullets_img_hov_url,
898
+ 'bull_butt_img_or_not' => $slider_row->bull_butt_img_or_not,
899
+ 'play_paus_butt_img_or_not' => $slider_row->play_paus_butt_img_or_not,
900
+ 'play_butt_url' => $slider_row->play_butt_url,
901
+ 'play_butt_hov_url' => $slider_row->play_butt_hov_url,
902
+ 'paus_butt_url' => $slider_row->paus_butt_url,
903
+ 'paus_butt_hov_url' => $slider_row->paus_butt_hov_url,
904
+
905
+ ), array(
906
+ '%s',
907
+ '%d',
908
+ '%d',
909
+ '%d',
910
+ '%d',
911
+ '%s',
912
+ '%s',
913
+ '%s',
914
+ '%d',
915
+ '%d',
916
+ '%d',
917
+ '%d',
918
+ '%s',
919
+ '%d',
920
+ '%s',
921
+ '%d',
922
+ '%d',
923
+ '%s',
924
+ '%s',
925
+ '%s',
926
+ '%d',
927
+ '%s',
928
+ '%d',
929
+ '%d',
930
+ '%d',
931
+ '%s',
932
+ '%s',
933
+ '%d',
934
+ '%d',
935
+ '%s',
936
+ '%d',
937
+ '%s',
938
+ '%d',
939
+ '%s',
940
+ '%s',
941
+ '%s',
942
+ '%s',
943
+ '%s',
944
+ '%s',
945
+ '%d',
946
+ '%s',
947
+ '%s',
948
+ '%d',
949
+ '%s',
950
+ '%d',
951
+ '%d',
952
+ '%s',
953
+ '%d',
954
+ '%d',
955
+ '%s',
956
+ '%s',
957
+ '%d',
958
+ '%s',
959
+ '%s',
960
+ '%s',
961
+ '%s',
962
+ '%s',
963
+ '%s',
964
+ '%s',
965
+ '%s',
966
+ '%s',
967
+ '%s',
968
+ '%s',
969
+ '%d',
970
+ '%s',
971
+ '%d',
972
+ '%d',
973
+ '%d',
974
+ '%d',
975
+ '%s',
976
+ '%s',
977
+ '%s',
978
+ '%s',
979
+ '%s',
980
+ '%s',
981
+ '%s',
982
+ '%s',
983
+ '%s',
984
+ '%s',
985
+ '%s',
986
+ '%s',
987
+ '%s',
988
+ ));
989
+ $new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
990
+
991
+ $slider_slides = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdsslide where slider_id="%d"', $slider_id));
992
+ if ($slider_slides) {
993
+ foreach ($slider_slides as $single_slide) {
994
+ $save = $wpdb->insert($wpdb->prefix . 'wdsslide', array(
995
+ 'slider_id' => $new_slider_id,
996
+ 'title' => $single_slide->title,
997
+ 'type' => $single_slide->type,
998
+ 'order' => $single_slide->order,
999
+ 'published' => $single_slide->published,
1000
+ 'link' => $single_slide->link,
1001
+ 'image_url' => $single_slide->image_url,
1002
+ 'thumb_url' => $single_slide->thumb_url,
1003
+ 'target_attr_slide' => $single_slide->target_attr_slide,
1004
+ ), array(
1005
+ '%d',
1006
+ '%s',
1007
+ '%s',
1008
+ '%d',
1009
+ '%d',
1010
+ '%s',
1011
+ '%s',
1012
+ '%s',
1013
+ '%d',
1014
+ ));
1015
+ $new_slide_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslide');
1016
+ $slider_layer = $wpdb->get_results($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'wdslayer where slide_id="%d"', $single_slide->id));
1017
+ if ($slider_layer){
1018
+ foreach ($slider_layer as $layer_id) {
1019
+ if ($layer_id) {
1020
+ $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
1021
+ 'slide_id' => $new_slide_id,
1022
+ 'title' => $layer_id->title,
1023
+ 'type' => $layer_id->type,
1024
+ 'depth' => $layer_id->depth,
1025
+ 'text' => $layer_id->text,
1026
+ 'link' => $layer_id->link,
1027
+ 'left' => $layer_id->left,
1028
+ 'top' => $layer_id->top,
1029
+ 'start' => $layer_id->start,
1030
+ 'end' => $layer_id->end,
1031
+ 'published' => $layer_id->published,
1032
+ 'color' => $layer_id->color,
1033
+ 'size' => $layer_id->size,
1034
+ 'ffamily' => $layer_id->ffamily,
1035
+ 'fweight' => $layer_id->fweight,
1036
+ 'padding' => $layer_id->padding,
1037
+ 'fbgcolor' => $layer_id->fbgcolor,
1038
+ 'transparent' => $layer_id->transparent,
1039
+ 'border_width' => $layer_id->border_width,
1040
+ 'border_style' => $layer_id->border_style,
1041
+ 'border_color' => $layer_id->border_color,
1042
+ 'border_radius' => $layer_id->border_radius,
1043
+ 'shadow' => $layer_id->shadow,
1044
+ 'image_url' => $layer_id->image_url,
1045
+ 'image_width' => $layer_id->image_width,
1046
+ 'image_height' => $layer_id->image_height,
1047
+ 'image_scale' => $layer_id->image_scale,
1048
+ 'alt' => $layer_id->alt,
1049
+ 'imgtransparent' => $layer_id->imgtransparent,
1050
+ 'social_button' => $layer_id->social_button,
1051
+ 'hover_color' => $layer_id->hover_color,
1052
+ 'layer_effect_in' => $layer_id->layer_effect_in,
1053
+ 'layer_effect_out' => $layer_id->layer_effect_out,
1054
+ 'duration_eff_in' => $layer_id->duration_eff_in,
1055
+ 'duration_eff_out' => $layer_id->duration_eff_out,
1056
+ 'target_attr_layer' => $layer_id->target_attr_layer,
1057
+ ), array(
1058
+ '%d',
1059
+ '%s',
1060
+ '%s',
1061
+ '%d',
1062
+ '%s',
1063
+ '%s',
1064
+ '%d',
1065
+ '%d',
1066
+ '%d',
1067
+ '%d',
1068
+ '%d',
1069
+ '%s',
1070
+ '%d',
1071
+ '%s',
1072
+ '%s',
1073
+ '%s',
1074
+ '%s',
1075
+ '%d',
1076
+ '%d',
1077
+ '%s',
1078
+ '%s',
1079
+ '%s',
1080
+ '%s',
1081
+ '%s',
1082
+ '%d',
1083
+ '%d',
1084
+ '%s',
1085
+ '%s',
1086
+ '%d',
1087
+ '%s',
1088
+ '%s',
1089
+ '%s',
1090
+ '%s',
1091
+ '%s',
1092
+ '%d',
1093
+ '%d',
1094
+ '%d',
1095
+ ));
1096
+
1097
+ }
1098
+ }
1099
+ }
1100
+ }
1101
+ }
1102
+
1103
+ }
1104
+ return $new_slider_id;
1105
+ }
1106
 
1107
  function bwg_hex2rgb($hex) {
1108
  $hex = str_replace("#", "", $hex);
admin/models/WDSModelSliders_wds.php CHANGED
@@ -150,7 +150,7 @@ class WDSModelSliders_wds {
150
  $row->enable_time_bar = 1;
151
  $row->timer_bar_type = 'top';
152
  $row->timer_bar_size = 5;
153
- $row->timer_bar_color = 'FFFFFF';
154
  $row->timer_bar_transparent = 50;
155
  $row->built_in_watermark_type = 'none';
156
  $row->built_in_watermark_position = 'middle-center';
150
  $row->enable_time_bar = 1;
151
  $row->timer_bar_type = 'top';
152
  $row->timer_bar_size = 5;
153
+ $row->timer_bar_color = 'BBBBBB';
154
  $row->timer_bar_transparent = 50;
155
  $row->built_in_watermark_type = 'none';
156
  $row->built_in_watermark_position = 'middle-center';
admin/views/WDSViewSliders_wds.php CHANGED
@@ -57,6 +57,7 @@ class WDSViewSliders_wds {
57
  </span>
58
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
59
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'unpublish_all')" value="Unpublish" />
 
60
  <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
61
  spider_set_input_value('task', 'delete_all');
62
  } else {
@@ -401,7 +402,10 @@ class WDSViewSliders_wds {
401
  <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
402
  spider_set_input_value('task', 'apply');
403
  spider_ajax_save('sliders_form', event);" value="Apply" />
404
- <?php
 
 
 
405
  if ($row->spider_uploader) {
406
  ?>
407
  <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Images" onclick="return false;">
@@ -1425,6 +1429,10 @@ class WDSViewSliders_wds {
1425
  <select name="timer_bar_type" id="timer_bar_type">
1426
  <option value="top" <?php echo (($row->timer_bar_type == "top") ? 'selected="selected"' : ''); ?>>Line top</option>
1427
  <option value="bottom" <?php echo (($row->timer_bar_type == "bottom") ? 'selected="selected"' : ''); ?>>Line Bottom</option>
 
 
 
 
1428
  </select>
1429
  <div class="spider_description">Choose the type of the timer bar to be used within the slider.</div>
1430
  </td>
57
  </span>
58
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'publish_all')" value="Publish" />
59
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'unpublish_all')" value="Unpublish" />
60
+ <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'duplicate_all')" value="Duplicate" />
61
  <input class="button-secondary" type="submit" onclick="if (confirm('Do you want to delete selected items?')) {
62
  spider_set_input_value('task', 'delete_all');
63
  } else {
402
  <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
403
  spider_set_input_value('task', 'apply');
404
  spider_ajax_save('sliders_form', event);" value="Apply" />
405
+ <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
406
+ spider_set_input_value('task', 'duplicate');
407
+ spider_ajax_save('sliders_form', event);" value="Save as Copy" />
408
+ <?php
409
  if ($row->spider_uploader) {
410
  ?>
411
  <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Images" onclick="return false;">
1429
  <select name="timer_bar_type" id="timer_bar_type">
1430
  <option value="top" <?php echo (($row->timer_bar_type == "top") ? 'selected="selected"' : ''); ?>>Line top</option>
1431
  <option value="bottom" <?php echo (($row->timer_bar_type == "bottom") ? 'selected="selected"' : ''); ?>>Line Bottom</option>
1432
+ <option value="circle_top_left" <?php echo (($row->timer_bar_type == "circle_top_left") ? 'selected="selected"' : ''); ?>>Circle top left</option>
1433
+ <option value="circle_top_right" <?php echo (($row->timer_bar_type == "circle_top_right") ? 'selected="selected"' : ''); ?>>Circle top right</option>
1434
+ <option value="circle_bot_left" <?php echo (($row->timer_bar_type == "circle_bot_left") ? 'selected="selected"' : ''); ?>>Circle bottom left</option>
1435
+ <option value="circle_bot_right" <?php echo (($row->timer_bar_type == "circle_bot_right") ? 'selected="selected"' : ''); ?>>Circle bottom right</option>
1436
  </select>
1437
  <div class="spider_description">Choose the type of the timer bar to be used within the slider.</div>
1438
  </td>
frontend/views/WDSViewSlider.php CHANGED
@@ -49,6 +49,8 @@ class WDSViewSlider {
49
  $slideshow_effect = $slider_row->effect == 'zoomFade' ? 'fade' : $slider_row->effect;
50
  $slideshow_interval = $slider_row->time_intervval;
51
 
 
 
52
  $enable_slideshow_shuffle = $slider_row->shuffle;
53
  $enable_prev_next_butt = $slider_row->prev_next_butt;
54
  $enable_play_paus_butt = $slider_row->play_paus_butt;
@@ -104,7 +106,17 @@ class WDSViewSlider {
104
  $outerWidth_or_outerHeight = 'outerHeight';
105
  }
106
 
107
- $current_image_id = (isset($_GET['image_id']) ? esc_html($_GET['image_id']) : ($slide_rows ? $slide_rows[0]->id : 0));
 
 
 
 
 
 
 
 
 
 
108
  global $wp;
109
  $current_url = add_query_arg($wp->query_string, '', home_url($wp->request));
110
 
@@ -497,7 +509,10 @@ class WDSViewSlider {
497
  ?>
498
  }
499
 
500
- /* Timer.*/
 
 
 
501
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_line_timer_container_<?php echo $wds; ?> {
502
  display: block;
503
  position: absolute;
@@ -515,6 +530,92 @@ class WDSViewSlider {
515
  opacity: <?php echo number_format((100 - $slider_row->timer_bar_transparent) / 100, 2, ".", ""); ?>;
516
  filter: alpha(opacity=<?php echo 100 - $slider_row->timer_bar_transparent; ?>);
517
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
518
 
519
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_image_spun1_<?php echo $wds; ?> {
520
  display: table;
@@ -617,9 +718,32 @@ class WDSViewSlider {
617
  </div>
618
  <?php
619
  }
620
- if ($slider_row->timer_bar_type != 'none') {
 
 
 
 
 
621
  ?>
622
- <div class="wds_line_timer_container_<?php echo $wds; ?>"><div class="wds_line_timer_<?php echo $wds; ?>"></div></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
623
  <?php
624
  }
625
  ?>
@@ -829,6 +953,78 @@ class WDSViewSlider {
829
  var wds_transition_duration_<?php echo $wds; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : 800; ?>;
830
  var wds_playInterval_<?php echo $wds; ?>;
831
  var progress = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
832
  /* Stop autoplay.*/
833
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
834
  var wds_current_key_<?php echo $wds; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
@@ -1217,13 +1413,75 @@ class WDSViewSlider {
1217
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
1218
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
1219
  if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
1220
- if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1221
- jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1222
- width: "100%"
1223
- }, {
1224
- duration: <?php echo $slideshow_interval * 1000; ?>,
1225
- specialEasing: {width: "linear"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1226
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1227
  }
1228
  }
1229
  <?php
@@ -1406,20 +1664,22 @@ class WDSViewSlider {
1406
  <?php
1407
  }
1408
  ?>
1409
- if (typeof jQuery().swiperight !== 'undefined') {
1410
- if (jQuery.isFunction(jQuery().swiperight)) {
1411
- jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
1412
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1413
- return false;
1414
- });
 
 
1415
  }
1416
- }
1417
- if (typeof jQuery().swipeleft !== 'undefined') {
1418
- if (jQuery.isFunction(jQuery().swipeleft)) {
1419
- jQuery('#wds_container1_<?php echo $wds; ?>').swipeleft(function () {
1420
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1421
- return false;
1422
- });
1423
  }
1424
  }
1425
 
@@ -1433,6 +1693,14 @@ class WDSViewSlider {
1433
  /* Play.*/
1434
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
1435
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
 
 
 
 
 
 
 
 
1436
  play_<?php echo $wds; ?>();
1437
  if (<?php echo $enable_slideshow_music ?>) {
1438
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
@@ -1457,7 +1725,21 @@ class WDSViewSlider {
1457
  }
1458
  if (typeof jQuery().stop !== 'undefined') {
1459
  if (jQuery.isFunction(jQuery().stop)) {
1460
- jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1461
  }
1462
  }
1463
  }
@@ -1469,6 +1751,9 @@ class WDSViewSlider {
1469
  if (<?php echo $enable_slideshow_music ?>) {
1470
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1471
  }
 
 
 
1472
  }
1473
  <?php if ($slider_row->preload_images) { ?>
1474
  function wds_preload_<?php echo $wds; ?>(preload_key) {
@@ -1506,15 +1791,26 @@ class WDSViewSlider {
1506
  }
1507
  if (typeof jQuery().stop !== 'undefined') {
1508
  if (jQuery.isFunction(jQuery().stop)) {
1509
- jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
 
 
 
 
 
1510
  }
1511
  }
1512
- }
1513
  function wds_play_animation_<?php echo $wds; ?>() {
1514
  if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1515
  return;
1516
  }
1517
- play_<?php echo $wds; ?>();
 
 
 
 
 
 
1518
  if (<?php echo $enable_slideshow_music ?>) {
1519
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1520
  }
@@ -1577,6 +1873,12 @@ class WDSViewSlider {
1577
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1578
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1579
  play_<?php echo $wds; ?>();
 
 
 
 
 
 
1580
  }
1581
  }
1582
  var i_<?php echo $wds; ?> = 0;
@@ -1592,7 +1894,12 @@ class WDSViewSlider {
1592
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1593
  if (typeof jQuery().stop !== 'undefined') {
1594
  if (jQuery.isFunction(jQuery().stop)) {
1595
- jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
 
 
 
 
 
1596
  }
1597
  }
1598
  });
49
  $slideshow_effect = $slider_row->effect == 'zoomFade' ? 'fade' : $slider_row->effect;
50
  $slideshow_interval = $slider_row->time_intervval;
51
 
52
+ $circle_timer_size = (2 * $slider_row->timer_bar_size - 2) * 2;
53
+
54
  $enable_slideshow_shuffle = $slider_row->shuffle;
55
  $enable_prev_next_butt = $slider_row->prev_next_butt;
56
  $enable_play_paus_butt = $slider_row->play_paus_butt;
106
  $outerWidth_or_outerHeight = 'outerHeight';
107
  }
108
 
109
+ if ($enable_slideshow_shuffle) {
110
+ $slide_ids = array();
111
+ foreach ($slide_rows as $slide_row) {
112
+ $slide_ids[] += $slide_row->id;
113
+ }
114
+ $current_image_id = $slide_ids[array_rand($slide_ids)];
115
+ }
116
+ else {
117
+ $current_image_id = ($slide_rows ? $slide_rows[0]->id : 0);
118
+ }
119
+
120
  global $wp;
121
  $current_url = add_query_arg($wp->query_string, '', home_url($wp->request));
122
 
509
  ?>
510
  }
511
 
512
+ <?php
513
+ if ($slider_row->timer_bar_type == 'top' || $slider_row->timer_bar_type == 'bottom') {
514
+ ?>
515
+ /* Line timer.*/
516
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_line_timer_container_<?php echo $wds; ?> {
517
  display: block;
518
  position: absolute;
530
  opacity: <?php echo number_format((100 - $slider_row->timer_bar_transparent) / 100, 2, ".", ""); ?>;
531
  filter: alpha(opacity=<?php echo 100 - $slider_row->timer_bar_transparent; ?>);
532
  }
533
+ <?php
534
+ }
535
+ elseif ($slider_row->timer_bar_type != 'none') {
536
+ ?>
537
+ /* Circle timer.*/
538
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_line_timer_container_<?php echo $wds; ?> {
539
+ display: block;
540
+ position: absolute;
541
+ overflow: hidden;
542
+ <?php echo $slider_row->timer_bar_type; ?>: 0;
543
+ z-index: 16;
544
+ width: 100%;
545
+ height: <?php echo $circle_timer_size; ?>px;
546
+ }
547
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_circle_timer_container_<?php echo $wds; ?> {
548
+ display: block;
549
+ position: absolute;
550
+ overflow: hidden;
551
+ z-index: 16;
552
+ width: 100%;
553
+ <?php switch ($slider_row->timer_bar_type) {
554
+ case 'circle_top_right': echo 'top: 0px; text-align:right;'; break;
555
+ case 'circle_top_left': echo 'top: 0px; text-align:left;'; break;
556
+ case 'circle_bot_right': echo 'bottom: 0px; text-align:right;'; break;
557
+ case 'circle_bot_left': echo 'bottom: 0px; text-align:left;'; break;
558
+ default: 'top: 0px; text-align:right;';
559
+ } ?>
560
+ }
561
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_circle_timer_container_<?php echo $wds; ?> .wds_circle_timer_<?php echo $wds; ?> {
562
+ display: inline-block;
563
+ width: <?php echo $circle_timer_size; ?>px;
564
+ height: <?php echo $circle_timer_size; ?>px;
565
+ position: relative;
566
+ opacity: <?php echo number_format((100 - $slider_row->timer_bar_transparent) / 100, 2, ".", ""); ?>;
567
+ filter: alpha(opacity=<?php echo 100 - $slider_row->timer_bar_transparent; ?>);
568
+ }
569
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_circle_timer_container_<?php echo $wds; ?> .wds_circle_timer_<?php echo $wds; ?> .wds_circle_timer_parts_<?php echo $wds; ?> {
570
+ display: table;
571
+ width: 100%;
572
+ height: 100%;
573
+ border-radius: 100%;
574
+ position: relative;
575
+ }
576
+ .wds_circle_timer_part_<?php echo $wds; ?> {
577
+ display: table-cell;
578
+ width: 50%;
579
+ height: 100%;
580
+ overflow: hidden !important;
581
+ }
582
+ .wds_circle_timer_small_parts_<?php echo $wds; ?> {
583
+ display: block;
584
+ width: 100%;
585
+ height: 50%;
586
+ background: #<?php echo $slider_row->timer_bar_color; ?>;
587
+ position: relative;
588
+ }
589
+ .wds_circle_timer_center_cont_<?php echo $wds; ?> {
590
+ display: table;
591
+ width: <?php echo $circle_timer_size; ?>px;
592
+ height: <?php echo $circle_timer_size; ?>px;
593
+ position: absolute;
594
+ text-align: center;
595
+ top:0px;
596
+ vertical-align:middle;
597
+ }
598
+ .wds_circle_timer_center_<?php echo $wds; ?> {
599
+ display: table-cell;
600
+ width: 100%;
601
+ height: 100%;
602
+ text-align: center;
603
+ line-height: 0px !important;
604
+ vertical-align: middle;
605
+ }
606
+ .wds_circle_timer_center_<?php echo $wds; ?> div {
607
+ display: inline-block;
608
+ width: <?php echo $circle_timer_size / 2 - 2; ?>px;
609
+ height: <?php echo $circle_timer_size / 2 - 2; ?>px;
610
+ background-color: #FFFFFF;
611
+ border-radius: 100%;
612
+ z-index: 300;
613
+ position: relative;
614
+ }
615
+
616
+ <?php
617
+ }
618
+ ?>
619
 
620
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_image_spun1_<?php echo $wds; ?> {
621
  display: table;
718
  </div>
719
  <?php
720
  }
721
+ if ($slider_row->timer_bar_type == 'top' || $slider_row->timer_bar_type == 'bottom') {
722
+ ?>
723
+ <div class="wds_line_timer_container_<?php echo $wds; ?>"><div class="wds_line_timer_<?php echo $wds; ?>"></div></div>
724
+ <?php
725
+ }
726
+ elseif ($slider_row->timer_bar_type != 'none') {
727
  ?>
728
+ <div class="wds_circle_timer_container_<?php echo $wds; ?>">
729
+ <div class="wds_circle_timer_<?php echo $wds; ?>">
730
+ <div class="wds_circle_timer_parts_<?php echo $wds; ?>">
731
+ <div class="wds_circle_timer_part_<?php echo $wds; ?>">
732
+ <div class="wds_circle_timer_small_parts_<?php echo $wds; ?> animated" style="border-radius:100% 0% 0% 0%;" id="top_left_<?php echo $wds; ?>"></div>
733
+ <div class="wds_circle_timer_small_parts_<?php echo $wds; ?> animated" style="border-radius:0% 0% 0% 100%;z-index:150;" id="bottom_left_<?php echo $wds; ?>"></div>
734
+ </div>
735
+ <div class="wds_circle_timer_part_<?php echo $wds; ?>">
736
+ <div class="wds_circle_timer_small_parts_<?php echo $wds; ?> animated" style="border-radius:0% 100% 0% 0%;" id="top_right_<?php echo $wds; ?>"></div>
737
+ <div class="wds_circle_timer_small_parts_<?php echo $wds; ?> animated" style="border-radius:0% 0% 100% 0%;" id="bottom_right_<?php echo $wds; ?>"></div>
738
+ </div>
739
+ </div>
740
+ <div class="wds_circle_timer_center_cont_<?php echo $wds; ?>">
741
+ <div class="wds_circle_timer_center_<?php echo $wds; ?>">
742
+ <div></div>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ </div>
747
  <?php
748
  }
749
  ?>
953
  var wds_transition_duration_<?php echo $wds; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : 800; ?>;
954
  var wds_playInterval_<?php echo $wds; ?>;
955
  var progress = 0;
956
+ var bottom_right_deggree_<?php echo $wds; ?>;
957
+ var bottom_left_deggree_<?php echo $wds; ?>;
958
+ var top_left_deggree_<?php echo $wds; ?>;
959
+ var curent_time_deggree_<?php echo $wds; ?> = 0;
960
+ var circle_timer_animate_<?php echo $wds; ?>;
961
+ function circle_timer_<?php echo $wds; ?>(angle) {
962
+ circle_timer_animate_<?php echo $wds; ?> = jQuery({deg: angle}).animate({deg: 360}, {
963
+ duration: <?php echo $slideshow_interval * 1000; ?>,
964
+ step: function(now) {
965
+ curent_time_deggree_<?php echo $wds; ?> = now;
966
+ if (now >= 0 && now <= 270) {
967
+ jQuery('#top_right_<?php echo $wds; ?>').css({
968
+ '-moz-transform':'rotate('+now+'deg)',
969
+ '-webkit-transform':'rotate('+now+'deg)',
970
+ '-o-transform':'rotate('+now+'deg)',
971
+ '-ms-transform':'rotate('+now+'deg)',
972
+ 'transform':'rotate('+now+'deg)',
973
+
974
+ '-webkit-transform-origin': 'left bottom',
975
+ '-ms-transform-origin': 'left bottom',
976
+ '-moz-transform-origin': 'left bottom',
977
+ 'transform-origin': 'left bottom'
978
+ });
979
+ }
980
+ if (now >= 90 && now <= 270) {
981
+ bottom_right_deggree_<?php echo $wds; ?> = now - 90;
982
+ jQuery('#bottom_right_<?php echo $wds; ?>').css({
983
+ '-moz-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
984
+ '-webkit-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
985
+ '-o-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
986
+ '-ms-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
987
+ 'transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
988
+
989
+ '-webkit-transform-origin': 'left top',
990
+ '-ms-transform-origin': 'left top',
991
+ '-moz-transform-origin': 'left top',
992
+ 'transform-origin': 'left top'
993
+ });
994
+ }
995
+ if (now >= 180 && now <= 360) {
996
+ bottom_left_deggree_<?php echo $wds; ?> = now - 180;
997
+ jQuery('#bottom_left_<?php echo $wds; ?>').css({
998
+ '-moz-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
999
+ '-webkit-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1000
+ '-o-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1001
+ '-ms-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1002
+ 'transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1003
+
1004
+ '-webkit-transform-origin': 'right top',
1005
+ '-ms-transform-origin': 'right top',
1006
+ '-moz-transform-origin': 'right top',
1007
+ 'transform-origin': 'right top'
1008
+ });
1009
+ }
1010
+ if (now >= 270 && now <= 360) {
1011
+ top_left_deggree_<?php echo $wds; ?> = now - 270;
1012
+ jQuery('#top_left_<?php echo $wds; ?>').css({
1013
+ '-moz-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1014
+ '-webkit-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1015
+ '-o-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1016
+ '-ms-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1017
+ 'transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1018
+
1019
+ '-webkit-transform-origin': 'right bottom',
1020
+ '-ms-transform-origin': 'right bottom',
1021
+ '-moz-transform-origin': 'right bottom',
1022
+ 'transform-origin': 'right bottom'
1023
+ });
1024
+ }
1025
+ }
1026
+ });
1027
+ }
1028
  /* Stop autoplay.*/
1029
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1030
  var wds_current_key_<?php echo $wds; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
1413
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
1414
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
1415
  if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
1416
+ if('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
1417
+ if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1418
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1419
+ width: "100%"
1420
+ }, {
1421
+ duration: <?php echo $slideshow_interval * 1000; ?>,
1422
+ specialEasing: {width: "linear"}
1423
+ });
1424
+ }
1425
+ }
1426
+ else if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1427
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1428
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1429
+ }
1430
+ jQuery('#top_right_<?php echo $wds; ?>').css({
1431
+ '-moz-transform':'rotate(0deg)',
1432
+ '-webkit-transform':'rotate(0deg)',
1433
+ '-o-transform':'rotate(0deg)',
1434
+ '-ms-transform':'rotate(0deg)',
1435
+ 'transform':'rotate(0deg)',
1436
+
1437
+ '-webkit-transform-origin': 'left bottom',
1438
+ '-ms-transform-origin': 'left bottom',
1439
+ '-moz-transform-origin': 'left bottom',
1440
+ 'transform-origin': 'left bottom'
1441
+ });
1442
+ jQuery('#bottom_right_<?php echo $wds; ?>').css({
1443
+ '-moz-transform':'rotate(0deg)',
1444
+ '-webkit-transform':'rotate(0deg)',
1445
+ '-o-transform':'rotate(0deg)',
1446
+ '-ms-transform':'rotate(0deg)',
1447
+ 'transform':'rotate(0deg)',
1448
+
1449
+ '-webkit-transform-origin': 'left top',
1450
+ '-ms-transform-origin': 'left top',
1451
+ '-moz-transform-origin': 'left top',
1452
+ 'transform-origin': 'left top'
1453
  });
1454
+ jQuery('#bottom_left_<?php echo $wds; ?>').css({
1455
+ '-moz-transform':'rotate(0deg)',
1456
+ '-webkit-transform':'rotate(0deg)',
1457
+ '-o-transform':'rotate(0deg)',
1458
+ '-ms-transform':'rotate(0deg)',
1459
+ 'transform':'rotate(0deg)',
1460
+
1461
+ '-webkit-transform-origin': 'right top',
1462
+ '-ms-transform-origin': 'right top',
1463
+ '-moz-transform-origin': 'right top',
1464
+ 'transform-origin': 'right top'
1465
+ });
1466
+ jQuery('#top_left_<?php echo $wds; ?>').css({
1467
+ '-moz-transform':'rotate(0deg)',
1468
+ '-webkit-transform':'rotate(0deg)',
1469
+ '-o-transform':'rotate(0deg)',
1470
+ '-ms-transform':'rotate(0deg)',
1471
+ 'transform':'rotate(0deg)',
1472
+
1473
+ '-webkit-transform-origin': 'right bottom',
1474
+ '-ms-transform-origin': 'right bottom',
1475
+ '-moz-transform-origin': 'right bottom',
1476
+ 'transform-origin': 'right bottom'
1477
+ });
1478
+ if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1479
+ /* Begin circle timer on next.*/
1480
+ circle_timer_<?php echo $wds; ?>(0);
1481
+ }
1482
+ else {
1483
+ curent_time_deggree_<?php echo $wds; ?> = 0;
1484
+ }
1485
  }
1486
  }
1487
  <?php
1664
  <?php
1665
  }
1666
  ?>
1667
+ if (<?php echo $enable_prev_next_butt; ?>) {
1668
+ if (typeof jQuery().swiperight !== 'undefined') {
1669
+ if (jQuery.isFunction(jQuery().swiperight)) {
1670
+ jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
1671
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1672
+ return false;
1673
+ });
1674
+ }
1675
  }
1676
+ if (typeof jQuery().swipeleft !== 'undefined') {
1677
+ if (jQuery.isFunction(jQuery().swipeleft)) {
1678
+ jQuery('#wds_container1_<?php echo $wds; ?>').swipeleft(function () {
1679
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1680
+ return false;
1681
+ });
1682
+ }
1683
  }
1684
  }
1685
 
1693
  /* Play.*/
1694
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("title", "<?php echo __('Pause', 'bwg'); ?>");
1695
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
1696
+
1697
+ /* Finish current animation and begin the other.*/
1698
+ if (<?php echo $enable_slideshow_autoplay; ?> && ('<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom')) {
1699
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1700
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1701
+ }
1702
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1703
+ }
1704
  play_<?php echo $wds; ?>();
1705
  if (<?php echo $enable_slideshow_music ?>) {
1706
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1725
  }
1726
  if (typeof jQuery().stop !== 'undefined') {
1727
  if (jQuery.isFunction(jQuery().stop)) {
1728
+ <?php
1729
+ if ($slider_row->timer_bar_type == 'top' || $slider_row->timer_bar_type == 'bottom') {
1730
+ ?>
1731
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
1732
+ <?php
1733
+ }
1734
+ elseif ($slider_row->timer_bar_type != 'none') {
1735
+ ?>
1736
+ /* Pause circle timer.*/
1737
+ if (typeof circle_timer_animate_<?php echo $wds; ?>.stop !== 'undefined') {
1738
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1739
+ }
1740
+ <?php
1741
+ }
1742
+ ?>
1743
  }
1744
  }
1745
  }
1751
  if (<?php echo $enable_slideshow_music ?>) {
1752
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1753
  }
1754
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1755
+ circle_timer_<?php echo $wds; ?>(0);
1756
+ }
1757
  }
1758
  <?php if ($slider_row->preload_images) { ?>
1759
  function wds_preload_<?php echo $wds; ?>(preload_key) {
1791
  }
1792
  if (typeof jQuery().stop !== 'undefined') {
1793
  if (jQuery.isFunction(jQuery().stop)) {
1794
+ if ('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
1795
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
1796
+ }
1797
+ else if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1798
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1799
+ }
1800
  }
1801
  }
1802
+ }
1803
  function wds_play_animation_<?php echo $wds; ?>() {
1804
  if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1805
  return;
1806
  }
1807
+ play_<?php echo $wds; ?>();
1808
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1809
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1810
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1811
+ }
1812
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1813
+ }
1814
  if (<?php echo $enable_slideshow_music ?>) {
1815
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1816
  }
1873
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1874
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1875
  play_<?php echo $wds; ?>();
1876
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1877
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1878
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1879
+ }
1880
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1881
+ }
1882
  }
1883
  }
1884
  var i_<?php echo $wds; ?> = 0;
1894
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1895
  if (typeof jQuery().stop !== 'undefined') {
1896
  if (jQuery.isFunction(jQuery().stop)) {
1897
+ if ('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
1898
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").stop();
1899
+ }
1900
+ else if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1901
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1902
+ }
1903
  }
1904
  }
1905
  });
js/wds.js CHANGED
@@ -293,7 +293,8 @@ function wds_success(form_id, end) {
293
  }
294
  break;
295
  }
296
- case "reset": {
 
297
  jQuery("#" + form_id).submit();
298
  break;
299
  }
@@ -1405,7 +1406,6 @@ function wds_add_image(files, image_for, slide_id, layer_id) {
1405
  if (typeof layer_id == "undefined") {
1406
  var layer_id = "";
1407
  }
1408
- console.log(layer_id);
1409
  jQuery("#slide" + slide_id + "_layer" + layer_id).attr('src', files[0]['url']);
1410
  jQuery("#slide" + slide_id + "_layer" + layer_id+"_image_url").val(files[0]['url']);
1411
  break;
293
  }
294
  break;
295
  }
296
+ case "reset":
297
+ case "duplicate": {
298
  jQuery("#" + form_id).submit();
299
  break;
300
  }
1406
  if (typeof layer_id == "undefined") {
1407
  var layer_id = "";
1408
  }
 
1409
  jQuery("#slide" + slide_id + "_layer" + layer_id).attr('src', files[0]['url']);
1410
  jQuery("#slide" + slide_id + "_layer" + layer_id+"_image_url").val(files[0]['url']);
1411
  break;
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: webdorado
3
  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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -131,6 +131,12 @@ After downloading the ZIP file of the slider plugin,
131
 
132
  == Changelog ==
133
 
 
 
 
 
 
 
134
  = 1.0.6 =
135
  custom play/pause buttons
136
  slide duplication
2
  Contributors: webdorado
3
  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.4
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
131
 
132
  == Changelog ==
133
 
134
+ = 1.0.7 =
135
+ New: Circle timer.
136
+ New: Slider duplication.
137
+ Fixed: Disable swipe on navigation off.
138
+ Fixed: Layer click on 3D animations.
139
+
140
  = 1.0.6 =
141
  custom play/pause buttons
142
  slide duplication
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.6
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -317,7 +317,7 @@ register_activation_hook(__FILE__, 'wds_activate');
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);
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.7
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
317
 
318
  function wds_install() {
319
  $version = get_option("wds_version");
320
+ $new_version = '1.0.7';
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,11 +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
- `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);
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);