Version Description
- Added: Hover color for text layer
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.1.41 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.40 to 1.1.41
- admin/controllers/WDSControllerSliders_wds.php +4 -0
- admin/views/WDSViewSliders_wds.php +10 -0
- js/wds.js +7 -0
- readme.txt +4 -1
- slider-wd.php +2 -2
- sliders-insert.php +1 -0
- sliders-update.php +5 -2
admin/controllers/WDSControllerSliders_wds.php
CHANGED
|
@@ -473,6 +473,7 @@ class WDSControllerSliders_wds {
|
|
| 473 |
$google_fonts = ((isset($params_array_layer['google_fonts'])) ? esc_html(stripslashes($params_array_layer['google_fonts'])) : 0);
|
| 474 |
$add_class = ((isset($params_array_layer['add_class'])) ? esc_html(stripslashes($params_array_layer['add_class'])) : '');
|
| 475 |
$layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? esc_html(stripslashes($params_array_layer['layer_callback_list'])) : '');
|
|
|
|
| 476 |
if ($title) {
|
| 477 |
if (strpos($layer_id, 'pr_') !== FALSE) {
|
| 478 |
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
|
@@ -526,6 +527,7 @@ class WDSControllerSliders_wds {
|
|
| 526 |
'hotspot_animation' => 0,
|
| 527 |
'layer_callback_list' => $layer_callback_list,
|
| 528 |
'hotspot_text_display' => 0,
|
|
|
|
| 529 |
));
|
| 530 |
}
|
| 531 |
else {
|
|
@@ -575,6 +577,7 @@ class WDSControllerSliders_wds {
|
|
| 575 |
'google_fonts' => $google_fonts,
|
| 576 |
'add_class' => $add_class,
|
| 577 |
'layer_callback_list' => $layer_callback_list,
|
|
|
|
| 578 |
), array('id' => $layer_id));
|
| 579 |
}
|
| 580 |
}
|
|
@@ -902,6 +905,7 @@ class WDSControllerSliders_wds {
|
|
| 902 |
'hotspot_animation' => $layer_id->hotspot_animation,
|
| 903 |
'layer_callback_list' => $layer_id->layer_callback_list,
|
| 904 |
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
|
|
|
| 905 |
));
|
| 906 |
}
|
| 907 |
}
|
| 473 |
$google_fonts = ((isset($params_array_layer['google_fonts'])) ? esc_html(stripslashes($params_array_layer['google_fonts'])) : 0);
|
| 474 |
$add_class = ((isset($params_array_layer['add_class'])) ? esc_html(stripslashes($params_array_layer['add_class'])) : '');
|
| 475 |
$layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? esc_html(stripslashes($params_array_layer['layer_callback_list'])) : '');
|
| 476 |
+
$hover_color_text = ((isset($params_array_layer['hover_color_text'])) ? esc_html(stripslashes($params_array_layer['hover_color_text'])) : '');
|
| 477 |
if ($title) {
|
| 478 |
if (strpos($layer_id, 'pr_') !== FALSE) {
|
| 479 |
$save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
|
| 527 |
'hotspot_animation' => 0,
|
| 528 |
'layer_callback_list' => $layer_callback_list,
|
| 529 |
'hotspot_text_display' => 0,
|
| 530 |
+
'hover_color_text' => $hover_color_text,
|
| 531 |
));
|
| 532 |
}
|
| 533 |
else {
|
| 577 |
'google_fonts' => $google_fonts,
|
| 578 |
'add_class' => $add_class,
|
| 579 |
'layer_callback_list' => $layer_callback_list,
|
| 580 |
+
'hover_color_text' => $hover_color_text,
|
| 581 |
), array('id' => $layer_id));
|
| 582 |
}
|
| 583 |
}
|
| 905 |
'hotspot_animation' => $layer_id->hotspot_animation,
|
| 906 |
'layer_callback_list' => $layer_id->layer_callback_list,
|
| 907 |
'hotspot_text_display' => $layer_id->hotspot_text_display,
|
| 908 |
+
'hover_color_text' => $layer_id->hover_color_text,
|
| 909 |
));
|
| 910 |
}
|
| 911 |
}
|
admin/views/WDSViewSliders_wds.php
CHANGED
|
@@ -2319,6 +2319,7 @@ class WDSViewSliders_wds {
|
|
| 2319 |
switch ($layer->type) {
|
| 2320 |
case 'text': {
|
| 2321 |
?>
|
|
|
|
| 2322 |
<span id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" data-type="wds_text_parent" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)"
|
| 2323 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?><?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>; display: inline-block; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; color: #<?php echo $layer->color; ?>; font-size: <?php echo $layer->size; ?>px; line-height: 1.25em; font-family: <?php echo $fonts[$layer->ffamily]; ?>; font-weight: <?php echo $layer->fweight; ?>; padding: <?php echo $layer->padding; ?>; background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
|
| 2324 |
<?php
|
|
@@ -2499,6 +2500,15 @@ class WDSViewSliders_wds {
|
|
| 2499 |
<div class="spider_description"></div>
|
| 2500 |
</td>
|
| 2501 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2502 |
<tr class="wds_layer_tr" >
|
| 2503 |
<td class="spider_label">
|
| 2504 |
<label for="<?php echo $prefix; ?>_ffamily">Font family: </label>
|
| 2319 |
switch ($layer->type) {
|
| 2320 |
case 'text': {
|
| 2321 |
?>
|
| 2322 |
+
<style>#<?php echo $prefix; ?>:hover {color: #<?php echo $layer->hover_color_text; ?> !important;}</style>
|
| 2323 |
<span id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" data-type="wds_text_parent" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)"
|
| 2324 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?><?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>; display: inline-block; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; color: #<?php echo $layer->color; ?>; font-size: <?php echo $layer->size; ?>px; line-height: 1.25em; font-family: <?php echo $fonts[$layer->ffamily]; ?>; font-weight: <?php echo $layer->fweight; ?>; padding: <?php echo $layer->padding; ?>; background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
|
| 2325 |
<?php
|
| 2500 |
<div class="spider_description"></div>
|
| 2501 |
</td>
|
| 2502 |
</tr>
|
| 2503 |
+
<tr class="wds_layer_tr">
|
| 2504 |
+
<td class="spider_label">
|
| 2505 |
+
<label for="<?php echo $prefix; ?>_hover_color_text">Hover Color: </label>
|
| 2506 |
+
</td>
|
| 2507 |
+
<td>
|
| 2508 |
+
<input id="<?php echo $prefix; ?>_hover_color_text" class="color" type="text" onchange="jQuery('#<?php echo $prefix; ?>').hover(function() { jQuery(this).css({color: '#' + jQuery('#<?php echo $prefix; ?>_hover_color_text').val()}); }, function() { jQuery(this).css({color: '#' + jQuery('#<?php echo $prefix; ?>_color').val()}); })" value="<?php echo $layer->hover_color_text; ?>" name="<?php echo $prefix; ?>_hover_color_text" />
|
| 2509 |
+
<div class="spider_description"></div>
|
| 2510 |
+
</td>
|
| 2511 |
+
</tr>
|
| 2512 |
<tr class="wds_layer_tr" >
|
| 2513 |
<td class="spider_label">
|
| 2514 |
<label for="<?php echo $prefix; ?>_ffamily">Font family: </label>
|
js/wds.js
CHANGED
|
@@ -203,6 +203,7 @@ function spider_ajax_save(form_id, event) {
|
|
| 203 |
json_data["border_radius"] = jQuery("#" + prefix + "_border_radius").val();
|
| 204 |
json_data["shadow"] = jQuery("#" + prefix + "_shadow").val();
|
| 205 |
json_data["add_class"] = jQuery("#" + prefix + "_add_class").val();
|
|
|
|
| 206 |
break;
|
| 207 |
}
|
| 208 |
case "image": {
|
|
@@ -1801,6 +1802,7 @@ function wds_duplicate_layer(type, id, layerID, new_id) {
|
|
| 1801 |
jQuery("#" + new_prefix + "_hover_color").val(jQuery("#" + prefix + "_hover_color").val());
|
| 1802 |
jQuery("#" + new_prefix + "_type").val(jQuery("#" + prefix + "_type").val());
|
| 1803 |
jQuery("#" + new_prefix + "_add_class").val(jQuery("#" + prefix + "_add_class").val());
|
|
|
|
| 1804 |
if (jQuery("#" + prefix + "_published1").is(":checked")) {
|
| 1805 |
jQuery("#" + new_prefix + "_published1").attr("checked", "checked");
|
| 1806 |
}
|
|
@@ -1881,6 +1883,7 @@ function wds_duplicate_layer(type, id, layerID, new_id) {
|
|
| 1881 |
"border-radius: " + jQuery("#" + prefix + "_border_radius").val() + ";" +
|
| 1882 |
"position: absolute;"
|
| 1883 |
});
|
|
|
|
| 1884 |
wds_text_width("#" + new_prefix + "_image_width", new_prefix);
|
| 1885 |
wds_text_height("#" + new_prefix + "_image_height", new_prefix);
|
| 1886 |
wds_break_word("#" + new_prefix + "_image_scale", new_prefix);
|
|
@@ -2117,6 +2120,8 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
| 2117 |
'<input type="radio" id="' + prefix + '_published0" name="' + prefix + '_published" value="0" /><label for="' + prefix + '_published0">No</label><div class="spider_description"></div></td>';
|
| 2118 |
var color = '<td class="spider_label"><label for="' + prefix + '_color">Color: </label></td>' +
|
| 2119 |
'<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>';
|
|
|
|
|
|
|
| 2120 |
var size = '<td class="spider_label"><label for="' + prefix + '_size">Size: </label></td>' +
|
| 2121 |
'<td><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<div class="spider_description"></div></td>';
|
| 2122 |
var ffamily = '<td class="spider_label"><label for="' + prefix + '_ffamily">Font family: </label></td>' +
|
|
@@ -2223,6 +2228,8 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
|
|
| 2223 |
size +
|
| 2224 |
'</tr><tr class="wds_layer_tr">' +
|
| 2225 |
color +
|
|
|
|
|
|
|
| 2226 |
'</tr><tr class="wds_layer_tr">' +
|
| 2227 |
ffamily +
|
| 2228 |
'</tr><tr class="wds_layer_tr">' +
|
| 203 |
json_data["border_radius"] = jQuery("#" + prefix + "_border_radius").val();
|
| 204 |
json_data["shadow"] = jQuery("#" + prefix + "_shadow").val();
|
| 205 |
json_data["add_class"] = jQuery("#" + prefix + "_add_class").val();
|
| 206 |
+
json_data["hover_color_text"] = jQuery("#" + prefix + "_hover_color_text").val();
|
| 207 |
break;
|
| 208 |
}
|
| 209 |
case "image": {
|
| 1802 |
jQuery("#" + new_prefix + "_hover_color").val(jQuery("#" + prefix + "_hover_color").val());
|
| 1803 |
jQuery("#" + new_prefix + "_type").val(jQuery("#" + prefix + "_type").val());
|
| 1804 |
jQuery("#" + new_prefix + "_add_class").val(jQuery("#" + prefix + "_add_class").val());
|
| 1805 |
+
jQuery("#" + new_prefix + "hover_color_text").val(jQuery("#" + prefix + "_hover_color_text").val());
|
| 1806 |
if (jQuery("#" + prefix + "_published1").is(":checked")) {
|
| 1807 |
jQuery("#" + new_prefix + "_published1").attr("checked", "checked");
|
| 1808 |
}
|
| 1883 |
"border-radius: " + jQuery("#" + prefix + "_border_radius").val() + ";" +
|
| 1884 |
"position: absolute;"
|
| 1885 |
});
|
| 1886 |
+
jQuery("#" + new_prefix).hover(function() { jQuery(this).css("color", jQuery("#" + prefix + "_hover_color_text").val()); }, function() { jQuery(this).css("color", jQuery("#" + prefix + "_color").val()); });
|
| 1887 |
wds_text_width("#" + new_prefix + "_image_width", new_prefix);
|
| 1888 |
wds_text_height("#" + new_prefix + "_image_height", new_prefix);
|
| 1889 |
wds_break_word("#" + new_prefix + "_image_scale", new_prefix);
|
| 2120 |
'<input type="radio" id="' + prefix + '_published0" name="' + prefix + '_published" value="0" /><label for="' + prefix + '_published0">No</label><div class="spider_description"></div></td>';
|
| 2121 |
var color = '<td class="spider_label"><label for="' + prefix + '_color">Color: </label></td>' +
|
| 2122 |
'<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>';
|
| 2123 |
+
var hover_color_text = '<td class="spider_label"><label for="' + prefix + '_hover_color_text">Hover Color: </label></td>' +
|
| 2124 |
+
'<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>';
|
| 2125 |
var size = '<td class="spider_label"><label for="' + prefix + '_size">Size: </label></td>' +
|
| 2126 |
'<td><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<div class="spider_description"></div></td>';
|
| 2127 |
var ffamily = '<td class="spider_label"><label for="' + prefix + '_ffamily">Font family: </label></td>' +
|
| 2228 |
size +
|
| 2229 |
'</tr><tr class="wds_layer_tr">' +
|
| 2230 |
color +
|
| 2231 |
+
'</tr><tr class="wds_layer_tr">' +
|
| 2232 |
+
hover_color_text +
|
| 2233 |
'</tr><tr class="wds_layer_tr">' +
|
| 2234 |
ffamily +
|
| 2235 |
'</tr><tr class="wds_layer_tr">' +
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
|
|
| 4 |
Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.5
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -160,6 +160,9 @@ After downloading the ZIP file of the slider plugin,
|
|
| 160 |
|
| 161 |
== Changelog ==
|
| 162 |
|
|
|
|
|
|
|
|
|
|
| 163 |
= 1.1.40 =
|
| 164 |
* Fixed: Link the slide in carousel view.
|
| 165 |
* Fixed: Specialchars in text layer.
|
| 4 |
Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
|
| 5 |
Requires at least: 3.4
|
| 6 |
Tested up to: 4.5
|
| 7 |
+
Stable tag: 1.1.41
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 160 |
|
| 161 |
== Changelog ==
|
| 162 |
|
| 163 |
+
= 1.1.41 =
|
| 164 |
+
* Added: Hover color for text layer
|
| 165 |
+
|
| 166 |
= 1.1.40 =
|
| 167 |
* Fixed: Link the slide in carousel view.
|
| 168 |
* Fixed: Specialchars in text layer.
|
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.41
|
| 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.41');
|
| 18 |
|
| 19 |
function wds_use_home_url() {
|
| 20 |
$home_url = str_replace("http://", "", home_url());
|
sliders-insert.php
CHANGED
|
@@ -186,6 +186,7 @@ function wds_insert() {
|
|
| 186 |
`hotspot_animation` tinyint(1) NOT NULL,
|
| 187 |
`layer_callback_list` varchar(32) NOT NULL,
|
| 188 |
`hotspot_text_display` varchar(8) NOT NULL,
|
|
|
|
| 189 |
PRIMARY KEY (`id`)
|
| 190 |
) DEFAULT CHARSET=utf8;";
|
| 191 |
$wpdb->query($wdslayer);
|
| 186 |
`hotspot_animation` tinyint(1) NOT NULL,
|
| 187 |
`layer_callback_list` varchar(32) NOT NULL,
|
| 188 |
`hotspot_text_display` varchar(8) NOT NULL,
|
| 189 |
+
`hover_color_text` varchar(8) NOT NULL,
|
| 190 |
PRIMARY KEY (`id`)
|
| 191 |
) DEFAULT CHARSET=utf8;";
|
| 192 |
$wpdb->query($wdslayer);
|
sliders-update.php
CHANGED
|
@@ -134,8 +134,11 @@ function wds_update($version) {
|
|
| 134 |
if (version_compare($version, '1.1.29') == -1) {
|
| 135 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `layer_callback_list` varchar(32) NOT NULL DEFAULT ''");
|
| 136 |
}
|
| 137 |
-
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
| 139 |
}
|
| 140 |
return;
|
| 141 |
}
|
| 134 |
if (version_compare($version, '1.1.29') == -1) {
|
| 135 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `layer_callback_list` varchar(32) NOT NULL DEFAULT ''");
|
| 136 |
}
|
| 137 |
+
if (version_compare($version, '1.1.32') == -1) {
|
| 138 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotspot_text_display` varchar(8) NOT NULL DEFAULT 'hover'");
|
| 139 |
+
}
|
| 140 |
+
if (version_compare($version, '1.1.41') == -1) {
|
| 141 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hover_color_text` varchar(8) NOT NULL DEFAULT ''");
|
| 142 |
}
|
| 143 |
return;
|
| 144 |
}
|
