Master Slider – Responsive Touch Slider - Version 3.2.0

Version Description

Download this release

Release Info

Developer averta
Plugin Icon 128x128 Master Slider – Responsive Touch Slider
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.6 to 3.2.0

README.txt CHANGED
@@ -4,9 +4,10 @@ Donate link: http://averta.net/
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: slider, image slider, wordpress slider, video slider, best slider plugin, slideshow, swipe, touch slider, content slider, SEO, vertical slider, HTML5 slider, hardware accelerate, animation, mobile slider, iOS, android, youtube slider, horizontal slider, responsive slider, fullscreen slider, post slider, photo slider, online album, mobile slider, WordPress slider,wpml, ,ultisite, wistia, woocommerce, product slider, woocommerce slider, portfolio, gallery, lightweight slider
 
7
  Requires at least: 4.6
8
- Tested up to: 4.8.2
9
- Stable tag: 3.1.6
10
 
11
  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.
12
 
@@ -236,7 +237,10 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
236
 
237
  == Changelog ==
238
 
239
- = 3.1.6 =
 
 
 
240
 
241
  = Version 3.1.6/ (09.10.2017) =
242
  - [Improvement]: Minor bugs fix.
@@ -447,5 +451,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
447
 
448
  == Upgrade Notice ==
449
 
450
- = Version 3.1.6/ (09.10.2017) =
451
- - [Improvement]: Minor bugs fix.
4
  License: GPLv3
5
  License URI: http://www.gnu.org/licenses/gpl.html
6
  Tags: slider, image slider, wordpress slider, video slider, best slider plugin, slideshow, swipe, touch slider, content slider, SEO, vertical slider, HTML5 slider, hardware accelerate, animation, mobile slider, iOS, android, youtube slider, horizontal slider, responsive slider, fullscreen slider, post slider, photo slider, online album, mobile slider, WordPress slider,wpml, ,ultisite, wistia, woocommerce, product slider, woocommerce slider, portfolio, gallery, lightweight slider
7
+ Requires PHP: 5.3
8
  Requires at least: 4.6
9
+ Tested up to: 4.8.4
10
+ Stable tag: 3.2.0
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
 
237
 
238
  == Changelog ==
239
 
240
+ = 3.2.0 =
241
+
242
+ = Version 3.2.0/ (18.11.2017) =
243
+ - [Improvement]: Improvements and compatibility for WordPress 4.8.3 added.
244
 
245
  = Version 3.1.6/ (09.10.2017) =
246
  - [Improvement]: Minor bugs fix.
451
 
452
  == Upgrade Notice ==
453
 
454
+ = Version 3.2.0/ (18.11.2017) =
455
+ - [Improvement]: Improvements and compatibility for WordPress 4.8.3 added.
admin/assets/css/msp-general.css CHANGED
@@ -735,9 +735,15 @@ tbody .latest-updates {
735
  text-decoration: underline;;
736
  }
737
 
 
 
 
 
 
738
  .aux-md-get-now,
739
  .aux-md-get-now:hover {
740
- background: #3d3d3d;
 
741
  color: #fff;
742
  margin-right: 5px;
743
  }
735
  text-decoration: underline;;
736
  }
737
 
738
+ .aux-md-get-now,
739
+ .aux-md-try-later{
740
+ padding: 15px;
741
+ }
742
+
743
  .aux-md-get-now,
744
  .aux-md-get-now:hover {
745
+ background: #bdb52c;
746
+ border: 1px solid #ada526;
747
  color: #fff;
748
  margin-right: 5px;
749
  }
admin/assets/images/misc/shortcode-in-editor.png CHANGED
Binary file
admin/assets/images/misc/where-is-ms-shortcode.png CHANGED
Binary file
admin/includes/msp-admin-functions.php CHANGED
@@ -108,6 +108,72 @@ function msp_save_custom_styles() {
108
  }
109
 
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
  /**
113
  * Get total number of downloads by item slug
108
  }
109
 
110
 
111
+ /**
112
+ * Retrieves a URL using the HTTP GET method
113
+ *
114
+ * @return mixed|boolean The body content
115
+ */
116
+ function msp_remote_post( $url, $args = array() ) {
117
+ $request = wp_remote_get( $url, $args );
118
+
119
+ if ( ! is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) {
120
+ return $request['body'];
121
+ }
122
+ return false;
123
+ }
124
+
125
+ function msp_get_ad_info(){
126
+
127
+ if( false !== $result = get_transient( 'master-slider-cached-remote-info' ) ){
128
+ return $result;
129
+ }
130
+
131
+ $result = array(
132
+ 'popup_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-popup.png',
133
+ 'popup_link' => 'http://avt.li/phmslpu',
134
+ 'popup_ac_btn_label' => __( 'Get it Now', MSWP_TEXT_DOMAIN ),
135
+ 'topcorner_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-badge.png',
136
+ 'topcorner_link' => 'http://avt.li/phmsltbtn',
137
+ 'revision' => '0.10'
138
+ );
139
+
140
+ if( false === $info = msp_remote_post( 'http://cdn.averta.net/project/masterslider/free/info/info.json' ) ){
141
+ return $result;
142
+ } else {
143
+ $info = json_decode( $info, true );
144
+ }
145
+
146
+ if( ! empty( $info["master-slider"]["revision"] ) ){
147
+ $result['revision'] = $info["master-slider"]["revision"];
148
+ }
149
+
150
+ if( ! empty( $info["master-slider"]["popupBanner"]["media"] ) ){
151
+ $result['popup_image_src'] = $info["master-slider"]["popupBanner"]["media"];
152
+ }
153
+ if( ! empty( $info["master-slider"]["popupBanner"]["link"] ) ){
154
+ $result['popup_link'] = $info["master-slider"]["popupBanner"]["link"];
155
+ }
156
+ if( ! empty( $info["master-slider"]["popupBanner"]["btn_label"] ) ){
157
+ $result['popup_ac_btn_label'] = $info["master-slider"]["popupBanner"]["btn_label"];
158
+ }
159
+
160
+ if( ! empty( $info["master-slider"]["topCornerBanner"]["media"] ) ){
161
+ $result['topcorner_image_src'] = $info["master-slider"]["topCornerBanner"]["media"];
162
+ }
163
+ if( ! empty( $info["master-slider"]["topCornerBanner"]["link"] ) ){
164
+ $result['topcorner_link'] = $info["master-slider"]["topCornerBanner"]["link"];
165
+ }
166
+
167
+ if( ! empty( $result['revision'] ) && $result['revision'] !== $prev_revision = get_transient( 'master-slider-cached-remote-info-revision' ) ){
168
+ delete_transient( 'masterslider_display_phlox_notice' );
169
+ Set_transient( 'master-slider-cached-remote-info-revision', $result['revision'], YEAR_IN_SECONDS );
170
+ }
171
+
172
+ set_transient( 'master-slider-cached-remote-info', $result, DAY_IN_SECONDS );
173
+
174
+ return $result;
175
+ }
176
+
177
 
178
  /**
179
  * Get total number of downloads by item slug
admin/includes/msp-admin-templates.php CHANGED
@@ -1,15 +1,19 @@
1
  <?php
2
 
3
  function msp_get_panel_header(){
 
 
 
4
  ?>
5
  <div id="msp-header">
6
  <div class="msp-logo">
7
  <a href="<?php echo admin_url( 'admin.php?page='.MSWP_SLUG ); ?>">
8
  <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/views/slider-panel/images/masterslider.gif" />
9
  </a>
 
10
  <div class="msp-phlox-badge">
11
- <a href="http://avt.li/phmsltbtn" target="_blank">
12
- <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/assets/images/thirdparty/phlox-badge.png" />
13
  </a>
14
  </div>
15
  </div>
1
  <?php
2
 
3
  function msp_get_panel_header(){
4
+
5
+ $info = msp_get_ad_info();
6
+
7
  ?>
8
  <div id="msp-header">
9
  <div class="msp-logo">
10
  <a href="<?php echo admin_url( 'admin.php?page='.MSWP_SLUG ); ?>">
11
  <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/views/slider-panel/images/masterslider.gif" />
12
  </a>
13
+
14
  <div class="msp-phlox-badge">
15
+ <a href="<?php echo esc_url( $info['topcorner_link'] ); ?>" target="_blank">
16
+ <img src="<?php echo esc_url( $info['topcorner_image_src'] ); ?>" />
17
  </a>
18
  </div>
19
  </div>
admin/views/slider-dashboard/list-sliders.php CHANGED
@@ -187,15 +187,17 @@ if( current_user_can( 'create_masterslider' ) ) { ?>
187
  if( isset( $_GET['dismiss_phlox_notice'] ) && $_GET['dismiss_phlox_notice'] == 1 ){
188
  set_transient( 'masterslider_display_phlox_notice', 1, 3 * DAY_IN_SECONDS );
189
  }
190
- if( false === get_transient( 'masterslider_display_phlox_notice' ) || ! empty( $_GET['phlox'] ) ) {
191
  set_transient( 'masterslider_display_phlox_notice', 1, 5 * YEAR_IN_SECONDS );
 
 
192
  ?>
193
 
194
  <div id="smd-modal-1" class="aux-smd-modal aux-smd-show">
195
- <img src="<?php echo MSWP_AVERTA_ADMIN_URL; ?>/assets/images/thirdparty/phlox-popup.png" />
196
- <a href="#" class="aux-smd-close" title="Close"></a>
197
  <div class="msp-ad-btns-container">
198
- <a href="http://avt.li/phmslpu" class="msp-ad-btn aux-md-get-now"><?php _e( 'Get it Now', MSWP_TEXT_DOMAIN ); ?></a>
199
  <a href="?page=master-slider&dismiss_phlox_notice=1" class="msp-ad-btn aux-md-try-later"><?php _e( 'Remind Me Later', MSWP_TEXT_DOMAIN ); ?></a>
200
  </div>
201
  </div>
187
  if( isset( $_GET['dismiss_phlox_notice'] ) && $_GET['dismiss_phlox_notice'] == 1 ){
188
  set_transient( 'masterslider_display_phlox_notice', 1, 3 * DAY_IN_SECONDS );
189
  }
190
+ if( false === get_transient( 'masterslider_display_phlox_notice' ) || ! empty( $_GET['msad'] ) ) {
191
  set_transient( 'masterslider_display_phlox_notice', 1, 5 * YEAR_IN_SECONDS );
192
+
193
+ $info = msp_get_ad_info();
194
  ?>
195
 
196
  <div id="smd-modal-1" class="aux-smd-modal aux-smd-show">
197
+ <img src="<?php echo esc_url( $info['popup_image_src'] ); ?>" />
198
+ <a href="#" class="aux-smd-close" title="<?php esc_attr_e( 'Close', MSWP_TEXT_DOMAIN ); ?>"></a>
199
  <div class="msp-ad-btns-container">
200
+ <a href="<?php echo esc_url( $info['popup_link'] ); ?>" class="msp-ad-btn aux-md-get-now"><?php echo $info['popup_ac_btn_label']; ?></a>
201
  <a href="?page=master-slider&dismiss_phlox_notice=1" class="msp-ad-btn aux-md-try-later"><?php _e( 'Remind Me Later', MSWP_TEXT_DOMAIN ); ?></a>
202
  </div>
203
  </div>
includes/init/define.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
5
  die();
6
  }
7
 
8
- define( 'MSWP_AVERTA_VERSION' , '3.1.6' );
9
 
10
  define( 'MSWP_SLUG' , 'master-slider' );
11
  define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
5
  die();
6
  }
7
 
8
+ define( 'MSWP_AVERTA_VERSION' , '3.2.0' );
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: 3.1.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: 3.2.0
15
  * Author: averta
16
  * Author URI: http://averta.net
17
  * Text Domain: master-slider