Version Description
- Changed: UploadHandler class name to prevent conflict with some themes.
- Fixed: Layer styles conflict with some themes.
- Changed: Dutch translations by Piet Kok.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.59 |
Comparing to | |
See all releases |
Code changes from version 1.1.58 to 1.1.59
- filemanager/UploadHandler.php +2 -2
- frontend/views/WDSViewSlider.php +42 -17
- languages/wds-nl_NL.mo +0 -0
- languages/wds-nl_NL.po +6 -6
- readme.txt +7 -1
- slider-wd.php +2 -2
filemanager/UploadHandler.php
CHANGED
@@ -22,12 +22,12 @@ else {
|
|
22 |
require_once(WD_S_DIR . '/filemanager/controller.php');
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
-
$upload_handler = new
|
26 |
'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : ''),
|
27 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
28 |
));
|
29 |
|
30 |
-
class
|
31 |
protected $options;
|
32 |
// PHP File Upload error message codes:
|
33 |
// http://php.net/manual/en/features.file-upload.errors.php
|
22 |
require_once(WD_S_DIR . '/filemanager/controller.php');
|
23 |
$controller = new FilemanagerController();
|
24 |
|
25 |
+
$upload_handler = new wds_UploadHandler(array(
|
26 |
'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : ''),
|
27 |
'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
|
28 |
));
|
29 |
|
30 |
+
class wds_UploadHandler {
|
31 |
protected $options;
|
32 |
// PHP File Upload error message codes:
|
33 |
// http://php.net/manual/en/features.file-upload.errors.php
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -733,6 +733,48 @@ class WDSViewSlider {
|
|
733 |
}
|
734 |
?>
|
735 |
<?php echo $slider_row->css; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
</style>
|
737 |
<script>
|
738 |
var wds_data_<?php echo $wds; ?> = [];
|
@@ -899,17 +941,6 @@ class WDSViewSlider {
|
|
899 |
switch ($layer->type) {
|
900 |
case 'text': {
|
901 |
?>
|
902 |
-
<style>
|
903 |
-
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #<?php echo $prefix; ?> {
|
904 |
-
font-size: <?php echo $layer->size; ?>px;
|
905 |
-
line-height: 1.25em;
|
906 |
-
padding: <?php echo $layer->padding; ?>;
|
907 |
-
}
|
908 |
-
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_layer_<?php echo $layer->id; ?>{
|
909 |
-
opacity: <?php echo ($layer->layer_effect_in != 'none') ? '0 !important' : '1'; ?>;
|
910 |
-
filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
|
911 |
-
}
|
912 |
-
</style>
|
913 |
<span class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" data-type="wds_text_parent" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
|
914 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
915 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
@@ -936,12 +967,6 @@ class WDSViewSlider {
|
|
936 |
}
|
937 |
case 'image': {
|
938 |
?>
|
939 |
-
<style>
|
940 |
-
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_layer_<?php echo $layer->id; ?>{
|
941 |
-
opacity: <?php echo ($layer->layer_effect_in != 'none') ? '0 !important' : '1'; ?>;
|
942 |
-
filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
|
943 |
-
}
|
944 |
-
</style>
|
945 |
<img class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" id="<?php echo $prefix; ?>" src="<?php echo $layer->image_url; ?>"
|
946 |
style="<?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
|
947 |
opacity: <?php echo number_format((100 - $layer->imgtransparent) / 100, 2, ".", ""); ?>;
|
733 |
}
|
734 |
?>
|
735 |
<?php echo $slider_row->css; ?>
|
736 |
+
<?php
|
737 |
+
foreach ($slide_rows as $key => $slide_row) {
|
738 |
+
$layers_row = $this->model->get_layers_row_data($slide_row->id);
|
739 |
+
if ($layers_row) {
|
740 |
+
foreach ($layers_row as $key => $layer) {
|
741 |
+
if ($layer->published) {
|
742 |
+
$prefix = 'wds_' . $wds . '_slide' . $slide_row->id . '_layer' . $layer->id;
|
743 |
+
switch ($layer->type) {
|
744 |
+
case 'text': {
|
745 |
+
?>
|
746 |
+
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #<?php echo $prefix; ?> {
|
747 |
+
font-size: <?php echo $layer->size; ?>px;
|
748 |
+
line-height: 1.25em;
|
749 |
+
padding: <?php echo $layer->padding; ?>;
|
750 |
+
}
|
751 |
+
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_layer_<?php echo $layer->id; ?>{
|
752 |
+
opacity: <?php echo ($layer->layer_effect_in != 'none') ? '0 !important' : '1'; ?>;
|
753 |
+
filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
|
754 |
+
}
|
755 |
+
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> #<?php echo $prefix; ?>:hover {
|
756 |
+
color: #<?php echo $layer->hover_color_text; ?> !important;
|
757 |
+
}
|
758 |
+
<?php
|
759 |
+
break;
|
760 |
+
}
|
761 |
+
case 'image': {
|
762 |
+
?>
|
763 |
+
#wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_layer_<?php echo $layer->id; ?>{
|
764 |
+
opacity: <?php echo ($layer->layer_effect_in != 'none') ? '0 !important' : '1'; ?>;
|
765 |
+
filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
|
766 |
+
}
|
767 |
+
<?php
|
768 |
+
break;
|
769 |
+
}
|
770 |
+
default:
|
771 |
+
break;
|
772 |
+
}
|
773 |
+
}
|
774 |
+
}
|
775 |
+
}
|
776 |
+
}
|
777 |
+
?>
|
778 |
</style>
|
779 |
<script>
|
780 |
var wds_data_<?php echo $wds; ?> = [];
|
941 |
switch ($layer->type) {
|
942 |
case 'text': {
|
943 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
944 |
<span class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" data-type="wds_text_parent" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
|
945 |
style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
|
946 |
<?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
|
967 |
}
|
968 |
case 'image': {
|
969 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
970 |
<img class="wds_layer_<?php echo $layer->id; ?>" data-class="<?php echo $layer_add_class; ?>" id="<?php echo $prefix; ?>" src="<?php echo $layer->image_url; ?>"
|
971 |
style="<?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
|
972 |
opacity: <?php echo number_format((100 - $layer->imgtransparent) / 100, 2, ".", ""); ?>;
|
languages/wds-nl_NL.mo
CHANGED
Binary file
|
languages/wds-nl_NL.po
CHANGED
@@ -2,27 +2,27 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: wds\n"
|
4 |
"POT-Creation-Date: 2014-09-26 17:57+0400\n"
|
5 |
-
"PO-Revision-Date: 2016-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: nl\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __\n"
|
16 |
-
"X-Poedit-SearchPath-0: C
|
17 |
-
"
|
18 |
|
19 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:30
|
20 |
msgid "There is no slider selected or the slider was deleted."
|
21 |
-
msgstr "Er is geen
|
22 |
|
23 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:42
|
24 |
msgid "There are no slides in this slider."
|
25 |
-
msgstr "Er staan geen afbeeldingen in deze
|
26 |
|
27 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:660
|
28 |
msgid "Share on Facebook"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: wds\n"
|
4 |
"POT-Creation-Date: 2014-09-26 17:57+0400\n"
|
5 |
+
"PO-Revision-Date: 2016-11-15 21:03+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: nl\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.11\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: __\n"
|
16 |
+
"X-Poedit-SearchPath-0: C:/wamp/www/wordpress3.5/wp-content/plugins/"
|
17 |
+
"slider-plugin\n"
|
18 |
|
19 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:30
|
20 |
msgid "There is no slider selected or the slider was deleted."
|
21 |
+
msgstr "Er is geen galerij geselecteerd, of de galerij is verwijderd."
|
22 |
|
23 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:42
|
24 |
msgid "There are no slides in this slider."
|
25 |
+
msgstr "Er staan geen afbeeldingen in deze galerij"
|
26 |
|
27 |
#: C:\wamp\www\wordpress3.5\wp-content\plugins\slider-plugin/frontend/views/WDSViewSlider.php:660
|
28 |
msgid "Share on Facebook"
|
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 |
|
@@ -125,6 +125,12 @@ After downloading the ZIP file of the slider plugin,
|
|
125 |
|
126 |
== Changelog ==
|
127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
= 1.1.58 =
|
129 |
* Added: Link to slide.
|
130 |
* Fixed: Click action for carousel view.
|
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.59
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
125 |
|
126 |
== Changelog ==
|
127 |
|
128 |
+
= 1.1.59 =
|
129 |
+
* Changed: UploadHandler class name to prevent conflict with some themes.
|
130 |
+
* Fixed: Layer styles conflict with some themes.
|
131 |
+
* Changed: Dutch translations by Piet Kok.
|
132 |
+
|
133 |
+
|
134 |
= 1.1.58 =
|
135 |
* Added: Link to slide.
|
136 |
* Fixed: Click action for carousel view.
|
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.59
|
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.59');
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|