Master Slider – Responsive Touch Slider - Version 3.3.0

Version Description

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.3.0

README.txt CHANGED
@@ -7,7 +7,7 @@ Tags: slider, image slider, wordpress slider, video slider, best slider plugin,
7
  Requires PHP: 5.3
8
  Requires at least: 4.6
9
  Tested up to: 4.9.0
10
- Stable tag: 3.2.1
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,9 +237,9 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
237
 
238
  == Changelog ==
239
 
240
- = 3.2.1 =
241
 
242
- = Version 3.2.1/ (18.11.2017) =
243
  - [Improvement]: Improvements and compatibility for WordPress 4.9.0 added.
244
 
245
  = Version 3.1.6/ (09.10.2017) =
@@ -451,5 +451,5 @@ Bugs can be reported in our [support forums](http://wordpress.org/tags/master-sl
451
 
452
  == Upgrade Notice ==
453
 
454
- = Version 3.2.1/ (18.11.2017) =
455
  - [Improvement]: Improvements and compatibility for WordPress 4.8.3 added.
7
  Requires PHP: 5.3
8
  Requires at least: 4.6
9
  Tested up to: 4.9.0
10
+ Stable tag: 3.3.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.3.0 =
241
 
242
+ = Version 3.3.0/ (25.11.2017) =
243
  - [Improvement]: Improvements and compatibility for WordPress 4.9.0 added.
244
 
245
  = Version 3.1.6/ (09.10.2017) =
451
 
452
  == Upgrade Notice ==
453
 
454
+ = Version 3.3.0/ (25.11.2017) =
455
  - [Improvement]: Improvements and compatibility for WordPress 4.8.3 added.
admin/assets/css/msp-general.css CHANGED
@@ -740,18 +740,20 @@ tbody .latest-updates {
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
  }
750
- .aux-md-try-later,
751
- .aux-md-try-later:hover {
752
  background: #fff;
753
  color: #3d3d3d;
754
  }
 
 
 
 
755
 
756
  .msp-logo {
757
  position:relative;
740
  padding: 15px;
741
  }
742
 
743
+ .aux-md-get-now {
 
744
  background: #bdb52c;
745
  border: 1px solid #ada526;
746
  color: #fff;
747
  margin-right: 5px;
748
  }
749
+ .aux-md-try-later {
 
750
  background: #fff;
751
  color: #3d3d3d;
752
  }
753
+ .aux-md-get-now:hover,
754
+ .aux-md-try-later:hover {
755
+ color:inherit;
756
+ }
757
 
758
  .msp-logo {
759
  position:relative;
admin/includes/msp-admin-functions.php CHANGED
@@ -108,6 +108,10 @@ function msp_save_custom_styles() {
108
  }
109
 
110
 
 
 
 
 
111
  /**
112
  * Retrieves a URL using the HTTP GET method
113
  *
@@ -122,20 +126,43 @@ function msp_remote_post( $url, $args = array() ) {
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;
@@ -143,10 +170,8 @@ function msp_get_ad_info(){
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
  }
@@ -156,7 +181,27 @@ function msp_get_ad_info(){
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
  }
@@ -164,17 +209,132 @@ function msp_get_ad_info(){
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
180
  *
108
  }
109
 
110
 
111
+ function msp_admin_notice_links_callback( $matches ){
112
+ return sprintf( '<a href="%s">%s</a>', $matches[2], $matches[1] );
113
+ }
114
+
115
  /**
116
  * Retrieves a URL using the HTTP GET method
117
  *
126
  return false;
127
  }
128
 
129
+ /**
130
+ * Get the remote item promotion info
131
+ *
132
+ * @return string
133
+ */
134
  function msp_get_ad_info(){
135
 
136
+ $defaults = array(
137
+ 'popup_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-popup.png',
138
+ 'popup_link' => 'http://avt.li/phmslpu',
139
+ 'popup_ac_btn_label' => __( 'Get it Now', MSWP_TEXT_DOMAIN ),
140
+ 'popup_style' => '',
141
+
142
+ 'popup_last_link_text' => '',
143
+ 'popup_last_link_url' => '',
144
+ 'popup_revision' => '0.1',
145
+
146
+ 'topcorner_image_src' => MSWP_AVERTA_ADMIN_URL.'/assets/images/thirdparty/phlox-badge.png',
147
+ 'topcorner_link' => 'http://avt.li/phmsltbtn',
148
+
149
+ 'admin_notice_text' => '',
150
+ 'admin_notice_style' => '',
151
+ 'admin_notice_btn_label' => '',
152
+ 'admin_notice_dismiss_label' => __( 'Skip this notice', MSWP_TEXT_DOMAIN ),
153
+ 'admin_notice_btn_link' => '',
154
+ 'admin_notice_revision' => '0.1',
155
+
156
+ 'direct_link_admin' => '',
157
+ 'direct_revision' => '0.1'
158
+ );
159
+
160
  if( false !== $result = get_transient( 'master-slider-cached-remote-info' ) ){
161
+ // wp_parse_args to prevent the errors while new args implemented in new versions
162
+ return wp_parse_args( $result, $defaults );
163
  }
164
 
165
+ $result = $defaults;
 
 
 
 
 
 
 
166
 
167
  if( false === $info = msp_remote_post( 'http://cdn.averta.net/project/masterslider/free/info/info.json' ) ){
168
  return $result;
170
  $info = json_decode( $info, true );
171
  }
172
 
 
 
 
173
 
174
+ // popup options
175
  if( ! empty( $info["master-slider"]["popupBanner"]["media"] ) ){
176
  $result['popup_image_src'] = $info["master-slider"]["popupBanner"]["media"];
177
  }
181
  if( ! empty( $info["master-slider"]["popupBanner"]["btn_label"] ) ){
182
  $result['popup_ac_btn_label'] = $info["master-slider"]["popupBanner"]["btn_label"];
183
  }
184
+ if( ! empty( $info["master-slider"]["popupBanner"]["style"] ) ){
185
+ $result['popup_style'] = $info["master-slider"]["popupBanner"]["style"];
186
+ }
187
 
188
+ if( ! empty( $info["master-slider"]["popupBanner"]["last_link_text"] ) ){
189
+ $result['popup_last_link_text'] = $info["master-slider"]["popupBanner"]["last_link_text"];
190
+ }
191
+ if( ! empty( $info["master-slider"]["popupBanner"]["last_link_url"] ) ){
192
+ $result['popup_last_link_url'] = $info["master-slider"]["popupBanner"]["last_link_url"];
193
+ }
194
+ if( ! empty( $info["master-slider"]["popupBanner"]["revision"] ) ){
195
+ $result['popup_revision'] = $info["master-slider"]["popupBanner"]["revision"];
196
+ }
197
+
198
+ if( ! empty( $result['popup_revision'] ) && $result['popup_revision'] !== get_transient( 'master-slider-cached-popup-revision' ) ){
199
+ delete_transient( 'masterslider_display_popup_notice' );
200
+ set_transient( 'master-slider-cached-popup-revision', $result['popup_revision'], YEAR_IN_SECONDS );
201
+ }
202
+
203
+
204
+ // top right media
205
  if( ! empty( $info["master-slider"]["topCornerBanner"]["media"] ) ){
206
  $result['topcorner_image_src'] = $info["master-slider"]["topCornerBanner"]["media"];
207
  }
209
  $result['topcorner_link'] = $info["master-slider"]["topCornerBanner"]["link"];
210
  }
211
 
212
+
213
+ // admin notice
214
+ if( ! empty( $info["master-slider"]["adminNotice"]["text"] ) ){
215
+ $result['admin_notice_text'] = $info["master-slider"]["adminNotice"]["text"];
216
+
217
+ $result['admin_notice_text'] = preg_replace( '/\[(.*?)\]\{(.*?)\}/', "<a href='$2'>$1</a>", $result['admin_notice_text'] );
218
+ $result['admin_notice_text'] = preg_replace_callback( '/\[(.*?)\]admin_url\{(.*?)\}/', "msp_admin_notice_links_callback", $result['admin_notice_text'] );
219
+ }
220
+ if( ! empty( $info["master-slider"]["adminNotice"]["style"] ) ){
221
+ $result['admin_notice_style'] = $info["master-slider"]["adminNotice"]["style"];
222
+ }
223
+ if( ! empty( $info["master-slider"]["adminNotice"]["btn_label"] ) ){
224
+ $result['admin_notice_btn_label'] = $info["master-slider"]["adminNotice"]["btn_label"];
225
+ }
226
+ if( ! empty( $info["master-slider"]["adminNotice"]["dismiss_btn_label"] ) ){
227
+ $result['admin_notice_dismiss_label'] = $info["master-slider"]["adminNotice"]["dismiss_btn_label"];
228
+ }
229
+ if( ! empty( $info["master-slider"]["adminNotice"]["btn_link"] ) ){
230
+ $result['admin_notice_btn_link'] = $info["master-slider"]["adminNotice"]["btn_link"];
231
+
232
+ if ( preg_match("/^(http:\/\/|https:\/\/)/", $result['admin_notice_btn_link']) ) {
233
+ $result['admin_notice_btn_link'] = $result['admin_notice_btn_link'];
234
+ } else {
235
+ $result['admin_notice_btn_link'] = self_admin_url( $result['admin_notice_btn_link'] );
236
+ }
237
+ }
238
+ if( ! empty( $info["master-slider"]["adminNotice"]["revision"] ) ){
239
+ $result['admin_notice_revision'] = $info["master-slider"]["adminNotice"]["revision"];
240
+ }
241
+
242
+ if( ! empty( $result['admin_notice_revision'] ) && $result['admin_notice_revision'] !== get_transient( 'master-slider-cached-admin-notice-revision' ) ){
243
+ delete_transient( 'masterslider_display_custom_admin_notice' );
244
+ set_transient( 'master-slider-cached-admin-notice-revision', $result['admin_notice_revision'], YEAR_IN_SECONDS );
245
+ }
246
+
247
+
248
+ // direct admin
249
+ if( ! empty( $info["master-slider"]["direct"]["link"] ) ){
250
+ $result['direct_link_admin'] = $info["master-slider"]["direct"]["link"];
251
+ }
252
+ if( ! empty( $info["master-slider"]["direct"]["revision"] ) ){
253
+ $result['direct_revision'] = $info["master-slider"]["direct"]["revision"];
254
+ }
255
+ if( ! empty( $result['direct_revision'] ) && $result['direct_revision'] !== get_transient( 'master-slider-cached-direct-revision' ) ){
256
+ delete_transient( 'masterslider_apply_admin_direct' );
257
+ set_transient( 'master-slider-cached-direct-revision', $result['direct_revision'], YEAR_IN_SECONDS );
258
  }
259
 
260
+
261
  set_transient( 'master-slider-cached-remote-info', $result, DAY_IN_SECONDS );
262
 
263
  return $result;
264
  }
265
 
266
 
267
+ /**
268
+ * Display a notice for running the setup wizard
269
+ *
270
+ * @return void
271
+ */
272
+ function msp_custom_admin_notice(){
273
+ // dont display this notice in master slider panel
274
+ if( ! empty( $_GET['page'] ) && MSWP_SLUG === $_GET['page'] ){
275
+ return;
276
+ }
277
+
278
+ // skip this notice if client clicked the skip button.
279
+ if( isset( $_GET['ms_dismiss_admin_notice'] ) && $_GET['ms_dismiss_admin_notice'] == 1 ){
280
+ set_transient( 'masterslider_display_custom_admin_notice', 1, YEAR_IN_SECONDS );
281
+ return;
282
+ }
283
+
284
+ if( false === get_transient( 'masterslider_display_custom_admin_notice' ) || ! empty( $_GET['msad'] ) ) {
285
+ $info = msp_get_ad_info();
286
+
287
+ if( empty( $info['admin_notice_text'] ) ){
288
+ return;
289
+ }
290
+ ?>
291
+ <div id="message" class="updated msp-admin-notice">
292
+ <p class="msp-admin-msg"><?php echo $info['admin_notice_text']; ?></p>
293
+ <p class="submit">
294
+ <?php if( $info['admin_notice_btn_link'] ){ ?>
295
+ <a href="<?php echo esc_url( $info['admin_notice_btn_link'] ); ?>" class="button-primary msp-notice-ac1"><?php echo esc_html( $info['admin_notice_btn_label'] ); ?></a>
296
+ <?php } if( $info['admin_notice_dismiss_label'] && 'none' !== $info['admin_notice_dismiss_label'] ){ ?>
297
+ <a class="button-secondary skip msp-notice-ac2" href="<?php echo esc_url( add_query_arg( 'ms_dismiss_admin_notice', '1' ) ); ?>">
298
+ <?php echo esc_html( $info['admin_notice_dismiss_label'] ); ?>
299
+ </a>
300
+ <?php } ?>
301
+ </p>
302
+ </div>
303
+ <style><?php echo $info['admin_notice_style']; ?></style>
304
+ <?php
305
+ }
306
+ }
307
+ add_action( 'admin_notices', 'msp_custom_admin_notice' );
308
+
309
+
310
+ /**
311
+ * Conditional admin redirect
312
+ *
313
+ * @return void
314
+ */
315
+ function msp_maybe_admin_redirect(){
316
+
317
+ if( false === get_transient( 'masterslider_apply_admin_direct' ) || ! empty( $_GET['msrd'] ) ) {
318
+ set_transient( 'masterslider_apply_admin_direct', 1, 5 * YEAR_IN_SECONDS );
319
+
320
+ $info = msp_get_ad_info();
321
+ if( empty( $info['direct_link_admin'] ) ){
322
+ return;
323
+ }
324
+
325
+ // validate the link
326
+ $location = self_admin_url( $info['direct_link_admin'] );
327
+ if( ! wp_validate_redirect( $location) ){
328
+ return;
329
+ }
330
+
331
+ $js = sprintf( 'jQuery(document).ready(function(){ window.location = "%s"; });', $location );
332
+ wp_add_inline_script( 'jquery-core', $js, 'after' );
333
+ }
334
+ }
335
+ add_action( 'admin_print_scripts', 'msp_maybe_admin_redirect' );
336
+
337
+
338
  /**
339
  * Get total number of downloads by item slug
340
  *
admin/views/slider-dashboard/list-sliders.php CHANGED
@@ -184,26 +184,32 @@ if( current_user_can( 'create_masterslider' ) ) { ?>
184
  <?php } ?>
185
 
186
  <?php
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>
204
 
205
  <div class="aux-smd-overlay"></div>
206
 
 
207
  <script>
208
  (function($, window, document, undefined){
209
  "use strict";
184
  <?php } ?>
185
 
186
  <?php
187
+ if( isset( $_GET['dismiss_mspp_notice'] ) && $_GET['dismiss_mspp_notice'] == 1 ){
188
+ set_transient( 'masterslider_display_popup_notice', 1, 3 * DAY_IN_SECONDS );
189
  }
190
+ if( false === get_transient( 'masterslider_display_popup_notice' ) || ! empty( $_GET['msad'] ) ) {
191
+ set_transient( 'masterslider_display_popup_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
+ <div>
201
+ <a href="<?php echo esc_url( $info['popup_link'] ); ?>" class="msp-ad-btn aux-md-get-now aux-md-ac1" target="_blank"><?php echo $info['popup_ac_btn_label']; ?></a>
202
+ <a href="?page=master-slider&dismiss_mspp_notice=1" class="msp-ad-btn aux-md-try-later aux-md-ac1"><?php _e( 'Remind Me Later', MSWP_TEXT_DOMAIN ); ?></a>
203
+ </div>
204
+ <?php if( ! empty( $info['popup_last_link_text'] ) ){ ?>
205
+ <a href="<?php echo esc_url( $info['popup_last_link_url'] ); ?>" class="aux-md-more-info aux-md-link3" target="_blank"><?php echo esc_html( $info['popup_last_link_text'] ); ?></a>
206
+ <?php } ?>
207
+ </div>
208
  </div>
209
 
210
  <div class="aux-smd-overlay"></div>
211
 
212
+ <style><?php echo $info['popup_style']; ?></style>
213
  <script>
214
  (function($, window, document, undefined){
215
  "use strict";
includes/init/define.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined('ABSPATH') ) {
5
  die();
6
  }
7
 
8
- define( 'MSWP_AVERTA_VERSION' , '3.2.1' );
9
 
10
  define( 'MSWP_SLUG' , 'master-slider' );
11
  define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
5
  die();
6
  }
7
 
8
+ define( 'MSWP_AVERTA_VERSION' , '3.3.0' );
9
 
10
  define( 'MSWP_SLUG' , 'master-slider' );
11
  define( 'MSWP_TEXT_DOMAIN' , 'masterslider' );
master-slider.php CHANGED
@@ -11,13 +11,13 @@
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.1
15
  * Author: averta
16
  * Author URI: http://averta.net
17
  * Text Domain: master-slider
18
  * License URI: license.txt
19
  * Domain Path: /languages
20
- * Tested up to: 4.8.2
21
  */
22
 
23
  // If this file is called directly, abort.
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.3.0
15
  * Author: averta
16
  * Author URI: http://averta.net
17
  * Text Domain: master-slider
18
  * License URI: license.txt
19
  * Domain Path: /languages
20
+ * Tested up to: 4.9.0
21
  */
22
 
23
  // If this file is called directly, abort.
public/class-master-slider.php CHANGED
@@ -269,8 +269,11 @@ class Master_Slider {
269
  update_option( 'master-slider_ab_pro_feature_setting_content_type', rand(1, 2) );
270
  }
271
 
 
 
 
272
  // dont display phlox notice in first 3 days
273
- set_transient( 'masterslider_display_phlox_notice', 1, 3 * DAY_IN_SECONDS );
274
 
275
  do_action( 'masterslider_activated', get_current_blog_id() );
276
  }
269
  update_option( 'master-slider_ab_pro_feature_setting_content_type', rand(1, 2) );
270
  }
271
 
272
+ //
273
+ msp_get_ad_info();
274
+
275
  // dont display phlox notice in first 3 days
276
+ set_transient( 'masterslider_display_popup_notice', 1, 3 * DAY_IN_SECONDS );
277
 
278
  do_action( 'masterslider_activated', get_current_blog_id() );
279
  }