Version Description
Download this release
Release Info
Developer | averta |
Plugin | Master Slider – Responsive Touch Slider |
Version | 3.7.7 |
Comparing to | |
See all releases |
Code changes from version 3.7.6 to 3.7.7
- README.txt +1 -1
- includes/classes/class-msp-core-widget.php +6 -6
- includes/init/define.php +1 -1
- includes/msp-functions.php +6 -3
- includes/msp-shortcodes.php +5 -5
- master-slider.php +1 -1
README.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: slider, image slider, wordpress slider, video slider, best slider plugin,
|
|
7 |
Requires PHP: 5.4
|
8 |
Requires at least: 5.0
|
9 |
Tested up to: 5.7.0
|
10 |
-
Stable tag: 3.7.
|
11 |
|
12 |
Build SEO friendly sliders fast and easy with Master Slider. The most advanced responsive HTML5 WordPress slider plugin, with touch swipe navigation that works smoothly on desktop and devices.
|
13 |
|
7 |
Requires PHP: 5.4
|
8 |
Requires at least: 5.0
|
9 |
Tested up to: 5.7.0
|
10 |
+
Stable tag: 3.7.7
|
11 |
|
12 |
Build SEO friendly sliders fast and easy with Master Slider. The most advanced responsive HTML5 WordPress slider plugin, with touch swipe navigation that works smoothly on desktop and devices.
|
13 |
|
includes/classes/class-msp-core-widget.php
CHANGED
@@ -108,18 +108,18 @@ class MSP_Widget extends WP_Widget {
|
|
108 |
case 'textbox':
|
109 |
|
110 |
echo '<p>',
|
111 |
-
'<label for="'
|
112 |
-
'<input class="widefat" id="'
|
113 |
'</p>';
|
114 |
|
115 |
break;
|
116 |
|
117 |
case 'select':
|
118 |
echo '<p>',
|
119 |
-
'<label for="'
|
120 |
-
'<select name="'
|
121 |
-
foreach
|
122 |
-
echo '<option value="'
|
123 |
}
|
124 |
|
125 |
echo '</select>',
|
108 |
case 'textbox':
|
109 |
|
110 |
echo '<p>',
|
111 |
+
'<label for="'.esc_attr( $this->get_field_id( $id ) ).'" >'. esc_html( $field["name"] ) .'</label>',
|
112 |
+
'<input class="widefat" id="'. esc_attr( $this->get_field_id( $id ) ).'" name="'.esc_attr( $this->get_field_name( $id ) ).'" type="text" value="'.esc_attr( $instance[$id] ).'" />',
|
113 |
'</p>';
|
114 |
|
115 |
break;
|
116 |
|
117 |
case 'select':
|
118 |
echo '<p>',
|
119 |
+
'<label for="'.esc_attr( $this->get_field_id( $id ) ).'" >'. esc_html( $field['name'] ). '</label>',
|
120 |
+
'<select name="'.esc_attr( $this->get_field_name( $id ) ).'" id="'.esc_attr( $this->get_field_id( $id ) ).'" value="'.esc_attr( $instance[$id] ).'" style="width:100%;max-width:100%;" >';
|
121 |
+
foreach( $field['options'] as $key => $value ) {
|
122 |
+
echo '<option value="'.esc_attr( $key ).'" '. selected( $instance[$id], $key, false ) .' >'. esc_html( $value ) .'</option>';
|
123 |
}
|
124 |
|
125 |
echo '</select>',
|
includes/init/define.php
CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
|
|
5 |
die();
|
6 |
}
|
7 |
|
8 |
-
define( 'MSWP_AVERTA_VERSION' , '3.7.
|
9 |
|
10 |
define( 'MSWP_SLUG' , 'master-slider' );
|
11 |
define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
|
5 |
die();
|
6 |
}
|
7 |
|
8 |
+
define( 'MSWP_AVERTA_VERSION' , '3.7.7' );
|
9 |
|
10 |
define( 'MSWP_SLUG' , 'master-slider' );
|
11 |
define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
|
includes/msp-functions.php
CHANGED
@@ -487,7 +487,7 @@ function msp_the_post_thumbnail( $post_id = null, $width = null , $height = null
|
|
487 |
// return resized image tag
|
488 |
function msp_get_the_post_thumbnail( $post_id = null, $width = null , $height = null, $crop = null , $quality = 100 ) {
|
489 |
$image_src = msp_get_the_post_thumbnail_src( $post_id, $width , $height, $crop, $quality);
|
490 |
-
return $image_src ? '<img src="'
|
491 |
}
|
492 |
|
493 |
/**
|
@@ -825,7 +825,8 @@ function msp_the_trimmed_string( $string, $max_length = 1000, $more = ' ...' ){
|
|
825 |
if( ! function_exists( 'msp_get_trimmed_string') ){
|
826 |
|
827 |
function msp_get_trimmed_string( $string, $max_length = 1000, $more = ' ...' ){
|
828 |
-
|
|
|
829 |
}
|
830 |
|
831 |
}
|
@@ -856,7 +857,9 @@ function msp_the_trim_excerpt( $post_id = null, $char_length = null, $exclude_st
|
|
856 |
$excerpt = strip_tags( msp_strip_shortcodes( $excerpt, $exclude_strip_shortcode_tags ) );
|
857 |
$text = msp_get_trimmed_string( $excerpt, $char_length, $excerpt_more );
|
858 |
|
859 |
-
|
|
|
|
|
860 |
}
|
861 |
|
862 |
}
|
487 |
// return resized image tag
|
488 |
function msp_get_the_post_thumbnail( $post_id = null, $width = null , $height = null, $crop = null , $quality = 100 ) {
|
489 |
$image_src = msp_get_the_post_thumbnail_src( $post_id, $width , $height, $crop, $quality);
|
490 |
+
return $image_src ? '<img src="'. esc_url( $image_src ) .'" alt="" />' : '';
|
491 |
}
|
492 |
|
493 |
/**
|
825 |
if( ! function_exists( 'msp_get_trimmed_string') ){
|
826 |
|
827 |
function msp_get_trimmed_string( $string, $max_length = 1000, $more = ' ...' ){
|
828 |
+
$trimmed = function_exists( 'mb_strimwidth' ) ? mb_strimwidth( $string, 0, $max_length, $more ) : substr( $string, 0, $max_length ) . $more;
|
829 |
+
return wp_kses_post( $trimmed );
|
830 |
}
|
831 |
|
832 |
}
|
857 |
$excerpt = strip_tags( msp_strip_shortcodes( $excerpt, $exclude_strip_shortcode_tags ) );
|
858 |
$text = msp_get_trimmed_string( $excerpt, $char_length, $excerpt_more );
|
859 |
|
860 |
+
$text = apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );
|
861 |
+
|
862 |
+
return wp_kses_post( $text );
|
863 |
}
|
864 |
|
865 |
}
|
includes/msp-shortcodes.php
CHANGED
@@ -397,9 +397,9 @@ function msp_masterslider_wrapper_shortcode( $atts, $content = null ) {
|
|
397 |
?>
|
398 |
|
399 |
<!-- MasterSlider -->
|
400 |
-
<div id="<?php echo esc_attr( $puid ); ?>" class="master-slider-parent msl <?php echo trim( $wrapper_classes ); ?>" <?php echo $inline_style; ?> >
|
401 |
|
402 |
-
<?php echo $inner_template_container_open_tags; ?>
|
403 |
|
404 |
<!-- MasterSlider Main -->
|
405 |
<div id="<?php echo esc_attr( $uid ); ?>" class="master-slider <?php echo esc_attr( $skin ); ?>" >
|
@@ -409,7 +409,7 @@ function msp_masterslider_wrapper_shortcode( $atts, $content = null ) {
|
|
409 |
</div>
|
410 |
<!-- END MasterSlider Main -->
|
411 |
|
412 |
-
<?php echo $inner_template_container_close_tags; ?>
|
413 |
|
414 |
</div>
|
415 |
<!-- END MasterSlider -->
|
@@ -419,7 +419,7 @@ function msp_masterslider_wrapper_shortcode( $atts, $content = null ) {
|
|
419 |
"use strict";
|
420 |
|
421 |
$(function () {
|
422 |
-
var <?php echo $instance_name; ?> = new MasterSlider();
|
423 |
|
424 |
// slider controls
|
425 |
<?php if($arrows == 'true' || 'image-gallery' == $template ){
|
@@ -517,7 +517,7 @@ function msp_masterslider_wrapper_shortcode( $atts, $content = null ) {
|
|
517 |
);
|
518 |
} ?>
|
519 |
// slider setup
|
520 |
-
<?php echo $instance_name; ?>.setup("<?php echo $uid; ?>", {
|
521 |
width : <?php echo (int)$width; ?>,
|
522 |
height : <?php echo (int) $height; ?>,
|
523 |
minHeight : <?php echo (int) $min_height; ?>,
|
397 |
?>
|
398 |
|
399 |
<!-- MasterSlider -->
|
400 |
+
<div id="<?php echo esc_attr( $puid ); ?>" class="master-slider-parent msl <?php echo esc_attr( trim( $wrapper_classes ) ); ?>" <?php echo $inline_style; ?> >
|
401 |
|
402 |
+
<?php echo wp_kses_post( $inner_template_container_open_tags ); ?>
|
403 |
|
404 |
<!-- MasterSlider Main -->
|
405 |
<div id="<?php echo esc_attr( $uid ); ?>" class="master-slider <?php echo esc_attr( $skin ); ?>" >
|
409 |
</div>
|
410 |
<!-- END MasterSlider Main -->
|
411 |
|
412 |
+
<?php echo wp_kses_post( $inner_template_container_close_tags ); ?>
|
413 |
|
414 |
</div>
|
415 |
<!-- END MasterSlider -->
|
419 |
"use strict";
|
420 |
|
421 |
$(function () {
|
422 |
+
var <?php echo esc_js( $instance_name ); ?> = new MasterSlider();
|
423 |
|
424 |
// slider controls
|
425 |
<?php if($arrows == 'true' || 'image-gallery' == $template ){
|
517 |
);
|
518 |
} ?>
|
519 |
// slider setup
|
520 |
+
<?php echo esc_js( $instance_name ); ?>.setup("<?php echo $uid; ?>", {
|
521 |
width : <?php echo (int)$width; ?>,
|
522 |
height : <?php echo (int) $height; ?>,
|
523 |
minHeight : <?php echo (int) $min_height; ?>,
|
master-slider.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* Plugin Name: Master Slider
|
12 |
* Plugin URI: https://wordpress.org/plugins/master-slider/
|
13 |
* Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
|
14 |
-
* Version: 3.7.
|
15 |
* Author: averta
|
16 |
* Author URI: http://averta.net
|
17 |
* Text Domain: master-slider
|
11 |
* Plugin Name: Master Slider
|
12 |
* Plugin URI: https://wordpress.org/plugins/master-slider/
|
13 |
* Description: Master Slider is the most advanced responsive HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on devices too.
|
14 |
+
* Version: 3.7.7
|
15 |
* Author: averta
|
16 |
* Author URI: http://averta.net
|
17 |
* Text Domain: master-slider
|