Version Description
New: Start with slide option. New: Effect duration option.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- admin/controllers/WDSControllerSliders_wds.php +34 -23
- admin/controllers/WDSControllerUninstall_wds.php +1 -0
- admin/models/WDSModelSliders_wds.php +7 -5
- admin/views/WDSViewSliders_wds.php +20 -4
- admin/views/WDSViewUninstall_wds.php +3 -2
- framework/WDW_S_Library.php +1 -0
- frontend/views/WDSViewSlider.php +9 -3
- js/wds.js +3 -0
- readme.txt +12 -3
- slider-wd.php +4 -2
- sliders-insert.php +2 -0
- sliders-update.php +6 -0
admin/controllers/WDSControllerSliders_wds.php
CHANGED
@@ -24,6 +24,7 @@ class WDSControllerSliders_wds {
|
|
24 |
$message = WDW_S_Library::get('message');
|
25 |
echo WDW_S_Library::message_id($message);
|
26 |
if (method_exists($this, $task)) {
|
|
|
27 |
$this->$task($id);
|
28 |
}
|
29 |
else {
|
@@ -174,11 +175,14 @@ class WDSControllerSliders_wds {
|
|
174 |
$bullets_img_main_url = (isset($_POST['bullets_img_main_url']) ? esc_html(stripslashes($_POST['bullets_img_main_url'])) : '');
|
175 |
$bullets_img_hov_url = (isset($_POST['bullets_img_hov_url']) ? esc_html(stripslashes($_POST['bullets_img_hov_url'])) : '');
|
176 |
$bull_butt_img_or_not = (isset($_POST['bull_butt_img_or_not']) ? esc_html(stripslashes($_POST['bull_butt_img_or_not'])) : 'style');
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
|
|
|
|
182 |
if (!$slider_id) {
|
183 |
$save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
|
184 |
'name' => $name,
|
@@ -258,13 +262,13 @@ class WDSControllerSliders_wds {
|
|
258 |
'bullets_img_main_url' => $bullets_img_main_url,
|
259 |
'bullets_img_hov_url' => $bullets_img_hov_url,
|
260 |
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
), array(
|
269 |
'%s',
|
270 |
'%d',
|
@@ -343,11 +347,13 @@ class WDSControllerSliders_wds {
|
|
343 |
'%s',
|
344 |
'%s',
|
345 |
'%s',
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
|
|
|
|
351 |
));
|
352 |
$_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
|
353 |
}
|
@@ -430,11 +436,13 @@ class WDSControllerSliders_wds {
|
|
430 |
'bullets_img_main_url' => $bullets_img_main_url,
|
431 |
'bullets_img_hov_url' => $bullets_img_hov_url,
|
432 |
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
|
|
|
|
438 |
), array('id' => $slider_id));
|
439 |
}
|
440 |
if ($save !== FALSE) {
|
@@ -901,7 +909,8 @@ class WDSControllerSliders_wds {
|
|
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',
|
@@ -985,6 +994,8 @@ class WDSControllerSliders_wds {
|
|
985 |
'%s',
|
986 |
'%s',
|
987 |
'%s',
|
|
|
|
|
988 |
));
|
989 |
$new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
990 |
|
24 |
$message = WDW_S_Library::get('message');
|
25 |
echo WDW_S_Library::message_id($message);
|
26 |
if (method_exists($this, $task)) {
|
27 |
+
check_admin_referer('nonce_wd', 'nonce_wd');
|
28 |
$this->$task($id);
|
29 |
}
|
30 |
else {
|
175 |
$bullets_img_main_url = (isset($_POST['bullets_img_main_url']) ? esc_html(stripslashes($_POST['bullets_img_main_url'])) : '');
|
176 |
$bullets_img_hov_url = (isset($_POST['bullets_img_hov_url']) ? esc_html(stripslashes($_POST['bullets_img_hov_url'])) : '');
|
177 |
$bull_butt_img_or_not = (isset($_POST['bull_butt_img_or_not']) ? esc_html(stripslashes($_POST['bull_butt_img_or_not'])) : 'style');
|
178 |
+
$play_paus_butt_img_or_not = (isset($_POST['play_paus_butt_img_or_not']) ? esc_html(stripslashes($_POST['play_paus_butt_img_or_not'])) : 'style');
|
179 |
+
$play_butt_url = (isset($_POST['play_butt_url']) ? esc_html(stripslashes($_POST['play_butt_url'])) : '');
|
180 |
+
$play_butt_hov_url = (isset($_POST['play_butt_hov_url']) ? esc_html(stripslashes($_POST['play_butt_hov_url'])) : '');
|
181 |
+
$paus_butt_url = (isset($_POST['paus_butt_url']) ? esc_html(stripslashes($_POST['paus_butt_url'])) : '');
|
182 |
+
$paus_butt_hov_url = (isset($_POST['paus_butt_hov_url']) ? esc_html(stripslashes($_POST['paus_butt_hov_url'])) : '');
|
183 |
+
$start_slide_num = ((isset($_POST['start_slide_num'])) ? (int) stripslashes($_POST['start_slide_num']) : 1);
|
184 |
+
$effect_duration = ((isset($_POST['effect_duration'])) ? (int) stripslashes($_POST['effect_duration']) : 800);
|
185 |
+
|
186 |
if (!$slider_id) {
|
187 |
$save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
|
188 |
'name' => $name,
|
262 |
'bullets_img_main_url' => $bullets_img_main_url,
|
263 |
'bullets_img_hov_url' => $bullets_img_hov_url,
|
264 |
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
265 |
+
'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
|
266 |
+
'play_butt_url' => $play_butt_url,
|
267 |
+
'play_butt_hov_url' => $play_butt_hov_url,
|
268 |
+
'paus_butt_url' => $paus_butt_url,
|
269 |
+
'paus_butt_hov_url' => $paus_butt_hov_url,
|
270 |
+
'start_slide_num' => $start_slide_num,
|
271 |
+
'effect_duration' => $effect_duration,
|
272 |
), array(
|
273 |
'%s',
|
274 |
'%d',
|
347 |
'%s',
|
348 |
'%s',
|
349 |
'%s',
|
350 |
+
'%s',
|
351 |
+
'%s',
|
352 |
+
'%s',
|
353 |
+
'%s',
|
354 |
+
'%s',
|
355 |
+
'%d',
|
356 |
+
'%d',
|
357 |
));
|
358 |
$_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
|
359 |
}
|
436 |
'bullets_img_main_url' => $bullets_img_main_url,
|
437 |
'bullets_img_hov_url' => $bullets_img_hov_url,
|
438 |
'bull_butt_img_or_not' => $bull_butt_img_or_not,
|
439 |
+
'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
|
440 |
+
'play_butt_url' => $play_butt_url,
|
441 |
+
'play_butt_hov_url' => $play_butt_hov_url,
|
442 |
+
'paus_butt_url' => $paus_butt_url,
|
443 |
+
'paus_butt_hov_url' => $paus_butt_hov_url,
|
444 |
+
'start_slide_num' => $start_slide_num,
|
445 |
+
'effect_duration' => $effect_duration,
|
446 |
), array('id' => $slider_id));
|
447 |
}
|
448 |
if ($save !== FALSE) {
|
909 |
'play_butt_hov_url' => $slider_row->play_butt_hov_url,
|
910 |
'paus_butt_url' => $slider_row->paus_butt_url,
|
911 |
'paus_butt_hov_url' => $slider_row->paus_butt_hov_url,
|
912 |
+
'start_slide_num' => $slider_row->start_slide_num,
|
913 |
+
'effect_duration' => $slider_row->effect_duration,
|
914 |
), array(
|
915 |
'%s',
|
916 |
'%d',
|
994 |
'%s',
|
995 |
'%s',
|
996 |
'%s',
|
997 |
+
'%d',
|
998 |
+
'%d',
|
999 |
));
|
1000 |
$new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
1001 |
|
admin/controllers/WDSControllerUninstall_wds.php
CHANGED
@@ -21,6 +21,7 @@ class WDSControllerUninstall_wds {
|
|
21 |
public function execute() {
|
22 |
$task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
|
23 |
if (method_exists($this, $task)) {
|
|
|
24 |
$this->$task();
|
25 |
}
|
26 |
else {
|
21 |
public function execute() {
|
22 |
$task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
|
23 |
if (method_exists($this, $task)) {
|
24 |
+
check_admin_referer('nonce_wd', 'nonce_wd');
|
25 |
$this->$task();
|
26 |
}
|
27 |
else {
|
admin/models/WDSModelSliders_wds.php
CHANGED
@@ -171,11 +171,13 @@ class WDSModelSliders_wds {
|
|
171 |
$row->bullets_img_main_url = WD_S_URL . '/images/bullet/bullet1/1/1.png';
|
172 |
$row->bullets_img_hov_url = WD_S_URL . '/images/bullet/bullet1/1/2.png';
|
173 |
$row->bull_butt_img_or_not = 'style';
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
179 |
}
|
180 |
return $row;
|
181 |
}
|
171 |
$row->bullets_img_main_url = WD_S_URL . '/images/bullet/bullet1/1/1.png';
|
172 |
$row->bullets_img_hov_url = WD_S_URL . '/images/bullet/bullet1/1/2.png';
|
173 |
$row->bull_butt_img_or_not = 'style';
|
174 |
+
$row->play_paus_butt_img_or_not = 'style';
|
175 |
+
$row->play_butt_url = WD_S_URL . '/images/button/button4/1/1.png';
|
176 |
+
$row->play_butt_hov_url = WD_S_URL . '/images/button/button4/1/2.png';
|
177 |
+
$row->paus_butt_url = WD_S_URL . '/images/button/button4/1/3.png';
|
178 |
+
$row->paus_butt_hov_url = WD_S_URL . '/images/button/button4/1/4.png';
|
179 |
+
$row->start_slide_num = 1;
|
180 |
+
$row->effect_duration = 800;
|
181 |
}
|
182 |
return $row;
|
183 |
}
|
admin/views/WDSViewSliders_wds.php
CHANGED
@@ -44,6 +44,7 @@ class WDSViewSliders_wds {
|
|
44 |
</div>
|
45 |
</div>
|
46 |
<form class="wrap" id="sliders_form" method="post" action="admin.php?page=sliders_wds" style="float: left; width: 99%;">
|
|
|
47 |
<span class="slider-icon"></span>
|
48 |
<h2>
|
49 |
Sliders
|
@@ -393,6 +394,7 @@ class WDSViewSliders_wds {
|
|
393 |
</div>
|
394 |
</div>
|
395 |
<form class="wrap" method="post" id="sliders_form" action="admin.php?page=sliders_wds" style="float: left; width: 99%;">
|
|
|
396 |
<span class="slider-icon"></span>
|
397 |
<h2><?php echo $page_title; ?></h2>
|
398 |
<div class="wds_buttons" style="float: right; position: absolute; right: 11px; z-index: 50;">
|
@@ -521,10 +523,10 @@ class WDSViewSliders_wds {
|
|
521 |
</td>
|
522 |
</tr>
|
523 |
<tr>
|
524 |
-
<td class="spider_label"><label for="
|
525 |
<td>
|
526 |
-
<input type="text" id="
|
527 |
-
<div class="spider_description">
|
528 |
</td>
|
529 |
</tr>
|
530 |
<tr>
|
@@ -535,6 +537,13 @@ class WDSViewSliders_wds {
|
|
535 |
<div class="spider_description">Choose whether to autoplay the sliders or not.</div>
|
536 |
</td>
|
537 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
<tr>
|
539 |
<td class="spider_label"><label>Stop on hover: </label></td>
|
540 |
<td>
|
@@ -550,6 +559,13 @@ class WDSViewSliders_wds {
|
|
550 |
<input type="radio" id="shuffle0" name="shuffle" <?php echo (($row->shuffle) ? '' : 'checked="checked"'); ?> value="0" /><label for="shuffle0">No</label>
|
551 |
<div class="spider_description">Choose whether to have the slides change in a random manner or to keep the original sequence.</div>
|
552 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
</tr>
|
554 |
<tr>
|
555 |
<td class="spider_label"><label>Music: </label></td>
|
@@ -1173,7 +1189,7 @@ class WDSViewSliders_wds {
|
|
1173 |
<script>
|
1174 |
var wds_blt_img_type = [];
|
1175 |
var blt_img_dir = '<?php echo WD_S_URL . '/images/bullet/'; ?>';
|
1176 |
-
|
1177 |
<?php
|
1178 |
$folder_names = scandir(WD_S_DIR . '/images/bullet');
|
1179 |
$bull_cur_fold_name = '';
|
44 |
</div>
|
45 |
</div>
|
46 |
<form class="wrap" id="sliders_form" method="post" action="admin.php?page=sliders_wds" style="float: left; width: 99%;">
|
47 |
+
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
48 |
<span class="slider-icon"></span>
|
49 |
<h2>
|
50 |
Sliders
|
394 |
</div>
|
395 |
</div>
|
396 |
<form class="wrap" method="post" id="sliders_form" action="admin.php?page=sliders_wds" style="float: left; width: 99%;">
|
397 |
+
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
398 |
<span class="slider-icon"></span>
|
399 |
<h2><?php echo $page_title; ?></h2>
|
400 |
<div class="wds_buttons" style="float: right; position: absolute; right: 11px; z-index: 50;">
|
523 |
</td>
|
524 |
</tr>
|
525 |
<tr>
|
526 |
+
<td class="spider_label"><label for="effect_duration">Еffect duration: </label></td>
|
527 |
<td>
|
528 |
+
<input type="text" id="effect_duration" name="effect_duration" value="<?php echo $row->effect_duration; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> ms
|
529 |
+
<div class="spider_description">Define the time for the effect.</div>
|
530 |
</td>
|
531 |
</tr>
|
532 |
<tr>
|
537 |
<div class="spider_description">Choose whether to autoplay the sliders or not.</div>
|
538 |
</td>
|
539 |
</tr>
|
540 |
+
<tr>
|
541 |
+
<td class="spider_label"><label for="time_intervval">Time Interval: </label></td>
|
542 |
+
<td>
|
543 |
+
<input type="text" id="time_intervval" name="time_intervval" value="<?php echo $row->time_intervval; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> sec.
|
544 |
+
<div class="spider_description">Set the time interval for the change of the sliders when autoplay is on.</div>
|
545 |
+
</td>
|
546 |
+
</tr>
|
547 |
<tr>
|
548 |
<td class="spider_label"><label>Stop on hover: </label></td>
|
549 |
<td>
|
559 |
<input type="radio" id="shuffle0" name="shuffle" <?php echo (($row->shuffle) ? '' : 'checked="checked"'); ?> value="0" /><label for="shuffle0">No</label>
|
560 |
<div class="spider_description">Choose whether to have the slides change in a random manner or to keep the original sequence.</div>
|
561 |
</td>
|
562 |
+
</tr>
|
563 |
+
<tr>
|
564 |
+
<td class="spider_label"><label for="start_slide_num">Start with slide: </label></td>
|
565 |
+
<td>
|
566 |
+
<input type="text" name="start_slide_num" id="start_slide_num" value="<?php echo $row->start_slide_num; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" />
|
567 |
+
<div class="spider_description">The slider will start with the specified slide. You can use the value 0 for random.</div>
|
568 |
+
</td>
|
569 |
</tr>
|
570 |
<tr>
|
571 |
<td class="spider_label"><label>Music: </label></td>
|
1189 |
<script>
|
1190 |
var wds_blt_img_type = [];
|
1191 |
var blt_img_dir = '<?php echo WD_S_URL . '/images/bullet/'; ?>';
|
1192 |
+
var bull_type_cur_fold = '1';
|
1193 |
<?php
|
1194 |
$folder_names = scandir(WD_S_DIR . '/images/bullet');
|
1195 |
$bull_cur_fold_name = '';
|
admin/views/WDSViewUninstall_wds.php
CHANGED
@@ -27,7 +27,7 @@ class WDSViewUninstall_wds {
|
|
27 |
$prefix = $wpdb->prefix;
|
28 |
?>
|
29 |
<form method="post" action="admin.php?page=uninstall_wds" style="width:99%;">
|
30 |
-
<?php wp_nonce_field('
|
31 |
<div class="wrap">
|
32 |
<span class="uninstall_icon"></span>
|
33 |
<h2>Uninstall Slider WD</h2>
|
@@ -86,7 +86,8 @@ class WDSViewUninstall_wds {
|
|
86 |
global $wpdb;
|
87 |
$this->model->delete_db_tables();
|
88 |
$prefix = $wpdb->prefix;
|
89 |
-
$deactivate_url =
|
|
|
90 |
?>
|
91 |
<div id="message" class="updated fade">
|
92 |
<p>The following Database Tables successfully deleted:</p>
|
27 |
$prefix = $wpdb->prefix;
|
28 |
?>
|
29 |
<form method="post" action="admin.php?page=uninstall_wds" style="width:99%;">
|
30 |
+
<?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
|
31 |
<div class="wrap">
|
32 |
<span class="uninstall_icon"></span>
|
33 |
<h2>Uninstall Slider WD</h2>
|
86 |
global $wpdb;
|
87 |
$this->model->delete_db_tables();
|
88 |
$prefix = $wpdb->prefix;
|
89 |
+
$deactivate_url = add_query_arg(array('action' => 'deactivate', 'plugin' => 'slider-wd/slider-wd.php'), admin_url('plugins.php'));
|
90 |
+
$deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_slider-wd/slider-wd.php');
|
91 |
?>
|
92 |
<div id="message" class="updated fade">
|
93 |
<p>The following Database Tables successfully deleted:</p>
|
framework/WDW_S_Library.php
CHANGED
@@ -536,6 +536,7 @@ class WDW_S_Library {
|
|
536 |
return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
|
537 |
}
|
538 |
public static function spider_redirect($url) {
|
|
|
539 |
?>
|
540 |
<script>
|
541 |
window.location = "<?php echo $url; ?>";
|
536 |
return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
|
537 |
}
|
538 |
public static function spider_redirect($url) {
|
539 |
+
$url = html_entity_decode(wp_nonce_url($url, 'nonce_wd', 'nonce_wd'));
|
540 |
?>
|
541 |
<script>
|
542 |
window.location = "<?php echo $url; ?>";
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -106,7 +106,7 @@ class WDSViewSlider {
|
|
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;
|
@@ -114,7 +114,13 @@ class WDSViewSlider {
|
|
114 |
$current_image_id = $slide_ids[array_rand($slide_ids)];
|
115 |
}
|
116 |
else {
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
global $wp;
|
@@ -950,7 +956,7 @@ class WDSViewSlider {
|
|
950 |
|
951 |
<script>
|
952 |
var wds_trans_in_progress_<?php echo $wds; ?> = false;
|
953 |
-
var wds_transition_duration_<?php echo $wds; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 :
|
954 |
var wds_playInterval_<?php echo $wds; ?>;
|
955 |
var progress = 0;
|
956 |
var bottom_right_deggree_<?php echo $wds; ?>;
|
106 |
$outerWidth_or_outerHeight = 'outerHeight';
|
107 |
}
|
108 |
|
109 |
+
if ($enable_slideshow_shuffle || ($slider_row->start_slide_num == 0)) {
|
110 |
$slide_ids = array();
|
111 |
foreach ($slide_rows as $slide_row) {
|
112 |
$slide_ids[] += $slide_row->id;
|
114 |
$current_image_id = $slide_ids[array_rand($slide_ids)];
|
115 |
}
|
116 |
else {
|
117 |
+
if ($slider_row->start_slide_num > 0 && $slider_row->start_slide_num <= count($slide_rows)) {
|
118 |
+
$start_slide_num = $slider_row->start_slide_num - 1;
|
119 |
+
}
|
120 |
+
else {
|
121 |
+
$start_slide_num = 0;
|
122 |
+
}
|
123 |
+
$current_image_id = ($slide_rows ? $slide_rows[$start_slide_num]->id : 0);
|
124 |
}
|
125 |
|
126 |
global $wp;
|
956 |
|
957 |
<script>
|
958 |
var wds_trans_in_progress_<?php echo $wds; ?> = false;
|
959 |
+
var wds_transition_duration_<?php echo $wds; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : $slider_row->effect_duration; ?>;
|
960 |
var wds_playInterval_<?php echo $wds; ?>;
|
961 |
var progress = 0;
|
962 |
var bottom_right_deggree_<?php echo $wds; ?>;
|
js/wds.js
CHANGED
@@ -6,6 +6,7 @@ function spider_ajax_save(form_id, event) {
|
|
6 |
post_data["task"] = "apply";
|
7 |
/* Global.*/
|
8 |
post_data["current_id"] = jQuery("#current_id").val();
|
|
|
9 |
post_data["slide_ids_string"] = jQuery("#slide_ids_string").val();
|
10 |
post_data["del_slide_ids_string"] = jQuery("#del_slide_ids_string").val();
|
11 |
post_data["nav_tab"] = jQuery("#nav_tab").val();
|
@@ -36,6 +37,8 @@ function spider_ajax_save(form_id, event) {
|
|
36 |
post_data["image_right_click"] = jQuery("input[name=image_right_click]:checked").val();
|
37 |
post_data["layer_out_next"] = jQuery("input[name=layer_out_next]:checked").val();
|
38 |
post_data["published"] = jQuery("input[name=published]:checked").val();
|
|
|
|
|
39 |
|
40 |
/* Navigation.*/
|
41 |
post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
|
6 |
post_data["task"] = "apply";
|
7 |
/* Global.*/
|
8 |
post_data["current_id"] = jQuery("#current_id").val();
|
9 |
+
post_data["nonce_wd"] = jQuery("#nonce_wd").val();
|
10 |
post_data["slide_ids_string"] = jQuery("#slide_ids_string").val();
|
11 |
post_data["del_slide_ids_string"] = jQuery("#del_slide_ids_string").val();
|
12 |
post_data["nav_tab"] = jQuery("#nav_tab").val();
|
37 |
post_data["image_right_click"] = jQuery("input[name=image_right_click]:checked").val();
|
38 |
post_data["layer_out_next"] = jQuery("input[name=layer_out_next]:checked").val();
|
39 |
post_data["published"] = jQuery("input[name=published]:checked").val();
|
40 |
+
post_data["start_slide_num"] = jQuery("#start_slide_num").val();
|
41 |
+
post_data["effect_duration"] = jQuery("#effect_duration").val();
|
42 |
|
43 |
/* Navigation.*/
|
44 |
post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
|
readme.txt
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
=== Slider WD ===
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Slider WD is a great tool for creating responsive sliders. It uses various transition effects.
|
12 |
|
13 |
== Description ==
|
14 |
-
|
|
|
15 |
[WordPress Slider Plugin](http://web-dorado.com/products/wordpress-slider-plugin.html)
|
16 |
[User Manual](http://web-dorado.com/wordpress-slider-wd-guide-step-1.html)
|
17 |
[Support Forum](http://web-dorado.com/forum/slider-plugin.html)
|
@@ -54,6 +55,10 @@ Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slide
|
|
54 |
* Navigation button/bullet styles
|
55 |
* Support for Vimeo and YouTube videos
|
56 |
|
|
|
|
|
|
|
|
|
57 |
### Supported languages
|
58 |
|
59 |
*If you need language of Slider WD which is not included in this list, please contact us and we will do the translation of Slider WD within 3 days. If you find any mistakes in the translation, please contact us and we will make relevant corrections within 3 days. *
|
@@ -131,6 +136,10 @@ After downloading the ZIP file of the slider plugin,
|
|
131 |
|
132 |
== Changelog ==
|
133 |
|
|
|
|
|
|
|
|
|
134 |
= 1.0.7 =
|
135 |
New: Circle timer.
|
136 |
New: Slider duplication.
|
1 |
=== Slider WD ===
|
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, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.0.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
Slider WD is a great tool for creating responsive sliders. It uses various transition effects.
|
12 |
|
13 |
== Description ==
|
14 |
+
Create responsive, highly configurable sliders with various effects for your WordPress site. Download for FREE!
|
15 |
+
|
16 |
[WordPress Slider Plugin](http://web-dorado.com/products/wordpress-slider-plugin.html)
|
17 |
[User Manual](http://web-dorado.com/wordpress-slider-wd-guide-step-1.html)
|
18 |
[Support Forum](http://web-dorado.com/forum/slider-plugin.html)
|
55 |
* Navigation button/bullet styles
|
56 |
* Support for Vimeo and YouTube videos
|
57 |
|
58 |
+
###IMPORTANT:
|
59 |
+
If you think you found a bug in Slider WD or have any problem/question concerning the plugin, please check out [WordPress Slider Support Forum](http://web-dorado.com/forum/slider-plugin.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
60 |
+
|
61 |
+
|
62 |
### Supported languages
|
63 |
|
64 |
*If you need language of Slider WD which is not included in this list, please contact us and we will do the translation of Slider WD within 3 days. If you find any mistakes in the translation, please contact us and we will make relevant corrections within 3 days. *
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 1.0.8 =
|
140 |
+
New: Start with slide option.
|
141 |
+
New: Effect duration option.
|
142 |
+
|
143 |
= 1.0.7 =
|
144 |
New: Circle timer.
|
145 |
New: Slider 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.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -304,6 +304,8 @@ function wds_activate() {
|
|
304 |
'play_butt_hov_url' => WD_S_URL . '/images/button/button4/1/2.png',
|
305 |
'paus_butt_hov_url' => WD_S_URL . '/images/button/button4/1/4.png',
|
306 |
'play_paus_butt_img_or_not' => 'style',
|
|
|
|
|
307 |
)
|
308 |
);
|
309 |
}
|
@@ -317,7 +319,7 @@ register_activation_hook(__FILE__, 'wds_activate');
|
|
317 |
|
318 |
function wds_install() {
|
319 |
$version = get_option("wds_version");
|
320 |
-
$new_version = '1.0.
|
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.8
|
8 |
* Author: WebDorado
|
9 |
* Author URI: http://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
304 |
'play_butt_hov_url' => WD_S_URL . '/images/button/button4/1/2.png',
|
305 |
'paus_butt_hov_url' => WD_S_URL . '/images/button/button4/1/4.png',
|
306 |
'play_paus_butt_img_or_not' => 'style',
|
307 |
+
'start_slide_num' => 1,
|
308 |
+
'effect_duration' => 800,
|
309 |
)
|
310 |
);
|
311 |
}
|
319 |
|
320 |
function wds_install() {
|
321 |
$version = get_option("wds_version");
|
322 |
+
$new_version = '1.0.8';
|
323 |
if ($version && version_compare($version, $new_version, '<')) {
|
324 |
require_once WD_S_DIR . "/sliders-update.php";
|
325 |
wds_update($version);
|
sliders-insert.php
CHANGED
@@ -86,6 +86,8 @@ function wds_insert() {
|
|
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);
|
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 |
+
`start_slide_num` int(4) NOT NULL,
|
90 |
+
`effect_duration` int(6) NOT NULL,
|
91 |
PRIMARY KEY (`id`)
|
92 |
) DEFAULT CHARSET=utf8;";
|
93 |
$wpdb->query($wdsslider);
|
sliders-update.php
CHANGED
@@ -35,6 +35,12 @@ function wds_update($version) {
|
|
35 |
// Whether to display play/pause buttons by image or not.
|
36 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_paus_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
return;
|
39 |
}
|
40 |
|
35 |
// Whether to display play/pause buttons by image or not.
|
36 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `play_paus_butt_img_or_not` varchar(8) NOT NULL DEFAULT 'style'");
|
37 |
}
|
38 |
+
if (version_compare($version, '1.0.8') == -1) {
|
39 |
+
// Start slider with slide.
|
40 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `start_slide_num` int(4) NOT NULL DEFAULT 1");
|
41 |
+
// Transition effect duration.
|
42 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `effect_duration` int(6) NOT NULL DEFAULT 800");
|
43 |
+
}
|
44 |
return;
|
45 |
}
|
46 |
|