Version Description
Download this release
Release Info
Developer | averta |
Plugin | Master Slider – Responsive Touch Slider |
Version | 2.6.4 |
Comparing to | |
See all releases |
Code changes from version 2.6.3 to 2.6.4
- README.txt +6 -3
- includes/classes/class-msp-core-widget.php +142 -142
- includes/init/define.php +1 -1
- master-slider.php +1 -1
README.txt
CHANGED
@@ -6,7 +6,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: banner rotator, carousel, content slider, gallery, image slider, responsive slider, showcase, slideshow, swipe, touch slider, video gallery, SEO, vertical slide, HTML5 slider, hardware accelerate, best slider, animation, mobile slider, iOS, android, video slider, youtube slider, horizontal slider, vertical slider, fullwidth slider, fullscreen slider, post slider, photo slider, online album, mobile slider, WordPress slider,wpml, ,ultisite, wistia, woocommerce, product slider, woocommerce slider, portfolio, gallery
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.3.0
|
9 |
-
Stable tag: 2.6.
|
10 |
|
11 |
The most advanced responsive and HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on desktop and devices.
|
12 |
|
@@ -225,6 +225,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
|
|
225 |
11. Flexible slider controls
|
226 |
|
227 |
|
|
|
|
|
|
|
228 |
= Version 2.6.3 / (12.9.2015) =
|
229 |
- [Fix]: Addressed an issue with undefined IDs while adding shortcodes to WordPress editor
|
230 |
- [New]: Russian translation by: oharreg
|
@@ -389,5 +392,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
|
|
389 |
|
390 |
== Upgrade Notice ==
|
391 |
|
392 |
-
= 2.6.
|
393 |
-
- [Fix]:
|
6 |
Tags: banner rotator, carousel, content slider, gallery, image slider, responsive slider, showcase, slideshow, swipe, touch slider, video gallery, SEO, vertical slide, HTML5 slider, hardware accelerate, best slider, animation, mobile slider, iOS, android, video slider, youtube slider, horizontal slider, vertical slider, fullwidth slider, fullscreen slider, post slider, photo slider, online album, mobile slider, WordPress slider,wpml, ,ultisite, wistia, woocommerce, product slider, woocommerce slider, portfolio, gallery
|
7 |
Requires at least: 4.0
|
8 |
Tested up to: 4.3.0
|
9 |
+
Stable tag: 2.6.4
|
10 |
|
11 |
The most advanced responsive and HTML5 WordPress slider plugin with touch swipe navigation that works smoothly on desktop and devices.
|
12 |
|
225 |
11. Flexible slider controls
|
226 |
|
227 |
|
228 |
+
= Version 2.6.4 / (22.9.2015) =
|
229 |
+
- [Fix]: Legacy widget constructor replaced with new one
|
230 |
+
|
231 |
= Version 2.6.3 / (12.9.2015) =
|
232 |
- [Fix]: Addressed an issue with undefined IDs while adding shortcodes to WordPress editor
|
233 |
- [New]: Russian translation by: oharreg
|
392 |
|
393 |
== Upgrade Notice ==
|
394 |
|
395 |
+
= 2.6.4 =
|
396 |
+
- [Fix]: Legacy widget constructor replaced with new one
|
includes/classes/class-msp-core-widget.php
CHANGED
@@ -1,142 +1,142 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
4 |
-
* @package MasterSlider
|
5 |
-
* @author averta [averta.net]
|
6 |
-
* @license LICENSE.txt
|
7 |
-
* @link http://masterslider.com
|
8 |
-
* @copyright Copyright © 2014 averta
|
9 |
-
*/
|
10 |
-
|
11 |
-
/*----------------------------------------------
|
12 |
-
* Master Core Widget Class
|
13 |
-
* --------------------------------------------*/
|
14 |
-
|
15 |
-
if ( ! class_exists( 'MSP_Widget' ) ) :
|
16 |
-
|
17 |
-
|
18 |
-
class MSP_Widget extends WP_Widget {
|
19 |
-
|
20 |
-
private $defaults = array();
|
21 |
-
public $fields = array();
|
22 |
-
|
23 |
-
|
24 |
-
/*--------------------------------------------------*/
|
25 |
-
/* Constructor
|
26 |
-
/*--------------------------------------------------*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Specifies the classname and description, instantiates the widget,
|
30 |
-
*/
|
31 |
-
function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
|
32 |
-
|
33 |
-
parent::
|
34 |
-
|
35 |
-
$this->set_defaults();
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Sets fields data
|
40 |
-
*/
|
41 |
-
function set_fields($fields){
|
42 |
-
$this->fields = $fields;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Generates default ids and values
|
47 |
-
*/
|
48 |
-
protected function set_defaults(){
|
49 |
-
// store fields id and values in $default var
|
50 |
-
foreach ($this->fields as $field) {
|
51 |
-
$this->defaults[$field["id"]] = $field["value"];
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
|
56 |
-
/*--------------------------------------------------*/
|
57 |
-
/* Widget API Functions
|
58 |
-
/*--------------------------------------------------*/
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Outputs the content of the widget.
|
62 |
-
*
|
63 |
-
* @param array args The array of form elements
|
64 |
-
* @param array instance The current instance of the widget
|
65 |
-
*/
|
66 |
-
function widget( $args, $instance ) {
|
67 |
-
|
68 |
-
}
|
69 |
-
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Processes the widget's options to be saved.
|
73 |
-
*
|
74 |
-
* @param array new_instance The new instance of values to be generated via the update.
|
75 |
-
* @param array old_instance The previous instance of values before the update.
|
76 |
-
*/
|
77 |
-
function update( $new_instance, $old_instance ) {
|
78 |
-
|
79 |
-
$instance = $old_instance;
|
80 |
-
|
81 |
-
foreach ($this->fields as $field) {
|
82 |
-
$id = $field["id"];
|
83 |
-
$instance[$id] = strip_tags($new_instance[$id]);
|
84 |
-
}
|
85 |
-
|
86 |
-
return $instance;
|
87 |
-
}
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Generates the administration form for the widget.
|
93 |
-
*
|
94 |
-
* @param array instance The array of keys and values for the widget.
|
95 |
-
*/
|
96 |
-
function form( $instance ) {
|
97 |
-
|
98 |
-
$instance = wp_parse_args( (array) $instance, $this->defaults );
|
99 |
-
|
100 |
-
// get_field_id (string $field_name)
|
101 |
-
// creates id attributes for fields to be saved by update()
|
102 |
-
foreach ($this->fields as $field) {
|
103 |
-
|
104 |
-
$id = $field['id'];
|
105 |
-
|
106 |
-
switch ($field['type']) {
|
107 |
-
|
108 |
-
case 'textbox':
|
109 |
-
|
110 |
-
echo '<p>',
|
111 |
-
'<label for="'.$this->get_field_id($id).'" >'.$field["name"].'</label>',
|
112 |
-
'<input class="widefat" id="'.$this->get_field_id($id).'" name="'.$this->get_field_name($id).'" type="text" value="'.$instance[$id].'" />',
|
113 |
-
'</p>';
|
114 |
-
|
115 |
-
break;
|
116 |
-
|
117 |
-
case 'select':
|
118 |
-
echo '<p>',
|
119 |
-
'<label for="'.$this->get_field_id($id).'" >'. __( $field['name'], MSWP_TEXT_DOMAIN ). '</label>',
|
120 |
-
'<select name="'.$this->get_field_name($id).'" id="'.$this->get_field_id($id).'" value="'.$instance[$id].'" style="width:100%;max-width:100%;" >';
|
121 |
-
foreach ($field['options'] as $key => $value) {
|
122 |
-
echo '<option value="'.$key.'" '.(($instance[$id] == $key)?'selected="selected"':'' ).' >'. __($value, "default"). '</option>';
|
123 |
-
}
|
124 |
-
|
125 |
-
echo '</select>',
|
126 |
-
'</p>';
|
127 |
-
break;
|
128 |
-
|
129 |
-
|
130 |
-
default:
|
131 |
-
|
132 |
-
break;
|
133 |
-
}
|
134 |
-
|
135 |
-
}
|
136 |
-
|
137 |
-
}
|
138 |
-
|
139 |
-
|
140 |
-
} // end widget class
|
141 |
-
|
142 |
-
endif;
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
*
|
4 |
+
* @package MasterSlider
|
5 |
+
* @author averta [averta.net]
|
6 |
+
* @license LICENSE.txt
|
7 |
+
* @link http://masterslider.com
|
8 |
+
* @copyright Copyright © 2014 averta
|
9 |
+
*/
|
10 |
+
|
11 |
+
/*----------------------------------------------
|
12 |
+
* Master Core Widget Class
|
13 |
+
* --------------------------------------------*/
|
14 |
+
|
15 |
+
if ( ! class_exists( 'MSP_Widget' ) ) :
|
16 |
+
|
17 |
+
|
18 |
+
class MSP_Widget extends WP_Widget {
|
19 |
+
|
20 |
+
private $defaults = array();
|
21 |
+
public $fields = array();
|
22 |
+
|
23 |
+
|
24 |
+
/*--------------------------------------------------*/
|
25 |
+
/* Constructor
|
26 |
+
/*--------------------------------------------------*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Specifies the classname and description, instantiates the widget,
|
30 |
+
*/
|
31 |
+
function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
|
32 |
+
|
33 |
+
parent::__construct( $id_base, $name, $widget_options, $control_options );
|
34 |
+
|
35 |
+
$this->set_defaults();
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Sets fields data
|
40 |
+
*/
|
41 |
+
function set_fields($fields){
|
42 |
+
$this->fields = $fields;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Generates default ids and values
|
47 |
+
*/
|
48 |
+
protected function set_defaults(){
|
49 |
+
// store fields id and values in $default var
|
50 |
+
foreach ($this->fields as $field) {
|
51 |
+
$this->defaults[$field["id"]] = $field["value"];
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
|
56 |
+
/*--------------------------------------------------*/
|
57 |
+
/* Widget API Functions
|
58 |
+
/*--------------------------------------------------*/
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Outputs the content of the widget.
|
62 |
+
*
|
63 |
+
* @param array args The array of form elements
|
64 |
+
* @param array instance The current instance of the widget
|
65 |
+
*/
|
66 |
+
function widget( $args, $instance ) {
|
67 |
+
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Processes the widget's options to be saved.
|
73 |
+
*
|
74 |
+
* @param array new_instance The new instance of values to be generated via the update.
|
75 |
+
* @param array old_instance The previous instance of values before the update.
|
76 |
+
*/
|
77 |
+
function update( $new_instance, $old_instance ) {
|
78 |
+
|
79 |
+
$instance = $old_instance;
|
80 |
+
|
81 |
+
foreach ($this->fields as $field) {
|
82 |
+
$id = $field["id"];
|
83 |
+
$instance[$id] = strip_tags($new_instance[$id]);
|
84 |
+
}
|
85 |
+
|
86 |
+
return $instance;
|
87 |
+
}
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Generates the administration form for the widget.
|
93 |
+
*
|
94 |
+
* @param array instance The array of keys and values for the widget.
|
95 |
+
*/
|
96 |
+
function form( $instance ) {
|
97 |
+
|
98 |
+
$instance = wp_parse_args( (array) $instance, $this->defaults );
|
99 |
+
|
100 |
+
// get_field_id (string $field_name)
|
101 |
+
// creates id attributes for fields to be saved by update()
|
102 |
+
foreach ($this->fields as $field) {
|
103 |
+
|
104 |
+
$id = $field['id'];
|
105 |
+
|
106 |
+
switch ($field['type']) {
|
107 |
+
|
108 |
+
case 'textbox':
|
109 |
+
|
110 |
+
echo '<p>',
|
111 |
+
'<label for="'.$this->get_field_id($id).'" >'.$field["name"].'</label>',
|
112 |
+
'<input class="widefat" id="'.$this->get_field_id($id).'" name="'.$this->get_field_name($id).'" type="text" value="'.$instance[$id].'" />',
|
113 |
+
'</p>';
|
114 |
+
|
115 |
+
break;
|
116 |
+
|
117 |
+
case 'select':
|
118 |
+
echo '<p>',
|
119 |
+
'<label for="'.$this->get_field_id($id).'" >'. __( $field['name'], MSWP_TEXT_DOMAIN ). '</label>',
|
120 |
+
'<select name="'.$this->get_field_name($id).'" id="'.$this->get_field_id($id).'" value="'.$instance[$id].'" style="width:100%;max-width:100%;" >';
|
121 |
+
foreach ($field['options'] as $key => $value) {
|
122 |
+
echo '<option value="'.$key.'" '.(($instance[$id] == $key)?'selected="selected"':'' ).' >'. __($value, "default"). '</option>';
|
123 |
+
}
|
124 |
+
|
125 |
+
echo '</select>',
|
126 |
+
'</p>';
|
127 |
+
break;
|
128 |
+
|
129 |
+
|
130 |
+
default:
|
131 |
+
|
132 |
+
break;
|
133 |
+
}
|
134 |
+
|
135 |
+
}
|
136 |
+
|
137 |
+
}
|
138 |
+
|
139 |
+
|
140 |
+
} // end widget class
|
141 |
+
|
142 |
+
endif;
|
includes/init/define.php
CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
|
|
5 |
die();
|
6 |
}
|
7 |
|
8 |
-
define( 'MSWP_AVERTA_VERSION' , '2.6.
|
9 |
|
10 |
define( 'MSWP_SLUG' , 'master-slider' );
|
11 |
define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
|
5 |
die();
|
6 |
}
|
7 |
|
8 |
+
define( 'MSWP_AVERTA_VERSION' , '2.6.4' );
|
9 |
|
10 |
define( 'MSWP_SLUG' , 'master-slider' );
|
11 |
define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
|
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: 2.6.
|
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: 2.6.4
|
15 |
* Author: averta
|
16 |
* Author URI: http://averta.net
|
17 |
* Text Domain: master-slider
|