MetaSlider - Version 3.6.8

Version Description

  • 2018/Jan/26 =

  • FIX: Updates compatibility for various themes (including Genesis)

Download this release

Release Info

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

Code changes from version 3.6.7 to 3.6.8

admin/Notices.php CHANGED
@@ -84,7 +84,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
84
'button_meta' => 'updraftplus',
85
'dismiss_time' => 'updraftplus',
86
'hide_time' => 12,
87
- 'supported_positions' => array('header', 'dashboard'),
88
'validity_function' => 'is_updraftplus_installed',
89
),
90
'keyy' => array(
@@ -95,7 +95,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
95
'button_meta' => 'keyy',
96
'dismiss_time' => 'keyy',
97
'hide_time' => 12,
98
- 'supported_positions' => array('header', 'dashboard'),
99
'validity_function' => 'is_keyy_installed',
100
),
101
'updraftcentral' => array(
@@ -106,7 +106,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
106
'button_meta' => 'updraftcentral',
107
'dismiss_time' => 'updraftcentral',
108
'hide_time' => 12,
109
- 'supported_positions' => array('header', 'dashboard'),
110
'validity_function' => 'is_updraftcentral_installed',
111
),
112
'rate_plugin' => array(
@@ -117,7 +117,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
117
'button_meta' => 'review',
118
'dismiss_time' => 'rate_plugin',
119
'hide_time' => 12,
120
- 'supported_positions' => array('header', 'dashboard'),
121
),
122
'lite_survey' => array(
123
'title' => __('Help us to get even better MetaSlider', 'ml-slider'),
@@ -165,7 +165,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
165
'text' => __('Supercharge & secure your WordPress site with our other top plugins:', 'ml-slider'),
166
'image' => 'metaslider_logo_large.png',
167
'dismiss_time' => 'thankyou',
168
- 'hide_time' => 24,
169
'mega' => true,
170
'supported_positions' => array('dashboard'),
171
),
@@ -193,54 +193,55 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
193
}
194
195
/**
196
- * Seasonal Notices. Note that if dismissed, they will stay dismissed for 9999 weeks
197
* Each year the key and dismiss time should be updated
198
*
199
* @return string
200
*/
201
protected function seasonal_notices() {
202
return array(
203
- 'blackfriday2017' => array(
204
'title' => __('Black Friday - 50% off the MetaSlider Add-on Pack until November 30th', 'ml-slider'),
205
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
206
'image' => 'seasonal/black_friday.png',
207
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
208
'button_meta' => 'ml-slider',
209
- 'dismiss_time' => 'blackfriday2017',
210
- 'discount_code' => 'blackfriday2017sale',
211
- 'valid_from' => '2017-11-20 00:00:00',
212
- 'valid_to' => '2017-11-30 23:59:59',
213
- 'hide_time' => __('until next year', 'ml-slider'),
214
'supported_positions' => array('header', 'dashboard'),
215
),
216
- 'christmas2017' => array(
217
'title' => __('Christmas sale - 50% off the MetaSlider Add-on Pack until December 25th', 'ml-slider'),
218
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
219
'image' => 'seasonal/christmas.png',
220
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
221
'button_meta' => 'ml-slider',
222
- 'dismiss_time' => 'christmas2017',
223
- 'discount_code' => 'christmas2017sale',
224
- 'valid_from' => '2017-12-01 00:00:00',
225
- 'valid_to' => '2017-12-25 23:59:59',
226
- 'hide_time' => __('until next year', 'ml-slider'),
227
'supported_positions' => array('header', 'dashboard'),
228
),
229
- 'newyear2018' => array(
230
- 'title' => __('Happy New Year - 50% off the MetaSlider Add-on Pack until January 1st', 'ml-slider'),
231
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
232
'image' => 'seasonal/new_year.png',
233
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
234
'button_meta' => 'ml-slider',
235
- 'dismiss_time' => 'newyear2018',
236
- 'discount_code' => 'newyear2018sale',
237
- 'valid_from' => '2017-12-26 00:00:00',
238
- 'valid_to' => '2018-01-14 23:59:59',
239
- 'hide_time' => __('until next year', 'ml-slider'),
240
'supported_positions' => array('header', 'dashboard'),
241
),
242
'spring2018' => array(
243
- 'title' => __('Spring sale - 50% off the MetaSlider Add-on Pack until April 31st', 'ml-slider'),
244
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
245
'image' => 'seasonal/spring.png',
246
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
@@ -249,7 +250,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
249
'discount_code' => 'spring2018sale',
250
'valid_from' => '2018-04-01 00:00:00',
251
'valid_to' => '2018-04-30 23:59:59',
252
- 'hide_time' => __('until next year', 'ml-slider'),
253
'supported_positions' => array('header', 'dashboard'),
254
),
255
'summer2018' => array(
@@ -262,7 +263,7 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
262
'discount_code' => 'summer2018sale',
263
'valid_from' => '2018-07-01 00:00:00',
264
'valid_to' => '2018-07-31 23:59:59',
265
- 'hide_time' => __('until next year', 'ml-slider'),
266
'supported_positions' => array('header', 'dashboard'),
267
)
268
);
@@ -393,9 +394,9 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
393
protected function valid_seasonal_notices() {
394
$valid = array();
395
$time_now = time();
396
- // $time_now = strtotime('2017-11-20 00:00:01'); // Black Friday
397
- // $time_now = strtotime('2017-12-01 00:00:01'); // XMAS
398
- // $time_now = strtotime('2017-12-26 00:00:01'); // NY
399
// $time_now = strtotime('2018-04-01 00:00:01'); // Spring
400
// $time_now = strtotime('2018-07-01 00:00:01'); // Summer
401
foreach($this->seasonal_notices() as $ad_identifier => $notice) {
@@ -449,41 +450,40 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
449
return true;
450
}
451
452
- // Disable this for now so that after a dismiss, ads hide for 24 hours
453
- // if (get_option("ms_ads_first_seen_on")) {
454
- // They have seen ads before which means the delay is over
455
- // return true;
456
- // }
457
$delay = get_option("ms_hide_all_ads_until");
458
459
- // Only start the timer if they see a page that has ads
460
if (!$this->is_page_with_ads() && !$delay) {
461
return false;
462
}
463
if (!$delay) {
464
465
- // Set the delay for when to see an ad, 2 weeks; returns false
466
return !update_option("ms_hide_all_ads_until", time() + 2*7*86400);
467
} else if ((time() > $delay) && !get_option("ms_ads_first_seen_on")) {
468
469
- // Note the time they first saw ads
470
update_option("ms_ads_first_seen_on", time());
471
472
- // Now that they can see ads, make sure the rate_plugin is shown first
473
- // TODO: Enable this next time
474
- // $notices = $this->lite_notices();
475
- // $this->ads = array('rate_plugin' => $notices['rate_plugin']);
476
return true;
477
} else if (time() < $delay) {
478
479
- // This means an ad was dismissed and there's a 24h delay
480
return false;
481
} else if (get_option("ms_ads_first_seen_on")) {
482
483
- // This means the delay has elapsed, the 24hr period expired
484
- // and there are still ads that haven't been dismissed
485
return true;
486
}
487
// Default to not show an ad, in case there's some error
488
return false;
489
}
@@ -662,12 +662,17 @@ class MetaSlider_Notices extends Updraft_Notices_1_0 {
662
*/
663
public function dismiss_ad($ad_identifier, $weeks) {
664
665
- // if the time isn't specified it will hide forever (9999 weeks)
666
- $weeks = is_int($weeks) ? $weeks : 9999;
667
$result = update_option("ms_hide_{$ad_identifier}_ads_until", time() + $weeks*7*86400);
668
669
- // Hide all ads for 24 hours
670
- update_option("ms_hide_all_ads_until", time() + 1*86400);
671
672
return $result ? $result : new WP_Error('update_failed', __('The attempt to update the option failed.', 'ml-slider'), array('status' => 409));
673
}
84
'button_meta' => 'updraftplus',
85
'dismiss_time' => 'updraftplus',
86
'hide_time' => 12,
87
+ 'supported_positions' => array('header'),
88
'validity_function' => 'is_updraftplus_installed',
89
),
90
'keyy' => array(
95
'button_meta' => 'keyy',
96
'dismiss_time' => 'keyy',
97
'hide_time' => 12,
98
+ 'supported_positions' => array('header'),
99
'validity_function' => 'is_keyy_installed',
100
),
101
'updraftcentral' => array(
106
'button_meta' => 'updraftcentral',
107
'dismiss_time' => 'updraftcentral',
108
'hide_time' => 12,
109
+ 'supported_positions' => array('header'),
110
'validity_function' => 'is_updraftcentral_installed',
111
),
112
'rate_plugin' => array(
117
'button_meta' => 'review',
118
'dismiss_time' => 'rate_plugin',
119
'hide_time' => 12,
120
+ 'supported_positions' => array('header'),
121
),
122
'lite_survey' => array(
123
'title' => __('Help us to get even better MetaSlider', 'ml-slider'),
165
'text' => __('Supercharge & secure your WordPress site with our other top plugins:', 'ml-slider'),
166
'image' => 'metaslider_logo_large.png',
167
'dismiss_time' => 'thankyou',
168
+ 'hide_time' => 52,
169
'mega' => true,
170
'supported_positions' => array('dashboard'),
171
),
193
}
194
195
/**
196
+ * Seasonal Notices. Note that if dismissed, they will stay dismissed for 9999 weeks.
197
+ * An empty string for 'hide_time' will show "Dismiss" instead of "Dismiss (12 weeks)"
198
* Each year the key and dismiss time should be updated
199
*
200
* @return string
201
*/
202
protected function seasonal_notices() {
203
return array(
204
+ 'blackfriday2018' => array(
205
'title' => __('Black Friday - 50% off the MetaSlider Add-on Pack until November 30th', 'ml-slider'),
206
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
207
'image' => 'seasonal/black_friday.png',
208
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
209
'button_meta' => 'ml-slider',
210
+ 'dismiss_time' => 'blackfriday2018',
211
+ 'discount_code' => 'blackfriday2018sale',
212
+ 'valid_from' => '2018-11-20 00:00:00',
213
+ 'valid_to' => '2018-11-30 23:59:59',
214
+ 'hide_time' => '',
215
'supported_positions' => array('header', 'dashboard'),
216
),
217
+ 'christmas2018' => array(
218
'title' => __('Christmas sale - 50% off the MetaSlider Add-on Pack until December 25th', 'ml-slider'),
219
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
220
'image' => 'seasonal/christmas.png',
221
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
222
'button_meta' => 'ml-slider',
223
+ 'dismiss_time' => 'christmas2018',
224
+ 'discount_code' => 'christmas2018sale',
225
+ 'valid_from' => '2018-12-01 00:00:00',
226
+ 'valid_to' => '2018-12-25 23:59:59',
227
+ 'hide_time' => '',
228
'supported_positions' => array('header', 'dashboard'),
229
),
230
+ 'newyear2019' => array(
231
+ 'title' => __('Happy New Year - 50% off the MetaSlider Add-on Pack until January 14th', 'ml-slider'),
232
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
233
'image' => 'seasonal/new_year.png',
234
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
235
'button_meta' => 'ml-slider',
236
+ 'dismiss_time' => 'newyear2019',
237
+ 'discount_code' => 'newyear2019sale',
238
+ 'valid_from' => '2018-12-26 00:00:00',
239
+ 'valid_to' => '2019-01-14 23:59:59',
240
+ 'hide_time' => '',
241
'supported_positions' => array('header', 'dashboard'),
242
),
243
'spring2018' => array(
244
+ 'title' => __('Spring sale - 50% off the MetaSlider Add-on Pack until April 30th', 'ml-slider'),
245
'text' => __('To benefit, use this discount code:', 'ml-slider').' ',
246
'image' => 'seasonal/spring.png',
247
'button_link' => apply_filters('metaslider_hoplink', 'https://www.metaslider.com/upgrade') . '?utm_source=metaslider-plugin-page&utm_medium=banner',
250
'discount_code' => 'spring2018sale',
251
'valid_from' => '2018-04-01 00:00:00',
252
'valid_to' => '2018-04-30 23:59:59',
253
+ 'hide_time' => '',
254
'supported_positions' => array('header', 'dashboard'),
255
),
256
'summer2018' => array(
263
'discount_code' => 'summer2018sale',
264
'valid_from' => '2018-07-01 00:00:00',
265
'valid_to' => '2018-07-31 23:59:59',
266
+ 'hide_time' => '',
267
'supported_positions' => array('header', 'dashboard'),
268
)
269
);
394
protected function valid_seasonal_notices() {
395
$valid = array();
396
$time_now = time();
397
+ // $time_now = strtotime('2018-11-20 00:00:01'); // Black Friday
398
+ // $time_now = strtotime('2018-12-01 00:00:01'); // XMAS
399
+ // $time_now = strtotime('2018-12-26 00:00:01'); // NY
400
// $time_now = strtotime('2018-04-01 00:00:01'); // Spring
401
// $time_now = strtotime('2018-07-01 00:00:01'); // Summer
402
foreach($this->seasonal_notices() as $ad_identifier => $notice) {
450
return true;
451
}
452
453
+ // The delay could be empty, ~2 weeks (initial delay) or ~12 weeks
454
$delay = get_option("ms_hide_all_ads_until");
455
456
if (!$this->is_page_with_ads() && !$delay) {
457
+
458
+ // Only start the timer if they see a page that can serve ads
459
return false;
460
}
461
+
462
if (!$delay) {
463
464
+ // Set the delay for when they will first see an ad, 2 weeks; returns false
465
return !update_option("ms_hide_all_ads_until", time() + 2*7*86400);
466
} else if ((time() > $delay) && !get_option("ms_ads_first_seen_on")) {
467
468
+ // Serve ads now, and note the time they first saw ads
469
update_option("ms_ads_first_seen_on", time());
470
471
+ // Now that they can see ads, make sure the rate_plugin is shown first.
472
+ // Since this shows after 2 weeks, it's better timing.
473
+ $notices = $this->lite_notices();
474
+ $this->ads = array('rate_plugin' => $notices['rate_plugin']);
475
return true;
476
} else if (time() < $delay) {
477
478
+ // This means an ad was dismissed and there's a delay
479
return false;
480
} else if (get_option("ms_ads_first_seen_on")) {
481
482
+ // This means the initial delay has elapsed,
483
+ // and the dismissed period expired
484
return true;
485
}
486
+
487
// Default to not show an ad, in case there's some error
488
return false;
489
}
662
*/
663
public function dismiss_ad($ad_identifier, $weeks) {
664
665
+ // If the time isn't specified it will hide "forever" (9999 weeks)
666
+ // Update 12/18/2017 - will set this an extra week, so that this individual ad will hide, for example, 13 weeks, while ALL ads (minus seasonal) will hide for 12 weeks. This ensures that the user doesn't see the same ad twice. Minor detail.
667
+ $weeks = is_int($weeks) ? $weeks + 1 : 9999;
668
+
669
$result = update_option("ms_hide_{$ad_identifier}_ads_until", time() + $weeks*7*86400);
670
671
+ // Update 12/18/2017 - Hide all ads for 12 weeks (this used to be 24 hours)
672
+ // This skips over the scenario when a user has seen a seasonal ad within the 2 week grace period. That way we can still show them the "rate plugin" ad after 2 weeks.
673
+ if (get_option("ms_ads_first_seen_on")) {
674
+ update_option("ms_hide_all_ads_until", time() + 12*7*86400);
675
+ }
676
677
return $result ? $result : new WP_Error('update_failed', __('The attempt to update the option failed.', 'ml-slider'), array('status' => 409));
678
}
admin/assets/tether/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2016 HubSpot, Inc.
2
3
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
1
+ Copyright (c) 2014-2017 HubSpot, Inc.
2
3
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
admin/assets/tether/tether.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! tether 1.4.0 */
2
3
(function(root, factory) {
4
if (typeof define === 'function' && define.amd) {
@@ -77,7 +77,7 @@ function getScrollParents(el) {
77
var overflowX = _style.overflowX;
78
var overflowY = _style.overflowY;
79
80
- if (/(auto|scroll)/.test(overflow + overflowY + overflowX)) {
81
if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) {
82
parents.push(parent);
83
}
@@ -476,7 +476,7 @@ var position = function position() {
476
};
477
478
function now() {
479
- if (typeof performance !== 'undefined' && typeof performance.now !== 'undefined') {
480
return performance.now();
481
}
482
return +new Date();
@@ -1248,7 +1248,9 @@ var TetherClass = (function (_Evented) {
1248
1249
if (!moved) {
1250
if (this.options.bodyElement) {
1251
- this.options.bodyElement.appendChild(this.element);
1252
} else {
1253
var offsetParentIsBody = true;
1254
var currentNode = this.element.parentNode;
1
+ /*! tether 1.4.3 */
2
3
(function(root, factory) {
4
if (typeof define === 'function' && define.amd) {
77
var overflowX = _style.overflowX;
78
var overflowY = _style.overflowY;
79
80
+ if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {
81
if (position !== 'absolute' || ['relative', 'absolute', 'fixed'].indexOf(style.position) >= 0) {
82
parents.push(parent);
83
}
476
};
477
478
function now() {
479
+ if (typeof performance === 'object' && typeof performance.now === 'function') {
480
return performance.now();
481
}
482
return +new Date();
1248
1249
if (!moved) {
1250
if (this.options.bodyElement) {
1251
+ if (this.element.parentNode !== this.options.bodyElement) {
1252
+ this.options.bodyElement.appendChild(this.element);
1253
+ }
1254
} else {
1255
var offsetParentIsBody = true;
1256
var currentNode = this.element.parentNode;
admin/assets/tether/tether.min.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var r=void 0;try{r=getComputedStyle(n)}catch(s){}if("undefined"==typeof r||null===r)return i.push(n),i;var a=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),r=P();return i.top-=r.top,i.left-=r.left,"undefined"==typeof i.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeof i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function f(t){return t.offsetParent||document.documentElement}function l(){if(M)return M;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return M={width:n,height:n}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}function p(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var o=c(t)+(" "+e);g(t,o)}}function u(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){e.indexOf(o)===-1&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"undefined"!=typeof performance&&"undefined"!=typeof performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return o.forEach(function(e){var o=e.top,i=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}function C(t,e){return"string"==typeof t.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&t.top.indexOf("%")!==-1&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeof e.nodeType&&!function(){var t=e,o=a(e),i=o,n=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}G.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(n["border"+t+"Width"]):e[o]-=parseFloat(n["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),x=void 0;"undefined"==typeof x&&(x={modules:[]});var A=null,T=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=A;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),h(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");return"undefined"==typeof S[e]&&(S[e]=n(t),k(function(){delete S[e]})),S[e]},M=null,W=[],k=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},B=function(){function t(){i(this,t)}return E(t,[{key:"on",value:function(t,e,o){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];"undefined"==typeof this.bindings&&(this.bindings={}),"undefined"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:i})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if("undefined"!=typeof this.bindings&&"undefined"!=typeof this.bindings[t])if("undefined"==typeof e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if("undefined"!=typeof this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,i=Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,f=r.once,l=a;"undefined"==typeof l&&(l=this),s.apply(l,i),f?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:n,getScrollParents:r,getBounds:a,getOffsetParent:f,extend:h,addClass:p,removeClass:d,hasClass:u,updateClasses:m,defer:k,flush:_,uniqueId:T,Evented:B,getScrollBarSize:l,removeUtilElements:s};var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),j=function(t,e,o){for(var i=!0;i;){var n=t,r=e,s=o;i=!1,null===n&&(n=Function.prototype);var a=Object.getOwnPropertyDescriptor(n,r);if(void 0!==a){if("value"in a)return a.value;var f=a.get;if(void 0===f)return;return f.call(s)}var l=Object.getPrototypeOf(n);if(null===l)return;t=l,e=r,o=s,i=!0,a=l=void 0}};if("undefined"==typeof x)throw new Error("You must include the utils.js file before tether.js");var Y=x.Utils,r=Y.getScrollParents,a=Y.getBounds,f=Y.getOffsetParent,h=Y.extend,p=Y.addClass,d=Y.removeClass,m=Y.updateClasses,k=Y.defer,_=Y.flush,l=Y.getScrollBarSize,s=Y.removeUtilElements,L=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var i=e[o];if(void 0!==t.style[i])return i}}(),D=[],X=function(){D.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,i=function n(){return"undefined"!=typeof e&&e>16?(e=Math.min(e-16,250),void(o=setTimeout(n,250))):void("undefined"!=typeof t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),X(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var F={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=F[e.left]),"auto"===i&&(i=H[e.top]),{left:o,top:i}},V=function(t){var e=t.left,o=t.top;return"undefined"!=typeof N[t.left]&&(e=N[t.left]),"undefined"!=typeof N[t.top]&&(o=N[t.top]),{left:e,top:o}},R=function(t){var e=t.split(" "),o=z(e,2),i=o[0],n=o[1];return{top:i,left:n}},q=R,I=function(t){function e(t){var o=this;i(this,e),j(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),D.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=h(i,t);var n=this.options,s=n.element,a=n.target,f=n.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),p(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&p(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=R(this.options.offset),this.targetOffset=R(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(o)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var i=getComputedStyle(o),n=o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;n&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},f=0;s<408&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),D.forEach(function(e,o){e===t&&D.splice(o,1)}),0===D.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),k(function(){"undefined"!=typeof o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),o.options.addTargetClasses!==!1&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return a(t.element)}),n=i.width,r=i.height;if(0===n&&0===r&&"undefined"!=typeof this.lastSize){var s=this.lastSize;n=s.width,r=s.height}else this.lastSize={width:n,height:r};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=h,p=C(V(this.attachment),{width:n,height:r}),u=C(V(o),d),c=C(this.offset,{width:n,height:r}),g=C(this.targetOffset,d);p=w(p,c),u=w(u,g);for(var m=h.left+u.left-p.left,v=h.top+u.top-p.top,y=0;y<x.modules.length;++y){var b=x.modules[y],O=b.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:h,elementPos:i,offset:p,targetOffset:u,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(O===!1)return!1;"undefined"!=typeof O&&"object"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-n+innerWidth}},A=this.target.ownerDocument,T=A.defaultView,S=void 0;return T.innerHeight>A.documentElement.clientHeight&&(S=this.cache("scrollbar-size",l),E.viewport.bottom-=S.height),T.innerWidth>A.documentElement.clientWidth&&(S=this.cache("scrollbar-size",l),E.viewport.right-=S.width),["","static"].indexOf(A.body.style.position)!==-1&&["","static"].indexOf(A.body.parentElement.style.position)!==-1||(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-n),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return f(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),n=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=A.body.scrollWidth-o.left-n.width+r.right,o.bottom=A.body.scrollHeight-o.top-n.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if("undefined"!=typeof a[i]&&!y(a[i][n],t[i][n])){r=!0;break}}r||(o[i][n]=!0)}}var l={top:"",left:"",right:"",bottom:""},d=function(t,o){var i="undefined"!=typeof e.options.optimizations,n=i?e.options.optimizations.gpu:null;if(n!==!1){var r=void 0,s=void 0;if(t.top?(l.top=0,r=o.top):(l.bottom=0,r=-o.bottom),t.left?(l.left=0,s=o.left):(l.right=0,s=-o.right),window.matchMedia){var a=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;a||(s=Math.round(s),r=Math.round(r))}l[L]="translateX("+s+"px) translateY("+r+"px)","msTransform"!==L&&(l[L]+=" translateZ(0)")}else t.top?l.top=o.top+"px":l.bottom=o.bottom+"px",t.left?l.left=o.left+"px":l.right=o.right+"px"},p=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(l.position="absolute",d(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(l.position="fixed",d(o.viewport,t.viewport)):"undefined"!=typeof o.offset&&o.offset.top&&o.offset.left?!function(){l.position="absolute";var i=e.cache("target-offsetparent",function(){return f(e.target)});f(e.element)!==i&&k(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),d(o.offset,t.offset),p=!0}():(l.position="absolute",d({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var u=!0,c=this.element.parentNode;c&&1===c.nodeType&&"BODY"!==c.tagName;){if("static"!==getComputedStyle(c).position){u=!1;break}c=c.parentNode}u||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var n in l){var v=l[n],b=this.element.style[n];b!==v&&(m=!0,g[n]=v)}m&&k(function(){h(e.element.style,g),e.trigger("repositioned")})}}}]),e}(B);I.modules=[],x.position=X;var $=h(I,x),z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Y=x.Utils,a=Y.getBounds,h=Y.extend,m=Y.updateClasses,k=Y.defer,G=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,f=r.width;if(0===f&&0===s&&"undefined"!=typeof this.lastSize){var l=this.lastSize;f=l.width,s=l.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),p=d.height,u=d.width,c=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){["left","top","right","bottom"].forEach(function(e){c.push(t+"-"+e)})});var g=[],v=h({},n),y=h({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,l=t.pin;"undefined"==typeof a&&(a="");var h=void 0,d=void 0;if(a.indexOf(" ")>=0){var c=a.split(" "),m=z(c,2);d=m[0],h=m[1]}else h=d=a;var b=O(e,r);"target"!==d&&"both"!==d||(o<b[1]&&"top"===v.top&&(o+=p,v.top="bottom"),o+s>b[3]&&"bottom"===v.top&&(o-=p,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&o<b[1]?(o+=p,v.top="bottom",o+=s,y.top="top"):"top"===y.top&&o+s>b[3]&&o-(s-p)>=b[1]&&(o-=s-p,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&o+s>b[3]?(o-=p,v.top="top",o-=s,y.top="bottom"):"bottom"===y.top&&o<b[1]&&o+(2*s-p)<=b[3]&&(o+=s-p,v.top="top",y.top="top")),"middle"===v.top&&(o+s>b[3]&&"top"===y.top?(o-=s,y.top="bottom"):o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"))),"target"!==h&&"both"!==h||(i<b[0]&&"left"===v.left&&(i+=u,v.left="right"),i+f>b[2]&&"right"===v.left&&(i-=u,v.left="left")),"together"===h&&(i<b[0]&&"left"===v.left?"right"===y.left?(i+=u,v.left="right",i+=f,y.left="left"):"left"===y.left&&(i+=u,v.left="right",i-=f,y.left="right"):i+f>b[2]&&"right"===v.left?"left"===y.left?(i-=u,v.left="left",i-=f,y.left="right"):"right"===y.left&&(i-=u,v.left="left",i+=f,y.left="left"):"center"===v.left&&(i+f>b[2]&&"left"===y.left?(i-=f,y.left="right"):i<b[0]&&"right"===y.left&&(i+=f,y.left="left"))),"element"!==d&&"both"!==d||(o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"),o+s>b[3]&&"top"===y.top&&(o-=s,y.top="bottom")),"element"!==h&&"both"!==h||(i<b[0]&&("right"===y.left?(i+=f,y.left="left"):"center"===y.left&&(i+=f/2,y.left="left")),i+f>b[2]&&("left"===y.left?(i-=f,y.left="right"):"center"===y.left&&(i-=f/2,y.left="right"))),"string"==typeof l?l=l.split(",").map(function(t){return t.trim()}):l===!0&&(l=["top","left","right","bottom"]),l=l||[];var w=[],C=[];o<b[1]&&(l.indexOf("top")>=0?(o=b[1],w.push("top")):C.push("top")),o+s>b[3]&&(l.indexOf("bottom")>=0?(o=b[3]-s,w.push("bottom")):C.push("bottom")),i<b[0]&&(l.indexOf("left")>=0?(i=b[0],w.push("left")):C.push("left")),i+f>b[2]&&(l.indexOf("right")>=0?(i=b[2]-f,w.push("right")):C.push("right")),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===n.top&&v.left===n.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:i}}});var Y=x.Utils,a=Y.getBounds,m=Y.updateClasses,k=Y.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return a(e.element)}),r=n.height,s=n.width,f=this.getTargetBounds(),l=o+r,h=i+s,d=[];o<=f.bottom&&l>=f.top&&["left","right"].forEach(function(t){var e=f[t];e!==i&&e!==h||d.push(t)}),i<=f.right&&h>=f.left&&["top","bottom"].forEach(function(t){var e=f[t];e!==o&&e!==l||d.push(t)});var p=[],u=[],c=["left","top","right","bottom"];return p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&u.push(this.getClass("abutted")),d.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,u,p),m(e.element,u,p)}),!0}});var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=z(s,2);n=a[0],r=a[1],n=parseFloat(n,10),r=parseFloat(r,10)}else n=i.top,r=i.left;return e+=n,o+=r,{top:e,left:o}}}}),$});
1
+ !function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var r=void 0;try{r=getComputedStyle(n)}catch(s){}if("undefined"==typeof r||null===r)return i.push(n),i;var a=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll|overlay)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),r=P();return i.top-=r.top,i.left-=r.left,"undefined"==typeof i.width&&(i.width=document.body.scrollWidth-i.left-i.right),"undefined"==typeof i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function f(t){return t.offsetParent||document.documentElement}function l(){if(M)return M;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");h(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return M={width:n,height:n}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function d(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}function p(t,e){if("undefined"!=typeof t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var o=c(t)+(" "+e);g(t,o)}}function u(t,e){if("undefined"!=typeof t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){e.indexOf(o)===-1&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"object"==typeof performance&&"function"==typeof performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return o.forEach(function(e){var o=e.top,i=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}function C(t,e){return"string"==typeof t.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&t.top.indexOf("%")!==-1&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),"undefined"!=typeof e.nodeType&&!function(){var t=e,o=a(e),i=o,n=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}G.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(n["border"+t+"Width"]):e[o]-=parseFloat(n["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),x=void 0;"undefined"==typeof x&&(x={modules:[]});var A=null,T=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=A;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),h(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");return"undefined"==typeof S[e]&&(S[e]=n(t),k(function(){delete S[e]})),S[e]},M=null,W=[],k=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},B=function(){function t(){i(this,t)}return E(t,[{key:"on",value:function(t,e,o){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];"undefined"==typeof this.bindings&&(this.bindings={}),"undefined"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:i})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if("undefined"!=typeof this.bindings&&"undefined"!=typeof this.bindings[t])if("undefined"==typeof e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if("undefined"!=typeof this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,i=Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,f=r.once,l=a;"undefined"==typeof l&&(l=this),s.apply(l,i),f?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:n,getScrollParents:r,getBounds:a,getOffsetParent:f,extend:h,addClass:p,removeClass:d,hasClass:u,updateClasses:m,defer:k,flush:_,uniqueId:T,Evented:B,getScrollBarSize:l,removeUtilElements:s};var j=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),z=function(t,e,o){for(var i=!0;i;){var n=t,r=e,s=o;i=!1,null===n&&(n=Function.prototype);var a=Object.getOwnPropertyDescriptor(n,r);if(void 0!==a){if("value"in a)return a.value;var f=a.get;if(void 0===f)return;return f.call(s)}var l=Object.getPrototypeOf(n);if(null===l)return;t=l,e=r,o=s,i=!0,a=l=void 0}};if("undefined"==typeof x)throw new Error("You must include the utils.js file before tether.js");var Y=x.Utils,r=Y.getScrollParents,a=Y.getBounds,f=Y.getOffsetParent,h=Y.extend,p=Y.addClass,d=Y.removeClass,m=Y.updateClasses,k=Y.defer,_=Y.flush,l=Y.getScrollBarSize,s=Y.removeUtilElements,L=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var i=e[o];if(void 0!==t.style[i])return i}}(),D=[],X=function(){D.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,i=function n(){return"undefined"!=typeof e&&e>16?(e=Math.min(e-16,250),void(o=setTimeout(n,250))):void("undefined"!=typeof t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),X(),e=b()-t))};"undefined"!=typeof window&&"undefined"!=typeof window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var F={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=F[e.left]),"auto"===i&&(i=H[e.top]),{left:o,top:i}},V=function(t){var e=t.left,o=t.top;return"undefined"!=typeof N[t.left]&&(e=N[t.left]),"undefined"!=typeof N[t.top]&&(o=N[t.top]),{left:e,top:o}},R=function(t){var e=t.split(" "),o=j(e,2),i=o[0],n=o[1];return{top:i,left:n}},q=R,I=function(t){function e(t){var o=this;i(this,e),z(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),D.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){"undefined"!=typeof t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return"undefined"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=h(i,t);var n=this.options,s=n.element,a=n.target,f=n.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if("undefined"==typeof e[t])throw new Error("Tether Error: Both element and target must be defined");"undefined"!=typeof e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),p(this.element,this.getClass("element")),this.options.addTargetClasses!==!1&&p(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=R(this.options.offset),this.targetOffset=R(this.options.targetOffset),"undefined"!=typeof this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(o)}},{key:"getTargetBounds",value:function(){if("undefined"==typeof this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var i=getComputedStyle(o),n=o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;n&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},f=0;s<408&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return"undefined"==typeof this._cache&&(this._cache={}),"undefined"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];this.options.addTargetClasses!==!1&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,"undefined"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),D.forEach(function(e,o){e===t&&D.splice(o,1)}),0===D.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];"undefined"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),"undefined"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),k(function(){"undefined"!=typeof o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),o.options.addTargetClasses!==!1&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return a(t.element)}),n=i.width,r=i.height;if(0===n&&0===r&&"undefined"!=typeof this.lastSize){var s=this.lastSize;n=s.width,r=s.height}else this.lastSize={width:n,height:r};var h=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=h,p=C(V(this.attachment),{width:n,height:r}),u=C(V(o),d),c=C(this.offset,{width:n,height:r}),g=C(this.targetOffset,d);p=w(p,c),u=w(u,g);for(var m=h.left+u.left-p.left,v=h.top+u.top-p.top,y=0;y<x.modules.length;++y){var b=x.modules[y],O=b.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:h,elementPos:i,offset:p,targetOffset:u,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(O===!1)return!1;"undefined"!=typeof O&&"object"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-n+innerWidth}},A=this.target.ownerDocument,T=A.defaultView,S=void 0;return T.innerHeight>A.documentElement.clientHeight&&(S=this.cache("scrollbar-size",l),E.viewport.bottom-=S.height),T.innerWidth>A.documentElement.clientWidth&&(S=this.cache("scrollbar-size",l),E.viewport.right-=S.width),["","static"].indexOf(A.body.style.position)!==-1&&["","static"].indexOf(A.body.parentElement.style.position)!==-1||(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-n),"undefined"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&"undefined"==typeof this.targetModifier&&!function(){var e=t.cache("target-offsetparent",function(){return f(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),n=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=A.body.scrollWidth-o.left-n.width+r.right,o.bottom=A.body.scrollHeight-o.top-n.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if("undefined"!=typeof this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if("undefined"!=typeof a[i]&&!y(a[i][n],t[i][n])){r=!0;break}}r||(o[i][n]=!0)}}var l={top:"",left:"",right:"",bottom:""},d=function(t,o){var i="undefined"!=typeof e.options.optimizations,n=i?e.options.optimizations.gpu:null;if(n!==!1){var r=void 0,s=void 0;if(t.top?(l.top=0,r=o.top):(l.bottom=0,r=-o.bottom),t.left?(l.left=0,s=o.left):(l.right=0,s=-o.right),window.matchMedia){var a=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;a||(s=Math.round(s),r=Math.round(r))}l[L]="translateX("+s+"px) translateY("+r+"px)","msTransform"!==L&&(l[L]+=" translateZ(0)")}else t.top?l.top=o.top+"px":l.bottom=o.bottom+"px",t.left?l.left=o.left+"px":l.right=o.right+"px"},p=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(l.position="absolute",d(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(l.position="fixed",d(o.viewport,t.viewport)):"undefined"!=typeof o.offset&&o.offset.top&&o.offset.left?!function(){l.position="absolute";var i=e.cache("target-offsetparent",function(){return f(e.target)});f(e.element)!==i&&k(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),d(o.offset,t.offset),p=!0}():(l.position="absolute",d({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var u=!0,c=this.element.parentNode;c&&1===c.nodeType&&"BODY"!==c.tagName;){if("static"!==getComputedStyle(c).position){u=!1;break}c=c.parentNode}u||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var n in l){var v=l[n],b=this.element.style[n];b!==v&&(m=!0,g[n]=v)}m&&k(function(){h(e.element.style,g),e.trigger("repositioned")})}}}]),e}(B);I.modules=[],x.position=X;var $=h(I,x),j=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Y=x.Utils,a=Y.getBounds,h=Y.extend,m=Y.updateClasses,k=Y.defer,G=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,f=r.width;if(0===f&&0===s&&"undefined"!=typeof this.lastSize){var l=this.lastSize;f=l.width,s=l.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),p=d.height,u=d.width,c=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){["left","top","right","bottom"].forEach(function(e){c.push(t+"-"+e)})});var g=[],v=h({},n),y=h({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,l=t.pin;"undefined"==typeof a&&(a="");var h=void 0,d=void 0;if(a.indexOf(" ")>=0){var c=a.split(" "),m=j(c,2);d=m[0],h=m[1]}else h=d=a;var b=O(e,r);"target"!==d&&"both"!==d||(o<b[1]&&"top"===v.top&&(o+=p,v.top="bottom"),o+s>b[3]&&"bottom"===v.top&&(o-=p,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===y.top&&o<b[1]?(o+=p,v.top="bottom",o+=s,y.top="top"):"top"===y.top&&o+s>b[3]&&o-(s-p)>=b[1]&&(o-=s-p,v.top="bottom",y.top="bottom")),"bottom"===v.top&&("top"===y.top&&o+s>b[3]?(o-=p,v.top="top",o-=s,y.top="bottom"):"bottom"===y.top&&o<b[1]&&o+(2*s-p)<=b[3]&&(o+=s-p,v.top="top",y.top="top")),"middle"===v.top&&(o+s>b[3]&&"top"===y.top?(o-=s,y.top="bottom"):o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"))),"target"!==h&&"both"!==h||(i<b[0]&&"left"===v.left&&(i+=u,v.left="right"),i+f>b[2]&&"right"===v.left&&(i-=u,v.left="left")),"together"===h&&(i<b[0]&&"left"===v.left?"right"===y.left?(i+=u,v.left="right",i+=f,y.left="left"):"left"===y.left&&(i+=u,v.left="right",i-=f,y.left="right"):i+f>b[2]&&"right"===v.left?"left"===y.left?(i-=u,v.left="left",i-=f,y.left="right"):"right"===y.left&&(i-=u,v.left="left",i+=f,y.left="left"):"center"===v.left&&(i+f>b[2]&&"left"===y.left?(i-=f,y.left="right"):i<b[0]&&"right"===y.left&&(i+=f,y.left="left"))),"element"!==d&&"both"!==d||(o<b[1]&&"bottom"===y.top&&(o+=s,y.top="top"),o+s>b[3]&&"top"===y.top&&(o-=s,y.top="bottom")),"element"!==h&&"both"!==h||(i<b[0]&&("right"===y.left?(i+=f,y.left="left"):"center"===y.left&&(i+=f/2,y.left="left")),i+f>b[2]&&("left"===y.left?(i-=f,y.left="right"):"center"===y.left&&(i-=f/2,y.left="right"))),"string"==typeof l?l=l.split(",").map(function(t){return t.trim()}):l===!0&&(l=["top","left","right","bottom"]),l=l||[];var w=[],C=[];o<b[1]&&(l.indexOf("top")>=0?(o=b[1],w.push("top")):C.push("top")),o+s>b[3]&&(l.indexOf("bottom")>=0?(o=b[3]-s,w.push("bottom")):C.push("bottom")),i<b[0]&&(l.indexOf("left")>=0?(i=b[0],w.push("left")):C.push("left")),i+f>b[2]&&(l.indexOf("right")>=0?(i=b[2]-f,w.push("right")):C.push("right")),w.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&!function(){var t=void 0;t="undefined"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=v.top=!1),v.top===n.top&&v.left===n.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,v),e.trigger("update",{attachment:y,targetAttachment:v}))}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:i}}});var Y=x.Utils,a=Y.getBounds,m=Y.updateClasses,k=Y.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return a(e.element)}),r=n.height,s=n.width,f=this.getTargetBounds(),l=o+r,h=i+s,d=[];o<=f.bottom&&l>=f.top&&["left","right"].forEach(function(t){var e=f[t];e!==i&&e!==h||d.push(t)}),i<=f.right&&h>=f.left&&["top","bottom"].forEach(function(t){var e=f[t];e!==o&&e!==l||d.push(t)});var p=[],u=[],c=["left","top","right","bottom"];return p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&u.push(this.getClass("abutted")),d.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),k(function(){e.options.addTargetClasses!==!1&&m(e.target,u,p),m(e.element,u,p)}),!0}});var j=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(f){n=!0,r=f}finally{try{!i&&a["return"]&&a["return"]()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=j(s,2);n=a[0],r=a[1],n=parseFloat(n,10),r=parseFloat(r,10)}else n=i.top,r=i.left;return e+=n,o+=r,{top:e,left:o}}}}),$});
admin/views/notices/dashboard-notice.php CHANGED
@@ -6,7 +6,7 @@
6
<h1><?php echo $title; ?></h1>
7
<p><?php echo $text; ?>
8
<div class="updraft-advert-dismiss">
9
- <a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'notice_handler', ad_identifier: '<?php echo $dismiss_time;?>', _wpnonce: metaslider_notices.handle_notices_nonce });"><?php echo sprintf(__('Hide this ad (%s)', 'ml-slider'), $hide_time); ?></a>
10
</div>
11
<?php foreach ($this->mega_notice_parts() as $ad_identifier => $values) {
12
extract($values); ?>
6
<h1><?php echo $title; ?></h1>
7
<p><?php echo $text; ?>
8
<div class="updraft-advert-dismiss">
9
+ <a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'notice_handler', ad_identifier: '<?php echo $dismiss_time;?>', _wpnonce: metaslider_notices.handle_notices_nonce });"><?php echo sprintf('%s (%s)', __('Dismiss', 'ml-slider'), $hide_time); ?></a>
10
</div>
11
<?php foreach ($this->mega_notice_parts() as $ad_identifier => $values) {
12
extract($values); ?>
admin/views/notices/header-notice.php CHANGED
@@ -8,7 +8,7 @@
8
<div class="updraft_advert_content_right">
9
<h3 class="updraft_advert_heading"><?php echo $title; ?></h3>
10
<div class="updraft-advert-dismiss">
11
- <a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'notice_handler', ad_identifier: '<?php echo $dismiss_time;?>', _wpnonce: metaslider_notices.handle_notices_nonce });"><?php echo sprintf(__('Hide this ad (%s)', 'ml-slider'), $hide_time); ?></a>
12
</div>
13
<p>
14
<?php
@@ -21,10 +21,6 @@
21
}
22
?>
23
</p>
24
- <?php $count = count($this->active_ads('header'));
25
- if ($count > 1) { ?>
26
- <span class="updraft_ad_meta">ad <?php echo array_search($dismiss_time, array_keys($this->active_ads('header'))) + 1; ?>/<?php echo $count ?></span>
27
- <?php } ?>
28
</div>
29
</div>
30
<div class="clear"></div>
8
<div class="updraft_advert_content_right">
9
<h3 class="updraft_advert_heading"><?php echo $title; ?></h3>
10
<div class="updraft-advert-dismiss">
11
+ <a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'notice_handler', ad_identifier: '<?php echo $dismiss_time;?>', _wpnonce: metaslider_notices.handle_notices_nonce });"><?php echo sprintf('%s', __('Dismiss', 'ml-slider')); echo ('' !== $hide_time) ? sprintf(' (%s)', $hide_time) : ''; ?></a>
12
</div>
13
<p>
14
<?php
21
}
22
?>
23
</p>
24
</div>
25
</div>
26
<div class="clear"></div>
assets/metaslider/public.css CHANGED
@@ -59,12 +59,6 @@ body .metaslider .flexslider .flex-direction-nav li {
59
outline: none;
60
}
61
62
- .metaslider .theme-default .nivoSlider {
63
- -webkit-box-shadow: 0 0 0;
64
- -moz-box-shadow: 0 0 0;
65
- box-shadow: 0 0 0;
66
- }
67
-
68
.metaslider.ms-left {
69
float: left;
70
margin: 0 20px 20px 0;
@@ -87,20 +81,6 @@ body .metaslider .flexslider .flex-direction-nav li {
87
width: auto;
88
}
89
90
- .metaslider .slider-wrapper .nivo-directionNav a,
91
- .metaslider .slider-wrapper .nivo-controlNav a,
92
- .metaslider .slider-wrapper img {
93
- border: 0;
94
- box-shadow: none;
95
- margin: 0;
96
- list-style-type: none;
97
- list-style: none;
98
- padding: 0;
99
- line-height: normal;
100
- max-width: none;
101
- max-height: none;
102
- }
103
-
104
.metaslider .slides img {
105
width: 100%;
106
display: block;
@@ -115,51 +95,52 @@ body .metaslider .flexslider .flex-direction-nav li {
115
-moz-box-shadow: none;
116
-o-box-shadow: none;
117
border: 0;
118
- margin: 0 0 40px 0;
119
max-width: none;
120
max-height: none;
121
}
122
123
- .flex-control-nav {
124
- bottom: -30px;
125
line-height: 11px;
126
z-index: 2;
127
}
128
129
/** move margin from list items to anchors */
130
- .flex-control-nav li {
131
margin: 0;
132
}
133
134
- .flex-control-nav li a {
135
margin: 0 6px;
136
padding: 0;
137
}
138
139
- .flexslider .slides li {
140
position: relative;
141
height: auto;
142
}
143
144
/** fix for users with RTL languages */
145
- .flex-viewport {
146
direction: ltr;
147
}
148
149
/** add transition effects to firefox **/
150
- .flex-direction-nav a {
151
-moz-transition: all .3s ease;
152
transition: all .3s ease;
153
}
154
155
- .flexslider .slides p {
156
margin: 0;
157
}
158
159
- .flex-control-nav {
160
- margin: auto;
161
- }
162
-
163
.metaslider .flexslider.filmstrip {
164
margin-top: 10px;
165
}
@@ -202,6 +183,7 @@ body .metaslider .flexslider .flex-direction-nav li {
202
.metaslider .flexslider .flex-direction-nav li a {
203
width: 30px;
204
height: 30px;
205
margin: -20px 0 0;
206
box-shadow: none!important;
207
display: block;
@@ -218,10 +200,10 @@ body .metaslider .flexslider .flex-direction-nav li {
218
-moz-transition: opacity .25s ease-in-out;
219
transition: all .3s ease;
220
}
221
- .flex-direction-nav .flex-next {
222
background-position: left 0;
223
}
224
- .flex-direction-nav .flex-next {
225
background-position: right 0;
226
text-align: left;
227
/* Fix for single character text */
@@ -258,12 +240,39 @@ body .metaslider .flexslider .flex-direction-nav li {
258
.metaslider .rslides_tabs a {
259
box-shadow: none !important;
260
}
261
262
.metaslider .rslides_nav:focus,
263
.metaslider .rslides_nav:hover {
264
color: #ffffff;
265
}
266
267
/* Coin Slider */
268
.metaslider .coin-slider {
269
59
outline: none;
60
}
61
62
.metaslider.ms-left {
63
float: left;
64
margin: 0 20px 20px 0;
81
width: auto;
82
}
83
84
.metaslider .slides img {
85
width: 100%;
86
display: block;
95
-moz-box-shadow: none;
96
-o-box-shadow: none;
97
border: 0;
98
+ margin: 0 0 40px;
99
max-width: none;
100
max-height: none;
101
}
102
103
+ .metaslider .flex-control-nav {
104
+ border: 0;
105
+ margin: auto;
106
+ list-style-type: none;
107
+ list-style: none;
108
+ padding: 0;
109
+ bottom: -27px;
110
line-height: 11px;
111
z-index: 2;
112
}
113
114
/** move margin from list items to anchors */
115
+ .metaslider .flex-control-nav li {
116
margin: 0;
117
}
118
119
+ .metaslider .flex-control-nav li a {
120
margin: 0 6px;
121
padding: 0;
122
}
123
124
+ .metaslider .flexslider .slides li {
125
position: relative;
126
height: auto;
127
}
128
129
/** fix for users with RTL languages */
130
+ .metaslider .flex-viewport {
131
direction: ltr;
132
}
133
134
/** add transition effects to firefox **/
135
+ .metaslider .flex-direction-nav a {
136
-moz-transition: all .3s ease;
137
transition: all .3s ease;
138
}
139
140
+ .metaslider .flexslider .slides p {
141
margin: 0;
142
}
143
144
.metaslider .flexslider.filmstrip {
145
margin-top: 10px;
146
}
183
.metaslider .flexslider .flex-direction-nav li a {
184
width: 30px;
185
height: 30px;
186
+ border: 0;
187
margin: -20px 0 0;
188
box-shadow: none!important;
189
display: block;
200
-moz-transition: opacity .25s ease-in-out;
201
transition: all .3s ease;
202
}
203
+ .metaslider .flex-direction-nav .flex-next {
204
background-position: left 0;
205
}
206
+ .metaslider .flex-direction-nav .flex-next {
207
background-position: right 0;
208
text-align: left;
209
/* Fix for single character text */
240
.metaslider .rslides_tabs a {
241
box-shadow: none !important;
242
}
243
+ .metaslider .rslides_tabs {
244
+ margin: 0 0 40px;
245
+ }
246
247
.metaslider .rslides_nav:focus,
248
.metaslider .rslides_nav:hover {
249
color: #ffffff;
250
}
251
252
+ /* Nivo Slider */
253
+ .metaslider .theme-default .nivoSlider {
254
+ -webkit-box-shadow: 0 0 0;
255
+ -moz-box-shadow: 0 0 0;
256
+ box-shadow: 0 0 0;
257
+ }
258
+
259
+ .metaslider .slider-wrapper .nivo-directionNav a,
260
+ .metaslider .slider-wrapper .nivo-controlNav a,
261
+ .metaslider .slider-wrapper img {
262
+ border: 0;
263
+ box-shadow: none;
264
+ margin: 0;
265
+ list-style-type: none;
266
+ list-style: none;
267
+ padding: 0;
268
+ line-height: normal;
269
+ max-width: none;
270
+ max-height: none;
271
+ }
272
+ .metaslider .slider-wrapper .nivo-controlNav a {
273
+ transition: none;
274
+ }
275
+
276
/* Coin Slider */
277
.metaslider .coin-slider {
278
inc/slider/metaslider.class.php CHANGED
@@ -219,7 +219,6 @@ class MetaSlider {
219
* @return string HTML & Javascrpt
220
*/
221
public function render_public_slides() {
222
- $html[] = '<!-- MetaSlider -->';
223
$html[] = '<div style="' . $this->get_container_style() . '" class="' . esc_attr($this->get_container_class()) .'">';
224
$html[] = ' ' . $this->get_inline_css();
225
$html[] = ' <div id="' . $this->get_container_id() . '">';
@@ -227,7 +226,6 @@ class MetaSlider {
227
$html[] = ' ' . $this->get_html_after();
228
$html[] = ' </div>';
229
$html[] = '</div>';
230
- $html[] = '<!--// MetaSlider-->';
231
232
$slideshow = implode( "\n", $html );
233
@@ -354,7 +352,7 @@ class MetaSlider {
354
$javascript = "";
355
356
if ( $this->get_setting( 'noConflict' ) == 'true' && $type == 'flex' ) {
357
- $javascript = "$('#metaslider_{$this->id}').addClass('flexslider'); // theme/plugin conflict avoidance";
358
}
359
360
$custom_js = apply_filters( "metaslider_{$type}_slider_javascript_before", $javascript, $this->id );
219
* @return string HTML & Javascrpt
220
*/
221
public function render_public_slides() {
222
$html[] = '<div style="' . $this->get_container_style() . '" class="' . esc_attr($this->get_container_class()) .'">';
223
$html[] = ' ' . $this->get_inline_css();
224
$html[] = ' <div id="' . $this->get_container_id() . '">';
226
$html[] = ' ' . $this->get_html_after();
227
$html[] = ' </div>';
228
$html[] = '</div>';
229
230
$slideshow = implode( "\n", $html );
231
352
$javascript = "";
353
354
if ( $this->get_setting( 'noConflict' ) == 'true' && $type == 'flex' ) {
355
+ $javascript = "$('#metaslider_{$this->id}').addClass('flexslider'); /* theme/plugin conflict avoidance */";
356
}
357
358
$custom_js = apply_filters( "metaslider_{$type}_slider_javascript_before", $javascript, $this->id );
languages/ml-slider.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2017 ml-slider
2
# This file is distributed under the same license as the ml-slider package.
3
msgid ""
4
msgstr ""
@@ -7,7 +7,7 @@ msgstr ""
7
"MIME-Version: 1.0\n"
8
"Content-Type: text/plain; charset=UTF-8\n"
9
"Content-Transfer-Encoding: 8bit\n"
10
- "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
11
"Last-Translator: John Doe <mail@example.com>\n"
12
"Language-Team: Team Updraft <mail@example.com>\n"
13
"X-Poedit-Basepath: ..\n"
@@ -101,59 +101,55 @@ msgstr ""
101
msgid "forever"
102
msgstr ""
103
104
- #: src/admin/Notices.php:204
105
msgid "Black Friday - 50% off the MetaSlider Add-on Pack until November 30th"
106
msgstr ""
107
108
- #: src/admin/Notices.php:205, src/admin/Notices.php:218, src/admin/Notices.php:231, src/admin/Notices.php:244, src/admin/Notices.php:257
109
msgid "To benefit, use this discount code:"
110
msgstr ""
111
112
- #: src/admin/Notices.php:213, src/admin/Notices.php:226, src/admin/Notices.php:239, src/admin/Notices.php:252, src/admin/Notices.php:265
113
- msgid "until next year"
114
- msgstr ""
115
-
116
- #: src/admin/Notices.php:217
117
msgid "Christmas sale - 50% off the MetaSlider Add-on Pack until December 25th"
118
msgstr ""
119
120
- #: src/admin/Notices.php:230
121
- msgid "Happy New Year - 50% off the MetaSlider Add-on Pack until January 1st"
122
msgstr ""
123
124
- #: src/admin/Notices.php:243
125
- msgid "Spring sale - 50% off the MetaSlider Add-on Pack until April 31st"
126
msgstr ""
127
128
- #: src/admin/Notices.php:256
129
msgid "Summer sale - 50% off the MetaSlider Add-on Pack until July 31st"
130
msgstr ""
131
132
- #: src/admin/Notices.php:280
133
msgid "Increase your conversion rate with video slides and many more options."
134
msgstr ""
135
136
- #: src/admin/Notices.php:287
137
msgid "offers unparalleled choice and flexibility, allowing you to select one or a combination of over a dozen optimization options."
138
msgstr ""
139
140
- #: src/admin/Notices.php:294
141
msgid "provides personal support, the ability to copy sites, more storage destinations, encrypted backups for security, multiple backup destinations, better reporting, no adverts and plenty more."
142
msgstr ""
143
144
- #: src/admin/Notices.php:301
145
msgid "simplifies backups and restoration. It is the world's highest ranking and most popular scheduled backup plugin, with over a million currently-active installs."
146
msgstr ""
147
148
- #: src/admin/Notices.php:308
149
msgid "auto-clean your WordPress database so that it runs at maximum efficiency."
150
msgstr ""
151
152
- #: src/admin/Notices.php:315
153
msgid "Simple & secure login with a wave of your phone."
154
msgstr ""
155
156
- #: src/admin/Notices.php:322
157
msgid "is a highly efficient way to manage, update and backup multiple websites from one place."
158
msgstr ""
159
@@ -217,7 +213,7 @@ msgstr ""
217
msgid "The requested data does not exist."
218
msgstr ""
219
220
- #: src/admin/Notices.php:672
221
msgid "The attempt to update the option failed."
222
msgstr ""
223
@@ -350,7 +346,7 @@ msgid "This method does not exist. Please refresh the page and try again."
350
msgstr ""
351
352
#: src/admin/views/notices/dashboard-notice.php:9, src/admin/views/notices/header-notice.php:11
353
- msgid "Hide this ad (%s)"
354
msgstr ""
355
356
#: src/admin/views/notices/header-notice.php:6
1
+ # Copyright (C) 2018 ml-slider
2
# This file is distributed under the same license as the ml-slider package.
3
msgid ""
4
msgstr ""
7
"MIME-Version: 1.0\n"
8
"Content-Type: text/plain; charset=UTF-8\n"
9
"Content-Transfer-Encoding: 8bit\n"
10
+ "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
11
"Last-Translator: John Doe <mail@example.com>\n"
12
"Language-Team: Team Updraft <mail@example.com>\n"
13
"X-Poedit-Basepath: ..\n"
101
msgid "forever"
102
msgstr ""
103
104
+ #: src/admin/Notices.php:205
105
msgid "Black Friday - 50% off the MetaSlider Add-on Pack until November 30th"
106
msgstr ""
107
108
+ #: src/admin/Notices.php:206, src/admin/Notices.php:219, src/admin/Notices.php:232, src/admin/Notices.php:245, src/admin/Notices.php:258
109
msgid "To benefit, use this discount code:"
110
msgstr ""
111
112
+ #: src/admin/Notices.php:218
113
msgid "Christmas sale - 50% off the MetaSlider Add-on Pack until December 25th"
114
msgstr ""
115
116
+ #: src/admin/Notices.php:231
117
+ msgid "Happy New Year - 50% off the MetaSlider Add-on Pack until January 14th"
118
msgstr ""
119
120
+ #: src/admin/Notices.php:244
121
+ msgid "Spring sale - 50% off the MetaSlider Add-on Pack until April 30th"
122
msgstr ""
123
124
+ #: src/admin/Notices.php:257
125
msgid "Summer sale - 50% off the MetaSlider Add-on Pack until July 31st"
126
msgstr ""
127
128
+ #: src/admin/Notices.php:281
129
msgid "Increase your conversion rate with video slides and many more options."
130
msgstr ""
131
132
+ #: src/admin/Notices.php:288
133
msgid "offers unparalleled choice and flexibility, allowing you to select one or a combination of over a dozen optimization options."
134
msgstr ""
135
136
+ #: src/admin/Notices.php:295
137
msgid "provides personal support, the ability to copy sites, more storage destinations, encrypted backups for security, multiple backup destinations, better reporting, no adverts and plenty more."
138
msgstr ""
139
140
+ #: src/admin/Notices.php:302
141
msgid "simplifies backups and restoration. It is the world's highest ranking and most popular scheduled backup plugin, with over a million currently-active installs."
142
msgstr ""
143
144
+ #: src/admin/Notices.php:309
145
msgid "auto-clean your WordPress database so that it runs at maximum efficiency."
146
msgstr ""
147
148
+ #: src/admin/Notices.php:316
149
msgid "Simple & secure login with a wave of your phone."
150
msgstr ""
151
152
+ #: src/admin/Notices.php:323
153
msgid "is a highly efficient way to manage, update and backup multiple websites from one place."
154
msgstr ""
155
213
msgid "The requested data does not exist."
214
msgstr ""
215
216
+ #: src/admin/Notices.php:677
217
msgid "The attempt to update the option failed."
218
msgstr ""
219
346
msgstr ""
347
348
#: src/admin/views/notices/dashboard-notice.php:9, src/admin/views/notices/header-notice.php:11
349
+ msgid "Dismiss"
350
msgstr ""
351
352
#: src/admin/views/notices/header-notice.php:6
ml-slider.php CHANGED
@@ -6,7 +6,7 @@
6
* Plugin Name: MetaSlider
7
* Plugin URI: https://www.metaslider.com
8
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
9
- * Version: 3.6.7
10
* Author: Team Updraft
11
* Author URI: https://www.metaslider.com
12
* License: GPL-2.0+
@@ -34,7 +34,7 @@ class MetaSliderPlugin {
34
*
35
* @var string
36
*/
37
- public $version = '3.6.7';
38
39
/**
40
* The lowest tier price for upgrades
@@ -1285,7 +1285,7 @@ class MetaSliderPlugin {
1285
1286
?>
1287
1288
- <script type='text/javascript'>
1289
var metaslider_slider_id = <?php echo $slider_id; ?>;
1290
</script>
1291
@@ -1865,7 +1865,7 @@ class MetaSliderPlugin {
1865
$sliders = $this->all_meta_sliders( 'title' );
1866
?>
1867
1868
- <script type="text/javascript">
1869
jQuery(document).ready(function() {
1870
jQuery('#insertMetaSlider').on('click', function() {
1871
var id = jQuery('#metaslider-select option:selected').val();
6
* Plugin Name: MetaSlider
7
* Plugin URI: https://www.metaslider.com
8
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
9
+ * Version: 3.6.8
10
* Author: Team Updraft
11
* Author URI: https://www.metaslider.com
12
* License: GPL-2.0+
34
*
35
* @var string
36
*/
37
+ public $version = '3.6.8';
38
39
/**
40
* The lowest tier price for upgrades
1285
1286
?>
1287
1288
+ <script>
1289
var metaslider_slider_id = <?php echo $slider_id; ?>;
1290
</script>
1291
1865
$sliders = $this->all_meta_sliders( 'title' );
1866
?>
1867
1868
+ <script>
1869
jQuery(document).ready(function() {
1870
jQuery('#insertMetaSlider').on('click', function() {
1871
var id = jQuery('#metaslider-select option:selected').val();
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.7
7
Tested up to: 4.9
8
License: GPLv2 or later
9
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -151,9 +151,14 @@ See https://www.metaslider.com/documentation/image-cropping/
151
152
== Changelog ==
153
154
= 3.6.7 - 2017/Dec/15 =
155
156
* FEATURE: Adds back in some instructions on how to display the slideshow
157
* TWEAK: Add DocBlock checking with CI for PHP and JS files
158
* FIX: Adds compatibility fixes for older WP versions.
159
@@ -621,4 +626,4 @@ More info/Comments: http://www.metaslider.com/coming-soon-meta-slider-2-6-free/
621
* Initial version
622
623
== Upgrade Notice ==
624
- * 3.6.7 : Adds back shortcode advice, and compatibility for old WP versions. 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.
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.8
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.8 - 2018/Jan/26 =
155
+
156
+ * FIX: Updates compatibility for various themes (including Genesis)
157
+
158
= 3.6.7 - 2017/Dec/15 =
159
160
* FEATURE: Adds back in some instructions on how to display the slideshow
161
+ * TWEAK: Removes unnecessary type attribute that was causing valiation errors
162
* TWEAK: Add DocBlock checking with CI for PHP and JS files
163
* FIX: Adds compatibility fixes for older WP versions.
164
626
* Initial version
627
628
== Upgrade Notice ==
629
+ * 3.6.8 : Updates compatibility for various themes (including Genesis)