Version Description
- Changed: Minimum font size validation.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.79 |
Comparing to | |
See all releases |
Code changes from version 1.1.78 to 1.1.79
- admin/views/WDSViewSliders_wds.php +3 -3
- js/wds.js +16 -3
- readme.txt +4 -1
- slider-wd.php +4 -2
admin/views/WDSViewSliders_wds.php
CHANGED
@@ -2464,15 +2464,15 @@ class WDSViewSliders_wds {
|
|
2464 |
</tr>
|
2465 |
<tr class="wds_layer_tr">
|
2466 |
<td class="spider_label">
|
2467 |
-
<label for="<?php echo $prefix; ?>_size"
|
2468 |
</td>
|
2469 |
<td>
|
2470 |
<span style="display: table-cell">
|
2471 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $layer->size; ?>" name="<?php echo $prefix; ?>_size" /> px
|
2472 |
</span>
|
2473 |
<span style="display: table-cell;">
|
2474 |
-
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text"
|
2475 |
-
<div class="spider_description"
|
2476 |
</span>
|
2477 |
</td>
|
2478 |
</tr>
|
2464 |
</tr>
|
2465 |
<tr class="wds_layer_tr">
|
2466 |
<td class="spider_label">
|
2467 |
+
<label for="<?php echo $prefix; ?>_size"><?php _e('Size:', 'wds'); ?> </label>
|
2468 |
</td>
|
2469 |
<td>
|
2470 |
<span style="display: table-cell">
|
2471 |
<input id="<?php echo $prefix; ?>_size" class="spider_int_input" type="text" onchange="jQuery('#<?php echo $prefix; ?>').css({fontSize: jQuery(this).val() + 'px', lineHeight: jQuery(this).val() + 'px'})" onkeypress="return spider_check_isnum(event)" value="<?php echo $layer->size; ?>" name="<?php echo $prefix; ?>_size" /> px
|
2472 |
</span>
|
2473 |
<span style="display: table-cell;">
|
2474 |
+
<input id="<?php echo $prefix; ?>_min_size" class="spider_int_input" type="text" onchange="wds_min_size_validation('<?php echo $prefix; ?>')" onkeypress="return spider_check_isnum(event)" value="<?php echo $layer->min_size; ?>" name="<?php echo $prefix; ?>_min_size" /> px
|
2475 |
+
<div class="spider_description"><?php _e('Minimal size must be less than the actual size.', 'wds'); ?></div>
|
2476 |
</span>
|
2477 |
</td>
|
2478 |
</tr>
|
js/wds.js
CHANGED
@@ -2194,14 +2194,14 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
2194 |
'<td><input type="text" name="' + prefix + '_color" id="' + prefix + '_color" value="" class="color" onchange="jQuery(\'#' + prefix + '\').css({color: \'#\' + jQuery(this).val()})" /><div class="spider_description"></div></td>';
|
2195 |
var hover_color_text = '<td class="spider_label"><label for="' + prefix + '_hover_color_text">Hover Color: </label></td>' +
|
2196 |
'<td><input type="text" name="' + prefix + '_hover_color_text" id="' + prefix + '_hover_color_text" value="" class="color" onchange="jQuery(\'#' + prefix + '\').hover(function() { jQuery(this).css({color: \'#\' + jQuery(\'#' + prefix + '_hover_color_text\').val()}); }, function() { jQuery(this).css({color: \'#\' + jQuery(\'#' + prefix + '_color\').val()}); })" /><div class="spider_description"></div></td>';
|
2197 |
-
var size = '<td class="spider_label"><label for="' + prefix + '_size">
|
2198 |
'<td>' +
|
2199 |
'<span style="display:table-cell;">' +
|
2200 |
'<input type="text" name="' + prefix + '_size" id="' + prefix + '_size" value="18" class="spider_int_input" onkeypress="return spider_check_isnum(event)" onchange="jQuery(\'#' + prefix + '\').css({fontSize: jQuery(this).val() + \'px\', lineHeight: jQuery(this).val() + \'px\'})" /> px' +
|
2201 |
'</span>' +
|
2202 |
'<span style="display:table-cell;">' +
|
2203 |
-
'<input type="text" name="' + prefix + '_min_size" id="' + prefix + '_min_size" value="11" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px' +
|
2204 |
-
'<div class="spider_description">
|
2205 |
'</span>' +
|
2206 |
'</td>';
|
2207 |
var ffamily = '<td class="spider_label"><label for="' + prefix + '_ffamily">Font family: </label></td>' +
|
@@ -3136,4 +3136,17 @@ function wds_tooltip() {
|
|
3136 |
});
|
3137 |
}
|
3138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3139 |
}
|
2194 |
'<td><input type="text" name="' + prefix + '_color" id="' + prefix + '_color" value="" class="color" onchange="jQuery(\'#' + prefix + '\').css({color: \'#\' + jQuery(this).val()})" /><div class="spider_description"></div></td>';
|
2195 |
var hover_color_text = '<td class="spider_label"><label for="' + prefix + '_hover_color_text">Hover Color: </label></td>' +
|
2196 |
'<td><input type="text" name="' + prefix + '_hover_color_text" id="' + prefix + '_hover_color_text" value="" class="color" onchange="jQuery(\'#' + prefix + '\').hover(function() { jQuery(this).css({color: \'#\' + jQuery(\'#' + prefix + '_hover_color_text\').val()}); }, function() { jQuery(this).css({color: \'#\' + jQuery(\'#' + prefix + '_color\').val()}); })" /><div class="spider_description"></div></td>';
|
2197 |
+
var size = '<td class="spider_label"><label for="' + prefix + '_size">' + wds_object.font_size + ' </label></td>' +
|
2198 |
'<td>' +
|
2199 |
'<span style="display:table-cell;">' +
|
2200 |
'<input type="text" name="' + prefix + '_size" id="' + prefix + '_size" value="18" class="spider_int_input" onkeypress="return spider_check_isnum(event)" onchange="jQuery(\'#' + prefix + '\').css({fontSize: jQuery(this).val() + \'px\', lineHeight: jQuery(this).val() + \'px\'})" /> px' +
|
2201 |
'</span>' +
|
2202 |
'<span style="display:table-cell;">' +
|
2203 |
+
'<input type="text" name="' + prefix + '_min_size" id="' + prefix + '_min_size" value="11" class="spider_int_input" onchange="wds_min_size_validation(\'' + prefix + '\')" onkeypress="return spider_check_isnum(event)"/> px' +
|
2204 |
+
'<div class="spider_description">' + wds_object.min_size + '</div>' +
|
2205 |
'</span>' +
|
2206 |
'</td>';
|
2207 |
var ffamily = '<td class="spider_label"><label for="' + prefix + '_ffamily">Font family: </label></td>' +
|
3136 |
});
|
3137 |
}
|
3138 |
}
|
3139 |
+
}
|
3140 |
+
|
3141 |
+
function wds_min_size_validation(that) {
|
3142 |
+
var cont = jQuery("#" + that + "_min_size");
|
3143 |
+
var min_size = parseInt(cont.val());
|
3144 |
+
var size = parseInt(jQuery("#" + that + "_size").val());
|
3145 |
+
if (min_size > size) {
|
3146 |
+
cont.val(0);
|
3147 |
+
cont.css({'borderColor': 'rgb(255, 0, 0)'});
|
3148 |
+
}
|
3149 |
+
else {
|
3150 |
+
cont.removeAttr('style');
|
3151 |
+
}
|
3152 |
}
|
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.7
|
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.78 =
|
133 |
* Added: Apply layer global options to existing layers.
|
134 |
* Changed: Removed support forum link.
|
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.7
|
7 |
+
Stable tag: 1.1.79
|
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.79 =
|
133 |
+
* Changed: Minimum font size validation.
|
134 |
+
|
135 |
= 1.1.78 =
|
136 |
* Added: Apply layer global options to existing layers.
|
137 |
* Changed: Removed support forum link.
|
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());
|
@@ -523,6 +523,8 @@ function wds_scripts() {
|
|
523 |
"GGF" => WDW_S_Library::get_google_fonts(),
|
524 |
"FGF" => WDW_S_Library::get_font_families(),
|
525 |
"LDO" => $global_options,
|
|
|
|
|
526 |
));
|
527 |
|
528 |
wp_enqueue_script('wds-deactivate-popup', WD_S_URL.'/wd/assets/js/deactivate_popup.js', array(), WD_S_VERSION, true );
|
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.79
|
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.79');
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|
523 |
"GGF" => WDW_S_Library::get_google_fonts(),
|
524 |
"FGF" => WDW_S_Library::get_font_families(),
|
525 |
"LDO" => $global_options,
|
526 |
+
'min_size' => __('Minimal size must be less than the actual size.', 'wds'),
|
527 |
+
'font_size' => __('Size:', 'wds'),
|
528 |
));
|
529 |
|
530 |
wp_enqueue_script('wds-deactivate-popup', WD_S_URL.'/wd/assets/js/deactivate_popup.js', array(), WD_S_VERSION, true );
|