MetaSlider - Version 3.6.2

Version Description

  • 2017/Nov/15 =

  • FIX: Update various styles to retain compatibility with previous releases based upon user feedback

  • FIX: Restore compatibility with old WP versions that lack the wp_add_inline_script() function

  • UPGRADE NOTE: If upgrading to MetaSlider 3.6+, users of the MetaSlider Add-On pack should also upgrade that plugin to a current release (2.7.1 or later).

Download this release

Release Info

Developer DavidAnderson
Plugin Icon 128x128 MetaSlider
Version 3.6.2
Comparing to
See all releases

Code changes from version 3.6.1 to 3.6.2

assets/metaslider/public.css CHANGED
@@ -2,6 +2,48 @@
2
* The following styles will provide an attempt to normalize the sliders
3
*/
4
5
.metaslider {
6
position: relative;
7
z-index: 0;
@@ -78,9 +120,6 @@
78
max-height: none;
79
}
80
81
- .metaslider .slides {
82
- display: inline-block;
83
- }
84
.metaslider .slides img {
85
width: 100%;
86
display: block;
@@ -90,13 +129,13 @@
90
91
/* Arrow styles to use background images (old style) */
92
/* which makes it compatible with the theme builder */
93
- .flexslider {
94
margin: 0;
95
background: transparent;
96
border:0;
97
}
98
99
- .flex-control-nav {
100
width: auto;
101
position: static;
102
text-align: center;
@@ -104,10 +143,10 @@
104
height: 11px;
105
}
106
107
- .flex-direction-nav a:before {
108
content:none!important;
109
}
110
- .flex-direction-nav a {
111
width: 30px;
112
height: 30px;
113
margin: -20px 0 0;
@@ -124,41 +163,41 @@
124
-moz-transition: opacity .25s ease-in-out;
125
transition: all .3s ease;
126
}
127
- .flex-direction-nav .flex-next {
128
background-position: 100% 0;
129
130
/* Fix for single character text */
131
text-indent: 9999px;
132
}
133
- .flexslider:hover .flex-next {
134
opacity: 0.8;
135
right: 5px;
136
}
137
- .flexslider:hover .flex-prev {
138
opacity: 0.8;
139
left: 5px;
140
141
/* Fix for single character text */
142
text-indent: -9999px;
143
}
144
- .flexslider:hover .flex-next:hover,
145
- .flexslider:hover .flex-prev:hover {
146
opacity: 1;
147
}
148
- .flex-direction-nav .flex-disabled {
149
cursor: default;
150
pointer-events: none;
151
}
152
- .flex-control-nav a {
153
box-shadow: none !important;
154
}
155
- .flexslider .slides > li {
156
position: relative;
157
}
158
159
/* Responsive Slides */
160
- .rslides_nav,
161
- .rslides_tabs a {
162
box-shadow: none !important;
163
}
164
2
* The following styles will provide an attempt to normalize the sliders
3
*/
4
5
+ /** quick resets **/
6
+ .article .metaslider ul,
7
+ .article .metaslider ol,
8
+ .article .metaslider li,
9
+ .article .metaslider img,
10
+ .art-article .metaslider ul,
11
+ .art-article .metaslider ol,
12
+ .art-article .metaslider li,
13
+ .art-article .metaslider img,
14
+ #widgets .metaslider ul,
15
+ #widgets .metaslider ol,
16
+ #widgets .metaslider li,
17
+ #widgets .metaslider img,
18
+ .entry .metaslider ul,
19
+ .entry .metaslider ol,
20
+ .entry .metaslider li,
21
+ .entry .metaslider img,
22
+ #content .metaslider ul,
23
+ #content .metaslider ol,
24
+ #content .metaslider li,
25
+ #content .metaslider img,
26
+ .entry-content .metaslider ul,
27
+ .entry-content .metaslider ol,
28
+ .entry-content .metaslider li,
29
+ .entry-content .metaslider img,
30
+ .metaslider .flexslider ul,
31
+ .metaslider .flexslider .slides li,
32
+ .metaslider .flexslider .slides ul,
33
+ .metaslider .flexslider .slides ol,
34
+ .metaslider .flexslider .flex-direction-nav,
35
+ .metaslider .flexslider .flex-direction-nav li,
36
+ *[class*='-article'] .metaslider img {
37
+ border: 0;
38
+ margin: 0;
39
+ list-style-type: none;
40
+ list-style: none;
41
+ padding: 0;
42
+ line-height: normal;
43
+ max-width: none;
44
+ max-height: none;
45
+ }
46
+
47
.metaslider {
48
position: relative;
49
z-index: 0;
120
max-height: none;
121
}
122
123
.metaslider .slides img {
124
width: 100%;
125
display: block;
129
130
/* Arrow styles to use background images (old style) */
131
/* which makes it compatible with the theme builder */
132
+ .metaslider .flexslider {
133
margin: 0;
134
background: transparent;
135
border:0;
136
}
137
138
+ .metaslider .flexslider .flex-control-nav {
139
width: auto;
140
position: static;
141
text-align: center;
143
height: 11px;
144
}
145
146
+ .metaslider .flexslider .flex-direction-nav li a:before {
147
content:none!important;
148
}
149
+ .metaslider .flexslider .flex-direction-nav li a {
150
width: 30px;
151
height: 30px;
152
margin: -20px 0 0;
163
-moz-transition: opacity .25s ease-in-out;
164
transition: all .3s ease;
165
}
166
+ .metaslider .flexslider .flex-direction-nav .flex-next {
167
background-position: 100% 0;
168
169
/* Fix for single character text */
170
text-indent: 9999px;
171
}
172
+ .metaslider .flexslider:hover .flex-next {
173
opacity: 0.8;
174
right: 5px;
175
}
176
+ .metaslider .flexslider:hover .flex-prev {
177
opacity: 0.8;
178
left: 5px;
179
180
/* Fix for single character text */
181
text-indent: -9999px;
182
}
183
+ .metaslider .flexslider:hover .flex-next:hover,
184
+ .metaslider .flexslider:hover .flex-prev:hover {
185
opacity: 1;
186
}
187
+ .metaslider .flexslider .flex-direction-nav .flex-disabled {
188
cursor: default;
189
pointer-events: none;
190
}
191
+ .metaslider .flexslider .flex-control-nav a {
192
box-shadow: none !important;
193
}
194
+ .metaslider .flexslider .flexslider .slides > li {
195
position: relative;
196
}
197
198
/* Responsive Slides */
199
+ .metaslider .rslides_nav,
200
+ .metaslider .rslides_tabs a {
201
box-shadow: none !important;
202
}
203
inc/slider/metaslider.class.php CHANGED
@@ -441,6 +441,20 @@ class MetaSlider {
441
return "";
442
}
443
444
/**
445
* Include slider assets, JS and CSS paths are specified by child classes.
446
*/
@@ -448,7 +462,7 @@ class MetaSlider {
448
if ('true' == $this->get_setting('printJs')) {
449
$handle = 'metaslider-' . $this->get_setting('type') . '-slider';
450
wp_enqueue_script($handle, METASLIDER_ASSETS_URL . $this->js_path, array('jquery'), METASLIDER_VERSION);
451
- wp_add_inline_script($handle, $this->get_inline_javascript());
452
}
453
454
if ( $this->get_setting( 'printCss' ) == 'true' ) {
441
return "";
442
}
443
444
+ /**
445
+ * Polyfill to handle the wp_add_inline_script() function.
446
+ */
447
+ public function wp_add_inline_script($handle, $data, $position = 'after') {
448
+ if (function_exists('wp_add_inline_script')) return wp_add_inline_script($handle, $data, $position);
449
+ global $wp_scripts;
450
+ if (!$data) return false;
451
+ if ('after' !== $position) $position = 'before';
452
+
453
+ $script = (array) $wp_scripts->get_data($handle, $position);
454
+ $script[] = $data;
455
+ return $wp_scripts->add_data($handle, $position, $script);
456
+ }
457
+
458
/**
459
* Include slider assets, JS and CSS paths are specified by child classes.
460
*/
462
if ('true' == $this->get_setting('printJs')) {
463
$handle = 'metaslider-' . $this->get_setting('type') . '-slider';
464
wp_enqueue_script($handle, METASLIDER_ASSETS_URL . $this->js_path, array('jquery'), METASLIDER_VERSION);
465
+ $this->wp_add_inline_script($handle, $this->get_inline_javascript());
466
}
467
468
if ( $this->get_setting( 'printCss' ) == 'true' ) {
ml-slider.php CHANGED
@@ -5,7 +5,7 @@
5
* Plugin Name: MetaSlider
6
* Plugin URI: https://www.metaslider.com
7
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
8
- * Version: 3.6.1
9
* Author: Team Updraft
10
* Author URI: https://www.metaslider.com
11
* License: GPL-2.0+
@@ -31,7 +31,7 @@ class MetaSliderPlugin {
31
/**
32
* @var string
33
*/
34
- public $version = '3.6.1';
35
36
/**
37
* @var string The lowest tier price for upgrades
5
* Plugin Name: MetaSlider
6
* Plugin URI: https://www.metaslider.com
7
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
8
+ * Version: 3.6.2
9
* Author: Team Updraft
10
* Author URI: https://www.metaslider.com
11
* License: GPL-2.0+
31
/**
32
* @var string
33
*/
34
+ public $version = '3.6.2';
35
36
/**
37
* @var string The lowest tier price for upgrades
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: matchalabs, DavidAnderson, dnutbourne, kbat82
3
Tags: wordpress slideshow,seo,slideshow,slider,widget,wordpress slider,image slider,flexslider,flex slider,nivoslider,nivo slider,responsive,responsive slides,coinslider,coin slider,slideshow,carousel,responsive slider,vertical slides
4
Donate link: https://david.dw-perspective.org.uk/donate
5
Requires at least: 3.5
6
- Stable tag: 3.6.1
7
Tested up to: 4.9
8
License: GPLv2 or later
9
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -151,10 +151,15 @@ See https://www.metaslider.com/documentation/image-cropping/
151
152
== Changelog ==
153
154
= 3.6.1 - 2017/Nov/14 =
155
156
* FIX: Removes default FlexSlider styling
157
- * UPGRADE NOTE: If upgrading to MetaSlider 3.6+, users of the MetaSlider Add-On pack should also upgrade that plugin to a current release (2.7.1 or later).
158
159
= 3.6.0 - 2017/Nov/14 =
160
@@ -595,4 +600,4 @@ More info/Comments: http://www.metaslider.com/coming-soon-meta-slider-2-6-free/
595
* Initial version
596
597
== Upgrade Notice ==
598
- * 3.6.0 : Three new features, three fixes, various smaller tweaks. A recommended update for all. If you have the paid add-on pack, update that to version 2.7.1 or later at the same time.
3
Tags: wordpress slideshow,seo,slideshow,slider,widget,wordpress slider,image slider,flexslider,flex slider,nivoslider,nivo slider,responsive,responsive slides,coinslider,coin slider,slideshow,carousel,responsive slider,vertical slides
4
Donate link: https://david.dw-perspective.org.uk/donate
5
Requires at least: 3.5
6
+ Stable tag: 3.6.2
7
Tested up to: 4.9
8
License: GPLv2 or later
9
License URI: https://www.gnu.org/licenses/gpl-2.0.html
151
152
== Changelog ==
153
154
+ = 3.6.2 - 2017/Nov/15 =
155
+
156
+ * FIX: Update various styles to retain compatibility with previous releases based upon user feedback
157
+ * FIX: Restore compatibility with old WP versions that lack the wp_add_inline_script() function
158
+ * UPGRADE NOTE: If upgrading to MetaSlider 3.6+, users of the MetaSlider Add-On pack should also upgrade that plugin to a current release (2.7.1 or later).
159
+
160
= 3.6.1 - 2017/Nov/14 =
161
162
* FIX: Removes default FlexSlider styling
163
164
= 3.6.0 - 2017/Nov/14 =
165
600
* Initial version
601
602
== Upgrade Notice ==
603
+ * 3.6.2 : 3.6 series has three new features, three fixes, various smaller tweaks. A recommended update for all. If you have the paid add-on pack, update that to version 2.7.1 or later at the same time.