Version Description
- Added: Animation iteration count.
- Fixed: Sliders import.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.68 |
Comparing to | |
See all releases |
Code changes from version 1.1.67 to 1.1.68
- admin/controllers/WDSControllerSliders_wds.php +14 -0
- admin/views/WDSViewSliders_wds.php +36 -12
- css/wds_tables.css +2 -2
- frontend/views/WDSViewSlider.php +44 -10
- js/wds.js +67 -21
- readme.txt +5 -1
- slider-wd.php +2 -2
- sliders-insert.php +2 -0
- sliders-update.php +4 -0
admin/controllers/WDSControllerSliders_wds.php
CHANGED
@@ -484,6 +484,8 @@ class WDSControllerSliders_wds {
|
|
484 |
$link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
|
485 |
$align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
|
486 |
$static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
|
|
|
|
|
487 |
if ($title) {
|
488 |
if (strpos($layer_id, 'pr_') !== FALSE) {
|
489 |
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
@@ -542,6 +544,8 @@ class WDSControllerSliders_wds {
|
|
542 |
'link_to_slide' => $link_to_slide,
|
543 |
'align_layer' => $align_layer,
|
544 |
'static_layer' => $static_layer,
|
|
|
|
|
545 |
));
|
546 |
}
|
547 |
else {
|
@@ -596,6 +600,8 @@ class WDSControllerSliders_wds {
|
|
596 |
'link_to_slide' => $link_to_slide,
|
597 |
'align_layer' => $align_layer,
|
598 |
'static_layer' => $static_layer,
|
|
|
|
|
599 |
), array('id' => $layer_id));
|
600 |
}
|
601 |
}
|
@@ -940,6 +946,8 @@ class WDSControllerSliders_wds {
|
|
940 |
'link_to_slide' => $layer_id->link_to_slide,
|
941 |
'align_layer' => $layer_id->align_layer,
|
942 |
'static_layer' => $layer_id->static_layer,
|
|
|
|
|
943 |
));
|
944 |
}
|
945 |
}
|
@@ -1345,6 +1353,12 @@ class WDSControllerSliders_wds {
|
|
1345 |
'layer_callback_list' => $layer_id->layer_callback_list,
|
1346 |
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
1347 |
'hover_color_text' => $layer_id->hover_color_text,
|
|
|
|
|
|
|
|
|
|
|
|
|
1348 |
));
|
1349 |
}
|
1350 |
}
|
484 |
$link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
|
485 |
$align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
|
486 |
$static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
|
487 |
+
$infinite_in = ((isset($params_array_layer['infinite_in'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_in'])) : 1);
|
488 |
+
$infinite_out = ((isset($params_array_layer['infinite_out'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_out'])) : 1);
|
489 |
if ($title) {
|
490 |
if (strpos($layer_id, 'pr_') !== FALSE) {
|
491 |
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
544 |
'link_to_slide' => $link_to_slide,
|
545 |
'align_layer' => $align_layer,
|
546 |
'static_layer' => $static_layer,
|
547 |
+
'infinite_in' => $infinite_in,
|
548 |
+
'infinite_out' => $infinite_out,
|
549 |
));
|
550 |
}
|
551 |
else {
|
600 |
'link_to_slide' => $link_to_slide,
|
601 |
'align_layer' => $align_layer,
|
602 |
'static_layer' => $static_layer,
|
603 |
+
'infinite_in' => $infinite_in,
|
604 |
+
'infinite_out' => $infinite_out,
|
605 |
), array('id' => $layer_id));
|
606 |
}
|
607 |
}
|
946 |
'link_to_slide' => $layer_id->link_to_slide,
|
947 |
'align_layer' => $layer_id->align_layer,
|
948 |
'static_layer' => $layer_id->static_layer,
|
949 |
+
'infinite_in' => $infinite_in,
|
950 |
+
'infinite_out' => $infinite_out,
|
951 |
));
|
952 |
}
|
953 |
}
|
1353 |
'layer_callback_list' => $layer_id->layer_callback_list,
|
1354 |
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
1355 |
'hover_color_text' => $layer_id->hover_color_text,
|
1356 |
+
'text_alignment' => $layer_id->text_alignment,
|
1357 |
+
'link_to_slide' => $layer_id->link_to_slide,
|
1358 |
+
'align_layer' => $layer_id->align_layer,
|
1359 |
+
'static_layer' => $layer_id->static_layer,
|
1360 |
+
'infinite_in' => $layer_id->infinite_in,
|
1361 |
+
'infinite_out' => $layer_id->infinite_out,
|
1362 |
));
|
1363 |
}
|
1364 |
}
|
admin/views/WDSViewSliders_wds.php
CHANGED
@@ -2630,7 +2630,7 @@ class WDSViewSliders_wds {
|
|
2630 |
</td>
|
2631 |
<td>
|
2632 |
<span style="display: table-cell;">
|
2633 |
-
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />
|
2634 |
<div class="spider_description">Start</div>
|
2635 |
</span>
|
2636 |
<span style="display: table-cell;">
|
@@ -2646,9 +2646,13 @@ class WDSViewSliders_wds {
|
|
2646 |
<div class="spider_description">Effect</div>
|
2647 |
</span>
|
2648 |
<span style="display: table-cell;">
|
2649 |
-
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />
|
2650 |
<div class="spider_description">Duration</div>
|
2651 |
</span>
|
|
|
|
|
|
|
|
|
2652 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2653 |
</td>
|
2654 |
</tr>
|
@@ -2658,7 +2662,7 @@ class WDSViewSliders_wds {
|
|
2658 |
</td>
|
2659 |
<td>
|
2660 |
<span style="display: table-cell;">
|
2661 |
-
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">
|
2662 |
<div class="spider_description">Start</div>
|
2663 |
</span>
|
2664 |
<span style="display: table-cell;">
|
@@ -2674,9 +2678,13 @@ class WDSViewSliders_wds {
|
|
2674 |
<div class="spider_description">Effect</div>
|
2675 |
</span>
|
2676 |
<span style="display: table-cell;">
|
2677 |
-
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">
|
2678 |
<div class="spider_description">Duration</div>
|
2679 |
</span>
|
|
|
|
|
|
|
|
|
2680 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2681 |
</td>
|
2682 |
</tr>
|
@@ -2861,7 +2869,7 @@ class WDSViewSliders_wds {
|
|
2861 |
</td>
|
2862 |
<td>
|
2863 |
<span style="display: table-cell;">
|
2864 |
-
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />
|
2865 |
<div class="spider_description">Start</div>
|
2866 |
</span>
|
2867 |
<span style="display: table-cell;">
|
@@ -2877,9 +2885,13 @@ class WDSViewSliders_wds {
|
|
2877 |
<div class="spider_description">Effect</div>
|
2878 |
</span>
|
2879 |
<span style="display: table-cell;">
|
2880 |
-
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />
|
2881 |
<div class="spider_description">Duration</div>
|
2882 |
</span>
|
|
|
|
|
|
|
|
|
2883 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2884 |
</td>
|
2885 |
</tr>
|
@@ -2889,7 +2901,7 @@ class WDSViewSliders_wds {
|
|
2889 |
</td>
|
2890 |
<td>
|
2891 |
<span style="display: table-cell;">
|
2892 |
-
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">
|
2893 |
<div class="spider_description">Start</div>
|
2894 |
</span>
|
2895 |
<span style="display: table-cell;">
|
@@ -2905,9 +2917,13 @@ class WDSViewSliders_wds {
|
|
2905 |
<div class="spider_description">Effect</div>
|
2906 |
</span>
|
2907 |
<span style="display: table-cell;">
|
2908 |
-
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">
|
2909 |
<div class="spider_description">Duration</div>
|
2910 |
</span>
|
|
|
|
|
|
|
|
|
2911 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2912 |
</td>
|
2913 |
</tr>
|
@@ -3040,7 +3056,7 @@ class WDSViewSliders_wds {
|
|
3040 |
</td>
|
3041 |
<td>
|
3042 |
<span style="display: table-cell;">
|
3043 |
-
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />
|
3044 |
<div class="spider_description">Start</div>
|
3045 |
</span>
|
3046 |
<span style="display: table-cell;">
|
@@ -3056,9 +3072,13 @@ class WDSViewSliders_wds {
|
|
3056 |
<div class="spider_description">Effect</div>
|
3057 |
</span>
|
3058 |
<span style="display: table-cell;">
|
3059 |
-
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />
|
3060 |
<div class="spider_description">Duration</div>
|
3061 |
</span>
|
|
|
|
|
|
|
|
|
3062 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
3063 |
</td>
|
3064 |
</tr>
|
@@ -3068,7 +3088,7 @@ class WDSViewSliders_wds {
|
|
3068 |
</td>
|
3069 |
<td>
|
3070 |
<span style="display: table-cell;">
|
3071 |
-
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">
|
3072 |
<div class="spider_description">Start</div>
|
3073 |
</span>
|
3074 |
<span style="display: table-cell;">
|
@@ -3084,9 +3104,13 @@ class WDSViewSliders_wds {
|
|
3084 |
<div class="spider_description">Effect</div>
|
3085 |
</span>
|
3086 |
<span style="display: table-cell;">
|
3087 |
-
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">
|
3088 |
<div class="spider_description">Duration</div>
|
3089 |
</span>
|
|
|
|
|
|
|
|
|
3090 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
3091 |
</td>
|
3092 |
</tr>
|
2630 |
</td>
|
2631 |
<td>
|
2632 |
<span style="display: table-cell;">
|
2633 |
+
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />ms
|
2634 |
<div class="spider_description">Start</div>
|
2635 |
</span>
|
2636 |
<span style="display: table-cell;">
|
2646 |
<div class="spider_description">Effect</div>
|
2647 |
</span>
|
2648 |
<span style="display: table-cell;">
|
2649 |
+
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />ms
|
2650 |
<div class="spider_description">Duration</div>
|
2651 |
</span>
|
2652 |
+
<span style="display: table-cell;">
|
2653 |
+
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $layer->infinite_in; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_in == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" />
|
2654 |
+
<div class="spider_description">Iteration</div>
|
2655 |
+
</span>
|
2656 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2657 |
</td>
|
2658 |
</tr>
|
2662 |
</td>
|
2663 |
<td>
|
2664 |
<span style="display: table-cell;">
|
2665 |
+
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">ms
|
2666 |
<div class="spider_description">Start</div>
|
2667 |
</span>
|
2668 |
<span style="display: table-cell;">
|
2678 |
<div class="spider_description">Effect</div>
|
2679 |
</span>
|
2680 |
<span style="display: table-cell;">
|
2681 |
+
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
2682 |
<div class="spider_description">Duration</div>
|
2683 |
</span>
|
2684 |
+
<span style="display: table-cell;">
|
2685 |
+
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $layer->infinite_out; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_out == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" />
|
2686 |
+
<div class="spider_description">Iteration</div>
|
2687 |
+
</span>
|
2688 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2689 |
</td>
|
2690 |
</tr>
|
2869 |
</td>
|
2870 |
<td>
|
2871 |
<span style="display: table-cell;">
|
2872 |
+
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />ms
|
2873 |
<div class="spider_description">Start</div>
|
2874 |
</span>
|
2875 |
<span style="display: table-cell;">
|
2885 |
<div class="spider_description">Effect</div>
|
2886 |
</span>
|
2887 |
<span style="display: table-cell;">
|
2888 |
+
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />ms
|
2889 |
<div class="spider_description">Duration</div>
|
2890 |
</span>
|
2891 |
+
<span style="display: table-cell;">
|
2892 |
+
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $layer->infinite_in; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_in == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" />
|
2893 |
+
<div class="spider_description">Iteration</div>
|
2894 |
+
</span>
|
2895 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2896 |
</td>
|
2897 |
</tr>
|
2901 |
</td>
|
2902 |
<td>
|
2903 |
<span style="display: table-cell;">
|
2904 |
+
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">ms
|
2905 |
<div class="spider_description">Start</div>
|
2906 |
</span>
|
2907 |
<span style="display: table-cell;">
|
2917 |
<div class="spider_description">Effect</div>
|
2918 |
</span>
|
2919 |
<span style="display: table-cell;">
|
2920 |
+
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
2921 |
<div class="spider_description">Duration</div>
|
2922 |
</span>
|
2923 |
+
<span style="display: table-cell;">
|
2924 |
+
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $layer->infinite_out; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_out == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" />
|
2925 |
+
<div class="spider_description">Iteration</div>
|
2926 |
+
</span>
|
2927 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
2928 |
</td>
|
2929 |
</tr>
|
3056 |
</td>
|
3057 |
<td>
|
3058 |
<span style="display: table-cell;">
|
3059 |
+
<input id="<?php echo $prefix; ?>_start" class="spider_int_input" type="text" value="<?php echo $layer->start; ?>" name="<?php echo $prefix; ?>_start" />ms
|
3060 |
<div class="spider_description">Start</div>
|
3061 |
</span>
|
3062 |
<span style="display: table-cell;">
|
3072 |
<div class="spider_description">Effect</div>
|
3073 |
</span>
|
3074 |
<span style="display: table-cell;">
|
3075 |
+
<input id="<?php echo $prefix; ?>_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" value="<?php echo $layer->duration_eff_in; ?>" name="<?php echo $prefix; ?>_duration_eff_in" />ms
|
3076 |
<div class="spider_description">Duration</div>
|
3077 |
</span>
|
3078 |
+
<span style="display: table-cell;">
|
3079 |
+
<input id="<?php echo $prefix; ?>_infinite_in" type="text" name="<?php echo $prefix; ?>_infinite_in" value="<?php echo $layer->infinite_in; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_in == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_in('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 0); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_in').val());" />
|
3080 |
+
<div class="spider_description">Iteration</div>
|
3081 |
+
</span>
|
3082 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
3083 |
</td>
|
3084 |
</tr>
|
3088 |
</td>
|
3089 |
<td>
|
3090 |
<span style="display: table-cell;">
|
3091 |
+
<input id="<?php echo $prefix; ?>_end" class="spider_int_input" type="text" value="<?php echo $layer->end; ?>" name="<?php echo $prefix; ?>_end">ms
|
3092 |
<div class="spider_description">Start</div>
|
3093 |
</span>
|
3094 |
<span style="display: table-cell;">
|
3104 |
<div class="spider_description">Effect</div>
|
3105 |
</span>
|
3106 |
<span style="display: table-cell;">
|
3107 |
+
<input id="<?php echo $prefix; ?>_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" value="<?php echo $layer->duration_eff_out; ?>" name="<?php echo $prefix; ?>_duration_eff_out">ms
|
3108 |
<div class="spider_description">Duration</div>
|
3109 |
</span>
|
3110 |
+
<span style="display: table-cell;">
|
3111 |
+
<input id="<?php echo $prefix; ?>_infinite_out" type="text" name="<?php echo $prefix; ?>_infinite_out" value="<?php echo $layer->infinite_out; ?>" class="spider_int_input" title="0 for play infinte times" <?php echo ($layer->layer_effect_out == 'none') ? 'disabled="disabled"' : ''; ?> onchange="wds_trans_effect_out('<?php echo $slide_row->id; ?>', '<?php echo $prefix; ?>', 1); wds_trans_end('<?php echo $prefix; ?>', jQuery('#<?php echo $prefix; ?>_layer_effect_out').val());" />
|
3112 |
+
<div class="spider_description">Iteration</div>
|
3113 |
+
</span>
|
3114 |
<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>
|
3115 |
</td>
|
3116 |
</tr>
|
css/wds_tables.css
CHANGED
@@ -1484,11 +1484,11 @@ tbody .action_buttons{
|
|
1484 |
}
|
1485 |
|
1486 |
.layer_table_left {
|
1487 |
-
width:
|
1488 |
}
|
1489 |
|
1490 |
.layer_table_right {
|
1491 |
-
width:
|
1492 |
}
|
1493 |
|
1494 |
.selected_color {
|
1484 |
}
|
1485 |
|
1486 |
.layer_table_left {
|
1487 |
+
width: 55% !important;
|
1488 |
}
|
1489 |
|
1490 |
.layer_table_right {
|
1491 |
+
width: 45% !important;
|
1492 |
}
|
1493 |
|
1494 |
.selected_color {
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -65,6 +65,7 @@ class WDSViewSlider {
|
|
65 |
|
66 |
$slides_count = count($slide_rows);
|
67 |
$slideshow_effect = $slider_row->effect == 'zoomFade' ? 'fade' : $slider_row->effect;
|
|
|
68 |
$slideshow_interval = $slider_row->time_intervval;
|
69 |
|
70 |
$circle_timer_size = (2 * $slider_row->timer_bar_size - 2) * 2;
|
@@ -824,6 +825,12 @@ class WDSViewSlider {
|
|
824 |
if (!isset($layer->align_layer)) {
|
825 |
$layer->align_layer = 0;
|
826 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
827 |
?>
|
828 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_id"] = "<?php echo $layer->id; ?>";
|
829 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_layer_effect_in"] = "<?php echo $layer->layer_effect_in; ?>";
|
@@ -836,6 +843,8 @@ class WDSViewSlider {
|
|
836 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_type"] = "<?php echo $layer->type; ?>";
|
837 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_align_layer"] = "<?php echo $layer->align_layer; ?>";
|
838 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["slide_layers_count"] ++;
|
|
|
|
|
839 |
<?php
|
840 |
}
|
841 |
}
|
@@ -1598,7 +1607,12 @@ class WDSViewSlider {
|
|
1598 |
}
|
1599 |
}
|
1600 |
jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
|
1601 |
-
wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>
|
|
|
|
|
|
|
|
|
|
|
1602 |
if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
|
1603 |
if (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause')) {
|
1604 |
if ('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
|
@@ -2228,40 +2242,56 @@ class WDSViewSlider {
|
|
2228 |
}
|
2229 |
/* Effects in part.*/
|
2230 |
function wds_set_layer_effect_in_<?php echo $wds; ?>(j, key) {
|
|
|
2231 |
wds_clear_layers_effects_in_<?php echo $wds; ?>[key][j] = setTimeout(function(){
|
|
|
2232 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] != 'social') {
|
2233 |
-
|
2234 |
-
|
2235 |
jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).addClass(jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).data("class"));
|
2236 |
}
|
2237 |
else {
|
2238 |
-
|
2239 |
-
|
2240 |
}
|
2241 |
/* Play video on layer in.*/
|
2242 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] == "video") {
|
2243 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_video_autoplay"] == "on") {
|
2244 |
-
|
2245 |
jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
2246 |
jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
|
2247 |
});
|
2248 |
}
|
2249 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2250 |
}, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
|
2251 |
}
|
2252 |
/* Effects out part.*/
|
2253 |
function wds_set_layer_effect_out_<?php echo $wds; ?>(i, key) {
|
|
|
2254 |
wds_clear_layers_effects_out_<?php echo $wds; ?>[key][i] = setTimeout(function() {
|
|
|
2255 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] != 'none') {
|
2256 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_type"] != 'social') {
|
2257 |
-
|
2258 |
-
|
2259 |
}
|
2260 |
else {
|
2261 |
-
|
2262 |
-
|
2263 |
}
|
2264 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2265 |
}, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
|
2266 |
}
|
2267 |
function play_<?php echo $wds; ?>() {
|
@@ -2297,6 +2327,10 @@ class WDSViewSlider {
|
|
2297 |
}
|
2298 |
wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), img_index, wds_data_<?php echo $wds; ?>);
|
2299 |
}, parseInt('<?php echo ($slideshow_interval * 1000); ?>') + wds_duration_for_change_<?php echo $wds; ?>);
|
|
|
|
|
|
|
|
|
2300 |
}
|
2301 |
jQuery(window).focus(function() {
|
2302 |
if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
|
65 |
|
66 |
$slides_count = count($slide_rows);
|
67 |
$slideshow_effect = $slider_row->effect == 'zoomFade' ? 'fade' : $slider_row->effect;
|
68 |
+
$slideshow_effect = "aaa";
|
69 |
$slideshow_interval = $slider_row->time_intervval;
|
70 |
|
71 |
$circle_timer_size = (2 * $slider_row->timer_bar_size - 2) * 2;
|
825 |
if (!isset($layer->align_layer)) {
|
826 |
$layer->align_layer = 0;
|
827 |
}
|
828 |
+
if (!isset($layer->infinite_in)) {
|
829 |
+
$layer->infinite_in = 1;
|
830 |
+
}
|
831 |
+
if (!isset($layer->infinite_out)) {
|
832 |
+
$layer->infinite_out = 1;
|
833 |
+
}
|
834 |
?>
|
835 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_id"] = "<?php echo $layer->id; ?>";
|
836 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_layer_effect_in"] = "<?php echo $layer->layer_effect_in; ?>";
|
843 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_type"] = "<?php echo $layer->type; ?>";
|
844 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_align_layer"] = "<?php echo $layer->align_layer; ?>";
|
845 |
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["slide_layers_count"] ++;
|
846 |
+
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_infinite_in"] = "<?php echo $layer->infinite_in; ?>";
|
847 |
+
wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["layer_<?php echo $layer_key; ?>_infinite_out"] = "<?php echo $layer->infinite_out; ?>";
|
848 |
<?php
|
849 |
}
|
850 |
}
|
1607 |
}
|
1608 |
}
|
1609 |
jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
|
1610 |
+
if (typeof wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?> == "function") {
|
1611 |
+
wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
|
1612 |
+
}
|
1613 |
+
else {
|
1614 |
+
wds_none_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
|
1615 |
+
}
|
1616 |
if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
|
1617 |
if (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause')) {
|
1618 |
if ('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
|
2242 |
}
|
2243 |
/* Effects in part.*/
|
2244 |
function wds_set_layer_effect_in_<?php echo $wds; ?>(j, key) {
|
2245 |
+
var cout;
|
2246 |
wds_clear_layers_effects_in_<?php echo $wds; ?>[key][j] = setTimeout(function(){
|
2247 |
+
cout = jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]);
|
2248 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] != 'social') {
|
2249 |
+
cout.css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_in"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_in"] / 1000 + 's');
|
2250 |
+
cout.removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' wds_animated');
|
2251 |
jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).addClass(jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).data("class"));
|
2252 |
}
|
2253 |
else {
|
2254 |
+
cout.css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_in"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_in"] / 1000 + 's');
|
2255 |
+
cout.removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_social_button"] + ' wds_animated');
|
2256 |
}
|
2257 |
/* Play video on layer in.*/
|
2258 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] == "video") {
|
2259 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_video_autoplay"] == "on") {
|
2260 |
+
cout.find("iframe").each(function () {
|
2261 |
jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
2262 |
jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
|
2263 |
});
|
2264 |
}
|
2265 |
}
|
2266 |
+
var iteration_count = wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_infinite_in"] == 0 ? 'infinite' : wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_infinite_in"];
|
2267 |
+
cout.css(
|
2268 |
+
'-webkit-animation-iteration-count', iteration_count
|
2269 |
+
).css(
|
2270 |
+
'animation-iteration-count', iteration_count
|
2271 |
+
);
|
2272 |
}, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
|
2273 |
}
|
2274 |
/* Effects out part.*/
|
2275 |
function wds_set_layer_effect_out_<?php echo $wds; ?>(i, key) {
|
2276 |
+
var cout;
|
2277 |
wds_clear_layers_effects_out_<?php echo $wds; ?>[key][i] = setTimeout(function() {
|
2278 |
+
cout = jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]);
|
2279 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] != 'none') {
|
2280 |
if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_type"] != 'social') {
|
2281 |
+
cout.css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
|
2282 |
+
cout.removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' wds_animated');
|
2283 |
}
|
2284 |
else {
|
2285 |
+
cout.css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
|
2286 |
+
cout.removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_social_button"] + ' wds_animated');
|
2287 |
}
|
2288 |
}
|
2289 |
+
var iteration_count = wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_infinite_out"] == 0 ? 'infinite' : wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_infinite_out"];
|
2290 |
+
cout.css(
|
2291 |
+
'-webkit-animation-iteration-count', iteration_count
|
2292 |
+
).css(
|
2293 |
+
'animation-iteration-count', iteration_count
|
2294 |
+
);
|
2295 |
}, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
|
2296 |
}
|
2297 |
function play_<?php echo $wds; ?>() {
|
2327 |
}
|
2328 |
wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), img_index, wds_data_<?php echo $wds; ?>);
|
2329 |
}, parseInt('<?php echo ($slideshow_interval * 1000); ?>') + wds_duration_for_change_<?php echo $wds; ?>);
|
2330 |
+
var next_slide_layers_count = wds_data_<?php echo $wds; ?>[wds_current_key_<?php echo $wds; ?>]["slide_layers_count"];
|
2331 |
+
for (var i = 0; i < next_slide_layers_count; i++) {
|
2332 |
+
wds_set_layer_effect_out_<?php echo $wds; ?>(i, wds_current_key_<?php echo $wds; ?>);
|
2333 |
+
}
|
2334 |
}
|
2335 |
jQuery(window).focus(function() {
|
2336 |
if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
|
js/wds.js
CHANGED
@@ -187,6 +187,8 @@ function spider_ajax_save(form_id, event) {
|
|
187 |
json_data["title"] = jQuery("#" + prefix + "_title").val();
|
188 |
json_data["depth"] = jQuery("#" + prefix + "_depth").val();
|
189 |
json_data["static_layer"] = jQuery("input[name=" + prefix + "_static_layer]:checked").val();
|
|
|
|
|
190 |
switch (type) {
|
191 |
case "text": {
|
192 |
json_data["text"] = jQuery("#" + prefix + "_text").val().replace(/[\\"]/g, '\\$&').replace(/\u0000/g, '\\0');
|
@@ -1898,6 +1900,18 @@ function wds_duplicate_layer(type, id, layerID, new_id) {
|
|
1898 |
else {
|
1899 |
jQuery("#" + new_prefix + "_static_layer").removeAttr("checked");
|
1900 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1901 |
if (type == "text") {
|
1902 |
wds_new_line(new_prefix);
|
1903 |
jQuery("#" + new_prefix).attr({
|
@@ -2210,7 +2224,7 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2210 |
var layer_effect_in = '<td class="spider_label"><label>Effect in: </label></td>' +
|
2211 |
'<td>' +
|
2212 |
'<span style="display: table-cell;">' +
|
2213 |
-
'<input type="text" name="' + prefix + '_start" id="' + prefix + '_start" value="1000" class="spider_int_input" />
|
2214 |
'<div class="spider_description">Start</div>' +
|
2215 |
'</span>' +
|
2216 |
'<span style="display: table-cell;">' +
|
@@ -2218,15 +2232,19 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2218 |
'<div class="spider_description">Effect</div>' +
|
2219 |
'</span>' +
|
2220 |
'<span style="display: table-cell;">' +
|
2221 |
-
'<input id="' + prefix + '_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in(\'' + id + '\', \'' + prefix + '\', ' + ((type == 'social') ? 1 : 0) + '); wds_trans_end(\'' + prefix + '\', jQuery(\'#' + prefix + '_layer_effect_in\').val());" value="1000" name="' + prefix + '_duration_eff_in">
|
2222 |
'<div class="spider_description">Duration</div>' +
|
2223 |
'</span>' +
|
|
|
|
|
|
|
|
|
2224 |
'<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>' +
|
2225 |
'</td>';
|
2226 |
var layer_effect_out = '<td class="spider_label"><label>Effect out: </label></td>' +
|
2227 |
'<td>' +
|
2228 |
'<span style="display: table-cell;">' +
|
2229 |
-
'<input type="text" name="' + prefix + '_end" id="' + prefix + '_end" value="3000" class="spider_int_input" />
|
2230 |
'<div class="spider_description">Start</div>' +
|
2231 |
'</span>' +
|
2232 |
'<span style="display: table-cell;">' +
|
@@ -2234,9 +2252,13 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2234 |
'<div class="spider_description">Effect</div>' +
|
2235 |
'</span>' +
|
2236 |
'<span style="display: table-cell;">' +
|
2237 |
-
'<input id="' + prefix + '_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out(\'' + id + '\', \'' + prefix + '\', ' + ((type == 'social') ? 1 : 0) + '); wds_trans_end(\'' + prefix + '\', jQuery(\'#' + prefix + '_layer_effect_out\').val());" value="1000" name="' + prefix + '_duration_eff_out">
|
2238 |
'<div class="spider_description">Duration</div>' +
|
2239 |
'</span>' +
|
|
|
|
|
|
|
|
|
2240 |
'<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>' +
|
2241 |
'</td>';
|
2242 |
var add_class = '<td class="spider_label"><label for="' + prefix + '_add_class">Add class: </label></td>' +
|
@@ -2266,8 +2288,8 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2266 |
"background-color: " + wds_hex_rgba('000000', 50) + "; " +
|
2267 |
"border-radius: 2px;"
|
2268 |
}).html("Sample text"));
|
2269 |
-
jQuery("#" + tbodyID).append(tbody + '<tr><td colspan=2>'+
|
2270 |
-
'<table class="layer_table_left" style="width:
|
2271 |
'<tr class="wds_layer_tr">' +
|
2272 |
text +
|
2273 |
'</tr><tr class="wds_layer_tr">' +
|
@@ -2291,7 +2313,7 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2291 |
'</tr><tr class="wds_layer_tr">' +
|
2292 |
published +
|
2293 |
'</tr></table>'+
|
2294 |
-
'<table class="layer_table_right" style="width:
|
2295 |
'<tr class="wds_layer_tr">' +
|
2296 |
layer_effect_in +
|
2297 |
'</tr><tr class="wds_layer_tr">' +
|
@@ -2320,10 +2342,10 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2320 |
break;
|
2321 |
}
|
2322 |
case 'image': {
|
2323 |
-
if(edit == 0) {
|
2324 |
var tbody_html = tbody +
|
2325 |
-
'<tr><td colspan=2>'+
|
2326 |
-
'<table class="layer_table_left" style="width:
|
2327 |
'<tr class="wds_layer_tr">' +
|
2328 |
static_layer +
|
2329 |
'</tr><tr class="wds_layer_tr">' +
|
@@ -2339,7 +2361,7 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2339 |
'</tr><tr class="wds_layer_tr">' +
|
2340 |
published +
|
2341 |
'</tr></table>'+
|
2342 |
-
'<table class="layer_table_right" style="width:
|
2343 |
'<tr class="wds_layer_tr">' +
|
2344 |
layer_effect_in +
|
2345 |
'</tr><tr class="wds_layer_tr">' +
|
@@ -2763,27 +2785,51 @@ function wds_new_line(prefix) {
|
|
2763 |
}
|
2764 |
|
2765 |
function wds_trans_effect_in(slider_id, prefix, social) {
|
2766 |
-
|
2767 |
-
|
2768 |
-
|
|
|
|
|
2769 |
}
|
2770 |
-
jQuery("#" + prefix)
|
|
|
|
|
|
|
|
|
|
|
2771 |
'-webkit-animation-duration', jQuery("#" + prefix + "_duration_eff_in").val() / 1000 + "s").css(
|
2772 |
'animation-duration' , jQuery("#" + prefix + "_duration_eff_in").val() / 1000 + "s");
|
2773 |
-
|
2774 |
jQuery("#" + prefix + "_layer_effect_in").val() + " wds_animated wds_draggable_" + slider_id + social_class + " wds_draggable ui-draggable");
|
|
|
|
|
|
|
|
|
|
|
2775 |
}
|
2776 |
|
2777 |
function wds_trans_effect_out(slider_id, prefix, social) {
|
2778 |
-
|
2779 |
-
|
2780 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2781 |
}
|
2782 |
-
|
2783 |
'-webkit-animation-duration', jQuery("#" + prefix + "_duration_eff_out").val() / 1000 + "s").css(
|
2784 |
'animation-duration' , jQuery("#" + prefix + "_duration_eff_out").val() / 1000 + "s");
|
2785 |
-
|
2786 |
jQuery("#" + prefix + "_layer_effect_out").val() + " wds_animated wds_draggable_" + slider_id + social_class + " wds_draggable ui-draggable");
|
|
|
|
|
|
|
|
|
|
|
2787 |
}
|
2788 |
|
2789 |
function wds_break_word(that, prefix) {
|
187 |
json_data["title"] = jQuery("#" + prefix + "_title").val();
|
188 |
json_data["depth"] = jQuery("#" + prefix + "_depth").val();
|
189 |
json_data["static_layer"] = jQuery("input[name=" + prefix + "_static_layer]:checked").val();
|
190 |
+
json_data["infinite_in"] = jQuery("input[name=" + prefix + "_infinite_in]").val();
|
191 |
+
json_data["infinite_out"] = jQuery("input[name=" + prefix + "_infinite_out]").val();
|
192 |
switch (type) {
|
193 |
case "text": {
|
194 |
json_data["text"] = jQuery("#" + prefix + "_text").val().replace(/[\\"]/g, '\\$&').replace(/\u0000/g, '\\0');
|
1900 |
else {
|
1901 |
jQuery("#" + new_prefix + "_static_layer").removeAttr("checked");
|
1902 |
}
|
1903 |
+
if (jQuery("#" + prefix + "_infinite_in").is(":checked")) {
|
1904 |
+
jQuery("#" + new_prefix + "_infinite_in").attr("checked", "checked");
|
1905 |
+
}
|
1906 |
+
else {
|
1907 |
+
jQuery("#" + new_prefix + "_infinite_in").removeAttr("checked");
|
1908 |
+
}
|
1909 |
+
if (jQuery("#" + prefix + "_infinite_out").is(":checked")) {
|
1910 |
+
jQuery("#" + new_prefix + "_infinite_out").attr("checked", "checked");
|
1911 |
+
}
|
1912 |
+
else {
|
1913 |
+
jQuery("#" + new_prefix + "_infinite_out").removeAttr("checked");
|
1914 |
+
}
|
1915 |
if (type == "text") {
|
1916 |
wds_new_line(new_prefix);
|
1917 |
jQuery("#" + new_prefix).attr({
|
2224 |
var layer_effect_in = '<td class="spider_label"><label>Effect in: </label></td>' +
|
2225 |
'<td>' +
|
2226 |
'<span style="display: table-cell;">' +
|
2227 |
+
'<input type="text" name="' + prefix + '_start" id="' + prefix + '_start" value="1000" class="spider_int_input" />ms' +
|
2228 |
'<div class="spider_description">Start</div>' +
|
2229 |
'</span>' +
|
2230 |
'<span style="display: table-cell;">' +
|
2232 |
'<div class="spider_description">Effect</div>' +
|
2233 |
'</span>' +
|
2234 |
'<span style="display: table-cell;">' +
|
2235 |
+
'<input id="' + prefix + '_duration_eff_in" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_in(\'' + id + '\', \'' + prefix + '\', ' + ((type == 'social') ? 1 : 0) + '); wds_trans_end(\'' + prefix + '\', jQuery(\'#' + prefix + '_layer_effect_in\').val());" value="1000" name="' + prefix + '_duration_eff_in">ms' +
|
2236 |
'<div class="spider_description">Duration</div>' +
|
2237 |
'</span>' +
|
2238 |
+
'<span style="display: table-cell;">' +
|
2239 |
+
'<input id="' + prefix + '_infinite_in" type="text" name="' + prefix + '_infinite_in" value="1" class="spider_int_input" title="0 for play infinte times" disabled="disabled" />' +
|
2240 |
+
'<div class="spider_description">Iteration</div>' +
|
2241 |
+
'</span>' +
|
2242 |
'<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>' +
|
2243 |
'</td>';
|
2244 |
var layer_effect_out = '<td class="spider_label"><label>Effect out: </label></td>' +
|
2245 |
'<td>' +
|
2246 |
'<span style="display: table-cell;">' +
|
2247 |
+
'<input type="text" name="' + prefix + '_end" id="' + prefix + '_end" value="3000" class="spider_int_input" />ms' +
|
2248 |
'<div class="spider_description">Start</div>' +
|
2249 |
'</span>' +
|
2250 |
'<span style="display: table-cell;">' +
|
2252 |
'<div class="spider_description">Effect</div>' +
|
2253 |
'</span>' +
|
2254 |
'<span style="display: table-cell;">' +
|
2255 |
+
'<input id="' + prefix + '_duration_eff_out" class="spider_int_input" type="text" onkeypress="return spider_check_isnum(event)" onchange="wds_trans_effect_out(\'' + id + '\', \'' + prefix + '\', ' + ((type == 'social') ? 1 : 0) + '); wds_trans_end(\'' + prefix + '\', jQuery(\'#' + prefix + '_layer_effect_out\').val());" value="1000" name="' + prefix + '_duration_eff_out">ms' +
|
2256 |
'<div class="spider_description">Duration</div>' +
|
2257 |
'</span>' +
|
2258 |
+
'<span style="display: table-cell;">' +
|
2259 |
+
'<input id="' + prefix + '_infinite_out" type="text" name="' + prefix + '_infinite_out" value="1" class="spider_int_input" title="0 for play infinte times" disabled="disabled" />' +
|
2260 |
+
'<div class="spider_description">Iteration</div>' +
|
2261 |
+
'</span>' +
|
2262 |
'<div class="spider_description spider_free_version">Some effects are disabled in free version.</div>' +
|
2263 |
'</td>';
|
2264 |
var add_class = '<td class="spider_label"><label for="' + prefix + '_add_class">Add class: </label></td>' +
|
2288 |
"background-color: " + wds_hex_rgba('000000', 50) + "; " +
|
2289 |
"border-radius: 2px;"
|
2290 |
}).html("Sample text"));
|
2291 |
+
jQuery("#" + tbodyID).append(tbody + '<tr><td colspan="2">'+
|
2292 |
+
'<table class="layer_table_left" style="width: 55%;">' +
|
2293 |
'<tr class="wds_layer_tr">' +
|
2294 |
text +
|
2295 |
'</tr><tr class="wds_layer_tr">' +
|
2313 |
'</tr><tr class="wds_layer_tr">' +
|
2314 |
published +
|
2315 |
'</tr></table>'+
|
2316 |
+
'<table class="layer_table_right" style="width: 45%;">'+
|
2317 |
'<tr class="wds_layer_tr">' +
|
2318 |
layer_effect_in +
|
2319 |
'</tr><tr class="wds_layer_tr">' +
|
2342 |
break;
|
2343 |
}
|
2344 |
case 'image': {
|
2345 |
+
if (edit == 0) {
|
2346 |
var tbody_html = tbody +
|
2347 |
+
'<tr><td colspan="2">'+
|
2348 |
+
'<table class="layer_table_left" style="width: 55%;">' +
|
2349 |
'<tr class="wds_layer_tr">' +
|
2350 |
static_layer +
|
2351 |
'</tr><tr class="wds_layer_tr">' +
|
2361 |
'</tr><tr class="wds_layer_tr">' +
|
2362 |
published +
|
2363 |
'</tr></table>'+
|
2364 |
+
'<table class="layer_table_right" style="width: 45%;">'+
|
2365 |
'<tr class="wds_layer_tr">' +
|
2366 |
layer_effect_in +
|
2367 |
'</tr><tr class="wds_layer_tr">' +
|
2785 |
}
|
2786 |
|
2787 |
function wds_trans_effect_in(slider_id, prefix, social) {
|
2788 |
+
if (jQuery("#" + prefix + "_layer_effect_in").val() != 'none') {
|
2789 |
+
jQuery("#" + prefix + "_infinite_in").removeAttr("disabled");
|
2790 |
+
}
|
2791 |
+
else {
|
2792 |
+
jQuery("#" + prefix + "_infinite_in").attr('disabled', 'disabled')
|
2793 |
}
|
2794 |
+
var cont = jQuery("#" + prefix);
|
2795 |
+
var social_class = social ? ' fa fa-' + jQuery("#" + prefix + "_social_button").val() : "";
|
2796 |
+
if (jQuery("#" + prefix).prev().attr('id') == prefix + '_round_effect') {
|
2797 |
+
cont = jQuery("#" + prefix).parent();
|
2798 |
+
}
|
2799 |
+
cont.css(
|
2800 |
'-webkit-animation-duration', jQuery("#" + prefix + "_duration_eff_in").val() / 1000 + "s").css(
|
2801 |
'animation-duration' , jQuery("#" + prefix + "_duration_eff_in").val() / 1000 + "s");
|
2802 |
+
cont.removeClass().addClass(
|
2803 |
jQuery("#" + prefix + "_layer_effect_in").val() + " wds_animated wds_draggable_" + slider_id + social_class + " wds_draggable ui-draggable");
|
2804 |
+
var iteration_count = jQuery("#" + prefix + "_infinite_in").val() == 0 ? 'infinite' : jQuery("#" + prefix + "_infinite_in").val();
|
2805 |
+
cont.css(
|
2806 |
+
'-webkit-animation-iteration-count', iteration_count).css(
|
2807 |
+
'animation-iteration-count', iteration_count
|
2808 |
+
);
|
2809 |
}
|
2810 |
|
2811 |
function wds_trans_effect_out(slider_id, prefix, social) {
|
2812 |
+
if (jQuery("#" + prefix + "_layer_effect_out").val() != 'none') {
|
2813 |
+
jQuery("#" + prefix + "_infinite_out").removeAttr("disabled");
|
2814 |
+
}
|
2815 |
+
else {
|
2816 |
+
jQuery("#" + prefix + "_infinite_out").attr('disabled', 'disabled');
|
2817 |
+
}
|
2818 |
+
var cont = jQuery("#" + prefix);
|
2819 |
+
var social_class = social ? ' fa fa-' + jQuery("#" + prefix + "_social_button").val() : "";
|
2820 |
+
if (jQuery("#" + prefix).prev().attr('id') == prefix + '_round_effect') {
|
2821 |
+
cont = jQuery("#" + prefix).parent();
|
2822 |
}
|
2823 |
+
cont.css(
|
2824 |
'-webkit-animation-duration', jQuery("#" + prefix + "_duration_eff_out").val() / 1000 + "s").css(
|
2825 |
'animation-duration' , jQuery("#" + prefix + "_duration_eff_out").val() / 1000 + "s");
|
2826 |
+
cont.removeClass().addClass(
|
2827 |
jQuery("#" + prefix + "_layer_effect_out").val() + " wds_animated wds_draggable_" + slider_id + social_class + " wds_draggable ui-draggable");
|
2828 |
+
var iteration_count = jQuery("#" + prefix + "_infinite_out").val() == 0 ? 'infinite' : jQuery("#" + prefix + "_infinite_out").val();
|
2829 |
+
cont.css(
|
2830 |
+
'-webkit-animation-iteration-count', iteration_count).css(
|
2831 |
+
'animation-iteration-count', iteration_count
|
2832 |
+
);
|
2833 |
}
|
2834 |
|
2835 |
function wds_break_word(that, prefix) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
|
|
4 |
Tags: easy slider, gallery slider, image slider, images slider, Photo Slider, post slider, responsive slider, slider, slider plugin, video slider, wordpress slider, youtube slider
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -125,6 +125,10 @@ After downloading the ZIP file of the slider plugin,
|
|
125 |
|
126 |
== Changelog ==
|
127 |
|
|
|
|
|
|
|
|
|
128 |
= 1.1.67 =
|
129 |
* Added: Full width slider on small screens.
|
130 |
|
4 |
Tags: easy slider, gallery slider, image slider, images slider, Photo Slider, post slider, responsive slider, slider, slider plugin, video slider, wordpress slider, youtube slider
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.1.68
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 1.1.68 =
|
129 |
+
* Added: Animation iteration count.
|
130 |
+
* Fixed: Sliders import.
|
131 |
+
|
132 |
= 1.1.67 =
|
133 |
* Added: Full width slider on small screens.
|
134 |
|
slider-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://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.1.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -14,7 +14,7 @@ define('WD_S_NAME', plugin_basename(dirname(__FILE__)));
|
|
14 |
define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
|
15 |
define('WD_S_URL', plugins_url(WD_S_NAME));
|
16 |
|
17 |
-
define('WD_S_VERSION', '1.1.
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://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.1.68
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
|
15 |
define('WD_S_URL', plugins_url(WD_S_NAME));
|
16 |
|
17 |
+
define('WD_S_VERSION', '1.1.68');
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|
sliders-insert.php
CHANGED
@@ -194,6 +194,8 @@ function wds_insert() {
|
|
194 |
`link_to_slide` int(4) NOT NULL,
|
195 |
`align_layer` tinyint(1) NOT NULL,
|
196 |
`static_layer` tinyint(1) NOT NULL,
|
|
|
|
|
197 |
PRIMARY KEY (`id`)
|
198 |
) DEFAULT CHARSET=utf8;";
|
199 |
$wpdb->query($wdslayer);
|
194 |
`link_to_slide` int(4) NOT NULL,
|
195 |
`align_layer` tinyint(1) NOT NULL,
|
196 |
`static_layer` tinyint(1) NOT NULL,
|
197 |
+
`infinite_in` int(4) NOT NULL,
|
198 |
+
`infinite_out` int(4) NOT NULL,
|
199 |
PRIMARY KEY (`id`)
|
200 |
) DEFAULT CHARSET=utf8;";
|
201 |
$wpdb->query($wdslayer);
|
sliders-update.php
CHANGED
@@ -165,5 +165,9 @@ function wds_update($version) {
|
|
165 |
if (version_compare($version, '1.1.67') == -1) {
|
166 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `full_width_for_mobile` int(4) NOT NULL DEFAULT 0");
|
167 |
}
|
|
|
|
|
|
|
|
|
168 |
return;
|
169 |
}
|
165 |
if (version_compare($version, '1.1.67') == -1) {
|
166 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `full_width_for_mobile` int(4) NOT NULL DEFAULT 0");
|
167 |
}
|
168 |
+
if (version_compare($version, '1.1.68') == -1) {
|
169 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdslayer` ADD `infinite_in` int(4) NOT NULL DEFAULT 1");
|
170 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdslayer` ADD `infinite_out` int(4) NOT NULL DEFAULT 1");
|
171 |
+
}
|
172 |
return;
|
173 |
}
|