Version Description
- Fixed: Text layer fixed step position.
- Fixed: Bug on slider preview.
- Fixed: Slider autoplay with multiple sliders on one page.
- Changed: Video autoplay on some browsers.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.2.13 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.12 to 1.2.13
- admin/views/Sliders.php +1 -1
- frontend/views/WDSViewSlider.php +1 -1
- js/wds_frontend.js +31 -14
- readme.txt +7 -1
- slider-wd.php +5 -3
- wd/assets/img/fmc_main_plugin.png +0 -0
admin/views/Sliders.php
CHANGED
|
@@ -1987,7 +1987,7 @@ class SlidersView_wds extends AdminView_bwg {
|
|
| 1987 |
<label <?php echo (($slide_row->target_attr_slide) ? 'class="selected_color"' : ''); ?> for="autoplay<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
| 1988 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>0" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? '' : 'checked="checked"'); ?> value="0" />
|
| 1989 |
<label <?php echo (($slide_row->target_attr_slide) ? '' : 'class="selected_color"'); ?> for="autoplay<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
| 1990 |
-
<p class="description"
|
| 1991 |
</div>
|
| 1992 |
<div class="wd-group" id="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO' ? '' : 'style="display: none;"'; ?>>
|
| 1993 |
<label class="wd-label"><?php _e('Youtube related video', WDS()->prefix); ?></label>
|
| 1987 |
<label <?php echo (($slide_row->target_attr_slide) ? 'class="selected_color"' : ''); ?> for="autoplay<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
| 1988 |
<input type="radio" id="autoplay<?php echo $slide_row->id; ?>0" name="wds_slide_autoplay<?php echo $slide_row->id; ?>" <?php echo (($slide_row->target_attr_slide) ? '' : 'checked="checked"'); ?> value="0" />
|
| 1989 |
<label <?php echo (($slide_row->target_attr_slide) ? '' : 'class="selected_color"'); ?> for="autoplay<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
| 1990 |
+
<p class="description"> <b><?php _e('Important! ', WDS()->prefix); ?></b><?php _e('Some browsers only support autoplay in case videos are muted. Therefore, Slider WD will automatically mute them on these browsers to trigger video autoplay.', WDS()->prefix); ?></p>
|
| 1991 |
</div>
|
| 1992 |
<div class="wd-group" id="youtube_rel_video<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'EMBED_OEMBED_YOUTUBE_VIDEO' ? '' : 'style="display: none;"'; ?>>
|
| 1993 |
<label class="wd-label"><?php _e('Youtube related video', WDS()->prefix); ?></label>
|
frontend/views/WDSViewSlider.php
CHANGED
|
@@ -343,7 +343,7 @@ class WDSViewSlider {
|
|
| 343 |
switch ($layer->type) {
|
| 344 |
case 'text': {
|
| 345 |
?>
|
| 346 |
-
<span class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" data-type="wds_text_parent" data-row-key="<?php echo $key;?>" data-layer-key="<?php echo $layer_key;?>" id="<?php echo $prefix; ?>" data-wds-fsize="<?php echo $layer->size; ?>" data-wds-fmin-size="<?php echo $layer->min_size; ?>"
|
| 347 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
| 348 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
| 349 |
word-wrap: <?php echo ($layer->image_scale ? 'break-all' : 'normal'); ?>;
|
| 343 |
switch ($layer->type) {
|
| 344 |
case 'text': {
|
| 345 |
?>
|
| 346 |
+
<span class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" data-type="wds_text_parent" data-row-key="<?php echo $key;?>" data-layer-key="<?php echo $layer_key;?>" id="<?php echo $prefix; ?>" data-left-percent="<?php echo $left_percent ?>" data-wds-fsize="<?php echo $layer->size; ?>" data-wds-fmin-size="<?php echo $layer->min_size; ?>"
|
| 347 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
| 348 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
| 349 |
word-wrap: <?php echo ($layer->image_scale ? 'break-all' : 'normal'); ?>;
|
js/wds_frontend.js
CHANGED
|
@@ -2,6 +2,7 @@ var wds_carousel = [];
|
|
| 2 |
var wds_currentlyMoving = [];
|
| 3 |
var wds_currentCenterNum = [];
|
| 4 |
var wds;
|
|
|
|
| 5 |
|
| 6 |
jQuery(document).ready(function () {
|
| 7 |
jQuery(".wds_slider_cont").each(function () {
|
|
@@ -967,9 +968,12 @@ function wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effe
|
|
| 967 |
}
|
| 968 |
wds_window_fixed_size(wds, next_image_class);
|
| 969 |
|
| 970 |
-
|
| 971 |
-
|
| 972 |
-
|
|
|
|
|
|
|
|
|
|
| 973 |
}
|
| 974 |
|
| 975 |
function wds_blindR(wds, current_image_class, next_image_class, direction) {
|
|
@@ -2136,17 +2140,30 @@ function wds_resize_slider( wds ) {
|
|
| 2136 |
jQuery(".wds_slideshow_image_"+wds+" [data-type='wds_text_parent']").each(function () {
|
| 2137 |
var id = jQuery(this).attr("id");
|
| 2138 |
if (wds_params[wds].wds_data[jQuery("#" + id).data("row-key")]["layer_"+ jQuery("#" + id).data("layer-key") +"_align_layer"] == 1) {
|
| 2139 |
-
var slider_width = jQuery(".wds_slider_"+ wds).outerWidth();
|
| 2140 |
var left;
|
| 2141 |
-
|
| 2142 |
-
|
| 2143 |
-
|
| 2144 |
-
|
| 2145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2146 |
}
|
| 2147 |
-
|
| 2148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2149 |
}
|
|
|
|
| 2150 |
var left_percent = (slider_width != 0) ? 100 * left / slider_width : 0;
|
| 2151 |
jQuery("#" + id).css({left:left_percent + "%"});
|
| 2152 |
}
|
|
@@ -2565,7 +2582,7 @@ function wds_ready_func( wds ) {
|
|
| 2565 |
});
|
| 2566 |
}
|
| 2567 |
|
| 2568 |
-
function wds_pause() {
|
| 2569 |
/* Pause.*/
|
| 2570 |
/* Pause layers out effect.*/
|
| 2571 |
wds_params[wds].wds_play_pause_state = 1;
|
|
@@ -2612,14 +2629,14 @@ function wds_play_pause(wds, play_pause) {
|
|
| 2612 |
wds_play_wds( wds );
|
| 2613 |
}
|
| 2614 |
else {
|
| 2615 |
-
wds_pause();
|
| 2616 |
}
|
| 2617 |
}
|
| 2618 |
else if (play_pause == "play") {
|
| 2619 |
wds_play_wds( wds );
|
| 2620 |
}
|
| 2621 |
else if (play_pause == "pause") {
|
| 2622 |
-
wds_pause();
|
| 2623 |
}
|
| 2624 |
}
|
| 2625 |
|
| 2 |
var wds_currentlyMoving = [];
|
| 3 |
var wds_currentCenterNum = [];
|
| 4 |
var wds;
|
| 5 |
+
var textLayerPosition = [];
|
| 6 |
|
| 7 |
jQuery(document).ready(function () {
|
| 8 |
jQuery(".wds_slider_cont").each(function () {
|
| 968 |
}
|
| 969 |
wds_window_fixed_size(wds, next_image_class);
|
| 970 |
|
| 971 |
+
jQuery.each( wds_params[wds].callback_items, function( index, value ) {
|
| 972 |
+
if ( index === 'onSliderCS' && value !== '' ) {
|
| 973 |
+
var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCS );
|
| 974 |
+
wds_callback_f();
|
| 975 |
+
}
|
| 976 |
+
});
|
| 977 |
}
|
| 978 |
|
| 979 |
function wds_blindR(wds, current_image_class, next_image_class, direction) {
|
| 2140 |
jQuery(".wds_slideshow_image_"+wds+" [data-type='wds_text_parent']").each(function () {
|
| 2141 |
var id = jQuery(this).attr("id");
|
| 2142 |
if (wds_params[wds].wds_data[jQuery("#" + id).data("row-key")]["layer_"+ jQuery("#" + id).data("layer-key") +"_align_layer"] == 1) {
|
|
|
|
| 2143 |
var left;
|
| 2144 |
+
var slider_width = jQuery(".wds_slider_"+ wds).outerWidth();
|
| 2145 |
+
var start_left_percent = jQuery(this).attr("data-left-percent");
|
| 2146 |
+
|
| 2147 |
+
/* Fix layer position only one time */
|
| 2148 |
+
if( typeof textLayerPosition[wds] == 'undefined') {
|
| 2149 |
+
if (start_left_percent == 0) {
|
| 2150 |
+
textLayerPosition[wds] = 'left';
|
| 2151 |
+
} /* layer width < slider_with/2 */
|
| 2152 |
+
else if ( Math.ceil((jQuery("#" + id).offset().left) - (jQuery(".wds_slideshow_image_"+wds).offset().left)+jQuery(this).outerWidth()) >= slider_width ) {
|
| 2153 |
+
textLayerPosition[wds] = 'right';
|
| 2154 |
+
}
|
| 2155 |
+
else {
|
| 2156 |
+
textLayerPosition[wds] = 'center';
|
| 2157 |
+
}
|
| 2158 |
}
|
| 2159 |
+
if( textLayerPosition[wds] == 'left' ) {
|
| 2160 |
+
left = 0;
|
| 2161 |
+
} else if( textLayerPosition[wds] == 'center') {
|
| 2162 |
+
left = slider_width / 2 - jQuery(this).outerWidth() / 2;
|
| 2163 |
+
} else {
|
| 2164 |
+
left = slider_width - jQuery(this).outerWidth();
|
| 2165 |
}
|
| 2166 |
+
|
| 2167 |
var left_percent = (slider_width != 0) ? 100 * left / slider_width : 0;
|
| 2168 |
jQuery("#" + id).css({left:left_percent + "%"});
|
| 2169 |
}
|
| 2582 |
});
|
| 2583 |
}
|
| 2584 |
|
| 2585 |
+
function wds_pause(wds) {
|
| 2586 |
/* Pause.*/
|
| 2587 |
/* Pause layers out effect.*/
|
| 2588 |
wds_params[wds].wds_play_pause_state = 1;
|
| 2629 |
wds_play_wds( wds );
|
| 2630 |
}
|
| 2631 |
else {
|
| 2632 |
+
wds_pause( wds );
|
| 2633 |
}
|
| 2634 |
}
|
| 2635 |
else if (play_pause == "play") {
|
| 2636 |
wds_play_wds( wds );
|
| 2637 |
}
|
| 2638 |
else if (play_pause == "pause") {
|
| 2639 |
+
wds_pause( wds );
|
| 2640 |
}
|
| 2641 |
}
|
| 2642 |
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
|
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
Requires PHP: 5.2
|
| 7 |
-
Stable tag: 1.2.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -443,6 +443,12 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
|
|
| 443 |
|
| 444 |
== Changelog ==
|
| 445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 446 |
= 1.2.12 =
|
| 447 |
* Changed: Separate buttons for deactivation.
|
| 448 |
|
| 4 |
Requires at least: 3.4
|
| 5 |
Tested up to: 4.9
|
| 6 |
Requires PHP: 5.2
|
| 7 |
+
Stable tag: 1.2.13
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 443 |
|
| 444 |
== Changelog ==
|
| 445 |
|
| 446 |
+
= 1.2.13 =
|
| 447 |
+
* Fixed: Text layer fixed step position.
|
| 448 |
+
* Fixed: Bug on slider preview.
|
| 449 |
+
* Fixed: Slider autoplay with multiple sliders on one page.
|
| 450 |
+
* Changed: Video autoplay on some browsers.
|
| 451 |
+
|
| 452 |
= 1.2.12 =
|
| 453 |
* Changed: Separate buttons for deactivation.
|
| 454 |
|
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.2.
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
@@ -79,8 +79,8 @@ final class WDS {
|
|
| 79 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 80 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 81 |
$this->main_file = plugin_basename(__FILE__);
|
| 82 |
-
$this->plugin_version = '1.2.
|
| 83 |
-
$this->db_version = '1.2.
|
| 84 |
$this->prefix = 'wds';
|
| 85 |
$this->nicename = __('Slider WD', $this->prefix);
|
| 86 |
$this->use_home_url();
|
|
@@ -510,6 +510,8 @@ final class WDS {
|
|
| 510 |
function activate() {
|
| 511 |
delete_transient('wds_update_check');
|
| 512 |
$this->install();
|
|
|
|
|
|
|
| 513 |
}
|
| 514 |
|
| 515 |
function install() {
|
| 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.2.13
|
| 8 |
* Author: WebDorado
|
| 9 |
* Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
|
| 10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 79 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
| 80 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
| 81 |
$this->main_file = plugin_basename(__FILE__);
|
| 82 |
+
$this->plugin_version = '1.2.13';
|
| 83 |
+
$this->db_version = '1.2.13';
|
| 84 |
$this->prefix = 'wds';
|
| 85 |
$this->nicename = __('Slider WD', $this->prefix);
|
| 86 |
$this->use_home_url();
|
| 510 |
function activate() {
|
| 511 |
delete_transient('wds_update_check');
|
| 512 |
$this->install();
|
| 513 |
+
$this->register_post_types();
|
| 514 |
+
flush_rewrite_rules();
|
| 515 |
}
|
| 516 |
|
| 517 |
function install() {
|
wd/assets/img/fmc_main_plugin.png
DELETED
|
Binary file
|
