Version Description
- Fixed: Bug with Wordpress 5.4
- Fixed: Automatically mute all videos with enabled autoplay.
Download this release
Release Info
Developer | 10web |
Plugin | Slider by WD – Responsive Slider |
Version | 1.2.33 |
Comparing to | |
See all releases |
Code changes from version 1.2.32 to 1.2.33
- admin/controllers/Sliders.php +2 -0
- admin/views/Sliders.php +8 -0
- frontend/views/WDSViewSlider.php +1 -1
- js/wds.js +15 -0
- readme.txt +5 -1
- slider-wd.php +9 -9
- sliders-insert.php +1 -0
- sliders-update.php +3 -0
admin/controllers/Sliders.php
CHANGED
@@ -674,6 +674,7 @@ class SlidersController_wds {
|
|
674 |
$video_duration = WDW_S_Library::esc_sanitize_data($params_array, 'video_duration' . $slide_id, 'sanitize_text_field');
|
675 |
$youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WDS()->is_free) ? (int) WDW_S_Library::esc_sanitize_data($params_array, 'youtube_rel_video' . $slide_id, 'sanitize_text_field', 0) : 0);
|
676 |
$video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WDS()->is_free) ? (int) WDW_S_Library::esc_sanitize_data($params_array, 'video_loop' . $slide_id, '', 1) : 0);
|
|
|
677 |
$fillmode = WDW_S_Library::esc_sanitize_data($params_array, 'fillmode' . $slide_id, 'sanitize_text_field');
|
678 |
$title_dimension = array();
|
679 |
$title_dimension['title'] = $title;
|
@@ -693,6 +694,7 @@ class SlidersController_wds {
|
|
693 |
'target_attr_slide' => $target_attr_slide,
|
694 |
'youtube_rel_video' => $youtube_rel_video,
|
695 |
'video_loop' => $video_loop,
|
|
|
696 |
'fillmode' => $fillmode
|
697 |
);
|
698 |
if (strpos($slide_id, 'pr') !== FALSE || $save_as_copy) {
|
674 |
$video_duration = WDW_S_Library::esc_sanitize_data($params_array, 'video_duration' . $slide_id, 'sanitize_text_field');
|
675 |
$youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WDS()->is_free) ? (int) WDW_S_Library::esc_sanitize_data($params_array, 'youtube_rel_video' . $slide_id, 'sanitize_text_field', 0) : 0);
|
676 |
$video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WDS()->is_free) ? (int) WDW_S_Library::esc_sanitize_data($params_array, 'video_loop' . $slide_id, '', 1) : 0);
|
677 |
+
$mute = ((isset($params_array['mute' . $slide_id])) ? (int) WDW_S_Library::esc_sanitize_data($params_array, 'mute' . $slide_id, '', 1) : 0);
|
678 |
$fillmode = WDW_S_Library::esc_sanitize_data($params_array, 'fillmode' . $slide_id, 'sanitize_text_field');
|
679 |
$title_dimension = array();
|
680 |
$title_dimension['title'] = $title;
|
694 |
'target_attr_slide' => $target_attr_slide,
|
695 |
'youtube_rel_video' => $youtube_rel_video,
|
696 |
'video_loop' => $video_loop,
|
697 |
+
'mute' => $mute,
|
698 |
'fillmode' => $fillmode
|
699 |
);
|
700 |
if (strpos($slide_id, 'pr') !== FALSE || $save_as_copy) {
|
admin/views/Sliders.php
CHANGED
@@ -2010,6 +2010,14 @@ class SlidersView_wds extends AdminView_wds {
|
|
2010 |
<label <?php echo (($slide_row->video_loop) ? '' : 'class="selected_color"'); ?> for="video_loop<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
2011 |
<p class="description"></p>
|
2012 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013 |
<div class="wd-group" id="trlink<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'image' ? '' : 'style="display: none;"'; ?>>
|
2014 |
<label class="wd-label" for="link<?php echo $slide_row->id; ?>"><?php _e('Link the slide to', WDS()->prefix); ?></label>
|
2015 |
<input class="wds_external_link" id="link<?php echo $slide_row->id; ?>" type="text" value="<?php echo $slide_row->link; ?>" name="link<?php echo $slide_row->id; ?>" />
|
2010 |
<label <?php echo (($slide_row->video_loop) ? '' : 'class="selected_color"'); ?> for="video_loop<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
2011 |
<p class="description"></p>
|
2012 |
</div>
|
2013 |
+
<div class="wd-group" id="mute<?php echo $slide_row->id; ?>" <?php echo ($slide_row->type == 'video' || $slide_row->type == 'EMBED_OEMBED_VIMEO_VIDEO') ? '' : 'style="display: none;"'; ?>>
|
2014 |
+
<label class="wd-label"><?php _e('Mute', WDS()->prefix); ?></label>
|
2015 |
+
<input type="radio" id="mute<?php echo $slide_row->id; ?>1" name="mute<?php echo $slide_row->id; ?>" <?php echo (($slide_row->mute) ? 'checked="checked"' : ''); ?> value="1" />
|
2016 |
+
<label <?php echo (($slide_row->mute) ? 'class="selected_color"' : ''); ?> for="mute<?php echo $slide_row->id; ?>1"><?php _e('Yes', WDS()->prefix); ?></label>
|
2017 |
+
<input type="radio" id="mute<?php echo $slide_row->id; ?>0" name="mute<?php echo $slide_row->id; ?>" <?php echo (($slide_row->mute) ? '' : 'checked="checked"'); ?> value="0" />
|
2018 |
+
<label <?php echo (($slide_row->mute) ? '' : 'class="selected_color"'); ?> for="mute<?php echo $slide_row->id; ?>0"><?php _e('No', WDS()->prefix); ?></label>
|
2019 |
+
<p class="description"></p>
|
2020 |
+
</div>
|
2021 |
<div class="wd-group" id="trlink<?php echo $slide_row->id; ?>" <?php echo $slide_row->type == 'image' ? '' : 'style="display: none;"'; ?>>
|
2022 |
<label class="wd-label" for="link<?php echo $slide_row->id; ?>"><?php _e('Link the slide to', WDS()->prefix); ?></label>
|
2023 |
<input class="wds_external_link" id="link<?php echo $slide_row->id; ?>" type="text" value="<?php echo $slide_row->link; ?>" name="link<?php echo $slide_row->id; ?>" />
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -271,7 +271,7 @@ class WDSViewSlider {
|
|
271 |
<span style="display:<?php echo ($slide_row->link)?'block':'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause(<?php echo $wds; ?>, wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>)" >
|
272 |
<span class="wds_bigplay_<?php echo $wds; ?> <?php echo ($slide_row->target_attr_slide)? 'wds_hide':'' ?>"></span>
|
273 |
</span>
|
274 |
-
<video poster="<?php echo WDS()->plugin_url . '/images/blank.gif' ?>" style="background-image: url('<?php echo !empty($thumb_url) ? $thumb_url : $no_video_image ?>');" <?php echo isset($slide_row->video_loop) && $slide_row->video_loop == 1 ? 'loop' : ''; ?> <?php echo $slide_row->link == '1' ? "controls": ""; ?> id="wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>">
|
275 |
<source src="<?php echo $slide_row->image_url; ?>" type="video/mp4" id="wds_source<?php echo $slide_row->id; ?>">
|
276 |
</video>
|
277 |
<?php
|
271 |
<span style="display:<?php echo ($slide_row->link)?'block':'none'; ?> " class="wds_play_btn_cont" onclick="wds_video_play_pause(<?php echo $wds; ?>, wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>)" >
|
272 |
<span class="wds_bigplay_<?php echo $wds; ?> <?php echo ($slide_row->target_attr_slide)? 'wds_hide':'' ?>"></span>
|
273 |
</span>
|
274 |
+
<video poster="<?php echo WDS()->plugin_url . '/images/blank.gif' ?>" style="background-image: url('<?php echo !empty($thumb_url) ? $thumb_url : $no_video_image ?>');" <?php echo isset($slide_row->video_loop) && $slide_row->video_loop == 1 ? 'loop' : ''; ?> <?php echo $slide_row->link == '1' ? "controls": ""; ?> <?php if(isset($slide_row->mute)) { echo $slide_row->mute == '1' ? 'muted' : ''; }?> id="wds_slide_<?php echo $wds; ?>_<?php echo $slide_row->id; ?>">
|
275 |
<source src="<?php echo $slide_row->image_url; ?>" type="video/mp4" id="wds_source<?php echo $slide_row->id; ?>">
|
276 |
</video>
|
277 |
<?php
|
js/wds.js
CHANGED
@@ -282,6 +282,7 @@ function wds_spider_ajax_save(form_id, event) {
|
|
282 |
slide_data["att_height" + slide_id] = jQuery("#att_height" + slide_id).val();
|
283 |
slide_data["video_duration" + slide_id] = jQuery("#video_duration" + slide_id).val();
|
284 |
slide_data["video_loop" + slide_id] = jQuery("input[name=video_loop" + slide_id + " ]:checked").val();
|
|
|
285 |
slide_data["fillmode" + slide_id] = jQuery("input[name=fillmode" + slide_id +" ]").val();
|
286 |
if (slide_data["type" + slide_id] == 'video') {
|
287 |
slide_data["link" + slide_id] = jQuery("input[name=controls" + slide_id + " ]:checked").val();
|
@@ -535,6 +536,7 @@ function wds_add_post(ids_string, single) {
|
|
535 |
window.parent.jQuery("#controls" + slideID).hide();
|
536 |
window.parent.jQuery("#autoplay" + slideID).hide();
|
537 |
window.parent.jQuery("#video_loop" + slideID).hide();
|
|
|
538 |
}
|
539 |
}
|
540 |
}
|
@@ -1713,6 +1715,7 @@ function wds_media_uploader_add_slide(e, id, multiple) {
|
|
1713 |
jQuery("#controls" + new_slide_id).hide();
|
1714 |
jQuery("#autoplay" + new_slide_id).hide();
|
1715 |
jQuery("#video_loop" + new_slide_id).hide();
|
|
|
1716 |
}
|
1717 |
else if (jQuery.inArray(attachment[i].mime, supported_video_mime) != -1) { /* video */
|
1718 |
var thumb_url = WD_S_URL + '/images/no-video.png';
|
@@ -1742,6 +1745,7 @@ function wds_media_uploader_add_slide(e, id, multiple) {
|
|
1742 |
jQuery("#controls" + new_slide_id).show();
|
1743 |
jQuery("#autoplay" + new_slide_id).show();
|
1744 |
jQuery("#video_loop" + new_slide_id).show();
|
|
|
1745 |
jQuery('#wds_fillmode_option-' + new_slide_id + ' .spider_options_cont').addClass('type_video');
|
1746 |
}
|
1747 |
jQuery("#image_url" + new_slide_id).val(attachment[i]['url']);
|
@@ -1864,6 +1868,7 @@ function wds_media_uploader(id, e, multiple) {
|
|
1864 |
jQuery("#autoplay" + slide_id).removeAttr("style");
|
1865 |
jQuery("#controls" + slide_id).removeAttr("style");
|
1866 |
jQuery("#video_loop" + slide_id).removeAttr("style");
|
|
|
1867 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1868 |
break;
|
1869 |
}
|
@@ -1964,6 +1969,7 @@ function wds_media_uploader(id, e, multiple) {
|
|
1964 |
jQuery("#controls" + new_slide_id).hide();
|
1965 |
jQuery("#autoplay" + new_slide_id).hide();
|
1966 |
jQuery("#video_loop" + new_slide_id).hide();
|
|
|
1967 |
jQuery("#youtube_rel_video" + new_slide_id).hide();
|
1968 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1969 |
}
|
@@ -1982,6 +1988,7 @@ function wds_media_uploader(id, e, multiple) {
|
|
1982 |
jQuery("#autoplay" + slide_id).hide();
|
1983 |
jQuery("#controls" + slide_id).hide();
|
1984 |
jQuery("#video_loop" + slide_id).hide();
|
|
|
1985 |
jQuery("#youtube_rel_video" + slide_id).hide();
|
1986 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1987 |
}
|
@@ -2025,6 +2032,7 @@ function wds_add_image(files, image_for, slide_id, layer_id) {
|
|
2025 |
jQuery("#controls" + new_slide_id).hide();
|
2026 |
jQuery("#autoplay" + new_slide_id).hide();
|
2027 |
jQuery("#video_loop" + new_slide_id).hide();
|
|
|
2028 |
jQuery("#youtube_rel_video" + new_slide_id).hide();
|
2029 |
jQuery(".edit_thumb").text(wds_object.translate.edit_thumbnail);
|
2030 |
}
|
@@ -2059,6 +2067,7 @@ function wds_add_image(files, image_for, slide_id, layer_id) {
|
|
2059 |
jQuery("#controls" + slide_id).hide();
|
2060 |
jQuery("#autoplay" + slide_id).hide();
|
2061 |
jQuery("#video_loop" + slide_id).hide();
|
|
|
2062 |
jQuery("#youtube_rel_video" + slide_id).hide();
|
2063 |
jQuery(".edit_thumb").text(wds_object.translate.edit_thumbnail);
|
2064 |
break;
|
@@ -3517,6 +3526,12 @@ function wds_add_slide() {
|
|
3517 |
'<input type="radio" id="video_loop' + slideID + '_0" name="video_loop' + slideID + '" checked="checked" value="0" /><label for="video_loop' + slideID + '_0">'+ wds_object.translate.no +'</label>'+
|
3518 |
'<p class="description"></p>'+
|
3519 |
'</div>'+
|
|
|
|
|
|
|
|
|
|
|
|
|
3520 |
'<div class="wd-group" id="trlink' + slideID + '">'+
|
3521 |
'<label class="wd-label" for="link' + slideID + '">'+ wds_object.translate.link_the_slide_to +'</label>'+
|
3522 |
'<input class="wds_external_link" id="link' + slideID + '" type="text" value="" name="link' + slideID + '" />'+
|
282 |
slide_data["att_height" + slide_id] = jQuery("#att_height" + slide_id).val();
|
283 |
slide_data["video_duration" + slide_id] = jQuery("#video_duration" + slide_id).val();
|
284 |
slide_data["video_loop" + slide_id] = jQuery("input[name=video_loop" + slide_id + " ]:checked").val();
|
285 |
+
slide_data["mute" + slide_id] = jQuery("input[name=mute" + slide_id + " ]:checked").val();
|
286 |
slide_data["fillmode" + slide_id] = jQuery("input[name=fillmode" + slide_id +" ]").val();
|
287 |
if (slide_data["type" + slide_id] == 'video') {
|
288 |
slide_data["link" + slide_id] = jQuery("input[name=controls" + slide_id + " ]:checked").val();
|
536 |
window.parent.jQuery("#controls" + slideID).hide();
|
537 |
window.parent.jQuery("#autoplay" + slideID).hide();
|
538 |
window.parent.jQuery("#video_loop" + slideID).hide();
|
539 |
+
window.parent.jQuery("#mute" + slideID).hide();
|
540 |
}
|
541 |
}
|
542 |
}
|
1715 |
jQuery("#controls" + new_slide_id).hide();
|
1716 |
jQuery("#autoplay" + new_slide_id).hide();
|
1717 |
jQuery("#video_loop" + new_slide_id).hide();
|
1718 |
+
jQuery("#mute" + new_slide_id).hide();
|
1719 |
}
|
1720 |
else if (jQuery.inArray(attachment[i].mime, supported_video_mime) != -1) { /* video */
|
1721 |
var thumb_url = WD_S_URL + '/images/no-video.png';
|
1745 |
jQuery("#controls" + new_slide_id).show();
|
1746 |
jQuery("#autoplay" + new_slide_id).show();
|
1747 |
jQuery("#video_loop" + new_slide_id).show();
|
1748 |
+
jQuery("#mute" + new_slide_id).show();
|
1749 |
jQuery('#wds_fillmode_option-' + new_slide_id + ' .spider_options_cont').addClass('type_video');
|
1750 |
}
|
1751 |
jQuery("#image_url" + new_slide_id).val(attachment[i]['url']);
|
1868 |
jQuery("#autoplay" + slide_id).removeAttr("style");
|
1869 |
jQuery("#controls" + slide_id).removeAttr("style");
|
1870 |
jQuery("#video_loop" + slide_id).removeAttr("style");
|
1871 |
+
jQuery("#mute" + slide_id).removeAttr("style");
|
1872 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1873 |
break;
|
1874 |
}
|
1969 |
jQuery("#controls" + new_slide_id).hide();
|
1970 |
jQuery("#autoplay" + new_slide_id).hide();
|
1971 |
jQuery("#video_loop" + new_slide_id).hide();
|
1972 |
+
jQuery("#mute" + new_slide_id).hide();
|
1973 |
jQuery("#youtube_rel_video" + new_slide_id).hide();
|
1974 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1975 |
}
|
1988 |
jQuery("#autoplay" + slide_id).hide();
|
1989 |
jQuery("#controls" + slide_id).hide();
|
1990 |
jQuery("#video_loop" + slide_id).hide();
|
1991 |
+
jQuery("#mute" + slide_id).hide();
|
1992 |
jQuery("#youtube_rel_video" + slide_id).hide();
|
1993 |
jQuery(".edit_thumb").text("Edit Thumbnail");
|
1994 |
}
|
2032 |
jQuery("#controls" + new_slide_id).hide();
|
2033 |
jQuery("#autoplay" + new_slide_id).hide();
|
2034 |
jQuery("#video_loop" + new_slide_id).hide();
|
2035 |
+
jQuery("#mute" + new_slide_id).hide();
|
2036 |
jQuery("#youtube_rel_video" + new_slide_id).hide();
|
2037 |
jQuery(".edit_thumb").text(wds_object.translate.edit_thumbnail);
|
2038 |
}
|
2067 |
jQuery("#controls" + slide_id).hide();
|
2068 |
jQuery("#autoplay" + slide_id).hide();
|
2069 |
jQuery("#video_loop" + slide_id).hide();
|
2070 |
+
jQuery("#mute" + slide_id).hide();
|
2071 |
jQuery("#youtube_rel_video" + slide_id).hide();
|
2072 |
jQuery(".edit_thumb").text(wds_object.translate.edit_thumbnail);
|
2073 |
break;
|
3526 |
'<input type="radio" id="video_loop' + slideID + '_0" name="video_loop' + slideID + '" checked="checked" value="0" /><label for="video_loop' + slideID + '_0">'+ wds_object.translate.no +'</label>'+
|
3527 |
'<p class="description"></p>'+
|
3528 |
'</div>'+
|
3529 |
+
'<div class="wd-group" id="mute' + slideID + '" style="display: none;">'+
|
3530 |
+
'<label class="wd-label">'+ wds_object.translate.mute +'</label>'+
|
3531 |
+
'<input type="radio" id="mute' + slideID + '_1" name="mute' + slideID + '" value="1" /><label for="video_loop' + slideID + '_1">'+ wds_object.translate.yes +'</label>'+
|
3532 |
+
'<input type="radio" id="mute' + slideID + '_0" name="mute' + slideID + '" checked="checked" value="0" /><label for="video_loop' + slideID + '_0">'+ wds_object.translate.no +'</label>'+
|
3533 |
+
'<p class="description"></p>'+
|
3534 |
+
'</div>'+
|
3535 |
'<div class="wd-group" id="trlink' + slideID + '">'+
|
3536 |
'<label class="wd-label" for="link' + slideID + '">'+ wds_object.translate.link_the_slide_to +'</label>'+
|
3537 |
'<input class="wds_external_link" id="link' + slideID + '" type="text" value="" name="link' + slideID + '" />'+
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
|
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.2
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -445,6 +445,10 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
|
|
445 |
|
446 |
== Changelog ==
|
447 |
|
|
|
|
|
|
|
|
|
448 |
= 1.2.32 =
|
449 |
* Added: Option to allow create slider by user roles.
|
450 |
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 5.4
|
6 |
Requires PHP: 5.2
|
7 |
+
Stable tag: 1.2.33
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
445 |
|
446 |
== Changelog ==
|
447 |
|
448 |
+
= 1.2.33 =
|
449 |
+
* Fixed: Bug with Wordpress 5.4
|
450 |
+
* Fixed: Automatically mute all videos with enabled autoplay.
|
451 |
+
|
452 |
= 1.2.32 =
|
453 |
* Added: Option to allow create slider by user roles.
|
454 |
|
slider-wd.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Slider by 10Web
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
|
5 |
* 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.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: 10Web
|
8 |
* Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -79,8 +79,8 @@ final class WDS {
|
|
79 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
80 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
81 |
$this->main_file = plugin_basename(__FILE__);
|
82 |
-
$this->plugin_version = '1.2.
|
83 |
-
$this->db_version = '1.2.
|
84 |
$this->prefix = 'wds';
|
85 |
$this->nicename = __('Slider', $this->prefix);
|
86 |
$this->use_home_url();
|
@@ -89,7 +89,7 @@ final class WDS {
|
|
89 |
$this->site_url_placeholder = '@#$%';
|
90 |
$this->site_url_buttons_placeholder = '@##$%';
|
91 |
$global_options = get_option($this->prefix . '_global_options');
|
92 |
-
$this->options = !empty($global_options) ? json_decode($global_options) :
|
93 |
$this->options->permission = isset($this->options->permission) && $this->options->permission ? $this->options->permission : 'manage_options';
|
94 |
}
|
95 |
|
@@ -132,7 +132,7 @@ final class WDS {
|
|
132 |
|
133 |
add_shortcode('wds', array($this, 'shortcode'));
|
134 |
add_shortcode('SliderPreview', array($this, 'shortcode'));
|
135 |
-
|
136 |
|
137 |
// Add the Slider button to editor.
|
138 |
add_action('wp_ajax_WDSShortcode', array($this, 'admin_ajax'));
|
@@ -488,17 +488,16 @@ final class WDS {
|
|
488 |
return;
|
489 |
}
|
490 |
|
491 |
-
function media_button(
|
492 |
ob_start();
|
493 |
$href = add_query_arg(array('action' => 'WDSShortcode', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
494 |
?>
|
495 |
<a onclick="tb_click.call(this); wds_thickDims(); return false;" href="<?php echo $href; ?>" class="wds_thickbox button" title="<?php _e('Select slider', $this->prefix); ?>">
|
496 |
-
<span class="wp-media-buttons-icon wds_media_button_icon" style="
|
497 |
<?php _e('Add Slider', $this->prefix); ?>
|
498 |
</a>
|
499 |
<?php
|
500 |
-
|
501 |
-
return $context;
|
502 |
}
|
503 |
|
504 |
function admin_head() {
|
@@ -738,6 +737,7 @@ final class WDS {
|
|
738 |
'delete' => __('Delete', $this->prefix),
|
739 |
'youtube_related_video' => __('Youtube related video:', $this->prefix),
|
740 |
'video_loop' => __('Video Loop:', $this->prefix),
|
|
|
741 |
'you_can_set_a_redirection_link_so_that_the_user_will_get_to_the_mentioned_location_upon_hitting_the_slide_use_http_and_https_for_external_links' => __('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.', $this->prefix),
|
742 |
'link_the_slide_to' => __('Link the slide to:', $this->prefix),
|
743 |
'add_text_layer' => __('Add Text Layer', $this->prefix),
|
3 |
* Plugin Name: Slider by 10Web
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
|
5 |
* 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.
|
6 |
+
* Version: 1.2.33
|
7 |
* Author: 10Web
|
8 |
* Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
79 |
$this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
|
80 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
81 |
$this->main_file = plugin_basename(__FILE__);
|
82 |
+
$this->plugin_version = '1.2.33';
|
83 |
+
$this->db_version = '1.2.33';
|
84 |
$this->prefix = 'wds';
|
85 |
$this->nicename = __('Slider', $this->prefix);
|
86 |
$this->use_home_url();
|
89 |
$this->site_url_placeholder = '@#$%';
|
90 |
$this->site_url_buttons_placeholder = '@##$%';
|
91 |
$global_options = get_option($this->prefix . '_global_options');
|
92 |
+
$this->options = !empty($global_options) ? json_decode($global_options) : new stdClass();
|
93 |
$this->options->permission = isset($this->options->permission) && $this->options->permission ? $this->options->permission : 'manage_options';
|
94 |
}
|
95 |
|
132 |
|
133 |
add_shortcode('wds', array($this, 'shortcode'));
|
134 |
add_shortcode('SliderPreview', array($this, 'shortcode'));
|
135 |
+
add_action('media_buttons', array($this, 'media_button'));
|
136 |
|
137 |
// Add the Slider button to editor.
|
138 |
add_action('wp_ajax_WDSShortcode', array($this, 'admin_ajax'));
|
488 |
return;
|
489 |
}
|
490 |
|
491 |
+
function media_button() {
|
492 |
ob_start();
|
493 |
$href = add_query_arg(array('action' => 'WDSShortcode', 'TB_iframe' => '1'), admin_url('admin-ajax.php'));
|
494 |
?>
|
495 |
<a onclick="tb_click.call(this); wds_thickDims(); return false;" href="<?php echo $href; ?>" class="wds_thickbox button" title="<?php _e('Select slider', $this->prefix); ?>">
|
496 |
+
<span class="wp-media-buttons-icon wds_media_button_icon" style="background: url(<?php echo $this->plugin_url; ?>/images/wd_slider.png) no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
|
497 |
<?php _e('Add Slider', $this->prefix); ?>
|
498 |
</a>
|
499 |
<?php
|
500 |
+
echo ob_get_clean();
|
|
|
501 |
}
|
502 |
|
503 |
function admin_head() {
|
737 |
'delete' => __('Delete', $this->prefix),
|
738 |
'youtube_related_video' => __('Youtube related video:', $this->prefix),
|
739 |
'video_loop' => __('Video Loop:', $this->prefix),
|
740 |
+
'mute' => __('Mute:', $this->prefix),
|
741 |
'you_can_set_a_redirection_link_so_that_the_user_will_get_to_the_mentioned_location_upon_hitting_the_slide_use_http_and_https_for_external_links' => __('You can add a URL, to which the users will be redirected upon clicking on the slide. Use http:// and https:// for external links.', $this->prefix),
|
742 |
'link_the_slide_to' => __('Link the slide to:', $this->prefix),
|
743 |
'add_text_layer' => __('Add Text Layer', $this->prefix),
|
sliders-insert.php
CHANGED
@@ -137,6 +137,7 @@ function wds_insert() {
|
|
137 |
`youtube_rel_video` tinyint(1) NOT NULL,
|
138 |
`video_loop` tinyint(1) NOT NULL,
|
139 |
`fillmode` varchar(10) NOT NULL,
|
|
|
140 |
PRIMARY KEY (`id`)
|
141 |
) DEFAULT CHARSET=utf8;";
|
142 |
$wpdb->query($wdsslide);
|
137 |
`youtube_rel_video` tinyint(1) NOT NULL,
|
138 |
`video_loop` tinyint(1) NOT NULL,
|
139 |
`fillmode` varchar(10) NOT NULL,
|
140 |
+
`mute` tinyint(1) NOT NULL DEFAULT 0,
|
141 |
PRIMARY KEY (`id`)
|
142 |
) DEFAULT CHARSET=utf8;";
|
143 |
$wpdb->query($wdsslide);
|
sliders-update.php
CHANGED
@@ -236,6 +236,9 @@ function wds_update($version) {
|
|
236 |
if (version_compare($version, '1.2.30') == -1) {
|
237 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `film_small_screen` int(4) NOT NULL DEFAULT 0");
|
238 |
}
|
|
|
|
|
|
|
239 |
|
240 |
return;
|
241 |
}
|
236 |
if (version_compare($version, '1.2.30') == -1) {
|
237 |
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `film_small_screen` int(4) NOT NULL DEFAULT 0");
|
238 |
}
|
239 |
+
if (version_compare($version, '1.2.33') == -1) {
|
240 |
+
$wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslide` ADD `mute` tinyint(1) NOT NULL DEFAULT 1");
|
241 |
+
}
|
242 |
|
243 |
return;
|
244 |
}
|