Strong Testimonials - Version 2.50.3

Version Description

Download this release

Release Info

Developer wpchill
Plugin Icon 128x128 Strong Testimonials
Version 2.50.3
Comparing to
See all releases

Code changes from version 2.50.2 to 2.50.3

admin/class-strong-testimonials-admin-list.php CHANGED
@@ -174,7 +174,7 @@ class Strong_Testimonials_Admin_List {
174
  foreach ( $categories as $cat ) {
175
  $list[] = $cat->name;
176
  }
177
- echo join( ", ", $list );
178
  }
179
  break;
180
 
174
  foreach ( $categories as $cat ) {
175
  $list[] = $cat->name;
176
  }
177
+ echo implode( ", ", $list );
178
  }
179
  break;
180
 
admin/class-strong-testimonials-list-table.php CHANGED
@@ -805,7 +805,7 @@ if ( ! class_exists( 'Strong_Testimonials_List_Table' ) ) :
805
  if ( ! empty( $infinite_scroll ) ) {
806
  $pagination_links_class = ' hide-if-js';
807
  }
808
- $output .= "\n<span class='$pagination_links_class'>" . join( "\n", $page_links ) . '</span>';
809
 
810
  if ( $total_pages ) {
811
  $page_class = $total_pages < 2 ? ' one-page' : '';
@@ -978,7 +978,7 @@ if ( ! class_exists( 'Strong_Testimonials_List_Table' ) ) :
978
  $id = $with_id ? "id='$column_key'" : '';
979
 
980
  if ( ! empty( $class ) ) {
981
- $class = "class='" . join( ' ', $class ) . "'";
982
  }
983
 
984
  echo "<th scope='col' $id $class $style>$column_display_name</th>";
805
  if ( ! empty( $infinite_scroll ) ) {
806
  $pagination_links_class = ' hide-if-js';
807
  }
808
+ $output .= "\n<span class='$pagination_links_class'>" . implode( "\n", $page_links ) . '</span>';
809
 
810
  if ( $total_pages ) {
811
  $page_class = $total_pages < 2 ? ' one-page' : '';
978
  $id = $with_id ? "id='$column_key'" : '';
979
 
980
  if ( ! empty( $class ) ) {
981
+ $class = "class='" . implode( ' ', $class ) . "'";
982
  }
983
 
984
  echo "<th scope='col' $id $class $style>$column_display_name</th>";
admin/class-strong-testimonials-updater.php CHANGED
@@ -1377,7 +1377,7 @@ class Strong_Testimonials_Updater {
1377
  }
1378
  }
1379
 
1380
- $wordstring = join( '', $allwords );
1381
 
1382
  return round( strlen( $wordstring ) / count( $allwords ) );
1383
  }
1377
  }
1378
  }
1379
 
1380
+ $wordstring = implode( '', $allwords );
1381
 
1382
  return round( strlen( $wordstring ) / count( $allwords ) );
1383
  }
admin/partials/views/group-compat.php CHANGED
@@ -4,7 +4,7 @@ $then_classes = array(
4
  apply_filters( 'wpmtst_view_section', '', 'compat' ),
5
  );
6
  ?>
7
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
8
  <h3>
9
  <?php /* translators: On the Views admin screen. */ ?>
10
  <?php _e( 'Compatibility', 'strong-testimonials' ); ?>
4
  apply_filters( 'wpmtst_view_section', '', 'compat' ),
5
  );
6
  ?>
7
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
8
  <h3>
9
  <?php /* translators: On the Views admin screen. */ ?>
10
  <?php _e( 'Compatibility', 'strong-testimonials' ); ?>
admin/partials/views/group-extra.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'extra' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Extra', 'strong-testimonials' ); ?>
8
  apply_filters( 'wpmtst_view_section', '', 'extra' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Extra', 'strong-testimonials' ); ?>
admin/partials/views/group-fields.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'fields' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Fields', 'strong-testimonials' ); ?>
@@ -25,7 +25,7 @@ $then_classes = array(
25
  apply_filters( 'wpmtst_view_section', '', 'title' ),
26
  );
27
  ?>
28
- <tr class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
29
  <?php include( 'option-title.php' ); ?>
30
  </tr>
31
 
@@ -39,7 +39,7 @@ $then_classes = array(
39
  apply_filters( 'wpmtst_view_section', '', 'thumbnail' ),
40
  );
41
  ?>
42
- <tr class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
43
  <?php include( 'option-thumbnail.php' ); ?>
44
  </tr>
45
 
@@ -53,7 +53,7 @@ $then_classes = array(
53
  apply_filters( 'wpmtst_view_section', '', 'content' ),
54
  );
55
  ?>
56
- <tr class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
57
  <?php include( 'option-content.php' ); ?>
58
  </tr>
59
 
@@ -67,7 +67,7 @@ $then_classes = array(
67
  apply_filters( 'wpmtst_view_section', '', 'client-section' ),
68
  );
69
  ?>
70
- <tr class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
71
  <?php include( 'option-client-section.php' ); ?>
72
  </tr>
73
 
8
  apply_filters( 'wpmtst_view_section', '', 'fields' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Fields', 'strong-testimonials' ); ?>
25
  apply_filters( 'wpmtst_view_section', '', 'title' ),
26
  );
27
  ?>
28
+ <tr class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
29
  <?php include( 'option-title.php' ); ?>
30
  </tr>
31
 
39
  apply_filters( 'wpmtst_view_section', '', 'thumbnail' ),
40
  );
41
  ?>
42
+ <tr class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
43
  <?php include( 'option-thumbnail.php' ); ?>
44
  </tr>
45
 
53
  apply_filters( 'wpmtst_view_section', '', 'content' ),
54
  );
55
  ?>
56
+ <tr class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
57
  <?php include( 'option-content.php' ); ?>
58
  </tr>
59
 
67
  apply_filters( 'wpmtst_view_section', '', 'client-section' ),
68
  );
69
  ?>
70
+ <tr class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
71
  <?php include( 'option-client-section.php' ); ?>
72
  </tr>
73
 
admin/partials/views/group-form.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'form' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Actions', 'strong-testimonials' ); ?>
8
  apply_filters( 'wpmtst_view_section', '', 'form' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Actions', 'strong-testimonials' ); ?>
admin/partials/views/group-query.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'select' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Query', 'strong-testimonials' ); ?>
8
  apply_filters( 'wpmtst_view_section', '', 'select' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Query', 'strong-testimonials' ); ?>
admin/partials/views/group-slideshow.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'slideshow' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: In the view editor. */ ?>
14
  <?php _e( 'Slideshow', 'strong-testimonials' ); ?>
8
  apply_filters( 'wpmtst_view_section', '', 'slideshow' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: In the view editor. */ ?>
14
  <?php _e( 'Slideshow', 'strong-testimonials' ); ?>
admin/partials/views/group-style.php CHANGED
@@ -8,7 +8,7 @@ $then_classes = array(
8
  apply_filters( 'wpmtst_view_section', '', 'style' ),
9
  );
10
  ?>
11
- <div class="<?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Style', 'strong-testimonials' ); ?>
8
  apply_filters( 'wpmtst_view_section', '', 'style' ),
9
  );
10
  ?>
11
+ <div class="<?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>" style="display: none;">
12
  <h3>
13
  <?php /* translators: On the Views admin screen. */ ?>
14
  <?php _e( 'Style', 'strong-testimonials' ); ?>
admin/partials/views/view-shortcode.php CHANGED
@@ -20,7 +20,7 @@ $then_classes = array(
20
  );
21
  ?>
22
 
23
- <div class="table-row form-view-shortcode <?php echo esc_attr( join( array_filter( $then_classes ), ' ' ) ); ?>">
24
  <div class="table-cell">
25
  <label for="view-shortcode">
26
  <?php _e( 'Shortcode', 'strong-testimonials' ); ?>
20
  );
21
  ?>
22
 
23
+ <div class="table-row form-view-shortcode <?php echo esc_attr( implode( array_filter( $then_classes ), ' ' ) ); ?>">
24
  <div class="table-cell">
25
  <label for="view-shortcode">
26
  <?php _e( 'Shortcode', 'strong-testimonials' ); ?>
admin/settings/class-strong-testimonials-settings-general.php CHANGED
@@ -97,7 +97,7 @@ class Strong_Testimonials_Settings_General {
97
  $input['lazyload'] = wpmtst_sanitize_checkbox( $input, 'lazyload' );
98
  $input['no_lazyload_plugin'] = wpmtst_sanitize_checkbox( $input, 'no_lazyload_plugin' );
99
  $input['touch_enabled'] = wpmtst_sanitize_checkbox( $input, 'touch_enabled' );
100
- $input['disable_upsells'] = wpmtst_sanitize_checkbox( $input, 'upsells' );
101
 
102
  return apply_filters( 'wpmtst_sanitize_general_options', $input );
103
  }
97
  $input['lazyload'] = wpmtst_sanitize_checkbox( $input, 'lazyload' );
98
  $input['no_lazyload_plugin'] = wpmtst_sanitize_checkbox( $input, 'no_lazyload_plugin' );
99
  $input['touch_enabled'] = wpmtst_sanitize_checkbox( $input, 'touch_enabled' );
100
+ $input['disable_upsells'] = wpmtst_sanitize_checkbox( $input, 'disable_upsells' );
101
 
102
  return apply_filters( 'wpmtst_sanitize_general_options', $input );
103
  }
changelog.txt CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  = 2.50.2 =
2
  * Fixed fatal error
3
 
1
+ = 2.50.3 =
2
+ * Fixed upsells option
3
+ * Fixed Slideshow Stretch behaviour.
4
+ * Fixed Slideshow Start automatically behaviour.
5
+ * Fixed expand content in place in sidebar bug.
6
+ * Fixed Strong Testimonials Pro activation from Extensions.
7
+ * Fixed Read More issue when using a testimonial slideshow view in a widget.
8
+ * Replace deprecated filter.
9
+ * Replaced deprecated join with implode.
10
+
11
  = 2.50.2 =
12
  * Fixed fatal error
13
 
includes/class-strong-testimonials-shortcode-average.php CHANGED
@@ -194,7 +194,7 @@ class Strong_Testimonials_Average_Shortcode {
194
  }
195
 
196
  // assemble it
197
- $html = sprintf( '<%s class="%s">%s</%s>', $atts['element'], join( ' ', $class_list ), $content, $atts['element'] );
198
 
199
  wp_enqueue_style( 'wpmtst-rating-display' );
200
 
194
  }
195
 
196
  // assemble it
197
+ $html = sprintf( '<%s class="%s">%s</%s>', $atts['element'], implode( ' ', $class_list ), $content, $atts['element'] );
198
 
199
  wp_enqueue_style( 'wpmtst-rating-display' );
200
 
includes/class-strong-view-display.php CHANGED
@@ -124,6 +124,7 @@ class Strong_View_Display extends Strong_View {
124
  $this->has_stars();
125
  $this->has_pagination();
126
  $this->has_layouts();
 
127
  $this->has_lazyload();
128
 
129
  $this->load_dependent_scripts();
@@ -365,9 +366,9 @@ class Strong_View_Display extends Strong_View {
365
  * Filter classes.
366
  */
367
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
368
- $this->atts['container_class'] = join( ' ', apply_filters( 'wpmtst_view_container_class', $container_class_list, $this->atts ) );
369
- $this->atts['content_class'] = join( ' ', apply_filters( 'wpmtst_view_content_class', $content_class_list, $this->atts ) );
370
- $this->atts['post_class'] = join( ' ', apply_filters( 'wpmtst_view_post_class', $post_class_list, $this->atts ) );
371
 
372
  /**
373
  * Store updated atts.
124
  $this->has_stars();
125
  $this->has_pagination();
126
  $this->has_layouts();
127
+ $this->has_readmore();
128
  $this->has_lazyload();
129
 
130
  $this->load_dependent_scripts();
366
  * Filter classes.
367
  */
368
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
369
+ $this->atts['container_class'] = implode( ' ', apply_filters( 'wpmtst_view_container_class', $container_class_list, $this->atts ) );
370
+ $this->atts['content_class'] = implode( ' ', apply_filters( 'wpmtst_view_content_class', $content_class_list, $this->atts ) );
371
+ $this->atts['post_class'] = implode( ' ', apply_filters( 'wpmtst_view_post_class', $post_class_list, $this->atts ) );
372
 
373
  /**
374
  * Store updated atts.
includes/class-strong-view-form.php CHANGED
@@ -191,7 +191,7 @@ class Strong_View_Form extends Strong_View {
191
  * Filter classes.
192
  */
193
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
194
- $this->atts['container_class'] = join( ' ', apply_filters( 'wpmtst_view_container_class', $container_class_list, $this->atts ) );
195
 
196
  /**
197
  * Store updated atts.
191
  * Filter classes.
192
  */
193
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
194
+ $this->atts['container_class'] = implode( ' ', apply_filters( 'wpmtst_view_container_class', $container_class_list, $this->atts ) );
195
 
196
  /**
197
  * Store updated atts.
includes/class-strong-view-slideshow.php CHANGED
@@ -58,6 +58,7 @@ class Strong_View_Slideshow extends Strong_View_Display {
58
  $this->find_stylesheet();
59
  $this->has_slideshow();
60
  $this->has_stars();
 
61
 
62
  $this->load_dependent_scripts();
63
  $this->load_extra_stylesheets();
@@ -238,9 +239,9 @@ class Strong_View_Slideshow extends Strong_View_Display {
238
  * Filter classes.
239
  */
240
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
241
- $this->atts['container_class'] = join( ' ', apply_filters( 'wpmtst_view_container_class', array_filter( $container_class_list ), $this->atts ) );
242
- $this->atts['content_class'] = join( ' ', apply_filters( 'wpmtst_view_content_class', array_filter( $content_class_list ), $this->atts ) );
243
- $this->atts['post_class'] = join( ' ', apply_filters( 'wpmtst_view_post_class', array_filter( $post_class_list ), $this->atts ) );
244
 
245
  /**
246
  * Store updated atts.
58
  $this->find_stylesheet();
59
  $this->has_slideshow();
60
  $this->has_stars();
61
+ $this->has_readmore();
62
 
63
  $this->load_dependent_scripts();
64
  $this->load_extra_stylesheets();
239
  * Filter classes.
240
  */
241
  $this->atts['container_data'] = apply_filters( 'wpmtst_view_container_data', $container_data_list, $this->atts );
242
+ $this->atts['container_class'] = implode( ' ', apply_filters( 'wpmtst_view_container_class', array_filter( $container_class_list ), $this->atts ) );
243
+ $this->atts['content_class'] = implode( ' ', apply_filters( 'wpmtst_view_content_class', array_filter( $content_class_list ), $this->atts ) );
244
+ $this->atts['post_class'] = implode( ' ', apply_filters( 'wpmtst_view_post_class', array_filter( $post_class_list ), $this->atts ) );
245
 
246
  /**
247
  * Store updated atts.
includes/functions-image.php CHANGED
@@ -69,7 +69,7 @@ function wpmtst_thumbnail_img( $img, $post_id, $size ) {
69
  $url = wp_get_attachment_url( get_post_thumbnail_id( $post_id ) );
70
  if ( $url ) {
71
  $class_array = array( WPMST()->atts( 'lightbox_class' ) );
72
- $classes = join( ' ', array_unique( apply_filters( 'wpmtst_thumbnail_link_class', $class_array ) ) );
73
  $img = sprintf( '<a class="%s" href="%s">%s</a>', $classes, esc_url( $url ), $img );
74
  }
75
  }
69
  $url = wp_get_attachment_url( get_post_thumbnail_id( $post_id ) );
70
  if ( $url ) {
71
  $class_array = array( WPMST()->atts( 'lightbox_class' ) );
72
+ $classes = implode( ' ', array_unique( apply_filters( 'wpmtst_thumbnail_link_class', $class_array ) ) );
73
  $img = sprintf( '<a class="%s" href="%s">%s</a>', $classes, esc_url( $url ), $img );
74
  }
75
  }
includes/functions-template-form.php CHANGED
@@ -244,7 +244,7 @@ function wpmtst_field_group_classes( $type, $name ) {
244
  $class_list[] = "field-$name";
245
  }
246
 
247
- return apply_filters( 'wpmtst_form_field_group_class', join( ' ', $class_list ), $type, $name );
248
  }
249
 
250
  /**
@@ -263,7 +263,7 @@ function wpmtst_field_label_classes( $type, $name ) {
263
  $class_list[] = "field-$name";
264
  }
265
 
266
- return apply_filters( 'wpmtst_form_field_label_class', join( ' ', $class_list ), $type, $name );
267
  }
268
 
269
  /**
@@ -304,7 +304,7 @@ function wpmtst_field_classes( $type = null, $name = null, $max_length = null )
304
  $class_list[] = 'error';
305
  }
306
 
307
- return apply_filters( 'wpmtst_form_field_class', join( ' ', $class_list ), $type, $name );
308
  }
309
 
310
  /**
244
  $class_list[] = "field-$name";
245
  }
246
 
247
+ return apply_filters( 'wpmtst_form_field_group_class', implode( ' ', $class_list ), $type, $name );
248
  }
249
 
250
  /**
263
  $class_list[] = "field-$name";
264
  }
265
 
266
+ return apply_filters( 'wpmtst_form_field_label_class', implode( ' ', $class_list ), $type, $name );
267
  }
268
 
269
  /**
304
  $class_list[] = 'error';
305
  }
306
 
307
+ return apply_filters( 'wpmtst_form_field_class', implode( ' ', $class_list ), $type, $name );
308
  }
309
 
310
  /**
includes/functions-template.php CHANGED
@@ -18,8 +18,9 @@ function strong_testimonials_view( $id = null ) {
18
  $out = array();
19
  $pairs = array();
20
  $atts = array( 'id' => $id );
 
21
  $out = WPMST()->render->parse_view( $out, $pairs, $atts );
22
-
23
  echo WPMST()->shortcode->render_view( $out );
24
  }
25
 
@@ -453,7 +454,7 @@ function wpmtst_the_custom_field( $field ) {
453
  foreach ( $categories as $cat ) {
454
  $list[] = $cat->name;
455
  }
456
- $output = join( ", ", $list );
457
  }
458
  else {
459
  $output = '';
18
  $out = array();
19
  $pairs = array();
20
  $atts = array( 'id' => $id );
21
+ $out = WPMST()->render->prerender( $atts );
22
  $out = WPMST()->render->parse_view( $out, $pairs, $atts );
23
+
24
  echo WPMST()->shortcode->render_view( $out );
25
  }
26
 
454
  foreach ( $categories as $cat ) {
455
  $list[] = $cat->name;
456
  }
457
+ $output = implode( ", ", $list );
458
  }
459
  else {
460
  $output = '';
public/js/lib/strongslider/jquery-strongslider.js CHANGED
@@ -420,7 +420,7 @@
420
  // if any control option is requested, add the controls wrapper
421
  if (slider.settings.controls || slider.settings.autoControls || slider.settings.pager) { slider.viewport.after(slider.controls.el); }
422
 
423
- if (preloadSelector === null) {
424
  start();
425
  } else {
426
  loadElements(preloadSelector, start);
@@ -492,7 +492,6 @@
492
  * Start the slider
493
  */
494
  var start = function () {
495
-
496
  // if infinite loop, prepare additional slides
497
  if (slider.settings.infiniteLoop && slider.settings.mode !== 'fade') {
498
  var slice = slider.settings.mode === 'vertical' ? slider.settings.minSlides : slider.settings.maxSlides,
@@ -659,6 +658,7 @@
659
 
660
  var maxHeight = arrayMax(heights);
661
  slider.children.height(maxHeight);
 
662
  };
663
 
664
  /**
420
  // if any control option is requested, add the controls wrapper
421
  if (slider.settings.controls || slider.settings.autoControls || slider.settings.pager) { slider.viewport.after(slider.controls.el); }
422
 
423
+ if (preloadSelector === null || navigator.userAgent.indexOf("Firefox")) {
424
  start();
425
  } else {
426
  loadElements(preloadSelector, start);
492
  * Start the slider
493
  */
494
  var start = function () {
 
495
  // if infinite loop, prepare additional slides
496
  if (slider.settings.infiniteLoop && slider.settings.mode !== 'fade') {
497
  var slice = slider.settings.mode === 'vertical' ? slider.settings.minSlides : slider.settings.maxSlides,
658
 
659
  var maxHeight = arrayMax(heights);
660
  slider.children.height(maxHeight);
661
+ slider.children.add(el.find('.wpmslider-clone')).height(maxHeight);
662
  };
663
 
664
  /**
public/js/lib/strongslider/jquery-strongslider.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={debug:!1,logAs:"strongSlider",compat:{lazyload:{active:!1,classes:{}}},mode:"horizontal",slideSelector:"div.t-slide",infiniteLoop:!0,hideControlOnEnd:!0,speed:500,easing:null,slideMargin:10,startSlide:0,randomStart:!1,captions:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"wpmslider-wrapper",stretch:!1,imagesLoaded:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!0,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};e.fn.strongSlider=function(i){if(0===this.length)return this;var n={},s=this,o=this.find(".wpmslider-content");if(!e(o).data("strongSlider")){var r=function(){if(!e(o).data("strongSlider")){n.visibilityInterval=0,n.hidden=!1;var r=s.data("slider-var"),a={};void 0!==window[r]&&(a=window[r].config),n.settings=e.extend({},t,a,i),n.debug=n.settings.debug,n.logAs=n.settings.logAs,n.debug&&console.log(n.logAs,"slider.settings",n.settings),n.children=o.children(n.settings.slideSelector),n.children.length<n.settings.minSlides&&(n.settings.minSlides=n.children.length),n.children.length<n.settings.maxSlides&&(n.settings.maxSlides=n.children.length),n.settings.randomStart&&(n.settings.startSlide=Math.floor(Math.random()*n.children.length)),n.active={index:n.settings.startSlide},c(),n.carousel&&(n.settings.preloadImages="all"),n.working=!1,n.controls={},n.interval=null,n.animProp="vertical"===n.settings.mode?"top":"left",n.usingCSS=n.settings.useCSS&&"fade"!==n.settings.mode&&function(){for(var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<t.length;i++)if(void 0!==e.style[t[i]])return n.cssPrefix=t[i].replace("Perspective","").toLowerCase(),n.animProp="-"+n.cssPrefix+"-transform",!0;return!1}(),"vertical"===n.settings.mode&&(n.settings.maxSlides=n.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(n.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),o.getSlideCount()&&(n.settings.imagesLoaded?s.imagesLoaded(function(){l()}):l())}},a=function(){return s.is(":visible")&&"hidden"!==s.css("visibility")},l=function(){a()&&function(){if(n.settings.compat.lazyload){for(var e=!1,t=0,i=n.settings.compat.lazyload.classes.length;t<i;t++){var o=n.settings.compat.lazyload.classes[t].start,r=n.settings.compat.lazyload.classes[t].finish;o&&r?s.find("img."+o).length&&!s.find("img."+r).length&&(e=!0):o?s.find("img."+o).length&&(e=!0):r&&(s.find("img."+r).length||(e=!0))}if(e)return n.debug&&console.log(n.logAs,"lazy loading..."),!1}return n.debug&&console.log(n.logAs,"compat check complete"),!0}()?(clearInterval(n.visibilityInterval),d()):0===n.visibilityInterval&&(n.visibilityInterval=setInterval(l,4e3))},d=function(){var t=n.children.eq(n.settings.startSlide);o.wrap('<div class="'+n.settings.wrapperClass+'"><div class="wpmslider-viewport"></div></div>'),n.viewport=o.parent(),n.settings.ariaLive&&n.viewport.attr("aria-live","polite"),n.loader=e('<div class="wpmslider-loading" />'),n.viewport.prepend(n.loader),o.css({width:"horizontal"===n.settings.mode?1e3*n.children.length+215+"%":"auto",position:"relative"}),n.usingCSS&&n.settings.easing?o.css("-"+n.cssPrefix+"-transition-timing-function",n.settings.easing):n.settings.easing||(n.settings.easing="swing"),n.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),n.viewport.parent().css({maxWidth:b()}),n.settings.pager||n.settings.controls||n.viewport.parent().css({margin:"0 auto"}),n.children.css({float:"horizontal"===n.settings.mode?"left":"none",listStyle:"none",position:"relative"}),g(),"horizontal"===n.settings.mode&&n.settings.slideMargin>0&&n.children.css("marginRight",n.settings.slideMargin),"vertical"===n.settings.mode&&n.settings.slideMargin>0&&n.children.css("marginBottom",n.settings.slideMargin),"fade"===n.settings.mode?(n.children.css({position:"absolute",zIndex:0,display:"none"}),n.children.eq(n.settings.startSlide).css({zIndex:n.settings.slideZIndex,display:"block"})):n.children.css({display:"block"}),n.controls.el=e('<div class="wpmslider-controls" />'),n.settings.captions&&L(),n.active.last=n.settings.startSlide===P()-1,n.settings.video&&o.fitVids(),"none"===n.settings.preloadImages?t=null:"all"===n.settings.preloadImages&&(t=n.children),n.settings.controls&&M(),n.settings.auto&&n.settings.autoControls&&z(),n.settings.pager&&I(),n.settings.controls&&A(),(n.settings.controls||n.settings.autoControls||n.settings.pager)&&n.viewport.after(n.controls.el),null===t?u():p(t,u)},c=function(){n.debug&&console.log(n.logAs,"setBreakpoint");var e=n.settings.breakpoints.single,t=n.settings.breakpoints.multiple;if("show_multiple"===n.settings.type)for(var i in t)if(t.hasOwnProperty(i)&&verge.viewportW()>=t[i].width){e=t[i];break}n.debug&&console.log("current breakpoint",e),n.settings.maxSlides=e.maxSlides,n.settings.moveSlides=e.moveSlides,n.settings.slideMargin=e.slideMargin,n.carousel=n.settings.minSlides>1||n.settings.maxSlides>1},g=function(){c(),n.children.css("width",C())},p=function(t,i){var n=t.find('img:not([src=""]), iframe').length,s=0;0!==n?t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++s===n&&i()}).each(function(){(this.complete||""===this.src)&&e(this).trigger("load")})}):i()},u=function(){if(n.settings.infiniteLoop&&"fade"!==n.settings.mode){var t="vertical"===n.settings.mode?n.settings.minSlides:n.settings.maxSlides,i=n.children.slice(0,t).clone(!0).addClass("wpmslider-clone"),s=n.children.slice(-t).clone(!0).addClass("wpmslider-clone");n.settings.ariaHidden&&(i.attr("aria-hidden",!0),s.attr("aria-hidden",!0)),o.append(i).prepend(s)}n.loader.remove(),"vertical"===n.settings.mode&&(n.settings.adaptiveHeight=!0),o.redrawSlider(),n.settings.onSliderLoad.call(o,n.active.index),n.initialized=!0,n.visibilityInterval=setInterval(f,500),n.settings.responsive&&v(),n.settings.auto&&n.settings.autoStart&&(P()>1||n.settings.autoSlideForOnePage)&&X(),n.settings.pager&&N(n.settings.startSlide),n.settings.controls&&Y(),n.settings.touchEnabled&&Z(),n.settings.keyboardEnabled&&e(document).keydown(R)},v=function(){window.addEventListener("resize",h,!1),window.addEventListener("orientationchange",h,!1),window.addEventListener("toggleFullContent",h,!1),window.addEventListener("blur",function(){m("blur")}),window.addEventListener("focus",function(){S("blur")})},h=_.debounce(function(){n.debug&&console.log(n.logAs,"updateLayout"),G()},250),f=function(){n.settings.auto&&(a()?S("hide"):m("hide"),verge.inViewport(o)?S("scroll"):m("scroll"))},m=function(e){n.interval&&(o.stopAuto(!0),n.autoPaused=e,n.debug&&console.log(n.logAs,"pause",e))},S=function(e){n.autoPaused===e&&(o.startAuto(!0),n.autoPaused=null,n.debug&&console.log(n.logAs,"play",e))},w=function(e){return Math.max.apply(Math,e)},x=function(){var t=0,i=e();if("vertical"===n.settings.mode||n.settings.adaptiveHeight)if(n.carousel){var s=1===n.settings.moveSlides?n.active.index:n.active.index*E();i=n.children.eq(s);for(var o=1;o<=n.settings.maxSlides-1;o++)i=s+o>=n.children.length?i.add(n.children.eq(o-1)):i.add(n.children.eq(s+o))}else i=n.children.eq(n.active.index);else i=n.children;return"vertical"===n.settings.mode?(i.each(function(i){t+=e(this).outerHeight()}),n.settings.slideMargin>0&&(t+=n.settings.slideMargin*(n.settings.minSlides-1))):t=Math.max.apply(Math,i.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"===n.viewport.css("box-sizing")?t+=parseFloat(n.viewport.css("padding-top"))+parseFloat(n.viewport.css("padding-bottom"))+parseFloat(n.viewport.css("border-top-width"))+parseFloat(n.viewport.css("border-bottom-width")):"padding-box"===n.viewport.css("box-sizing")&&(t+=parseFloat(n.viewport.css("padding-top"))+parseFloat(n.viewport.css("padding-bottom"))),t},b=function(){return"100%"},C=function(){var e=n.viewport.width(),t=n.settings.slideMargin*(n.settings.maxSlides-1);return Math.floor((e-t)/n.settings.maxSlides)},y=function(){return n.settings.maxSlides},P=function(){var e=0,t=0,i=0;if(n.settings.moveSlides>0){if(!n.settings.infiniteLoop){for(;t<n.children.length;)++e,t=i+y(),i+=n.settings.moveSlides<=y()?n.settings.moveSlides:y();return i}e=Math.ceil(n.children.length/E())}else e=Math.ceil(n.children.length/y());return e},E=function(){return n.settings.moveSlides>0&&n.settings.moveSlides<=y()?n.settings.moveSlides:y()},k=function(t,i,s,r){var a,l;n.usingCSS?("vertical"===n.settings.mode?l="translateY("+t+"px)":"horizontal"===n.settings.mode?l="translateX("+t+"px":"none"===n.settings.mode&&(l="translateY("+t+"px)",s=0),o.css("-"+n.cssPrefix+"-transition-duration",s/1e3+"s"),"slide"===i?(o.css(n.animProp,l),0!==s?o.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(o)&&(o.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),B())}):B()):"reset"===i&&o.css(n.animProp,l)):((a={})[n.animProp]=t,"slide"===i?o.animate(a,s,n.settings.easing,function(){B()}):"reset"===i&&o.css(n.animProp,t))},T=function(){for(var t="",i="",s=P(),o=0;o<s;o++)i="",n.settings.buildPager?("icons"===n.settings.buildPager&&(i=""),(e.isFunction(n.settings.buildPager)||n.settings.pagerCustom)&&(i=n.settings.buildPager(o)),n.pagerEl.addClass("wpmslider-custom-pager")):(i=o+1,n.pagerEl.addClass("wpmslider-default-pager")),t+='<div class="wpmslider-pager-item"><a href="" data-slide-index="'+o+'" class="wpmslider-pager-link">'+i+"</a></div>";n.pagerEl.html(t)},I=function(){n.settings.pagerCustom?n.pagerEl=e(n.settings.pagerCustom):(n.pagerEl=e('<div class="wpmslider-pager" />'),n.settings.pagerSelector?e(n.settings.pagerSelector).html(n.pagerEl):n.controls.el.addClass("wpmslider-has-pager").append(n.pagerEl),T()),n.pagerEl.on("click touchend","a",F)},M=function(){n.controls.prev=e('<a class="wpmslider-prev" href="">'+n.settings.prevText+"</a>"),n.controls.prev.on("click touchend",D),n.settings.prevSelector&&e(n.settings.prevSelector).append(n.controls.prev),n.settings.prevSelector||(n.controls.directionEl=e('<div class="wpmslider-controls-direction" />'),n.controls.directionEl.append(n.controls.prev),n.controls.el.addClass("wpmslider-has-controls-direction").append(n.controls.directionEl))},A=function(){n.controls.next=e('<a class="wpmslider-next" href="">'+n.settings.nextText+"</a>"),n.controls.next.on("click touchend",q),n.settings.nextSelector&&e(n.settings.nextSelector).append(n.controls.next),n.settings.nextSelector||(n.controls.directionEl=e('<div class="wpmslider-controls-direction" />'),n.controls.directionEl.append(n.controls.next),n.controls.el.addClass("wpmslider-has-controls-direction").append(n.controls.directionEl))},z=function(){n.controls.start=e('<div class="wpmslider-controls-auto-item"><a class="wpmslider-start" href="">'+n.settings.startText+"</a></div>"),n.controls.stop=e('<div class="wpmslider-controls-auto-item"><a class="wpmslider-stop" href="">'+n.settings.stopText+"</a></div>"),n.controls.autoEl=e('<div class="wpmslider-controls-auto" />'),n.controls.autoEl.on("click",".wpmslider-start",H),n.controls.autoEl.on("click",".wpmslider-stop",O),n.settings.autoControlsCombine?n.controls.autoEl.append(n.controls.start):n.controls.autoEl.append(n.controls.start).append(n.controls.stop),n.settings.autoControlsSelector?e(n.settings.autoControlsSelector).html(n.controls.autoEl):n.controls.el.addClass("wpmslider-has-controls-auto").append(n.controls.autoEl),W(n.settings.autoStart?"stop":"start")},L=function(){n.children.each(function(t){var i=e(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&e(this).append('<div class="wpmslider-caption"><span>'+i+"</span></div>")})},q=function(e){e.preventDefault(),e.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),o.goToNextSlide())},D=function(e){e.preventDefault(),e.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),o.goToPrevSlide())},H=function(e){o.startAuto(),e.preventDefault(),e.stopPropagation()},O=function(e){o.stopAuto(),e.preventDefault(),e.stopPropagation()},F=function(t){var i,s;t.preventDefault(),t.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),void 0!==(i=e(t.currentTarget)).attr("data-slide-index")&&(s=parseInt(i.attr("data-slide-index")))!==n.active.index&&o.goToSlide(s))},N=function(t){var i=n.children.length;if("short"===n.settings.pagerType)return n.settings.maxSlides>1&&(i=Math.ceil(n.children.length/n.settings.maxSlides)),void n.pagerEl.html(t+1+n.settings.pagerShortSeparator+i);n.pagerEl.find("a").removeClass("active"),n.pagerEl.each(function(i,n){e(n).find("a").eq(t).addClass("active")})},B=function(){if(n.settings.infiniteLoop){var e="";0===n.active.index?e=n.children.eq(0).position():n.active.index===P()-1&&n.carousel?e=n.children.eq((P()-1)*E()).position():n.active.index===n.children.length-1&&(e=n.children.eq(n.children.length-1).position()),e&&("horizontal"===n.settings.mode?k(-e.left,"reset",0):"vertical"===n.settings.mode&&k(-e.top,"reset",0))}n.working=!1,n.settings.onSlideAfter.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)},W=function(e){n.settings.autoControlsCombine?n.controls.autoEl.html(n.controls[e]):(n.controls.autoEl.find("a").removeClass("active"),n.controls.autoEl.find("a:not(.wpmslider-"+e+")").addClass("active"))},Y=function(){1===P()?(n.controls.prev.addClass("disabled"),n.controls.next.addClass("disabled")):!n.settings.infiniteLoop&&n.settings.hideControlOnEnd&&(0===n.active.index?(n.controls.prev.addClass("disabled"),n.controls.next.removeClass("disabled")):n.active.index===P()-1?(n.controls.next.addClass("disabled"),n.controls.prev.removeClass("disabled")):(n.controls.prev.removeClass("disabled"),n.controls.next.removeClass("disabled")))},X=function(){n.settings.autoDelay>0?setTimeout(o.startAuto,n.settings.autoDelay):o.startAuto(),n.settings.autoHover&&o.hover(function(){m("hover")},function(){S("hover")})},R=function(e){var t=document.activeElement.tagName.toLowerCase();if(null===new RegExp(t,["i"]).exec("input|textarea")&&verge.inViewport(o)){if(39===e.keyCode)return q(e),!1;if(37===e.keyCode)return D(e),!1}},Z=function(){n.touch={start:{x:0,y:0},end:{x:0,y:0}},n.viewport.on("touchstart MSPointerDown pointerdown",U),n.viewport.on("click",".wpmslider a",function(e){n.viewport.hasClass("click-disabled")&&(e.preventDefault(),e.stopPropagation(),n.viewport.removeClass("click-disabled"))})},U=function(e){if(("touchstart"===e.type||0===e.button)&&"a"!==e.originalEvent.target.tagName.toLowerCase()&&!e.originalEvent.target.classList.contains("readmore-text"))if(n.controls.el.addClass("disabled"),n.working)e.preventDefault(),e.stopPropagation(),n.controls.el.removeClass("disabled");else{n.touch.originalPos=o.position();var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t];if("function"==typeof PointerEvent&&void 0===t.pointerId)return;n.touch.start.x=i[0].pageX,n.touch.start.y=i[0].pageY,n.viewport.get(0).setPointerCapture&&(n.pointerId=t.pointerId,n.viewport.get(0).setPointerCapture(n.pointerId)),n.originalClickTarget=t.originalTarget||t.target,n.originalClickButton=t.button,n.originalClickButtons=t.buttons,n.originalEventType=t.type,n.hasMove=!1,n.viewport.on("touchmove MSPointerMove pointermove",j),n.viewport.on("touchend MSPointerUp pointerup",Q),n.viewport.on("MSPointerCancel pointercancel",V)}},V=function(e){e.preventDefault(),k(n.touch.originalPos.left,"reset",0),n.controls.el.removeClass("disabled"),n.viewport.off("MSPointerCancel pointercancel",V),n.viewport.off("touchmove MSPointerMove pointermove",j),n.viewport.off("touchend MSPointerUp pointerup",Q),n.viewport.get(0).releasePointerCapture&&n.viewport.get(0).releasePointerCapture(n.pointerId)},j=function(e){var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t],s=Math.abs(i[0].pageX-n.touch.start.x),o=Math.abs(i[0].pageY-n.touch.start.y),r=0,a=0;n.hasMove=!0,3*s>o&&n.settings.preventDefaultSwipeX?(e.preventDefault(),e.stopPropagation()):3*o>s&&n.settings.preventDefaultSwipeY&&(e.preventDefault(),e.stopPropagation()),"touchmove"!==e.type&&e.preventDefault(),"fade"!==n.settings.mode&&n.settings.oneToOneTouch&&("horizontal"===n.settings.mode?(a=i[0].pageX-n.touch.start.x,r=n.touch.originalPos.left+a):(a=i[0].pageY-n.touch.start.y,r=n.touch.originalPos.top+a),k(r,"reset",0))},Q=function(t){t.preventDefault(),n.viewport.off("touchmove MSPointerMove pointermove",j),n.controls.el.removeClass("disabled");var i=t.originalEvent,s=void 0!==i.changedTouches?i.changedTouches:[i],r=0,a=0;n.touch.end.x=s[0].pageX,n.touch.end.y=s[0].pageY,"fade"===n.settings.mode?(a=Math.abs(n.touch.start.x-n.touch.end.x))>=n.settings.swipeThreshold&&(n.touch.start.x>n.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):("horizontal"===n.settings.mode?(a=n.touch.end.x-n.touch.start.x,r=n.touch.originalPos.left):(a=n.touch.end.y-n.touch.start.y,r=n.touch.originalPos.top),!n.settings.infiniteLoop&&(0===n.active.index&&a>0||n.active.last&&a<0)?k(r,"reset",200):Math.abs(a)>=n.settings.swipeThreshold?(a<0?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):k(r,"reset",200)),n.viewport.off("touchend MSPointerUp pointerup",Q),n.viewport.get(0).releasePointerCapture&&n.viewport.get(0).releasePointerCapture(n.pointerId),!1!==n.hasMove||0!==n.originalClickButton&&"touchstart"!==n.originalEventType||e(n.originalClickTarget).trigger({type:"click",button:n.originalClickButton,buttons:n.originalClickButtons})},G=function(e){n.initialized?n.working?(n.debug&&console.log(n.logAs,"slider working"),window.setTimeout(G,10)):(o.redrawSlider(),n.settings.onSliderResize.call(o,n.active.index)):n.debug&&console.log(n.logAs,"slider not initialized")},J=function(e){var t=y();n.settings.ariaHidden&&(n.children.attr("aria-hidden","true"),n.children.slice(e,e+t).attr("aria-hidden","false"))};return o.goToSlide=function(t,i){var s,r,a,l,d=!0,c=0,g={left:0,top:0},p=null;if(n.oldIndex=n.active.index,n.active.index=function(e){return e<0?n.settings.infiniteLoop?P()-1:n.active.index:e>=P()?n.settings.infiniteLoop?0:n.active.index:e}(t),!n.working&&n.active.index!==n.oldIndex){if(n.working=!0,void 0!==(d=n.settings.onSlideBefore.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index))&&!d)return n.active.index=n.oldIndex,void(n.working=!1);"next"===i?n.settings.onSlideNext.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)||(d=!1):"prev"===i&&(n.settings.onSlidePrev.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)||(d=!1)),n.active.last=n.active.index>=P()-1,(n.settings.pager||n.settings.pagerCustom)&&N(n.active.index),n.settings.controls&&Y(),"fade"===n.settings.mode?(n.settings.adaptiveHeight&&n.viewport.height()!==x()&&n.viewport.animate({height:x()},n.settings.adaptiveHeightSpeed),n.children.filter(":visible").fadeOut(n.settings.speed).css({zIndex:0}),n.children.eq(n.active.index).css("zIndex",n.settings.slideZIndex+1).fadeIn(n.settings.speed,function(){e(this).css("zIndex",n.settings.slideZIndex),B()})):(n.settings.adaptiveHeight&&n.viewport.height()!==x()&&n.viewport.animate({height:x()},n.settings.adaptiveHeightSpeed),!n.settings.infiniteLoop&&n.carousel&&n.active.last?"horizontal"===n.settings.mode?(g=(p=n.children.eq(n.children.length-1)).position(),c=n.viewport.width()-p.outerWidth()):(s=n.children.length-n.settings.minSlides,g=n.children.eq(s).position()):n.carousel&&n.active.last&&"prev"===i?(r=1===n.settings.moveSlides?n.settings.maxSlides-E():(P()-1)*E()-(n.children.length-n.settings.maxSlides),g=(p=o.children(".wpmslider-clone").eq(r)).position()):"next"===i&&0===n.active.index?(g=o.find("> .wpmslider-clone").eq(n.settings.maxSlides).position(),n.active.last=!1):t>=0&&(l=t*parseInt(E()),g=n.children.eq(l).position()),void 0!==g&&(a="horizontal"===n.settings.mode?-(g.left-c):-g.top,k(a,"slide",n.settings.speed))),n.settings.ariaHidden&&J(n.active.index*E())}},o.goToNextSlide=function(){if((n.settings.infiniteLoop||!n.active.last)&&!0!==n.working){var e=parseInt(n.active.index)+1;o.goToSlide(e,"next")}},o.goToPrevSlide=function(){if((n.settings.infiniteLoop||0!==n.active.index)&&!0!==n.working){var e=parseInt(n.active.index)-1;o.goToSlide(e,"prev")}},o.startAuto=function(e){n.interval||(n.interval=setInterval(function(){"next"===n.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},n.settings.pause),n.settings.onAutoChange.call(o,!0),n.settings.autoControls&&!0!==e&&W("stop"))},o.stopAuto=function(e){n.autoPaused&&(n.autoPaused=!1),n.interval&&(clearInterval(n.interval),n.interval=null,n.settings.onAutoChange.call(o,!1),n.settings.autoControls&&!0!==e&&W("start"))},o.getCurrentSlide=function(){return n.active.index},o.getCurrentSlideElement=function(){return n.children.eq(n.active.index)},o.getSlideElement=function(e){return n.children.eq(e)},o.getSlideCount=function(){return n.children.length},o.isWorking=function(){return n.working},o.redrawSlider=function(){var e,t,i,s,r;n.debug&&console.log(n.logAs,"redrawSlider"),g(),n.children.height("auto"),n.viewport.height(x()+2),n.settings.stretch&&(e=n.children.map(function(){return jQuery(this).actual("outerHeight")}).get(),t=w(e),n.children.height(t)),n.children.add(o.find(".wpmslider-clone")).outerWidth(C()),n.children.length>n.settings.maxSlides&&n.active.last&&!n.settings.infiniteLoop?"horizontal"===n.settings.mode?(i=(s=n.children.last()).position(),k(-(i.left-(n.viewport.width()-s.outerWidth())),"reset",0)):"vertical"===n.settings.mode&&(r=n.children.length-n.settings.minSlides,i=n.children.eq(r).position(),k(-i.top,"reset",0)):(i=n.children.eq(n.active.index*E()).position(),n.active.index===P()-1&&(n.active.last=!0),void 0!==i&&("horizontal"===n.settings.mode?k(-i.left,"reset",0):"vertical"===n.settings.mode?k(-i.top,"reset",0):"none"===n.settings.mode&&k(-i.top,"reset",0))),n.active.last&&(n.active.index=P()-1),n.active.index>=P()&&(n.active.last=!0),n.settings.pager&&!n.settings.pagerCustom&&(T(),N(n.active.index)),n.settings.ariaHidden&&J(n.active.index*E())},o.destroySlider=function(){n.initialized&&(n.initialized=!1,e(".wpmslider-clone",this).remove(),n.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),n.controls.el&&n.controls.el.remove(),n.controls.next&&n.controls.next.remove(),n.controls.prev&&n.controls.prev.remove(),n.pagerEl&&n.settings.controls&&!n.settings.pagerCustom&&n.pagerEl.remove(),e(".wpmslider-caption",this).remove(),n.controls.autoEl&&n.controls.autoEl.remove(),clearInterval(n.interval),clearInterval(n.visibilityInterval),n.settings.responsive&&e(window).off("resize",G),n.settings.keyboardEnabled&&e(document).off("keydown",R),e(this).removeData("strongSlider"))},o.reloadSlider=function(t){void 0!==t&&(i=t),o.destroySlider(),r(),e(o).data("strongSlider",this)},r(),e(o).data("strongSlider",this),s.attr("data-state","init"),n.debug&&console.log(n.logAs,"viewport",verge.viewportW(),"x",verge.viewportH()),this}}}(jQuery);
1
+ !function(e){var t={debug:!1,logAs:"strongSlider",compat:{lazyload:{active:!1,classes:{}}},mode:"horizontal",slideSelector:"div.t-slide",infiniteLoop:!0,hideControlOnEnd:!0,speed:500,easing:null,slideMargin:10,startSlide:0,randomStart:!1,captions:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"wpmslider-wrapper",stretch:!1,imagesLoaded:!0,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!0,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};e.fn.strongSlider=function(i){if(0===this.length)return this;var n={},s=this,o=this.find(".wpmslider-content");if(!e(o).data("strongSlider")){var r=function(){if(!e(o).data("strongSlider")){n.visibilityInterval=0,n.hidden=!1;var r=s.data("slider-var"),a={};void 0!==window[r]&&(a=window[r].config),n.settings=e.extend({},t,a,i),n.debug=n.settings.debug,n.logAs=n.settings.logAs,n.debug&&console.log(n.logAs,"slider.settings",n.settings),n.children=o.children(n.settings.slideSelector),n.children.length<n.settings.minSlides&&(n.settings.minSlides=n.children.length),n.children.length<n.settings.maxSlides&&(n.settings.maxSlides=n.children.length),n.settings.randomStart&&(n.settings.startSlide=Math.floor(Math.random()*n.children.length)),n.active={index:n.settings.startSlide},c(),n.carousel&&(n.settings.preloadImages="all"),n.working=!1,n.controls={},n.interval=null,n.animProp="vertical"===n.settings.mode?"top":"left",n.usingCSS=n.settings.useCSS&&"fade"!==n.settings.mode&&function(){for(var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<t.length;i++)if(void 0!==e.style[t[i]])return n.cssPrefix=t[i].replace("Perspective","").toLowerCase(),n.animProp="-"+n.cssPrefix+"-transform",!0;return!1}(),"vertical"===n.settings.mode&&(n.settings.maxSlides=n.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(n.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),o.getSlideCount()&&(n.settings.imagesLoaded?s.imagesLoaded(function(){l()}):l())}},a=function(){return s.is(":visible")&&"hidden"!==s.css("visibility")},l=function(){a()&&function(){if(n.settings.compat.lazyload){for(var e=!1,t=0,i=n.settings.compat.lazyload.classes.length;t<i;t++){var o=n.settings.compat.lazyload.classes[t].start,r=n.settings.compat.lazyload.classes[t].finish;o&&r?s.find("img."+o).length&&!s.find("img."+r).length&&(e=!0):o?s.find("img."+o).length&&(e=!0):r&&(s.find("img."+r).length||(e=!0))}if(e)return n.debug&&console.log(n.logAs,"lazy loading..."),!1}return n.debug&&console.log(n.logAs,"compat check complete"),!0}()?(clearInterval(n.visibilityInterval),d()):0===n.visibilityInterval&&(n.visibilityInterval=setInterval(l,4e3))},d=function(){var t=n.children.eq(n.settings.startSlide);o.wrap('<div class="'+n.settings.wrapperClass+'"><div class="wpmslider-viewport"></div></div>'),n.viewport=o.parent(),n.settings.ariaLive&&n.viewport.attr("aria-live","polite"),n.loader=e('<div class="wpmslider-loading" />'),n.viewport.prepend(n.loader),o.css({width:"horizontal"===n.settings.mode?1e3*n.children.length+215+"%":"auto",position:"relative"}),n.usingCSS&&n.settings.easing?o.css("-"+n.cssPrefix+"-transition-timing-function",n.settings.easing):n.settings.easing||(n.settings.easing="swing"),n.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),n.viewport.parent().css({maxWidth:b()}),n.settings.pager||n.settings.controls||n.viewport.parent().css({margin:"0 auto"}),n.children.css({float:"horizontal"===n.settings.mode?"left":"none",listStyle:"none",position:"relative"}),g(),"horizontal"===n.settings.mode&&n.settings.slideMargin>0&&n.children.css("marginRight",n.settings.slideMargin),"vertical"===n.settings.mode&&n.settings.slideMargin>0&&n.children.css("marginBottom",n.settings.slideMargin),"fade"===n.settings.mode?(n.children.css({position:"absolute",zIndex:0,display:"none"}),n.children.eq(n.settings.startSlide).css({zIndex:n.settings.slideZIndex,display:"block"})):n.children.css({display:"block"}),n.controls.el=e('<div class="wpmslider-controls" />'),n.settings.captions&&L(),n.active.last=n.settings.startSlide===P()-1,n.settings.video&&o.fitVids(),"none"===n.settings.preloadImages?t=null:"all"===n.settings.preloadImages&&(t=n.children),n.settings.controls&&A(),n.settings.auto&&n.settings.autoControls&&z(),n.settings.pager&&I(),n.settings.controls&&M(),(n.settings.controls||n.settings.autoControls||n.settings.pager)&&n.viewport.after(n.controls.el),null===t||navigator.userAgent.indexOf("Firefox")?u():p(t,u)},c=function(){n.debug&&console.log(n.logAs,"setBreakpoint");var e=n.settings.breakpoints.single,t=n.settings.breakpoints.multiple;if("show_multiple"===n.settings.type)for(var i in t)if(t.hasOwnProperty(i)&&verge.viewportW()>=t[i].width){e=t[i];break}n.debug&&console.log("current breakpoint",e),n.settings.maxSlides=e.maxSlides,n.settings.moveSlides=e.moveSlides,n.settings.slideMargin=e.slideMargin,n.carousel=n.settings.minSlides>1||n.settings.maxSlides>1},g=function(){c(),n.children.css("width",C())},p=function(t,i){var n=t.find('img:not([src=""]), iframe').length,s=0;0!==n?t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++s===n&&i()}).each(function(){(this.complete||""===this.src)&&e(this).trigger("load")})}):i()},u=function(){if(n.settings.infiniteLoop&&"fade"!==n.settings.mode){var t="vertical"===n.settings.mode?n.settings.minSlides:n.settings.maxSlides,i=n.children.slice(0,t).clone(!0).addClass("wpmslider-clone"),s=n.children.slice(-t).clone(!0).addClass("wpmslider-clone");n.settings.ariaHidden&&(i.attr("aria-hidden",!0),s.attr("aria-hidden",!0)),o.append(i).prepend(s)}n.loader.remove(),"vertical"===n.settings.mode&&(n.settings.adaptiveHeight=!0),o.redrawSlider(),n.settings.onSliderLoad.call(o,n.active.index),n.initialized=!0,n.visibilityInterval=setInterval(f,500),n.settings.responsive&&v(),n.settings.auto&&n.settings.autoStart&&(P()>1||n.settings.autoSlideForOnePage)&&X(),n.settings.pager&&N(n.settings.startSlide),n.settings.controls&&Y(),n.settings.touchEnabled&&Z(),n.settings.keyboardEnabled&&e(document).keydown(R)},v=function(){window.addEventListener("resize",h,!1),window.addEventListener("orientationchange",h,!1),window.addEventListener("toggleFullContent",h,!1),window.addEventListener("blur",function(){m("blur")}),window.addEventListener("focus",function(){S("blur")})},h=_.debounce(function(){n.debug&&console.log(n.logAs,"updateLayout"),G()},250),f=function(){n.settings.auto&&(a()?S("hide"):m("hide"),verge.inViewport(o)?S("scroll"):m("scroll"))},m=function(e){n.interval&&(o.stopAuto(!0),n.autoPaused=e,n.debug&&console.log(n.logAs,"pause",e))},S=function(e){n.autoPaused===e&&(o.startAuto(!0),n.autoPaused=null,n.debug&&console.log(n.logAs,"play",e))},w=function(e){return Math.max.apply(Math,e)},x=function(){var t=0,i=e();if("vertical"===n.settings.mode||n.settings.adaptiveHeight)if(n.carousel){var s=1===n.settings.moveSlides?n.active.index:n.active.index*E();i=n.children.eq(s);for(var o=1;o<=n.settings.maxSlides-1;o++)i=s+o>=n.children.length?i.add(n.children.eq(o-1)):i.add(n.children.eq(s+o))}else i=n.children.eq(n.active.index);else i=n.children;return"vertical"===n.settings.mode?(i.each(function(i){t+=e(this).outerHeight()}),n.settings.slideMargin>0&&(t+=n.settings.slideMargin*(n.settings.minSlides-1))):t=Math.max.apply(Math,i.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"===n.viewport.css("box-sizing")?t+=parseFloat(n.viewport.css("padding-top"))+parseFloat(n.viewport.css("padding-bottom"))+parseFloat(n.viewport.css("border-top-width"))+parseFloat(n.viewport.css("border-bottom-width")):"padding-box"===n.viewport.css("box-sizing")&&(t+=parseFloat(n.viewport.css("padding-top"))+parseFloat(n.viewport.css("padding-bottom"))),t},b=function(){return"100%"},C=function(){var e=n.viewport.width(),t=n.settings.slideMargin*(n.settings.maxSlides-1);return Math.floor((e-t)/n.settings.maxSlides)},y=function(){return n.settings.maxSlides},P=function(){var e=0,t=0,i=0;if(n.settings.moveSlides>0){if(!n.settings.infiniteLoop){for(;t<n.children.length;)++e,t=i+y(),i+=n.settings.moveSlides<=y()?n.settings.moveSlides:y();return i}e=Math.ceil(n.children.length/E())}else e=Math.ceil(n.children.length/y());return e},E=function(){return n.settings.moveSlides>0&&n.settings.moveSlides<=y()?n.settings.moveSlides:y()},k=function(t,i,s,r){var a,l;n.usingCSS?("vertical"===n.settings.mode?l="translateY("+t+"px)":"horizontal"===n.settings.mode?l="translateX("+t+"px":"none"===n.settings.mode&&(l="translateY("+t+"px)",s=0),o.css("-"+n.cssPrefix+"-transition-duration",s/1e3+"s"),"slide"===i?(o.css(n.animProp,l),0!==s?o.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(o)&&(o.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),B())}):B()):"reset"===i&&o.css(n.animProp,l)):((a={})[n.animProp]=t,"slide"===i?o.animate(a,s,n.settings.easing,function(){B()}):"reset"===i&&o.css(n.animProp,t))},T=function(){for(var t="",i="",s=P(),o=0;o<s;o++)i="",n.settings.buildPager?("icons"===n.settings.buildPager&&(i=""),(e.isFunction(n.settings.buildPager)||n.settings.pagerCustom)&&(i=n.settings.buildPager(o)),n.pagerEl.addClass("wpmslider-custom-pager")):(i=o+1,n.pagerEl.addClass("wpmslider-default-pager")),t+='<div class="wpmslider-pager-item"><a href="" data-slide-index="'+o+'" class="wpmslider-pager-link">'+i+"</a></div>";n.pagerEl.html(t)},I=function(){n.settings.pagerCustom?n.pagerEl=e(n.settings.pagerCustom):(n.pagerEl=e('<div class="wpmslider-pager" />'),n.settings.pagerSelector?e(n.settings.pagerSelector).html(n.pagerEl):n.controls.el.addClass("wpmslider-has-pager").append(n.pagerEl),T()),n.pagerEl.on("click touchend","a",F)},A=function(){n.controls.prev=e('<a class="wpmslider-prev" href="">'+n.settings.prevText+"</a>"),n.controls.prev.on("click touchend",D),n.settings.prevSelector&&e(n.settings.prevSelector).append(n.controls.prev),n.settings.prevSelector||(n.controls.directionEl=e('<div class="wpmslider-controls-direction" />'),n.controls.directionEl.append(n.controls.prev),n.controls.el.addClass("wpmslider-has-controls-direction").append(n.controls.directionEl))},M=function(){n.controls.next=e('<a class="wpmslider-next" href="">'+n.settings.nextText+"</a>"),n.controls.next.on("click touchend",q),n.settings.nextSelector&&e(n.settings.nextSelector).append(n.controls.next),n.settings.nextSelector||(n.controls.directionEl=e('<div class="wpmslider-controls-direction" />'),n.controls.directionEl.append(n.controls.next),n.controls.el.addClass("wpmslider-has-controls-direction").append(n.controls.directionEl))},z=function(){n.controls.start=e('<div class="wpmslider-controls-auto-item"><a class="wpmslider-start" href="">'+n.settings.startText+"</a></div>"),n.controls.stop=e('<div class="wpmslider-controls-auto-item"><a class="wpmslider-stop" href="">'+n.settings.stopText+"</a></div>"),n.controls.autoEl=e('<div class="wpmslider-controls-auto" />'),n.controls.autoEl.on("click",".wpmslider-start",H),n.controls.autoEl.on("click",".wpmslider-stop",O),n.settings.autoControlsCombine?n.controls.autoEl.append(n.controls.start):n.controls.autoEl.append(n.controls.start).append(n.controls.stop),n.settings.autoControlsSelector?e(n.settings.autoControlsSelector).html(n.controls.autoEl):n.controls.el.addClass("wpmslider-has-controls-auto").append(n.controls.autoEl),W(n.settings.autoStart?"stop":"start")},L=function(){n.children.each(function(t){var i=e(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&e(this).append('<div class="wpmslider-caption"><span>'+i+"</span></div>")})},q=function(e){e.preventDefault(),e.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),o.goToNextSlide())},D=function(e){e.preventDefault(),e.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),o.goToPrevSlide())},H=function(e){o.startAuto(),e.preventDefault(),e.stopPropagation()},O=function(e){o.stopAuto(),e.preventDefault(),e.stopPropagation()},F=function(t){var i,s;t.preventDefault(),t.stopPropagation(),n.controls.el.hasClass("disabled")||(n.settings.auto&&n.settings.stopAutoOnClick&&(n.debug&&console.log(n.logAs,"stop on navigation"),o.stopAuto()),void 0!==(i=e(t.currentTarget)).attr("data-slide-index")&&(s=parseInt(i.attr("data-slide-index")))!==n.active.index&&o.goToSlide(s))},N=function(t){var i=n.children.length;if("short"===n.settings.pagerType)return n.settings.maxSlides>1&&(i=Math.ceil(n.children.length/n.settings.maxSlides)),void n.pagerEl.html(t+1+n.settings.pagerShortSeparator+i);n.pagerEl.find("a").removeClass("active"),n.pagerEl.each(function(i,n){e(n).find("a").eq(t).addClass("active")})},B=function(){if(n.settings.infiniteLoop){var e="";0===n.active.index?e=n.children.eq(0).position():n.active.index===P()-1&&n.carousel?e=n.children.eq((P()-1)*E()).position():n.active.index===n.children.length-1&&(e=n.children.eq(n.children.length-1).position()),e&&("horizontal"===n.settings.mode?k(-e.left,"reset",0):"vertical"===n.settings.mode&&k(-e.top,"reset",0))}n.working=!1,n.settings.onSlideAfter.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)},W=function(e){n.settings.autoControlsCombine?n.controls.autoEl.html(n.controls[e]):(n.controls.autoEl.find("a").removeClass("active"),n.controls.autoEl.find("a:not(.wpmslider-"+e+")").addClass("active"))},Y=function(){1===P()?(n.controls.prev.addClass("disabled"),n.controls.next.addClass("disabled")):!n.settings.infiniteLoop&&n.settings.hideControlOnEnd&&(0===n.active.index?(n.controls.prev.addClass("disabled"),n.controls.next.removeClass("disabled")):n.active.index===P()-1?(n.controls.next.addClass("disabled"),n.controls.prev.removeClass("disabled")):(n.controls.prev.removeClass("disabled"),n.controls.next.removeClass("disabled")))},X=function(){n.settings.autoDelay>0?setTimeout(o.startAuto,n.settings.autoDelay):o.startAuto(),n.settings.autoHover&&o.hover(function(){m("hover")},function(){S("hover")})},R=function(e){var t=document.activeElement.tagName.toLowerCase();if(null===new RegExp(t,["i"]).exec("input|textarea")&&verge.inViewport(o)){if(39===e.keyCode)return q(e),!1;if(37===e.keyCode)return D(e),!1}},Z=function(){n.touch={start:{x:0,y:0},end:{x:0,y:0}},n.viewport.on("touchstart MSPointerDown pointerdown",U),n.viewport.on("click",".wpmslider a",function(e){n.viewport.hasClass("click-disabled")&&(e.preventDefault(),e.stopPropagation(),n.viewport.removeClass("click-disabled"))})},U=function(e){if(("touchstart"===e.type||0===e.button)&&"a"!==e.originalEvent.target.tagName.toLowerCase()&&!e.originalEvent.target.classList.contains("readmore-text"))if(n.controls.el.addClass("disabled"),n.working)e.preventDefault(),e.stopPropagation(),n.controls.el.removeClass("disabled");else{n.touch.originalPos=o.position();var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t];if("function"==typeof PointerEvent&&void 0===t.pointerId)return;n.touch.start.x=i[0].pageX,n.touch.start.y=i[0].pageY,n.viewport.get(0).setPointerCapture&&(n.pointerId=t.pointerId,n.viewport.get(0).setPointerCapture(n.pointerId)),n.originalClickTarget=t.originalTarget||t.target,n.originalClickButton=t.button,n.originalClickButtons=t.buttons,n.originalEventType=t.type,n.hasMove=!1,n.viewport.on("touchmove MSPointerMove pointermove",j),n.viewport.on("touchend MSPointerUp pointerup",Q),n.viewport.on("MSPointerCancel pointercancel",V)}},V=function(e){e.preventDefault(),k(n.touch.originalPos.left,"reset",0),n.controls.el.removeClass("disabled"),n.viewport.off("MSPointerCancel pointercancel",V),n.viewport.off("touchmove MSPointerMove pointermove",j),n.viewport.off("touchend MSPointerUp pointerup",Q),n.viewport.get(0).releasePointerCapture&&n.viewport.get(0).releasePointerCapture(n.pointerId)},j=function(e){var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t],s=Math.abs(i[0].pageX-n.touch.start.x),o=Math.abs(i[0].pageY-n.touch.start.y),r=0,a=0;n.hasMove=!0,3*s>o&&n.settings.preventDefaultSwipeX?(e.preventDefault(),e.stopPropagation()):3*o>s&&n.settings.preventDefaultSwipeY&&(e.preventDefault(),e.stopPropagation()),"touchmove"!==e.type&&e.preventDefault(),"fade"!==n.settings.mode&&n.settings.oneToOneTouch&&("horizontal"===n.settings.mode?(a=i[0].pageX-n.touch.start.x,r=n.touch.originalPos.left+a):(a=i[0].pageY-n.touch.start.y,r=n.touch.originalPos.top+a),k(r,"reset",0))},Q=function(t){t.preventDefault(),n.viewport.off("touchmove MSPointerMove pointermove",j),n.controls.el.removeClass("disabled");var i=t.originalEvent,s=void 0!==i.changedTouches?i.changedTouches:[i],r=0,a=0;n.touch.end.x=s[0].pageX,n.touch.end.y=s[0].pageY,"fade"===n.settings.mode?(a=Math.abs(n.touch.start.x-n.touch.end.x))>=n.settings.swipeThreshold&&(n.touch.start.x>n.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):("horizontal"===n.settings.mode?(a=n.touch.end.x-n.touch.start.x,r=n.touch.originalPos.left):(a=n.touch.end.y-n.touch.start.y,r=n.touch.originalPos.top),!n.settings.infiniteLoop&&(0===n.active.index&&a>0||n.active.last&&a<0)?k(r,"reset",200):Math.abs(a)>=n.settings.swipeThreshold?(a<0?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):k(r,"reset",200)),n.viewport.off("touchend MSPointerUp pointerup",Q),n.viewport.get(0).releasePointerCapture&&n.viewport.get(0).releasePointerCapture(n.pointerId),!1!==n.hasMove||0!==n.originalClickButton&&"touchstart"!==n.originalEventType||e(n.originalClickTarget).trigger({type:"click",button:n.originalClickButton,buttons:n.originalClickButtons})},G=function(e){n.initialized?n.working?(n.debug&&console.log(n.logAs,"slider working"),window.setTimeout(G,10)):(o.redrawSlider(),n.settings.onSliderResize.call(o,n.active.index)):n.debug&&console.log(n.logAs,"slider not initialized")},J=function(e){var t=y();n.settings.ariaHidden&&(n.children.attr("aria-hidden","true"),n.children.slice(e,e+t).attr("aria-hidden","false"))};return o.goToSlide=function(t,i){var s,r,a,l,d=!0,c=0,g={left:0,top:0},p=null;if(n.oldIndex=n.active.index,n.active.index=function(e){return e<0?n.settings.infiniteLoop?P()-1:n.active.index:e>=P()?n.settings.infiniteLoop?0:n.active.index:e}(t),!n.working&&n.active.index!==n.oldIndex){if(n.working=!0,void 0!==(d=n.settings.onSlideBefore.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index))&&!d)return n.active.index=n.oldIndex,void(n.working=!1);"next"===i?n.settings.onSlideNext.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)||(d=!1):"prev"===i&&(n.settings.onSlidePrev.call(o,n.children.eq(n.active.index),n.oldIndex,n.active.index)||(d=!1)),n.active.last=n.active.index>=P()-1,(n.settings.pager||n.settings.pagerCustom)&&N(n.active.index),n.settings.controls&&Y(),"fade"===n.settings.mode?(n.settings.adaptiveHeight&&n.viewport.height()!==x()&&n.viewport.animate({height:x()},n.settings.adaptiveHeightSpeed),n.children.filter(":visible").fadeOut(n.settings.speed).css({zIndex:0}),n.children.eq(n.active.index).css("zIndex",n.settings.slideZIndex+1).fadeIn(n.settings.speed,function(){e(this).css("zIndex",n.settings.slideZIndex),B()})):(n.settings.adaptiveHeight&&n.viewport.height()!==x()&&n.viewport.animate({height:x()},n.settings.adaptiveHeightSpeed),!n.settings.infiniteLoop&&n.carousel&&n.active.last?"horizontal"===n.settings.mode?(g=(p=n.children.eq(n.children.length-1)).position(),c=n.viewport.width()-p.outerWidth()):(s=n.children.length-n.settings.minSlides,g=n.children.eq(s).position()):n.carousel&&n.active.last&&"prev"===i?(r=1===n.settings.moveSlides?n.settings.maxSlides-E():(P()-1)*E()-(n.children.length-n.settings.maxSlides),g=(p=o.children(".wpmslider-clone").eq(r)).position()):"next"===i&&0===n.active.index?(g=o.find("> .wpmslider-clone").eq(n.settings.maxSlides).position(),n.active.last=!1):t>=0&&(l=t*parseInt(E()),g=n.children.eq(l).position()),void 0!==g&&(a="horizontal"===n.settings.mode?-(g.left-c):-g.top,k(a,"slide",n.settings.speed))),n.settings.ariaHidden&&J(n.active.index*E())}},o.goToNextSlide=function(){if((n.settings.infiniteLoop||!n.active.last)&&!0!==n.working){var e=parseInt(n.active.index)+1;o.goToSlide(e,"next")}},o.goToPrevSlide=function(){if((n.settings.infiniteLoop||0!==n.active.index)&&!0!==n.working){var e=parseInt(n.active.index)-1;o.goToSlide(e,"prev")}},o.startAuto=function(e){n.interval||(n.interval=setInterval(function(){"next"===n.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},n.settings.pause),n.settings.onAutoChange.call(o,!0),n.settings.autoControls&&!0!==e&&W("stop"))},o.stopAuto=function(e){n.autoPaused&&(n.autoPaused=!1),n.interval&&(clearInterval(n.interval),n.interval=null,n.settings.onAutoChange.call(o,!1),n.settings.autoControls&&!0!==e&&W("start"))},o.getCurrentSlide=function(){return n.active.index},o.getCurrentSlideElement=function(){return n.children.eq(n.active.index)},o.getSlideElement=function(e){return n.children.eq(e)},o.getSlideCount=function(){return n.children.length},o.isWorking=function(){return n.working},o.redrawSlider=function(){var e,t,i,s,r;n.debug&&console.log(n.logAs,"redrawSlider"),g(),n.children.height("auto"),n.viewport.height(x()+2),n.settings.stretch&&(e=n.children.map(function(){return jQuery(this).actual("outerHeight")}).get(),t=w(e),n.children.height(t),n.children.add(o.find(".wpmslider-clone")).height(t)),n.children.add(o.find(".wpmslider-clone")).outerWidth(C()),n.children.length>n.settings.maxSlides&&n.active.last&&!n.settings.infiniteLoop?"horizontal"===n.settings.mode?(i=(s=n.children.last()).position(),k(-(i.left-(n.viewport.width()-s.outerWidth())),"reset",0)):"vertical"===n.settings.mode&&(r=n.children.length-n.settings.minSlides,i=n.children.eq(r).position(),k(-i.top,"reset",0)):(i=n.children.eq(n.active.index*E()).position(),n.active.index===P()-1&&(n.active.last=!0),void 0!==i&&("horizontal"===n.settings.mode?k(-i.left,"reset",0):"vertical"===n.settings.mode?k(-i.top,"reset",0):"none"===n.settings.mode&&k(-i.top,"reset",0))),n.active.last&&(n.active.index=P()-1),n.active.index>=P()&&(n.active.last=!0),n.settings.pager&&!n.settings.pagerCustom&&(T(),N(n.active.index)),n.settings.ariaHidden&&J(n.active.index*E())},o.destroySlider=function(){n.initialized&&(n.initialized=!1,e(".wpmslider-clone",this).remove(),n.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),n.controls.el&&n.controls.el.remove(),n.controls.next&&n.controls.next.remove(),n.controls.prev&&n.controls.prev.remove(),n.pagerEl&&n.settings.controls&&!n.settings.pagerCustom&&n.pagerEl.remove(),e(".wpmslider-caption",this).remove(),n.controls.autoEl&&n.controls.autoEl.remove(),clearInterval(n.interval),clearInterval(n.visibilityInterval),n.settings.responsive&&e(window).off("resize",G),n.settings.keyboardEnabled&&e(document).off("keydown",R),e(this).removeData("strongSlider"))},o.reloadSlider=function(t){void 0!==t&&(i=t),o.destroySlider(),r(),e(o).data("strongSlider",this)},r(),e(o).data("strongSlider",this),s.attr("data-state","init"),n.debug&&console.log(n.logAs,"viewport",verge.viewportW(),"x",verge.viewportH()),this}}}(jQuery);
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Strong Testimonials ===
2
- Contributors: machothemes,silkalns,cdillon27
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
- Requires at least: 4.6
5
  Requires PHP: 5.6
6
- Tested up to: 5.4
7
- Stable tag: 2.50.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
1
  === Strong Testimonials ===
2
+ Contributors: wpchill,silkalns,cdillon27
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
+ Requires at least: 5.2
5
  Requires PHP: 5.6
6
+ Tested up to: 5.5
7
+ Stable tag: 2.50.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
strong-testimonials.php CHANGED
@@ -3,9 +3,9 @@
3
  * Plugin Name: Strong Testimonials
4
  * Plugin URI: https://strongtestimonials.com
5
  * Description: Collect and display your testimonials or reviews.
6
- * Author: MachoThemes
7
- * Author URI: https://www.machothemes.com/
8
- * Version: 2.50.2
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
@@ -14,7 +14,8 @@
14
  * Requires PHP: 5.6
15
  *
16
  * Copyright 2014-2019 Chris Dillon chris@strongwp.com
17
- * Copyright 2019 MachoThemes office@machothemes.com
 
18
  *
19
  * Original Plugin URI: https://strongplugins.com/plugins/strong-testimonials
20
  * Original Author URI: https://strongplugins.com
@@ -23,6 +24,7 @@
23
  * NOTE:
24
  * Chris Dillon ownership rights were ceased on: 01/20/2019 06:52:23 PM when ownership was turned over to MachoThemes
25
  * MachoThemes ownership started on: 01/20/2019 06:52:24 PM
 
26
  *
27
  * This program is free software; you can redistribute it and/or modify
28
  * it under the terms of the GNU General Public License as published by
@@ -44,7 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
44
  exit;
45
  }
46
 
47
- define( 'WPMTST_VERSION', '2.50.2' );
48
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
49
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
50
  defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );
3
  * Plugin Name: Strong Testimonials
4
  * Plugin URI: https://strongtestimonials.com
5
  * Description: Collect and display your testimonials or reviews.
6
+ * Author: WPChill
7
+ * Author URI: https://wpchill.com/
8
+ * Version: 2.50.3
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
14
  * Requires PHP: 5.6
15
  *
16
  * Copyright 2014-2019 Chris Dillon chris@strongwp.com
17
+ * Copyright 2019-2020 MachoThemes office@machothemes.com
18
+ * Copyright 2020 WPChill heyyy@wpchill.com
19
  *
20
  * Original Plugin URI: https://strongplugins.com/plugins/strong-testimonials
21
  * Original Author URI: https://strongplugins.com
24
  * NOTE:
25
  * Chris Dillon ownership rights were ceased on: 01/20/2019 06:52:23 PM when ownership was turned over to MachoThemes
26
  * MachoThemes ownership started on: 01/20/2019 06:52:24 PM
27
+ * WPChill ownership started on: 5th of November 2020. WPChill is a restructure and rebrand of MachoThemes.
28
  *
29
  * This program is free software; you can redistribute it and/or modify
30
  * it under the terms of the GNU General Public License as published by
46
  exit;
47
  }
48
 
49
+ define( 'WPMTST_VERSION', '2.50.3' );
50
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
51
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
52
  defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );