Version Description
- Fixed: HTML attribute validation.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.1.83 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.82 to 1.1.83
- frontend/views/WDSViewSlider.php +20 -20
- readme.txt +4 -1
- slider-wd.php +2 -2
frontend/views/WDSViewSlider.php
CHANGED
|
@@ -952,7 +952,7 @@ class WDSViewSlider {
|
|
| 952 |
<span class="wds_slideshow_image<?php echo $image_div_num; ?>_spun_<?php echo $wds; ?>" id="wds_image_id_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>">
|
| 953 |
<span class="wds_slideshow_image_spun1_<?php echo $wds; ?>">
|
| 954 |
<span class="wds_slideshow_image_spun2_<?php echo $wds; ?>">
|
| 955 |
-
<span
|
| 956 |
class="wds_slideshow_image_<?php echo $wds; ?>"
|
| 957 |
onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
|
| 958 |
style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
|
|
@@ -967,7 +967,7 @@ class WDSViewSlider {
|
|
| 967 |
switch ($layer->type) {
|
| 968 |
case 'text': {
|
| 969 |
?>
|
| 970 |
-
<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; ?>"
|
| 971 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
| 972 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
| 973 |
word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>;
|
|
@@ -1005,9 +1005,9 @@ class WDSViewSlider {
|
|
| 1005 |
border-radius: <?php echo $layer->border_radius; ?>;
|
| 1006 |
box-shadow: <?php echo $layer->shadow; ?>"
|
| 1007 |
onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
alt="<?php echo $layer->alt; ?>"
|
| 1012 |
title="<?php echo $layer->alt; ?>" />
|
| 1013 |
<?php
|
|
@@ -1285,7 +1285,7 @@ class WDSViewSlider {
|
|
| 1285 |
}).append(grid_div);
|
| 1286 |
}
|
| 1287 |
/* Get the current slide's image.*/
|
| 1288 |
-
var cur_img = jQuery(current_image_class).find('span[
|
| 1289 |
/* Create a grid to hold the gridlets.*/
|
| 1290 |
var grid = jQuery('<span style="display: block;" />').addClass('wds_grid_<?php echo $wds; ?>');
|
| 1291 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
|
@@ -1544,7 +1544,7 @@ class WDSViewSlider {
|
|
| 1544 |
wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
|
| 1545 |
wds_current_key_<?php echo $wds; ?> = key;
|
| 1546 |
/* Change image id.*/
|
| 1547 |
-
jQuery("div[
|
| 1548 |
var current_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[current_key]["id"];
|
| 1549 |
var next_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
|
| 1550 |
<?php if ($slider_row->preload_images) { ?>
|
|
@@ -1755,8 +1755,8 @@ class WDSViewSlider {
|
|
| 1755 |
if (typeof wds_theImage.remove != 'undefined') {
|
| 1756 |
wds_theImage.remove();
|
| 1757 |
}
|
| 1758 |
-
var wds_imageWidth = jQuery(this).attr("
|
| 1759 |
-
var wds_imageHeight = jQuery(this).attr("
|
| 1760 |
var wds_width = wds_imageWidth;
|
| 1761 |
if (wds_imageWidth > wds_origWidth) {
|
| 1762 |
wds_width = wds_origWidth;
|
|
@@ -1769,7 +1769,7 @@ class WDSViewSlider {
|
|
| 1769 |
maxWidth: (parseFloat(wds_imageWidth) * ratio) + "px",
|
| 1770 |
maxHeight: (parseFloat(wds_imageHeight) * ratio) + "px",
|
| 1771 |
});
|
| 1772 |
-
if (jQuery(this).attr("
|
| 1773 |
jQuery(this).css({
|
| 1774 |
width: (parseFloat(wds_imageWidth) * ratio) + "px",
|
| 1775 |
height: (parseFloat(wds_imageHeight) * ratio) + "px"
|
|
@@ -1793,11 +1793,11 @@ class WDSViewSlider {
|
|
| 1793 |
var ratio_new;
|
| 1794 |
var font_size_new;
|
| 1795 |
var min_font_size;
|
| 1796 |
-
font_size = parseFloat(jQuery(this).attr("
|
| 1797 |
font_size_new = font_size;
|
| 1798 |
ratio_new = ratio;
|
| 1799 |
if (jQuery(this).attr('data-type') == 'wds_text_parent') {
|
| 1800 |
-
min_font_size = jQuery(this).attr("
|
| 1801 |
if (min_font_size > font_size) {
|
| 1802 |
font_size_new = min_font_size;
|
| 1803 |
ratio_new = ratio * font_size_new / font_size;
|
|
@@ -1806,10 +1806,10 @@ class WDSViewSlider {
|
|
| 1806 |
jQuery(this).css({
|
| 1807 |
fontSize: (font_size_new) + "px",
|
| 1808 |
lineHeight: "1.25em",
|
| 1809 |
-
paddingLeft: (parseFloat(jQuery(this).attr("
|
| 1810 |
-
paddingRight: (parseFloat(jQuery(this).attr("
|
| 1811 |
-
paddingTop: (parseFloat(jQuery(this).attr("wds_fpaddingt")) * ratio_new) + "px",
|
| 1812 |
-
paddingBottom: (parseFloat(jQuery(this).attr("wds_fpaddingb")) * ratio_new) + "px",
|
| 1813 |
});
|
| 1814 |
});
|
| 1815 |
jQuery(".wds_slideshow_image_<?php echo $wds; ?> [data-type='wds_text_parent']").each(function () {
|
|
@@ -1970,10 +1970,10 @@ class WDSViewSlider {
|
|
| 1970 |
wds_set_text_dots_cont(<?php echo $wds; ?>);
|
| 1971 |
}
|
| 1972 |
jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
|
| 1973 |
-
jQuery(this).attr("
|
| 1974 |
-
jQuery(this).attr("
|
| 1975 |
-
jQuery(this).attr("
|
| 1976 |
-
jQuery(this).attr("
|
| 1977 |
});
|
| 1978 |
if (<?php echo $navigation; ?>) {
|
| 1979 |
jQuery("#wds_container2_<?php echo $wds; ?>").hover(function () {
|
| 952 |
<span class="wds_slideshow_image<?php echo $image_div_num; ?>_spun_<?php echo $wds; ?>" id="wds_image_id_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>">
|
| 953 |
<span class="wds_slideshow_image_spun1_<?php echo $wds; ?>">
|
| 954 |
<span class="wds_slideshow_image_spun2_<?php echo $wds; ?>">
|
| 955 |
+
<span data-img-id="wds_slideshow_image<?php echo $image_div_num; ?>_<?php echo $wds; ?>"
|
| 956 |
class="wds_slideshow_image_<?php echo $wds; ?>"
|
| 957 |
onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
|
| 958 |
style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
|
| 967 |
switch ($layer->type) {
|
| 968 |
case 'text': {
|
| 969 |
?>
|
| 970 |
+
<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; ?>"
|
| 971 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
| 972 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
| 973 |
word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>;
|
| 1005 |
border-radius: <?php echo $layer->border_radius; ?>;
|
| 1006 |
box-shadow: <?php echo $layer->shadow; ?>"
|
| 1007 |
onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
|
| 1008 |
+
data-wds-scale="<?php echo $layer->image_scale; ?>"
|
| 1009 |
+
data-wds-image-width="<?php echo $layer->image_width; ?>"
|
| 1010 |
+
data-wds-image-height="<?php echo $layer->image_height; ?>"
|
| 1011 |
alt="<?php echo $layer->alt; ?>"
|
| 1012 |
title="<?php echo $layer->alt; ?>" />
|
| 1013 |
<?php
|
| 1285 |
}).append(grid_div);
|
| 1286 |
}
|
| 1287 |
/* Get the current slide's image.*/
|
| 1288 |
+
var cur_img = jQuery(current_image_class).find('span[data-img-id^="wds_slideshow_image"]');
|
| 1289 |
/* Create a grid to hold the gridlets.*/
|
| 1290 |
var grid = jQuery('<span style="display: block;" />').addClass('wds_grid_<?php echo $wds; ?>');
|
| 1291 |
/* Prepend the grid to the next slide (i.e. so it's above the slide image).*/
|
| 1544 |
wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
|
| 1545 |
wds_current_key_<?php echo $wds; ?> = key;
|
| 1546 |
/* Change image id.*/
|
| 1547 |
+
jQuery("div[data-img-id=wds_slideshow_image_<?php echo $wds; ?>]").attr('image_id', wds_data_<?php echo $wds; ?>[key]["id"]);
|
| 1548 |
var current_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[current_key]["id"];
|
| 1549 |
var next_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
|
| 1550 |
<?php if ($slider_row->preload_images) { ?>
|
| 1755 |
if (typeof wds_theImage.remove != 'undefined') {
|
| 1756 |
wds_theImage.remove();
|
| 1757 |
}
|
| 1758 |
+
var wds_imageWidth = jQuery(this).attr("data-wds-image-width");
|
| 1759 |
+
var wds_imageHeight = jQuery(this).attr("data-wds-image-height");
|
| 1760 |
var wds_width = wds_imageWidth;
|
| 1761 |
if (wds_imageWidth > wds_origWidth) {
|
| 1762 |
wds_width = wds_origWidth;
|
| 1769 |
maxWidth: (parseFloat(wds_imageWidth) * ratio) + "px",
|
| 1770 |
maxHeight: (parseFloat(wds_imageHeight) * ratio) + "px",
|
| 1771 |
});
|
| 1772 |
+
if (jQuery(this).attr("data-wds-scale") != "on") {
|
| 1773 |
jQuery(this).css({
|
| 1774 |
width: (parseFloat(wds_imageWidth) * ratio) + "px",
|
| 1775 |
height: (parseFloat(wds_imageHeight) * ratio) + "px"
|
| 1793 |
var ratio_new;
|
| 1794 |
var font_size_new;
|
| 1795 |
var min_font_size;
|
| 1796 |
+
font_size = parseFloat(jQuery(this).attr("data-wds-fsize")) * ratio;
|
| 1797 |
font_size_new = font_size;
|
| 1798 |
ratio_new = ratio;
|
| 1799 |
if (jQuery(this).attr('data-type') == 'wds_text_parent') {
|
| 1800 |
+
min_font_size = jQuery(this).attr("data-wds-fmin-size");
|
| 1801 |
if (min_font_size > font_size) {
|
| 1802 |
font_size_new = min_font_size;
|
| 1803 |
ratio_new = ratio * font_size_new / font_size;
|
| 1806 |
jQuery(this).css({
|
| 1807 |
fontSize: (font_size_new) + "px",
|
| 1808 |
lineHeight: "1.25em",
|
| 1809 |
+
paddingLeft: (parseFloat(jQuery(this).attr("data-wds-fpaddingl")) * ratio_new) + "px",
|
| 1810 |
+
paddingRight: (parseFloat(jQuery(this).attr("data-wds-fpaddingr")) * ratio_new) + "px",
|
| 1811 |
+
paddingTop: (parseFloat(jQuery(this).attr("data-wds_fpaddingt")) * ratio_new) + "px",
|
| 1812 |
+
paddingBottom: (parseFloat(jQuery(this).attr("data-wds_fpaddingb")) * ratio_new) + "px",
|
| 1813 |
});
|
| 1814 |
});
|
| 1815 |
jQuery(".wds_slideshow_image_<?php echo $wds; ?> [data-type='wds_text_parent']").each(function () {
|
| 1970 |
wds_set_text_dots_cont(<?php echo $wds; ?>);
|
| 1971 |
}
|
| 1972 |
jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
|
| 1973 |
+
jQuery(this).attr("data-wds-fpaddingl", jQuery(this).css("paddingLeft"));
|
| 1974 |
+
jQuery(this).attr("data-wds-fpaddingr", jQuery(this).css("paddingRight"));
|
| 1975 |
+
jQuery(this).attr("data-wds-fpaddingt", jQuery(this).css("paddingTop"));
|
| 1976 |
+
jQuery(this).attr("data-wds-fpaddingb", jQuery(this).css("paddingBottom"));
|
| 1977 |
});
|
| 1978 |
if (<?php echo $navigation; ?>) {
|
| 1979 |
jQuery("#wds_container2_<?php echo $wds; ?>").hover(function () {
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
|
|
| 4 |
Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.8
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -129,6 +129,9 @@ After downloading the ZIP file of the slider plugin,
|
|
| 129 |
|
| 130 |
== Changelog ==
|
| 131 |
|
|
|
|
|
|
|
|
|
|
| 132 |
= 1.1.82 =
|
| 133 |
* Fixed: Security issue in filemanager.
|
| 134 |
|
| 4 |
Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.8
|
| 7 |
+
Stable tag: 1.1.83
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 129 |
|
| 130 |
== Changelog ==
|
| 131 |
|
| 132 |
+
= 1.1.83 =
|
| 133 |
+
* Fixed: HTML attribute validation.
|
| 134 |
+
|
| 135 |
= 1.1.82 =
|
| 136 |
* Fixed: Security issue in filemanager.
|
| 137 |
|
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.83
|
| 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.83');
|
| 18 |
|
| 19 |
function wds_use_home_url() {
|
| 20 |
$home_url = str_replace("http://", "", home_url());
|
