Version Description
- Added: Option to hide slider on mobile.
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.1.52 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.51 to 1.1.52
- admin/controllers/WDSControllerSliders_wds.php +3 -0
- admin/models/WDSModelSliders_wds.php +1 -0
- admin/views/WDSViewSliders_wds.php +8 -1
- filemanager/view.php +1 -1
- frontend/views/WDSViewSlider.php +19 -5
- images/ajax_loader_back.gif +0 -0
- js/wds.js +1 -0
- readme.txt +4 -1
- slider-wd.php +2 -2
- sliders-insert.php +1 -0
- sliders-update.php +8 -5
admin/controllers/WDSControllerSliders_wds.php
CHANGED
|
@@ -218,6 +218,7 @@ class WDSControllerSliders_wds {
|
|
| 218 |
$possib_add_google_fonts = ((isset($params_array['possib_add_google_fonts'])) ? (int) esc_html(stripslashes($params_array['possib_add_google_fonts'])) : 0);
|
| 219 |
$possib_add_ffamily_google = ((isset($params_array['possib_add_ffamily_google'])) ? esc_html(stripslashes($params_array['possib_add_ffamily_google'])) : '');
|
| 220 |
$slider_loop = ((isset($params_array['slider_loop'])) ? (int) esc_html(stripslashes($params_array['slider_loop'])) : 1);
|
|
|
|
| 221 |
$data = array(
|
| 222 |
'name' => $name,
|
| 223 |
'published' => $published,
|
|
@@ -330,6 +331,7 @@ class WDSControllerSliders_wds {
|
|
| 330 |
'possib_add_google_fonts' => $possib_add_google_fonts,
|
| 331 |
'possib_add_ffamily_google' => $possib_add_ffamily_google,
|
| 332 |
'slider_loop' => $slider_loop,
|
|
|
|
| 333 |
);
|
| 334 |
|
| 335 |
if (!$slider_id) {
|
|
@@ -836,6 +838,7 @@ class WDSControllerSliders_wds {
|
|
| 836 |
'bull_hover' => $slider_row->bull_hover,
|
| 837 |
'show_thumbnail' => $slider_row->show_thumbnail,
|
| 838 |
'thumb_size' => $slider_row->thumb_size,
|
|
|
|
| 839 |
));
|
| 840 |
$new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
| 841 |
|
| 218 |
$possib_add_google_fonts = ((isset($params_array['possib_add_google_fonts'])) ? (int) esc_html(stripslashes($params_array['possib_add_google_fonts'])) : 0);
|
| 219 |
$possib_add_ffamily_google = ((isset($params_array['possib_add_ffamily_google'])) ? esc_html(stripslashes($params_array['possib_add_ffamily_google'])) : '');
|
| 220 |
$slider_loop = ((isset($params_array['slider_loop'])) ? (int) esc_html(stripslashes($params_array['slider_loop'])) : 1);
|
| 221 |
+
$hide_on_mobile = ((isset($params_array['hide_on_mobile'])) ? (int) esc_html(stripslashes($params_array['hide_on_mobile'])) : 0);
|
| 222 |
$data = array(
|
| 223 |
'name' => $name,
|
| 224 |
'published' => $published,
|
| 331 |
'possib_add_google_fonts' => $possib_add_google_fonts,
|
| 332 |
'possib_add_ffamily_google' => $possib_add_ffamily_google,
|
| 333 |
'slider_loop' => $slider_loop,
|
| 334 |
+
'hide_on_mobile' => $hide_on_mobile,
|
| 335 |
);
|
| 336 |
|
| 337 |
if (!$slider_id) {
|
| 838 |
'bull_hover' => $slider_row->bull_hover,
|
| 839 |
'show_thumbnail' => $slider_row->show_thumbnail,
|
| 840 |
'thumb_size' => $slider_row->thumb_size,
|
| 841 |
+
'hide_on_mobile' => $slider_row->hide_on_mobile,
|
| 842 |
));
|
| 843 |
$new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
|
| 844 |
|
admin/models/WDSModelSliders_wds.php
CHANGED
|
@@ -233,6 +233,7 @@ class WDSModelSliders_wds {
|
|
| 233 |
$row->possib_add_google_fonts = 0;
|
| 234 |
$row->possib_add_ffamily_google = '';
|
| 235 |
$row->slider_loop = 1;
|
|
|
|
| 236 |
}
|
| 237 |
return $row;
|
| 238 |
}
|
| 233 |
$row->possib_add_google_fonts = 0;
|
| 234 |
$row->possib_add_ffamily_google = '';
|
| 235 |
$row->slider_loop = 1;
|
| 236 |
+
$row->hide_on_mobile = 0;
|
| 237 |
}
|
| 238 |
return $row;
|
| 239 |
}
|
admin/views/WDSViewSliders_wds.php
CHANGED
|
@@ -553,7 +553,7 @@ class WDSViewSliders_wds {
|
|
| 553 |
<div class="spider_message_cont"></div>
|
| 554 |
<div class="spider_load">
|
| 555 |
<div class="spider_load_cont"></div>
|
| 556 |
-
<div class="spider_load_icon"><img class="spider_ajax_loading" src="<?php echo WD_S_URL . '/images/
|
| 557 |
</div>
|
| 558 |
<div style="clear: both; float: left; width: 99%;">
|
| 559 |
<div style="float: left; font-size: 14px; font-weight: bold;">
|
|
@@ -678,6 +678,13 @@ class WDSViewSliders_wds {
|
|
| 678 |
<div class="spider_description">Maximum width and height for slider.</div>
|
| 679 |
</td>
|
| 680 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 681 |
<tr>
|
| 682 |
<td class="spider_label"><label>Full width: </label></td>
|
| 683 |
<td>
|
| 553 |
<div class="spider_message_cont"></div>
|
| 554 |
<div class="spider_load">
|
| 555 |
<div class="spider_load_cont"></div>
|
| 556 |
+
<div class="spider_load_icon"><img class="spider_ajax_loading" src="<?php echo WD_S_URL . '/images/ajax_loader_back.gif'; ?>"></div>
|
| 557 |
</div>
|
| 558 |
<div style="clear: both; float: left; width: 99%;">
|
| 559 |
<div style="float: left; font-size: 14px; font-weight: bold;">
|
| 678 |
<div class="spider_description">Maximum width and height for slider.</div>
|
| 679 |
</td>
|
| 680 |
</tr>
|
| 681 |
+
<tr>
|
| 682 |
+
<td class="spider_label"><label>Hide on small screens: </label></td>
|
| 683 |
+
<td>
|
| 684 |
+
<input type="text" id="hide_on_mobile" name="hide_on_mobile" value="<?php echo $row->hide_on_mobile; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> px
|
| 685 |
+
<div class="spider_description">Hide slider when resolution is smaller than</div>
|
| 686 |
+
</td>
|
| 687 |
+
</tr>
|
| 688 |
<tr>
|
| 689 |
<td class="spider_label"><label>Full width: </label></td>
|
| 690 |
<td>
|
filemanager/view.php
CHANGED
|
@@ -101,7 +101,7 @@ class FilemanagerView {
|
|
| 101 |
<div id="wrapper">
|
| 102 |
<div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
| 103 |
<div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
| 104 |
-
<img src="<?php echo WD_S_URL . '/images/
|
| 105 |
</div>
|
| 106 |
<div id="file_manager">
|
| 107 |
<div class="ctrls_bar ctrls_bar_header">
|
| 101 |
<div id="wrapper">
|
| 102 |
<div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
| 103 |
<div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
| 104 |
+
<img src="<?php echo WD_S_URL . '/images/ajax_loader_back.gif'; ?>" class="spider_ajax_loading">
|
| 105 |
</div>
|
| 106 |
<div id="file_manager">
|
| 107 |
<div class="ctrls_bar ctrls_bar_header">
|
frontend/views/WDSViewSlider.php
CHANGED
|
@@ -155,6 +155,7 @@ class WDSViewSlider {
|
|
| 155 |
$slider_loop = isset($slider_row->slider_loop) ? $slider_row->slider_loop : 1;
|
| 156 |
|
| 157 |
$current_image_url = '';
|
|
|
|
| 158 |
?>
|
| 159 |
<style>
|
| 160 |
.wds_bigplay_<?php echo $wds; ?>,
|
|
@@ -721,6 +722,17 @@ class WDSViewSlider {
|
|
| 721 |
text-align: center;
|
| 722 |
overflow: hidden;
|
| 723 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 724 |
<?php echo $slider_row->css; ?>
|
| 725 |
</style>
|
| 726 |
<script>
|
|
@@ -1773,12 +1785,14 @@ class WDSViewSlider {
|
|
| 1773 |
}
|
| 1774 |
var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
|
| 1775 |
if (typeof reltg != "undefined") {
|
| 1776 |
-
if (
|
| 1777 |
-
|
| 1778 |
-
|
| 1779 |
-
|
|
|
|
|
|
|
|
|
|
| 1780 |
}
|
| 1781 |
-
reltg = reltg.parentNode;
|
| 1782 |
}
|
| 1783 |
}
|
| 1784 |
}
|
| 155 |
$slider_loop = isset($slider_row->slider_loop) ? $slider_row->slider_loop : 1;
|
| 156 |
|
| 157 |
$current_image_url = '';
|
| 158 |
+
$hide_on_mobile = (isset($slider_row->hide_on_mobile) ? $slider_row->hide_on_mobile : 0);
|
| 159 |
?>
|
| 160 |
<style>
|
| 161 |
.wds_bigplay_<?php echo $wds; ?>,
|
| 722 |
text-align: center;
|
| 723 |
overflow: hidden;
|
| 724 |
}
|
| 725 |
+
<?php
|
| 726 |
+
if ($hide_on_mobile) {
|
| 727 |
+
?>
|
| 728 |
+
@media screen and (max-width: <?php echo $hide_on_mobile; ?>px){
|
| 729 |
+
#wds_container1_<?php echo $wds; ?> {
|
| 730 |
+
display: none;
|
| 731 |
+
}
|
| 732 |
+
}
|
| 733 |
+
<?php
|
| 734 |
+
}
|
| 735 |
+
?>
|
| 736 |
<?php echo $slider_row->css; ?>
|
| 737 |
</style>
|
| 738 |
<script>
|
| 1785 |
}
|
| 1786 |
var reltg = (e.relatedTarget) ? e.relatedTarget : e.toElement;
|
| 1787 |
if (typeof reltg != "undefined") {
|
| 1788 |
+
if (reltg != null) {
|
| 1789 |
+
if (typeof reltg.tagName != "undefined") {
|
| 1790 |
+
while (reltg.tagName != 'BODY') {
|
| 1791 |
+
if (reltg.id == this.id){
|
| 1792 |
+
return;
|
| 1793 |
+
}
|
| 1794 |
+
reltg = reltg.parentNode;
|
| 1795 |
}
|
|
|
|
| 1796 |
}
|
| 1797 |
}
|
| 1798 |
}
|
images/ajax_loader_back.gif
ADDED
|
Binary file
|
js/wds.js
CHANGED
|
@@ -55,6 +55,7 @@ function spider_ajax_save(form_id, event) {
|
|
| 55 |
slider_data["carousel_grayscale"] = jQuery("#carousel_grayscale").val();
|
| 56 |
slider_data["carousel_transparency"] = jQuery("#carousel_transparency").val();
|
| 57 |
slider_data["slider_loop"] = jQuery("input[name=slider_loop]:checked").val();
|
|
|
|
| 58 |
|
| 59 |
/* Navigation.*/
|
| 60 |
slider_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
|
| 55 |
slider_data["carousel_grayscale"] = jQuery("#carousel_grayscale").val();
|
| 56 |
slider_data["carousel_transparency"] = jQuery("#carousel_transparency").val();
|
| 57 |
slider_data["slider_loop"] = jQuery("input[name=slider_loop]:checked").val();
|
| 58 |
+
slider_data["hide_on_mobile"] = jQuery("#hide_on_mobile").val();
|
| 59 |
|
| 60 |
/* Navigation.*/
|
| 61 |
slider_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
|
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.6
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -122,6 +122,9 @@ After downloading the ZIP file of the slider plugin,
|
|
| 122 |
|
| 123 |
== Changelog ==
|
| 124 |
|
|
|
|
|
|
|
|
|
|
| 125 |
= 1.1.51 =
|
| 126 |
* Fixed: Active thumbnail in carousel view.
|
| 127 |
* Changed: Loading gif.
|
| 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.6
|
| 7 |
+
Stable tag: 1.1.52
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 122 |
|
| 123 |
== Changelog ==
|
| 124 |
|
| 125 |
+
= 1.1.52 =
|
| 126 |
+
* Added: Option to hide slider on mobile.
|
| 127 |
+
|
| 128 |
= 1.1.51 =
|
| 129 |
* Fixed: Active thumbnail in carousel view.
|
| 130 |
* Changed: Loading gif.
|
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.52
|
| 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.52');
|
| 18 |
|
| 19 |
function wds_use_home_url() {
|
| 20 |
$home_url = str_replace("http://", "", home_url());
|
sliders-insert.php
CHANGED
|
@@ -115,6 +115,7 @@ function wds_insert() {
|
|
| 115 |
`possib_add_google_fonts` tinyint(1) NOT NULL,
|
| 116 |
`possib_add_ffamily_google` varchar(255) NOT NULL,
|
| 117 |
`slider_loop` tinyint(1) NOT NULL,
|
|
|
|
| 118 |
PRIMARY KEY (`id`)
|
| 119 |
) DEFAULT CHARSET=utf8;";
|
| 120 |
$wpdb->query($wdsslider);
|
| 115 |
`possib_add_google_fonts` tinyint(1) NOT NULL,
|
| 116 |
`possib_add_ffamily_google` varchar(255) NOT NULL,
|
| 117 |
`slider_loop` tinyint(1) NOT NULL,
|
| 118 |
+
`hide_on_mobile` int(4) NOT NULL,
|
| 119 |
PRIMARY KEY (`id`)
|
| 120 |
) DEFAULT CHARSET=utf8;";
|
| 121 |
$wpdb->query($wdsslider);
|
sliders-update.php
CHANGED
|
@@ -128,21 +128,24 @@ function wds_update($version) {
|
|
| 128 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `possib_add_google_fonts` tinyint(1) NOT NULL DEFAULT 0");
|
| 129 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `possib_add_ffamily_google` varchar(255) NOT NULL DEFAULT ''");
|
| 130 |
}
|
| 131 |
-
if (version_compare($version, '1.1.28') == -1) {
|
| 132 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `slider_loop` tinyint(1) NOT NULL DEFAULT 1");
|
| 133 |
}
|
| 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 |
-
if (version_compare($version, '1.1.49') == -1) {
|
| 144 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `text_alignment` varchar(8) NOT NULL DEFAULT 'center'");
|
| 145 |
}
|
|
|
|
|
|
|
|
|
|
| 146 |
return;
|
| 147 |
}
|
| 148 |
|
| 128 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `possib_add_google_fonts` tinyint(1) NOT NULL DEFAULT 0");
|
| 129 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `possib_add_ffamily_google` varchar(255) NOT NULL DEFAULT ''");
|
| 130 |
}
|
| 131 |
+
if (version_compare($version, '1.1.28') == -1) {
|
| 132 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `slider_loop` tinyint(1) NOT NULL DEFAULT 1");
|
| 133 |
}
|
| 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 |
+
if (version_compare($version, '1.1.49') == -1) {
|
| 144 |
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `text_alignment` varchar(8) NOT NULL DEFAULT 'center'");
|
| 145 |
}
|
| 146 |
+
if (version_compare($version, '1.1.52') == -1) {
|
| 147 |
+
$wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `hide_on_mobile` int(4) NOT NULL DEFAULT 0");
|
| 148 |
+
}
|
| 149 |
return;
|
| 150 |
}
|
| 151 |
|
