Strong Testimonials - Version 2.50.0

Version Description

Download this release

Release Info

Developer giucu91
Plugin Icon 128x128 Strong Testimonials
Version 2.50.0
Comparing to
See all releases

Code changes from version 2.41.1 to 2.50.0

Files changed (46) hide show
  1. admin/class-strong-testimonials-defaults.php +2 -0
  2. admin/class-strong-testimonials-upsell.php +690 -167
  3. admin/js/admin-form.js +1 -2
  4. admin/js/views.js +1 -1
  5. admin/menu/class-strong-testimonials-menu-fields.php +2 -2
  6. admin/partials/views/option-pagination.php +6 -6
  7. admin/settings/class-strong-testimonials-settings-form.php +1 -1
  8. admin/settings/class-strong-testimonials-settings.php +21 -16
  9. admin/settings/partials/form.php +6 -1
  10. admin/views.php +1 -0
  11. assets/css/admin-global.css +40 -1
  12. changelog.txt +6 -2
  13. includes/class-strong-form.php +1 -1
  14. includes/class-strong-testimonials-privacy.php +5 -6
  15. includes/functions-template-form.php +8 -0
  16. public/css/slider-controls-simple-buttons2-pager-text.css +9 -3
  17. public/js/lib/actual/jquery-actual.min.js +1 -1
  18. public/js/lib/actual/jquery.min.js +1 -1
  19. public/js/lib/form-validation/form-validation.min.js +1 -1
  20. public/js/lib/imagesloaded/imagesloaded.min.js +2 -1
  21. public/js/lib/lozad/lozad-load.min.js +1 -1
  22. public/js/lib/lozad/lozad.min.js +1 -1
  23. public/js/lib/randomjs/random.min.js +1 -1
  24. public/js/lib/readmore/readmore.min.js +1 -1
  25. public/js/lib/strongpager/jquery-strongpager.min.js +1 -1
  26. public/js/lib/strongslider/jquery-strongslider.js +1 -1
  27. public/js/lib/strongslider/jquery-strongslider.min.js +1 -3
  28. public/js/lib/validate/additional-methods.min.js +1 -3
  29. public/js/lib/validate/jquery-validate.min.js +1 -3
  30. public/js/lib/verge/verge.min.js +1 -1
  31. readme.txt +1 -1
  32. strong-testimonials.php +2 -2
  33. templates/bold/content.css +4 -0
  34. templates/default-form/form.php +17 -11
  35. templates/default/content.css +5 -1
  36. templates/default/content.php +1 -1
  37. templates/modern/content.css +4 -0
  38. templates/modern/content.php +1 -1
  39. templates/simple-form/form.php +15 -10
  40. templates/simple/content.css +3 -0
  41. templates/simple/content.php +1 -1
  42. templates/small-widget/content.css +4 -0
  43. templates/small-widget/content.php +1 -1
  44. templates/unstyled-form/form.php +15 -9
  45. templates/unstyled/content.css +4 -0
  46. templates/unstyled/content.php +1 -1
admin/class-strong-testimonials-defaults.php CHANGED
@@ -473,6 +473,8 @@ class Strong_Testimonials_Defaults {
473
  'success_action' => 'message', // message | id | url
474
  'success_redirect_id' => '',
475
  'success_redirect_url' => '',
 
 
476
  );
477
 
478
  return apply_filters( 'wpmtst_default_form_options', $default_form_options );
473
  'success_action' => 'message', // message | id | url
474
  'success_redirect_id' => '',
475
  'success_redirect_url' => '',
476
+ 'members_only' => false,
477
+ 'members_only_message' => __( 'You need to be logged in to access this form.', 'strong-testimonials' ),
478
  );
479
 
480
  return apply_filters( 'wpmtst_default_form_options', $default_form_options );
admin/class-strong-testimonials-upsell.php CHANGED
@@ -10,16 +10,87 @@ class Strong_Testimonials_Upsell {
10
 
11
  public function __construct() {
12
  $this->set_store_upgrade_url();
13
- $options = get_option( 'wpmtst_options' );
14
- if (isset($options['upsells']) && $options['upsells'] == false) {
15
- add_action( 'wpmtst_after_form_type_selection', array( $this, 'add_upsells_1' ) );
16
- add_action( 'wpmtst_before_fields_settings', array( $this, 'add_upsells_2' ) );
17
- add_action( 'wpmtst_view_editor_after_groups', array( $this, 'add_upsells_3' ) );
18
- add_action( 'wpmtst_view_editor_after_group_select', array( $this, 'add_upsells_4' ) );
19
- add_action( 'wpmtst_fields_before_fields_editor_preview', array( $this, 'add_upsells_5' ) );
20
- add_action( 'wpmtst_after_form_settings', array( $this, 'add_upsells_6' ) );
21
- add_action( 'wpmtst_views_after_template_list', array( $this, 'add_upsells_7' ) );
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
25
  }
@@ -40,9 +111,21 @@ class Strong_Testimonials_Upsell {
40
 
41
  }
42
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  public function output_importer_upsell() {
44
  ?>
45
- <div class="wpmtst-alert"">
46
  <h2><?php esc_html_e( 'Automatically pull in & display new reviews as your customers leave their feedback on external platforms', 'strong-testimonials' ) ?></h2>
47
  <p><?php esc_html_e( 'Upgrade today and get the ability to import testimonials from:', 'strong-testimonials' ) ?></p>
48
  <ul>
@@ -60,171 +143,328 @@ class Strong_Testimonials_Upsell {
60
  <?php
61
  }
62
 
63
- public function set_store_upgrade_url() {
64
 
65
- $this->store_upgrade_url = WPMTST_STORE_UPGRADE_URL . '?utm_source=st-lite&utm_campaign=upsell';
66
 
67
- //append license key
68
- $license = trim( get_option( 'strong_testimonials_license_key' ) );
69
- if ( $license ) {
70
- $this->store_upgrade_url .= '&license=' . $license;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
 
72
 
 
 
 
 
 
 
 
 
 
73
  }
74
 
75
- public function add_upsells_1() {
 
 
 
76
 
77
- if ( ! defined( 'WPMTST_COUNTRY_SELECTOR_VERSION' ) ) :
78
- ?>
79
- <div class="wpmtst-alert" style="margin-top: 10px">
80
- <?php esc_html_e( 'Want to know where are your customers located?', 'strong-testimonials' ); ?>
81
- <br/>
82
- <?php
83
- printf(
84
- esc_html__( 'Install the %s extension', 'strong-testimonials' ),
85
- sprintf(
86
- '<a href="%s" target="_blank">%s</a>',
87
- esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-country-selector-upsell' ),
88
- esc_html__( 'Strong Testimonials: Country Selector', 'strong-testimonials' )
89
- )
90
- );
91
- ?>
92
- <p>
93
-
94
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-country-selector-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
95
- </p>
96
- </div>
97
  <?php
98
- endif;
99
-
100
- if ( ! defined( 'WPMTST_CUSTOM_FIELDS_VERSION' ) ) :
 
 
 
 
 
101
  ?>
102
- <div class="wpmtst-alert" style="margin-top: 10px">
103
- <?php esc_html_e( 'Know your customers by having access to more advanced custom fields.', 'strong-testimonials' ); ?>
104
- <br/>
105
- <?php
106
- printf(
107
- esc_html__( 'Install the %s extension', 'strong-testimonials' ),
108
- sprintf(
109
- '<a href="%s" target="_blank">%s</a>',
110
- esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-custom-fields-upsell' ),
111
- esc_html__( 'Strong Testimonials: Custom Fields', 'strong-testimonials' )
112
- )
113
- );
114
- ?>
115
- <p>
116
-
117
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-custom-fields-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
118
- </p>
119
- </div>
120
- <?php
121
- endif;
122
  }
123
 
124
- public function add_upsells_2() {
125
- if ( ! defined( 'WPMTST_MULTIPLE_FORMS_VERSION' ) ) :
126
- ?>
127
- <div class="wpmtst-alert" style="margin-top: 10px">
128
- <?php
129
- printf(
130
- esc_html__( 'Create multiple submission forms by installing the %s extension.', 'strong-testimonials' ),
131
- sprintf(
132
- '<a href="%s" target="_blank">%s</a>',
133
- esc_url( WPMTST_STORE_URL . '/extensions/multiple-forms?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-multiple-forms-upsell' ),
134
- esc_html__( 'Strong Testimonials: Multiple Forms', 'strong-testimonials' )
135
- )
136
- );
137
- ?>
138
- <p>
139
-
140
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-multiple-forms-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
141
- </p>
142
- </div>
 
 
 
143
  <?php
144
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  }
146
 
147
- public function add_upsells_3() {
148
- if ( ! defined( 'WPMTST_REVIEW_MARKUP_VERSION' ) ) :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  ?>
150
- <div class="wpmtst-alert" style="margin-top: 10px">
151
- <?php
152
- printf(
153
- esc_html__( 'Add SEO-friendly & Schema.org compliant Testimonials with our %s extension.', 'strong-testimonials' ),
154
- sprintf(
155
- '<a href="%s" target="_blank">%s</a>',
156
- esc_url( WPMTST_STORE_URL . '/extensions/review-markup?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-review-markup-upsell' ),
157
- esc_html__( 'Strong Testimonials: Review Markup', 'strong-testimonials' )
158
- )
159
- );
160
- ?>
161
- <ul>
162
- <li><?php esc_html_e( '- With this extensions, search engines will display star ratings in search results for your site.', 'strong-testimonials' ); ?></li>
163
- </ul>
164
- <p>
165
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-review-markup-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
166
- </p>
167
- </div>
 
 
 
 
 
 
 
 
 
 
168
  <?php
169
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  }
171
 
172
- public function add_upsells_4() {
173
- if ( ! defined( 'WPMTST_ADVANCED_VIEWS_VERSION' ) ) :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
  ?>
175
- <div class="wpmtst-alert" style="margin-top: 1.5rem">
176
- <?php
177
- printf(
178
- esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
179
- sprintf(
180
- '<a href="%s" target="_blank">%s</a>',
181
- esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-advanced-views-upsell' ),
182
- esc_html__( 'Strong Testimonials: Advanced Views', 'strong-testimonials' )
183
- )
184
- );
185
-
186
- ?>
187
  <ul>
188
- <li><?php esc_html_e( '- filter & display testimonials based on their rating or on a pre-defined condition.', 'strong-testimonials' ); ?></li>
189
- <li><?php esc_html_e( '- easily define the display order of your testimonial fields. Re-order the name, image, url and testimonial content fields through drag & drop.', 'strong-testimonials' ); ?></li>
190
- <li><?php esc_html_e( '- edit, in real time, the way your testimonials will look on your site. Stop loosing clients because of poor design.', 'strong-testimonials' ); ?></li>
191
-
192
  </ul>
193
- <p>
 
 
 
 
 
194
 
195
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-advanced-views-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
196
- </p>
197
- </div>
198
- <?php
199
- endif;
 
 
 
 
 
 
 
200
  }
201
 
202
- public function add_upsells_5() {
203
- if ( ! defined( 'WPMTST_CAPTCHA_VERSION' ) ) :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  ?>
205
- <div class="wpmtst-alert">
206
- <?php
207
- printf(
208
- esc_html__( 'Protect your form against spam with the %s extension.', 'strong-testimonials' ),
209
- sprintf(
210
- '<a href="%s" target="_blank">%s</a>',
211
- esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
212
- esc_html__( 'Strong Testimonials: Captcha', 'strong-testimonials' )
213
- )
214
- );
215
- ?>
216
- <p>
217
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=form-settings-captcha-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
218
- </p>
219
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
  <?php
221
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  }
223
 
224
- public function add_upsells_6() {
225
- if ( defined( 'WPMTST_CAPTCHA_VERSION' ) ) {
226
- return;
227
- }
228
  ?>
229
  <hr>
230
 
@@ -233,7 +473,7 @@ class Strong_Testimonials_Upsell {
233
  <div class="wpmtst-alert">
234
  <?php
235
  printf(
236
- esc_html__( 'Protect your form against spam. Add Google recaptcha or honeypots with the %s extension.', 'strong-testimonials' ),
237
  sprintf(
238
  '<a href="%s" target="_blank">%s</a>',
239
  esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
@@ -278,26 +518,309 @@ class Strong_Testimonials_Upsell {
278
  <?php
279
  }
280
 
281
- public function add_upsells_7() {
282
- if ( ! defined( 'WPMTST_PRO_TEMPLATES_VERSION' ) ) :
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  ?>
284
- <div class="wpmtst-alert">
285
- <?php
286
- printf(
287
- esc_html__( 'Get access to profesionally designed testimonial templates with the %s extension.', 'strong-testimonials' ),
288
- sprintf(
289
- '<a href="%s" target="_blank">%s</a>',
290
- esc_url( WPMTST_STORE_URL . '/extensions/pro-templates?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-template-list' ),
291
- esc_html__( 'Strong Testimonials: Pro Templates', 'strong-testimonials' )
292
- )
293
- );
294
- ?>
295
- <p>
296
- <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-pro-templates-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
297
- </p>
298
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  <?php
300
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  }
302
 
303
  }
10
 
11
  public function __construct() {
12
  $this->set_store_upgrade_url();
13
+ $options = get_option( 'wpmtst_options' );
14
+ if ( isset( $options['upsells'] ) && $options['upsells'] == false) {
15
+
16
+ add_action( 'wpmtst_admin_after_settings_form', array( $this, 'general_upsell' ) );
17
+
18
+ if ( ! defined( 'WPMTST_ROLE_MANAGEMENT_VERSION' ) ) {
19
+ add_action( 'wpmtst_settings_tabs', array( $this, 'register_role_manager' ), 4, 2 );
20
+ add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_rm_settings_page' ) );
21
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_role_upsell' ), 20 );
22
+ }
23
+
24
+ if ( ! defined( 'WPMTST_COUNTRY_SELECTOR_VERSION' ) ) {
25
+ add_action( 'wpmtst_after_form_type_selection', array( $this, 'output_country_selector_upsell' ) );
26
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_country_selector_upsell' ), 95 );
27
+ }
28
+
29
+ if ( ! defined( 'WPMTST_CUSTOM_FIELDS_VERSION' ) ) {
30
+ add_action( 'wpmtst_after_form_type_selection', array( $this, 'output_custom_fields_upsell' ) );
31
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_custom_fields_upsell' ), 90 );
32
+ }
33
+
34
+ if ( ! defined( 'WPMTST_MULTIPLE_FORMS_VERSION' ) ) {
35
+ add_action( 'wpmtst_before_fields_settings', array( $this, 'output_multiple_form_upsell' ) );
36
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_multiple_form_upsell' ), 30 );
37
+ }
38
+
39
+ if ( ! defined( 'WPMTST_REVIEW_MARKUP_VERSION' ) ) {
40
+ add_action( 'wpmtst_view_editor_after_groups', array( $this, 'output_review_markup_upsell' ) );
41
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_review_markup_upsell' ), 15 );
42
+ add_action( 'wpmtst_settings_tabs', array( $this, 'register_review_markup' ), 4, 2 );
43
+ add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_review_markup_settings_page' ) );
44
+ }
45
+
46
+ if ( ! defined( 'WPMTST_ADVANCED_VIEWS_VERSION' ) ) {
47
+ add_action( 'wpmtst_view_editor_after_group_select', array( $this, 'output_advanced_views_upsell' ) );
48
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_advanced_views_upsell' ), 35 );
49
+ }
50
+
51
+ if ( ! defined( 'WPMTST_CAPTCHA_VERSION' ) ) {
52
+ add_action( 'wpmtst_fields_before_fields_editor_preview', array( $this, 'output_captcha_editor_upsell' ) );
53
+ add_action( 'wpmtst_after_form_settings', array( $this, 'output_captcha_form_settings_upsell' ) );
54
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_captcha_upsell' ), 40 );
55
+ }
56
+
57
+ if ( ! defined( 'WPMTST_PRO_TEMPLATES_VERSION' ) ) {
58
+ add_action( 'wpmtst_views_after_template_list', array( $this, 'output_pro_templates_upsell' ) );
59
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_pro_templates_upsell' ), 20 );
60
+ }
61
+
62
+ if ( ! defined( 'WPMTST_EMAILS_VERSION' ) ) {
63
+ add_action( 'wpmtst_after_mail_notification_settings', array( $this, 'output_enhanced_emails_upsell' ) );
64
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_enhanced_emails_upsell' ), 45 );
65
+ }
66
+
67
+ if ( ! defined( 'WPMTST_INFINITE_SCROLL_VERSION' ) ) {
68
+ add_action( 'wpmtst_view_editor_pagination_row_end', array( $this, 'output_infinite_scroll_upsell' ) );
69
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_infinite_scroll_upsell' ), 50 );
70
+ }
71
+
72
+ if ( ! defined( 'WPMTST_FILTERS_VERSION' ) ) {
73
+ add_action( 'wpmtst_after_style_view_section', array( $this, 'output_filters_upsell' ) );
74
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_filters_upsell' ), 15 );
75
+ }
76
+
77
+ if ( ! defined( 'WPMTST_PRO_VERSION' ) ) {
78
+ add_action( 'wpmtst_settings_tabs', array( $this, 'register_st_pro_tab' ), 4, 2 );
79
+ add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_st_pro_page' ) );
80
+ add_filter( 'wpmtst_general_upsell_items', array( $this, 'add_pro_upsell' ), 10 );
81
+ }
82
+
83
+ if ( ! defined( 'WPMTST_ASSIGNMENT_VERSION' ) ) {
84
+ add_action( 'wpmtst_settings_tabs', array( $this, 'register_assigment_tab' ), 4, 2 );
85
+ add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_assigment_settings_page' ) );
86
+ }
87
+
88
+ if ( ! defined( 'WPMTST_PROPERTIES_VERSION' ) ) {
89
+ add_action( 'wpmtst_settings_tabs', array( $this, 'register_properties_tab' ), 4, 2 );
90
+ add_filter( 'wpmtst_settings_callbacks', array( $this, 'register_properties_page' ) );
91
+ }
92
+
93
+ }
94
 
95
  add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
96
  }
111
 
112
  }
113
 
114
+ public function set_store_upgrade_url() {
115
+
116
+ $this->store_upgrade_url = WPMTST_STORE_UPGRADE_URL . '?utm_source=st-lite&utm_campaign=upsell';
117
+
118
+ //append license key
119
+ $license = trim( get_option( 'strong_testimonials_license_key' ) );
120
+ if ( $license ) {
121
+ $this->store_upgrade_url .= '&license=' . $license;
122
+ }
123
+
124
+ }
125
+
126
  public function output_importer_upsell() {
127
  ?>
128
+ <div class="wpmtst-alert">
129
  <h2><?php esc_html_e( 'Automatically pull in & display new reviews as your customers leave their feedback on external platforms', 'strong-testimonials' ) ?></h2>
130
  <p><?php esc_html_e( 'Upgrade today and get the ability to import testimonials from:', 'strong-testimonials' ) ?></p>
131
  <ul>
143
  <?php
144
  }
145
 
146
+ public function general_upsell(){
147
 
148
+ $general_upsells = apply_filters( 'wpmtst_general_upsell_items', array() );
149
 
150
+ if ( ! empty( $general_upsells ) ) {
151
+
152
+ ?>
153
+
154
+ <div class="wpmtst-settings-upsell">
155
+ <div class="wpmtst-alert">
156
+ <h3>Upgrade to PRO</h3>
157
+ <ul>
158
+ <?php foreach ( $general_upsells as $general_upsell ) { ?>
159
+ <li>
160
+ <span class="dashicons dashicons-yes"></span>
161
+ <span>
162
+ <?php echo $general_upsell ?>
163
+ </span>
164
+ </li>
165
+ <?php } ?>
166
+ </ul>
167
+
168
+ <a href="<?php echo esc_url( WPMTST_STORE_URL . '/pricing?utm_source=st-lite&utm_campaign=upsell&utm_medium=general-settings-upsell' ) ?>" target="_blank" class="button button-primary button-hero" style="width:100%;display:block;margin-top:20px;text-align:center;">Upgrade to PRO</a>
169
+
170
+ </div>
171
+ </div>
172
+
173
+ <?php
174
  }
175
+ }
176
 
177
+ // Role Manager upsell
178
+ public function register_role_manager( $active_tab, $url ) {
179
+ $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
180
+ printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
181
+ esc_url( add_query_arg( 'tab', 'access', $url ) ),
182
+ esc_attr( $tab == 'access' ? 'nav-tab-active' : '' ),
183
+ _x( 'Role Management', 'adjective', 'strong-testimonials' ),
184
+ '<span class="wpmtst-upsell-badge">PRO</span>'
185
+ );
186
  }
187
 
188
+ public static function register_rm_settings_page( $pages ) {
189
+ $pages[ 'access' ] = array( $this, 'output_role_manager_page' );
190
+ return $pages;
191
+ }
192
 
193
+ public function output_role_manager_page(){
194
+ ?>
195
+ <div class="wpmtst-alert">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  <?php
197
+ printf(
198
+ esc_html__( 'Control who approves testimonials or who has access to the plugins’ settings panel with %s extension. Get total granular control over who has access to your testimonials.', 'strong-testimonials' ),
199
+ sprintf(
200
+ '<a href="%s" target="_blank">%s</a>',
201
+ esc_url( WPMTST_STORE_URL . '/extensions/role-management?utm_source=st-lite&utm_campaign=upsell&utm_medium=role-management-tab-upsell' ),
202
+ esc_html__( 'Role Management', 'strong-testimonials' )
203
+ )
204
+ );
205
  ?>
206
+ <p>
207
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=role-management-tab-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
208
+ </p>
209
+ </div>
210
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  }
212
 
213
+ public function add_role_upsell( $upsells ) {
214
+ $upsell = sprintf(
215
+ esc_html__( 'Control who approves testimonials or who has access to the plugins’ settings panel with %s extension. Get total granular control over who has access to your testimonials.', 'strong-testimonials' ),
216
+ sprintf(
217
+ '<a href="%s" target="_blank">%s</a>',
218
+ esc_url( WPMTST_STORE_URL . '/extensions/role-management?utm_source=st-lite&utm_campaign=upsell&utm_medium=role-management-general-upsell' ),
219
+ esc_html__( 'Role Management', 'strong-testimonials' )
220
+ )
221
+ );
222
+
223
+ $upsells[] = $upsell;
224
+ return $upsells;
225
+ }
226
+
227
+ /*
228
+ Country Selector
229
+ */
230
+ public function output_country_selector_upsell() {
231
+ ?>
232
+ <div class="wpmtst-alert" style="margin-top: 10px">
233
+ <?php esc_html_e( 'Want to know where are your customers located?', 'strong-testimonials' ); ?>
234
+ <br/>
235
  <?php
236
+ printf(
237
+ esc_html__( 'Install the %s extension', 'strong-testimonials' ),
238
+ sprintf(
239
+ '<a href="%s" target="_blank">%s</a>',
240
+ esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-country-selector-upsell' ),
241
+ esc_html__( 'Strong Testimonials: Country Selector', 'strong-testimonials' )
242
+ )
243
+ );
244
+ ?>
245
+ <p>
246
+
247
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-country-selector-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
248
+ </p>
249
+ </div>
250
+ <?php
251
+ }
252
+
253
+ public function add_country_selector_upsell( $upsells ) {
254
+ $upsell = sprintf(
255
+ esc_html__( 'Show where your customers are located with the %s extension. ', 'strong-testimonials' ),
256
+ sprintf(
257
+ '<a href="%s" target="_blank">%s</a>',
258
+ esc_url( WPMTST_STORE_URL . '/extensions/country-selector?utm_source=st-lite&utm_campaign=upsell&utm_medium=country-selector-general-upsell' ),
259
+ esc_html__( 'Country Selector', 'strong-testimonials' )
260
+ )
261
+ );
262
+
263
+ $upsells[] = $upsell;
264
+ return $upsells;
265
  }
266
 
267
+ /*
268
+ Custom fields
269
+ */
270
+ public function output_custom_fields_upsell() {
271
+ ?>
272
+ <div class="wpmtst-alert" style="margin-top: 10px">
273
+ <?php esc_html_e( 'Know your customers by having access to more advanced custom fields.', 'strong-testimonials' ); ?>
274
+ <br/>
275
+ <?php
276
+ printf(
277
+ esc_html__( 'Install the %s extension', 'strong-testimonials' ),
278
+ sprintf(
279
+ '<a href="%s" target="_blank">%s</a>',
280
+ esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-custom-fields-upsell' ),
281
+ esc_html__( 'Strong Testimonials: Custom Fields', 'strong-testimonials' )
282
+ )
283
+ );
284
  ?>
285
+ <p>
286
+
287
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-custom-fields-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
288
+ </p>
289
+ </div>
290
+ <?php
291
+ }
292
+
293
+ public function add_custom_fields_upsell( $upsells ) {
294
+ $upsell = sprintf(
295
+ esc_html__( 'Get to know your customers by installing our %s extension.', 'strong-testimonials' ),
296
+ sprintf(
297
+ '<a href="%s" target="_blank">%s</a>',
298
+ esc_url( WPMTST_STORE_URL . '/extensions/custom-fields?utm_source=st-lite&utm_campaign=upsell&utm_medium=custom-fields-general-upsell' ),
299
+ esc_html__( 'Custom Fields', 'strong-testimonials' )
300
+ )
301
+ );
302
+
303
+ $upsells[] = $upsell;
304
+ return $upsells;
305
+ }
306
+
307
+ /*
308
+ * Multiple forms
309
+ */
310
+ public function output_multiple_form_upsell() {
311
+ ?>
312
+ <div class="wpmtst-alert" style="margin-top: 10px">
313
  <?php
314
+ printf(
315
+ esc_html__( 'Create multiple submission forms by installing the %s extension.', 'strong-testimonials' ),
316
+ sprintf(
317
+ '<a href="%s" target="_blank">%s</a>',
318
+ esc_url( WPMTST_STORE_URL . '/extensions/multiple-forms?utm_source=st-lite&utm_campaign=upsell&utm_medium=fields-multiple-forms-upsell' ),
319
+ esc_html__( 'Strong Testimonials: Multiple Forms', 'strong-testimonials' )
320
+ )
321
+ );
322
+ ?>
323
+ <p>
324
+
325
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=fields-multiple-forms-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
326
+ </p>
327
+ </div>
328
+ <?php
329
+ }
330
+
331
+ public function add_multiple_form_upsell( $upsells ) {
332
+ $upsell = sprintf(
333
+ esc_html__( 'Create multiple submission forms by installing the %s extension.', 'strong-testimonials' ),
334
+ sprintf(
335
+ '<a href="%s" target="_blank">%s</a>',
336
+ esc_url( WPMTST_STORE_URL . '/extensions/multiple-forms?utm_source=st-lite&utm_campaign=upsell&utm_medium=multiple-forms-general-upsell' ),
337
+ esc_html__( 'Multiple Forms', 'strong-testimonials' )
338
+ )
339
+ );
340
+
341
+ $upsells[] = $upsell;
342
+ return $upsells;
343
  }
344
 
345
+ /*
346
+ * Review Markup
347
+ */
348
+ public function register_review_markup( $active_tab, $url ) {
349
+ $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
350
+ printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
351
+ esc_url( add_query_arg( 'tab', 'review-markup', $url ) ),
352
+ esc_attr( $tab == 'review-markup' ? 'nav-tab-active' : '' ),
353
+ _x( 'Review Markup', 'adjective', 'strong-testimonials' ),
354
+ '<span class="wpmtst-upsell-badge">PRO</span>'
355
+ );
356
+ }
357
+ public static function register_review_markup_settings_page( $pages ) {
358
+ $pages[ 'review-markup' ] = array( $this, 'output_review_markup_upsell' );
359
+ return $pages;
360
+ }
361
+ public function output_review_markup_upsell() {
362
+ ?>
363
+ <div class="wpmtst-alert" style="margin-top: 10px">
364
+ <?php
365
+ printf(
366
+ esc_html__( 'Add SEO-friendly & Schema.org compliant Testimonials with our %s extension.', 'strong-testimonials' ),
367
+ sprintf(
368
+ '<a href="%s" target="_blank">%s</a>',
369
+ esc_url( WPMTST_STORE_URL . '/extensions/review-markup?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-review-markup-upsell' ),
370
+ esc_html__( 'Strong Testimonials: Review Markup', 'strong-testimonials' )
371
+ )
372
+ );
373
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
374
  <ul>
375
+ <li><?php esc_html_e( 'With this extensions, search engines will display star ratings in search results for your site.', 'strong-testimonials' ); ?></li>
 
 
 
376
  </ul>
377
+ <p>
378
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-review-markup-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
379
+ </p>
380
+ </div>
381
+ <?php
382
+ }
383
 
384
+ public function add_review_markup_upsell( $upsells ) {
385
+ $upsell = sprintf(
386
+ esc_html__( 'Add SEO-friendly & Schema.org compliant Testimonials with our %s extension.', 'strong-testimonials' ),
387
+ sprintf(
388
+ '<a href="%s" target="_blank">%s</a>',
389
+ esc_url( WPMTST_STORE_URL . '/extensions/review-markup?utm_source=st-lite&utm_campaign=upsell&utm_medium=review-markup-general-upsell' ),
390
+ esc_html__( 'Review Markup', 'strong-testimonials' )
391
+ )
392
+ );
393
+
394
+ $upsells[] = $upsell;
395
+ return $upsells;
396
  }
397
 
398
+ /*
399
+ Advanced Views
400
+ */
401
+ public function output_advanced_views_upsell() {
402
+ ?>
403
+ <div class="wpmtst-alert" style="margin-top: 1.5rem">
404
+ <?php
405
+ printf(
406
+ esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
407
+ sprintf(
408
+ '<a href="%s" target="_blank">%s</a>',
409
+ esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-advanced-views-upsell' ),
410
+ esc_html__( 'Strong Testimonials: Advanced Views', 'strong-testimonials' )
411
+ )
412
+ );
413
+
414
  ?>
415
+ <ul>
416
+ <li><?php esc_html_e( 'filter & display testimonials based on their rating or on a pre-defined condition.', 'strong-testimonials' ); ?></li>
417
+ <li><?php esc_html_e( 'easily define the display order of your testimonial fields. Re-order the name, image, url and testimonial content fields through drag & drop.', 'strong-testimonials' ); ?></li>
418
+ <li><?php esc_html_e( 'edit, in real time, the way your testimonials will look on your site. Stop loosing clients because of poor design.', 'strong-testimonials' ); ?></li>
419
+
420
+ </ul>
421
+ <p>
422
+
423
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-advanced-views-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
424
+ </p>
425
+ </div>
426
+ <?php
427
+ }
428
+
429
+ public function add_advanced_views_upsell( $upsells ) {
430
+ $upsell = sprintf(
431
+ esc_html__( 'Start filtering, changing the order, or even editing your testimonials in real-time with the %s extension.', 'strong-testimonials' ),
432
+ sprintf(
433
+ '<a href="%s" target="_blank">%s</a>',
434
+ esc_url( WPMTST_STORE_URL . '/extensions/advanced-views?utm_source=st-lite&utm_campaign=upsell&utm_medium=advanced-views-general-upsell' ),
435
+ esc_html__( 'Advanced Views', 'strong-testimonials' )
436
+ )
437
+ );
438
+
439
+ $upsells[] = $upsell;
440
+ return $upsells;
441
+
442
+ }
443
+
444
+ /*
445
+ Captcha extensio
446
+ */
447
+ public function output_captcha_editor_upsell() {
448
+ ?>
449
+ <div class="wpmtst-alert">
450
  <?php
451
+ printf(
452
+ esc_html__( 'Protect your form against spam with the %s extension.', 'strong-testimonials' ),
453
+ sprintf(
454
+ '<a href="%s" target="_blank">%s</a>',
455
+ esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
456
+ esc_html__( 'Strong Testimonials: Captcha', 'strong-testimonials' )
457
+ )
458
+ );
459
+ ?>
460
+ <p>
461
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=form-settings-captcha-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
462
+ </p>
463
+ </div>
464
+ <?php
465
  }
466
 
467
+ public function output_captcha_form_settings_upsell() {
 
 
 
468
  ?>
469
  <hr>
470
 
473
  <div class="wpmtst-alert">
474
  <?php
475
  printf(
476
+ esc_html__( 'Protect your form against spam. Add Google reCAPTCHA or honeypot anti-spam with the %s extension.', 'strong-testimonials' ),
477
  sprintf(
478
  '<a href="%s" target="_blank">%s</a>',
479
  esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-upsell' ),
518
  <?php
519
  }
520
 
521
+ public function add_captcha_upsell( $upsells ) {
522
+ $upsell = sprintf(
523
+ esc_html__( 'Protect your form against spam. Add Google ReCaptcha or honeypot anti-spam with the %s extension.', 'strong-testimonials' ),
524
+ sprintf(
525
+ '<a href="%s" target="_blank">%s</a>',
526
+ esc_url( WPMTST_STORE_URL . '/extensions/captcha?utm_source=st-lite&utm_campaign=upsell&utm_medium=form-settings-captcha-general-upsell' ),
527
+ esc_html__( 'Captcha', 'strong-testimonials' )
528
+ )
529
+ );
530
+
531
+ $upsells[] = $upsell;
532
+ return $upsells;
533
+
534
+ }
535
+
536
+ /*
537
+ PRO Templates
538
+ */
539
+ public function output_pro_templates_upsell() {
540
+ ?>
541
+ <div class="wpmtst-alert">
542
+ <?php
543
+ echo esc_html__( 'Impress your potential clients with profesionally designed, pixel-perfect templates that increase your chances of standing out and landing more clients.', 'strong-testimonials' )
544
  ?>
545
+ <p>
546
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=views-pro-templates-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
547
+ </p>
548
+ </div>
549
+ <?php
550
+ }
551
+
552
+ public function add_pro_templates_upsell( $upsells ) {
553
+ $upsell = sprintf(
554
+ esc_html__( 'Get access to professionally designed testimonial templates with the %s extension.', 'strong-testimonials' ),
555
+ sprintf(
556
+ '<a href="%s" target="_blank">%s</a>',
557
+ esc_url( WPMTST_STORE_URL . '/extensions/pro-templates?utm_source=st-lite&utm_campaign=upsell&utm_medium=pro-templates-general-upsell' ),
558
+ esc_html__( 'Pro Templates', 'strong-testimonials' )
559
+ )
560
+ );
561
+
562
+ $upsells[] = $upsell;
563
+ return $upsells;
564
+
565
+ }
566
+
567
+ /*
568
+ Enhanced Emails
569
+ */
570
+ public function output_enhanced_emails_upsell() {
571
+ ?>
572
+ <div class="wpmtst-alert" style="margin-top: 10px">
573
+ <?php
574
+ printf(
575
+ esc_html__( 'Use the %s extension to:', 'strong-testimonials' ),
576
+ sprintf(
577
+ '<a href="%s" target="_blank">%s</a>',
578
+ esc_url( WPMTST_STORE_URL . '/extensions/enhanced-emails?utm_source=st-lite&utm_campaign=upsell&utm_medium=enhanced-emails-upsell' ),
579
+ esc_html__( 'Strong Testimonials: Enhanced Emails', 'strong-testimonials' )
580
+ )
581
+ );
582
+ ?>
583
+ <ul>
584
+ <li><?php esc_html_e( 'send a thank you email to your client once his testimonial\'s approved', 'strong-testimonials' ); ?></li>
585
+ <li><?php esc_html_e( 'increase brand loyalty by showing you really care about your clients', 'strong-testimonials' ); ?></li>
586
+ <li><?php esc_html_e( 'keep your clients engaged and increase your chances of selling more', 'strong-testimonials' ); ?></li>
587
+ </ul>
588
+ <p>
589
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=enhanced-emails-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
590
+ </p>
591
+ </div>
592
+ <?php
593
+ }
594
+
595
+ public function add_enhanced_emails_upsell( $upsells ) {
596
+ $upsell = sprintf(
597
+ esc_html__( 'Send a thank-you email to your clients once their testimonial is approved using %s extension. This way, you increase brand loyalty and grow your chances of seeling more. ', 'strong-testimonials' ),
598
+ sprintf(
599
+ '<a href="%s" target="_blank">%s</a>',
600
+ esc_url( WPMTST_STORE_URL . '/extensions/enhanced-emails?utm_source=st-lite&utm_campaign=upsell&utm_medium=enhanced-emails-general-upsell' ),
601
+ esc_html__( 'Enhanced Emails', 'strong-testimonials' )
602
+ )
603
+ );
604
+
605
+ $upsells[] = $upsell;
606
+ return $upsells;
607
+
608
+ }
609
+
610
+ /*
611
+ Inifinite Scroll
612
+ */
613
+ public function output_infinite_scroll_upsell() {
614
+ ?>
615
+ <div class="wpmtst-alert" style="margin-top: 10px">
616
+ <?php
617
+ printf(
618
+ esc_html__( 'With the %s extension you can:', 'strong-testimonials' ),
619
+ sprintf(
620
+ '<a href="%s" target="_blank">%s</a>',
621
+ esc_url( WPMTST_STORE_URL . '/extensions/infinite-scroll?utm_source=st-lite&utm_campaign=upsell&utm_medium=infinite-scroll-upsell' ),
622
+ esc_html__( 'Strong Testimonials: Infinite Scroll', 'strong-testimonials' )
623
+ )
624
+ );
625
+ ?>
626
+ <ul>
627
+ <li><?php esc_html_e( 'display a fixed number of testimonials on first view and have more of them load when the user starts scrolling', 'strong-testimonials' ); ?></li>
628
+ <li><?php esc_html_e( 'reduce your page\'s initial load time, making your site faster in the process and not driving clients away because of a slow loading website', 'strong-testimonials' ); ?></li>
629
+ </ul>
630
+ <p>
631
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=infinite-scroll-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
632
+ </p>
633
+ </div>
634
+ <?php
635
+ }
636
+
637
+ public function add_infinite_scroll_upsell( $upsells ) {
638
+ $upsell = sprintf(
639
+ esc_html__( 'Reduce your page’s initial load time - display a fixed number of testimonials on the first view and have more loading when you scroll down with %s extension.', 'strong-testimonials' ),
640
+ sprintf(
641
+ '<a href="%s" target="_blank">%s</a>',
642
+ esc_url( WPMTST_STORE_URL . '/extensions/infinite-scroll?utm_source=st-lite&utm_campaign=upsell&utm_medium=infinite-scroll-general-upsell' ),
643
+ esc_html__( 'Infinite Scroll', 'strong-testimonials' )
644
+ )
645
+ );
646
+
647
+ $upsells[] = $upsell;
648
+ return $upsells;
649
+
650
+ }
651
+
652
+ /*
653
+ Filters
654
+ */
655
+ public function output_filters_upsell() {
656
+ ?>
657
+ <div class="wpmtst-alert" style="margin-top:1.5rem;">
658
+ <?php
659
+ printf(
660
+ esc_html__( 'Use the %s extensions to:', 'strong-testimonials' ),
661
+ sprintf(
662
+ '<a href="%s" target="_blank">%s</a>',
663
+ esc_url( WPMTST_STORE_URL . '/extensions/filters?utm_source=st-lite&utm_campaign=upsell&utm_medium=views-filters-upsell' ),
664
+ esc_html__( 'Strong Testimonials: Filters', 'strong-testimonials' )
665
+ )
666
+ );
667
+ ?>
668
+ <ul>
669
+ <li><?php esc_html_e( 'create category-like filters for your testimonials', 'strong-testimonials' ); ?></li>
670
+ <li><?php esc_html_e( 'group testimonials by associated product or service', 'strong-testimonials' ); ?></li>
671
+ <li><?php esc_html_e( 'help potential clients appreciate the great work you do by showcasing reviews from other clients', 'strong-testimonials' ); ?></li>
672
+ </ul>
673
+ <p>
674
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=filters-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
675
+ </p>
676
+ </div>
677
+ <?php
678
+ }
679
+ public function add_filters_upsell( $upsells ) {
680
+ $upsell = sprintf(
681
+ esc_html__( 'Add category-like filters for testimonials, group testimonials by associated product/service, and help potential clients appreciate the great work you do by showcasing reviews from other clients with %s extension.', 'strong-testimonials' ),
682
+ sprintf(
683
+ '<a href="%s" target="_blank">%s</a>',
684
+ esc_url( WPMTST_STORE_URL . '/extensions/filters?utm_source=st-lite&utm_campaign=upsell&utm_medium=filters-general-upsell' ),
685
+ esc_html__( 'Filters', 'strong-testimonials' )
686
+ )
687
+ );
688
+
689
+ $upsells[] = $upsell;
690
+ return $upsells;
691
+
692
+ }
693
+
694
+ /*
695
+ Assigments
696
+ */
697
+ public function register_assigment_tab( $active_tab, $url ) {
698
+ $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
699
+ printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
700
+ esc_url( add_query_arg( 'tab', 'assignment', $url ) ),
701
+ esc_attr( $tab == 'assignment' ? 'nav-tab-active' : '' ),
702
+ _x( 'Assignment', 'adjective', 'strong-testimonials' ),
703
+ '<span class="wpmtst-upsell-badge">PRO</span>'
704
+ );
705
+ }
706
+ public static function register_assigment_settings_page( $pages ) {
707
+ $pages[ 'assignment' ] = array( $this, 'output_assigment_upsell' );
708
+ return $pages;
709
+ }
710
+ public static function output_assigment_upsell() {
711
+ ?>
712
+
713
+ <div class="wpmtst-alert" style="margin-top:1.5rem;">
714
+ <?php
715
+ printf(
716
+ esc_html__( 'The %s extension is perfect if you want to easily assign testimonials to certain custom post types.', 'strong-testimonials' ),
717
+ sprintf(
718
+ '<a href="%s" target="_blank">%s</a>',
719
+ esc_url( WPMTST_STORE_URL . '/extensions/assignment?utm_source=st-lite&utm_campaign=upsell&utm_medium=settings-tab-assigment-upsell' ),
720
+ esc_html__( 'Strong Testimonials: Assignment', 'strong-testimonials' )
721
+ )
722
+ );
723
+ ?>
724
+ <p>
725
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=assigment-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
726
+ </p>
727
+ </div>
728
+
729
+ <?php
730
+ }
731
+
732
+ /*
733
+ Strong Testimonials PRO
734
+ */
735
+ public function register_st_pro_tab( $active_tab, $url ) {
736
+ $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
737
+ printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
738
+ esc_url( add_query_arg( 'tab', 'single_testiomonial_template', $url ) ),
739
+ esc_attr( $tab == 'single_testiomonial_template' ? 'nav-tab-active' : '' ),
740
+ _x( 'Single Testimonial Template', 'adjective', 'strong-testimonials' ),
741
+ '<span class="wpmtst-upsell-badge">PRO</span>'
742
+ );
743
+ }
744
+ public static function register_st_pro_page( $pages ) {
745
+ $pages[ 'single_testiomonial_template' ] = array( $this, 'output_st_pro_upsell' );
746
+ return $pages;
747
+ }
748
+ public static function output_st_pro_upsell() {
749
+ ?>
750
+ <div class="wpmtst-alert" style="margin-top:1.5rem;">
751
+ <?php
752
+ printf(
753
+ esc_html__( 'With %s you can:', 'strong-testimonials' ),
754
+ sprintf(
755
+ '<a href="%s" target="_blank">%s</a>',
756
+ esc_url( WPMTST_STORE_URL . '/extensions/strong-testimonials-pro?utm_source=st-lite&utm_campaign=upsell&utm_medium=setting-tab-st-pro-upsell' ),
757
+ esc_html__( 'Strong Testimonials PRO', 'strong-testimonials' )
758
+ )
759
+ );
760
+ ?>
761
+ <ul>
762
+ <li><?php esc_html_e( 'Display a default image when no image has been provided for the testimonial;', 'strong-testimonials' ); ?></li>
763
+ <li><?php esc_html_e( 'Use author initials as the testimonial image;', 'strong-testimonials' ); ?></li>
764
+ <li><?php esc_html_e( 'Choose the HTML tag you’d like to use for your testimonial titles;', 'strong-testimonials' ); ?></li>
765
+ <li><?php esc_html_e( 'Choose the Single Testimonial Template settings;', 'strong-testimonials' ); ?></li>
766
+ <li><?php esc_html_e( 'Prefill testimonial forms from $_GET parameters;', 'strong-testimonials' ); ?></li>
767
+ <li><?php esc_html_e( 'Show testimonial form only for logged-in users.', 'strong-testimonials' ); ?></li>
768
+ </ul>
769
+ <p>
770
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=setting-tab-st-pro-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
771
+ </p>
772
+ </div>
773
+ <?php
774
+ }
775
+ public function add_pro_upsell( $upsells ) {
776
+ $upsell = sprintf(
777
+ esc_html__( '%s provides you with a lot of new functionalities in one plugin, such as choosing the HTML tag you’d like to display for your testimonial titles or prefilling the forms from $_GET parameters. Moreover, if no image is provided for your testimonial, you can display the author’s initials or a default picture. Get started with Strong Testimonials Pro today!', 'strong-testimonials' ),
778
+ sprintf(
779
+ '<a href="%s" target="_blank">%s</a>',
780
+ esc_url( WPMTST_STORE_URL . '/extensions/strong-testimonials-pro?utm_source=st-lite&utm_campaign=upsell&utm_medium=st-pro-general-upsell' ),
781
+ esc_html__( 'Strong Testimonials PRO', 'strong-testimonials' )
782
+ )
783
+ );
784
+
785
+ $upsells[] = $upsell;
786
+ return $upsells;
787
+
788
+ }
789
+
790
+ /*
791
+ Properties
792
+ */
793
+ public function register_properties_tab( $active_tab, $url ) {
794
+ $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
795
+ printf( '<a href="%s" class="nav-tab %s">%s%s</a>',
796
+ esc_url( add_query_arg( 'tab', 'properties', $url ) ),
797
+ esc_attr( $tab == 'properties' ? 'nav-tab-active' : '' ),
798
+ _x( 'Properties', 'adjective', 'strong-testimonials' ),
799
+ '<span class="wpmtst-upsell-badge">PRO</span>'
800
+ );
801
+ }
802
+ public static function register_properties_page( $pages ) {
803
+ $pages[ 'properties' ] = array( $this, 'output_properties_upsell' );
804
+ return $pages;
805
+ }
806
+ public static function output_properties_upsell() {
807
+ ?>
808
+ <div class="wpmtst-alert" style="margin-top:1.5rem;">
809
  <?php
810
+ printf(
811
+ esc_html__( 'Easily customize default testimonial attributes such as labels, permalink structure, icons and more with the %s extension.', 'strong-testimonials' ),
812
+ sprintf(
813
+ '<a href="%s" target="_blank">%s</a>',
814
+ esc_url( WPMTST_STORE_URL . '/extensions/properties?utm_source=st-lite&utm_campaign=upsell&utm_medium=settings-tab-properties-upsell' ),
815
+ esc_html__( 'Strong Testimonials: Properties', 'strong-testimonials' )
816
+ )
817
+ );
818
+ ?>
819
+ <p>
820
+ <a class="button button-primary" target="_blank" href="<?php echo esc_url( $this->store_upgrade_url . '&utm_medium=properties-upsell' ); ?>"><?php esc_html_e( 'Upgrade', 'strong-testimonials' ); ?></a>
821
+ </p>
822
+ </div>
823
+ <?php
824
  }
825
 
826
  }
admin/js/admin-form.js CHANGED
@@ -54,11 +54,10 @@ jQuery(document).ready(function ($) {
54
  */
55
 
56
  var $tagListItems = $('#wpmtst-tags-list li');
57
-
58
  $tagListItems.attr('title', wpmtst_admin.templateTagTitle);
59
 
60
  $tagListItems.on('click', function () {
61
- $('#wpmtst-option-email-message').insertAtCaret($(this).text());
62
  return false;
63
  });
64
 
54
  */
55
 
56
  var $tagListItems = $('#wpmtst-tags-list li');
 
57
  $tagListItems.attr('title', wpmtst_admin.templateTagTitle);
58
 
59
  $tagListItems.on('click', function () {
60
+ $(this).closest('.email-container').find('#wpmtst-option-email-message').insertAtCaret($(this).text());
61
  return false;
62
  });
63
 
admin/js/views.js CHANGED
@@ -611,7 +611,7 @@ jQuery(document).ready(function ($) {
611
  * Template change listener
612
  */
613
  // TODO Use ID
614
- var templateRadios = $('input[type=radio][name=\'view[data][template]\']');
615
 
616
  function templateDescriptions () {
617
  var templateRadioOff, templateRadioOn, template;
611
  * Template change listener
612
  */
613
  // TODO Use ID
614
+ var templateRadios = $('.template-list input[type=radio]');
615
 
616
  function templateDescriptions () {
617
  var templateRadioOff, templateRadioOn, template;
admin/menu/class-strong-testimonials-menu-fields.php CHANGED
@@ -42,8 +42,8 @@ class Strong_Testimonials_Menu_Fields {
42
  */
43
  public static function get_submenu() {
44
  return array(
45
- 'page_title' => apply_filters( 'wpmtst_fields_page_title', __( 'Forms', 'strong-testimonials' ) ),
46
- 'menu_title' => apply_filters( 'wpmtst_fields_menu_title', __( 'Forms', 'strong-testimonials' ) ),
47
  'capability' => 'strong_testimonials_fields',
48
  'menu_slug' => 'testimonial-fields',
49
  'function' => 'wpmtst_form_admin',
42
  */
43
  public static function get_submenu() {
44
  return array(
45
+ 'page_title' => apply_filters( 'wpmtst_fields_page_title', __( 'Form', 'strong-testimonials' ) ),
46
+ 'menu_title' => apply_filters( 'wpmtst_fields_menu_title', __( 'Form', 'strong-testimonials' ) ),
47
  'capability' => 'strong_testimonials_fields',
48
  'menu_slug' => 'testimonial-fields',
49
  'function' => 'wpmtst_form_admin',
admin/partials/views/option-pagination.php CHANGED
@@ -28,13 +28,13 @@ $links .= '</span>';
28
  </select>
29
  </label>
30
  </div>
31
- <div class="inline then fast then_simple then_not_standard" style="display: none;">
32
  <p class="description">
33
  <?php _e( 'Using JavaScript. Intended for small scale.', 'strong-testimonials' ); ?>
34
  <?php echo $links; ?>
35
  </p>
36
  </div>
37
- <div class="inline then fast then_not_simple then_standard" style="display: none;">
38
  <p class="description">
39
  <?php _e( 'Using paged URLs: /page/2, /page/3, etc. Best for large scale.', 'strong-testimonials' ); ?>
40
  <?php echo $links; ?>
@@ -55,7 +55,7 @@ $links .= '</span>';
55
  value="<?php echo $view['pagination_settings']['per_page']; ?>"/>
56
  </div>
57
 
58
- <div class="inline">
59
  <label for="view-nav">
60
  <?php _e( 'Navigation', 'strong-testimonials' ); ?>
61
  </label>
@@ -73,7 +73,7 @@ $links .= '</span>';
73
  </div>
74
  </div>
75
 
76
- <div class="row then then_not_simple then_standard" style="display: none;">
77
  <div class="row-inner">
78
  <div class="inline">
79
  <label for="view-pagination-show_all">
@@ -112,7 +112,7 @@ $links .= '</span>';
112
  </div>
113
  </div>
114
 
115
- <div class="row then then_not_simple then_standard" style="display: none;">
116
  <div class="row-inner">
117
  <div class="inline inline-middle">
118
  <input class="if toggle checkbox" id="view-pagination-prev_next"
@@ -141,7 +141,7 @@ $links .= '</span>';
141
  </div>
142
  </div>
143
 
144
- <div class="row then then_not_simple then_standard" style="display: none;">
145
  <div class="row-inner">
146
  <div class="inline">
147
  <label for="view-pagination-before_page_number">
28
  </select>
29
  </label>
30
  </div>
31
+ <div class="inline then fast then_simple then_not_standard then_not_infinitescroll" style="display: none;">
32
  <p class="description">
33
  <?php _e( 'Using JavaScript. Intended for small scale.', 'strong-testimonials' ); ?>
34
  <?php echo $links; ?>
35
  </p>
36
  </div>
37
+ <div class="inline then fast then_not_simple then_standard then_not_infinitescroll" style="display: none;">
38
  <p class="description">
39
  <?php _e( 'Using paged URLs: /page/2, /page/3, etc. Best for large scale.', 'strong-testimonials' ); ?>
40
  <?php echo $links; ?>
55
  value="<?php echo $view['pagination_settings']['per_page']; ?>"/>
56
  </div>
57
 
58
+ <div class="inline then then_simple then_standard then_not_infinitescroll">
59
  <label for="view-nav">
60
  <?php _e( 'Navigation', 'strong-testimonials' ); ?>
61
  </label>
73
  </div>
74
  </div>
75
 
76
+ <div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
77
  <div class="row-inner">
78
  <div class="inline">
79
  <label for="view-pagination-show_all">
112
  </div>
113
  </div>
114
 
115
+ <div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
116
  <div class="row-inner">
117
  <div class="inline inline-middle">
118
  <input class="if toggle checkbox" id="view-pagination-prev_next"
141
  </div>
142
  </div>
143
 
144
+ <div class="row then then_not_simple then_standard then_not_infinitescroll" style="display: none;">
145
  <div class="row-inner">
146
  <div class="inline">
147
  <label for="view-pagination-before_page_number">
admin/settings/class-strong-testimonials-settings-form.php CHANGED
@@ -46,7 +46,7 @@ class Strong_Testimonials_Settings_Form {
46
  printf( '<a href="%s" class="nav-tab %s">%s</a>',
47
  esc_url( add_query_arg( 'tab', self::TAB_NAME, $url ) ),
48
  esc_attr( $active_tab == self::TAB_NAME ? 'nav-tab-active' : '' ),
49
- __( 'Form', 'strong-testimonials' )
50
  );
51
  }
52
 
46
  printf( '<a href="%s" class="nav-tab %s">%s</a>',
47
  esc_url( add_query_arg( 'tab', self::TAB_NAME, $url ) ),
48
  esc_attr( $active_tab == self::TAB_NAME ? 'nav-tab-active' : '' ),
49
+ __( 'Form & Email', 'strong-testimonials' )
50
  );
51
  }
52
 
admin/settings/class-strong-testimonials-settings.php CHANGED
@@ -49,7 +49,9 @@ class Strong_Testimonials_Settings {
49
  <div class="wrap wpmtst">
50
 
51
  <h1><?php echo wp_kses_post( apply_filters( 'wpmtst_cpt_singular_name', esc_html__( 'Testimonial', 'strong-testimonials' ) ) ); ?> <?php esc_html_e( 'Settings', 'strong-testimonials' ); ?></h1>
52
-
 
 
53
  <?php if ( isset( $_GET['settings-updated'] ) ) : ?>
54
  <div id="message" class="updated notice is-dismissible">
55
  <p><?php esc_html_e( 'Settings saved.', 'strong-testimonials' ); ?></p>
@@ -60,21 +62,24 @@ class Strong_Testimonials_Settings {
60
  <?php do_action( 'wpmtst_settings_tabs', $tab, $url ); ?>
61
  </h2>
62
 
63
- <form id="<?php echo esc_attr( $tab ); ?>-form" method="post" action="options.php" enctype="multipart/form-data">
64
- <?php
65
- if ( isset( self::$callbacks[ $tab ] ) && wpmtst_callback_exists( self::$callbacks[ $tab ] ) ) {
66
- call_user_func( self::$callbacks[ $tab ] );
67
- } else {
68
- call_user_func( self::$callbacks[ self::DEFAULT_TAB ] );
69
- }
70
-
71
- if ( has_action( 'wpmtst_settings_submit_row' ) ) {
72
- echo '<p class="submit-buttons">';
73
- do_action( 'wpmtst_settings_submit_row' );
74
- echo '</p>';
75
- }
76
- ?>
77
- </form>
 
 
 
78
 
79
  </div><!-- .wrap -->
80
  <?php
49
  <div class="wrap wpmtst">
50
 
51
  <h1><?php echo wp_kses_post( apply_filters( 'wpmtst_cpt_singular_name', esc_html__( 'Testimonial', 'strong-testimonials' ) ) ); ?> <?php esc_html_e( 'Settings', 'strong-testimonials' ); ?></h1>
52
+
53
+ <?php do_action( 'wpmtst_testimonials_settings' ); ?>
54
+
55
  <?php if ( isset( $_GET['settings-updated'] ) ) : ?>
56
  <div id="message" class="updated notice is-dismissible">
57
  <p><?php esc_html_e( 'Settings saved.', 'strong-testimonials' ); ?></p>
62
  <?php do_action( 'wpmtst_settings_tabs', $tab, $url ); ?>
63
  </h2>
64
 
65
+ <div class="wpmts-settings-columns">
66
+ <form id="<?php echo esc_attr( $tab ); ?>-form" method="post" action="options.php" enctype="multipart/form-data">
67
+ <?php
68
+ if ( isset( self::$callbacks[ $tab ] ) && wpmtst_callback_exists( self::$callbacks[ $tab ] ) ) {
69
+ call_user_func( self::$callbacks[ $tab ] );
70
+ } else {
71
+ call_user_func( self::$callbacks[ self::DEFAULT_TAB ] );
72
+ }
73
+
74
+ if ( has_action( 'wpmtst_settings_submit_row' ) ) {
75
+ echo '<p class="submit-buttons">';
76
+ do_action( 'wpmtst_settings_submit_row' );
77
+ echo '</p>';
78
+ }
79
+ ?>
80
+ </form>
81
+ <?php do_action( 'wpmtst_admin_after_settings_form' ) ?>
82
+ </div>
83
 
84
  </div><!-- .wrap -->
85
  <?php
admin/settings/partials/form.php CHANGED
@@ -123,6 +123,9 @@ $form_options = get_option( 'wpmtst_form_options' );
123
  <h3><?php _e( 'Form Actions', 'strong-testimonials' ); ?></h3>
124
 
125
  <table class="form-table" cellpadding="0" cellspacing="0">
 
 
 
126
  <tr>
127
  <th scope="row">
128
  <label for="redirect-page">
@@ -215,7 +218,7 @@ $form_options = get_option( 'wpmtst_form_options' );
215
  <fieldset>
216
  <label for="wpmtst-options-admin-notify">
217
  <input id="wpmtst-options-admin-notify" type="checkbox" name="wpmtst_form_options[admin_notify]" <?php checked( $form_options['admin_notify'] ); ?>/>
218
- <?php esc_html_e( 'Send an email upon new testimonial submission.', 'strong-testimonials' ); ?>
219
  </label>
220
  </fieldset>
221
  </div>
@@ -228,9 +231,11 @@ $form_options = get_option( 'wpmtst_form_options' );
228
  ?>
229
  </div>
230
  <?php do_action('wpmtst_after_notification_options', $form_options); ?>
 
231
 
232
  </td>
233
  </tr>
 
234
  </table>
235
 
236
  <?php do_action( 'wpmtst_after_form_settings', $form_options, 'wpmtst_form_options' ); ?>
123
  <h3><?php _e( 'Form Actions', 'strong-testimonials' ); ?></h3>
124
 
125
  <table class="form-table" cellpadding="0" cellspacing="0">
126
+
127
+ <?php do_action('wpmtst_before_form_actions', $form_options); ?>
128
+
129
  <tr>
130
  <th scope="row">
131
  <label for="redirect-page">
218
  <fieldset>
219
  <label for="wpmtst-options-admin-notify">
220
  <input id="wpmtst-options-admin-notify" type="checkbox" name="wpmtst_form_options[admin_notify]" <?php checked( $form_options['admin_notify'] ); ?>/>
221
+ <?php esc_html_e( 'Receive an email when new testimonials are submitted and waiting for approval.', 'strong-testimonials' ); ?>
222
  </label>
223
  </fieldset>
224
  </div>
231
  ?>
232
  </div>
233
  <?php do_action('wpmtst_after_notification_options', $form_options); ?>
234
+ <?php do_action( 'wpmtst_after_mail_notification_settings' ); ?>
235
 
236
  </td>
237
  </tr>
238
+
239
  </table>
240
 
241
  <?php do_action( 'wpmtst_after_form_settings', $form_options, 'wpmtst_form_options' ); ?>
admin/views.php CHANGED
@@ -249,6 +249,7 @@ function wpmtst_view_settings( $action = '', $view_id = null ) {
249
 
250
  do_action( 'wpmtst_view_editor_before_group_style' );
251
  include( 'partials/views/group-style.php' );
 
252
 
253
  do_action( 'wpmtst_view_editor_before_group_compat' );
254
  include( 'partials/views/group-compat.php' );
249
 
250
  do_action( 'wpmtst_view_editor_before_group_style' );
251
  include( 'partials/views/group-style.php' );
252
+ do_action( 'wpmtst_after_style_view_section' );
253
 
254
  do_action( 'wpmtst_view_editor_before_group_compat' );
255
  include( 'partials/views/group-compat.php' );
assets/css/admin-global.css CHANGED
@@ -45,4 +45,43 @@
45
 
46
  .wpmtst-inline-block {
47
  display:inline-block;
48
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  .wpmtst-inline-block {
47
  display:inline-block;
48
+ }
49
+
50
+ .wpmts-settings-columns {
51
+ display: flex;
52
+ }
53
+
54
+ .wpmts-settings-columns > form {
55
+ flex-grow: 1;
56
+ }
57
+
58
+ .wpmts-settings-columns .wpmtst-settings-upsell {
59
+ width: 25%;
60
+ padding-left: 30px;
61
+ flex-grow: 0;
62
+ flex-shrink: 0;
63
+ }
64
+
65
+ .wpmtst-settings-upsell .wpmtst-alert ul {
66
+ list-style: none;
67
+ padding: 0;
68
+ margin: 0;
69
+ }
70
+ .wpmtst-settings-upsell .wpmtst-alert ul li {
71
+ margin-bottom: 10px;
72
+ }
73
+
74
+ .wpmtst-alert {
75
+ padding: 20px;
76
+ background: #f4daa4;
77
+ color: #8d6e30;
78
+ position: relative;
79
+ }
80
+ span.wpmtst-upsell-badge {
81
+ font-size: 10px;
82
+ background: #f4daa4;
83
+ padding: 2px 5px;
84
+ display: inline-block;
85
+ margin-left: 10px;
86
+ border-radius: 10px;
87
+ }
changelog.txt CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  = 2.41.1 =
2
  * Fixed title option bug from views
3
  * Fixed continous sliding behavior bug
@@ -17,8 +23,6 @@
17
  * Fixed incompatibility with WP Rocket to randomize testimonials
18
  * Fixed font color bug
19
 
20
- = 2.40.2 - Feb. 26, 2020 =
21
-
22
  = 2.40.7 - May 25, 2020 =
23
  * Fixed pagination buttons
24
  * Fixed spinner for submitted form
1
+ = 2.50.0 =
2
+ * Fixed read more bug
3
+ * Added integration with the new addons
4
+ * Changed email's content type
5
+ * Fixed slider navigation and pagination bug
6
+
7
  = 2.41.1 =
8
  * Fixed title option bug from views
9
  * Fixed continous sliding behavior bug
23
  * Fixed incompatibility with WP Rocket to randomize testimonials
24
  * Fixed font color bug
25
 
 
 
26
  = 2.40.7 - May 25, 2020 =
27
  * Fixed pagination buttons
28
  * Fixed spinner for submitted form
includes/class-strong-form.php CHANGED
@@ -504,7 +504,7 @@ class Strong_Testimonials_Form {
504
  }
505
 
506
  // Headers
507
- $headers = 'Content-Type: text/plain; charset="' . get_option( 'blog_charset' ) . '"' . "\n";
508
  if ( $form_options['sender_name'] ) {
509
  $headers .= sprintf( 'From: %s <%s>', $form_options['sender_name'], $sender_email ) . "\n";
510
  }
504
  }
505
 
506
  // Headers
507
+ $headers = 'Content-Type: text/html; charset="' . get_option( 'blog_charset' ) . '"' . "\n";
508
  if ( $form_options['sender_name'] ) {
509
  $headers .= sprintf( 'From: %s <%s>', $form_options['sender_name'], $sender_email ) . "\n";
510
  }
includes/class-strong-testimonials-privacy.php CHANGED
@@ -186,12 +186,11 @@ class Strong_Testimonials_Privacy {
186
  }
187
 
188
  $content = wp_kses_post( apply_filters( 'wpmtst_privacy_policy_content', __( '
189
- We collect information about you when you fill out a form for a testimonial for one of our product or service. This information include your full name, email address, your photo and company name and website.
190
- Handling this data also allows us to:
191
- - Send you an email when your testimonial was received and approved.
192
- - Send you important account/product/service information.
193
- - Set up and administer your account, provide technical and/or customer support, and to verify your identity.
194
- ', 'strong-testimonial-downloads' ) ) );
195
 
196
  wp_add_privacy_policy_content( 'Strong Testimonial Privacy Policy', wpautop( $content ) );
197
  }
186
  }
187
 
188
  $content = wp_kses_post( apply_filters( 'wpmtst_privacy_policy_content', __( '
189
+ We collect certain pieces of information about you when you fill one of our testimonial forms. This includes your full name, e-mail address, photo, company name, and website.
190
+ By agreeing to these terms, you also allow us to::
191
+ - Send a confirmation e-mail, to let you know your testimonial was received and approved;
192
+ - Send important account/ product/ service information;
193
+ - Set up and administer your account, provide technical/customer support, and verify your identity.', 'strong-testimonial-downloads' ) ) );
 
194
 
195
  wp_add_privacy_policy_content( 'Strong Testimonial Privacy Policy', wpautop( $content ) );
196
  }
includes/functions-template-form.php CHANGED
@@ -64,6 +64,7 @@ function wpmtst_form_field( $field_name ) {
64
 
65
  function wpmtst_single_form_field( $field ) {
66
  $form_values = WPMST()->form->get_form_values();
 
67
 
68
  echo '<div class="' . wpmtst_field_group_classes( $field['input_type'], $field['name'] ) . '">';
69
 
@@ -154,10 +155,17 @@ function wpmtst_single_form_field( $field ) {
154
  break;
155
 
156
  case 'rating':
 
 
 
157
  wpmtst_star_rating_form( $field, $field['default_form_value'], 'in-form' );
158
  break;
159
 
160
  case 'checkbox':
 
 
 
 
161
  if ( ! isset( $field['show_label'] ) || $field['show_label'] ) {
162
  printf(
163
  '<label for="wpmtst_%s" class="%s">%s</label>',
64
 
65
  function wpmtst_single_form_field( $field ) {
66
  $form_values = WPMST()->form->get_form_values();
67
+ $form_values = apply_filters('get_predefined_values', $form_values, $field);
68
 
69
  echo '<div class="' . wpmtst_field_group_classes( $field['input_type'], $field['name'] ) . '">';
70
 
155
  break;
156
 
157
  case 'rating':
158
+ if (isset($form_values[$field['name']]) && !empty($form_values[$field['name']])) {
159
+ $field['default_form_value'] = $form_values[$field['name']];
160
+ }
161
  wpmtst_star_rating_form( $field, $field['default_form_value'], 'in-form' );
162
  break;
163
 
164
  case 'checkbox':
165
+ if (isset($form_values[$field['name']]) && !empty($form_values[$field['name']]) ) {
166
+ $field['default_form_value'] = $form_values[$field['name']];
167
+ }
168
+
169
  if ( ! isset( $field['show_label'] ) || $field['show_label'] ) {
170
  printf(
171
  '<label for="wpmtst_%s" class="%s">%s</label>',
public/css/slider-controls-simple-buttons2-pager-text.css CHANGED
@@ -101,16 +101,22 @@
101
  background:#fff;
102
  position: relative;
103
  left: -1px;
104
- top: 1px;
 
 
 
105
  }
106
  .strong-view.controls-style-buttons2:not(.rtl) .wpmslider-next:before {
107
  content: "";
108
  -webkit-mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
109
  mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
110
- background:#fff;
111
  position: relative;
112
  left: 1px;
113
- top: 1px;
 
 
 
 
114
  }
115
  .strong-view.controls-style-buttons2.rtl .wpmslider-prev:before {
116
  content: "";
101
  background:#fff;
102
  position: relative;
103
  left: -1px;
104
+ display: inline-block;
105
+ width: 20px;
106
+ height: 20px;
107
+ top: 3px;
108
  }
109
  .strong-view.controls-style-buttons2:not(.rtl) .wpmslider-next:before {
110
  content: "";
111
  -webkit-mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
112
  mask: url('../svg/chevron-right-solid.svg') center center no-repeat;
 
113
  position: relative;
114
  left: 1px;
115
+ display: inline-block;
116
+ width: 20px;
117
+ background: #fff;
118
+ height: 20px;
119
+ top: 3px;
120
  }
121
  .strong-view.controls-style-buttons2.rtl .wpmslider-prev:before {
122
  content: "";
public/js/lib/actual/jquery-actual.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})});
1
+ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,n){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,a,o=t.extend({absolute:!1,clone:!1,includeMargin:!1,display:"block"},n),d=this.eq(0);if(!0===o.clone)i=function(){d=d.clone().attr("style","position: absolute !important; top: -1000 !important; ").appendTo("body")},a=function(){d.remove()};else{var r,l=[],s="";i=function(){r=d.parents().addBack().filter(":hidden"),s+="visibility: hidden !important; display: "+o.display+" !important; ",!0===o.absolute&&(s+="position: absolute !important; "),r.each(function(){var e=t(this),n=e.attr("style");l.push(n),e.attr("style",n?n+";"+s:s)})},a=function(){r.each(function(e){var n=t(this),i=l[e];void 0===i?n.removeAttr("style"):n.attr("style",i)})}}i();var u=/(outer)/.test(e)?d[e](o.includeMargin):d[e]();return a(),u}})});
public/js/lib/actual/jquery.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})});
1
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})}),!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf,a.fn.extend({actual:function(b,c){if(!this[b])throw'$.actual => The jQuery method "'+b+'" you called does not exist';var d,e,f={absolute:!1,clone:!1,includeMargin:!1,display:"block"},g=a.extend(f,c),h=this.eq(0);if(g.clone===!0)d=function(){var a="position: absolute !important; top: -1000 !important; ";h=h.clone().attr("style",a).appendTo("body")},e=function(){h.remove()};else{var i,j=[],k="";d=function(){i=h.parents().addBack().filter(":hidden"),k+="visibility: hidden !important; display: "+g.display+" !important; ",g.absolute===!0&&(k+="position: absolute !important; "),i.each(function(){var b=a(this),c=b.attr("style");j.push(c),b.attr("style",c?c+";"+k:k)})},e=function(){i.each(function(b){var c=a(this),d=j[b];void 0===d?c.removeAttr("style"):c.attr("style",d)})}}d();var l=/(outer)/.test(b)?h[b](g.includeMargin):h[b]();return e(),l}})});
public/js/lib/form-validation/form-validation.min.js CHANGED
@@ -1 +1 @@
1
- var strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};"undefined"!=typeof window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(a.keyCode>=48&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return jQuery(b).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){var a=jQuery("#wpmtst-submission-form");a.validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){var c=b.numberOfInvalids();if(c)if(strongValidation.settings.scroll.onError){if("undefined"!=typeof b.errorList[0]){var d=jQuery(b.errorList[0].element),e=d.closest(".form-field").offset(),f=e.top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:f},800,function(){d.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){if(strongValidation.settings.scroll.onSuccess){var a,b;a=jQuery(".wpmtst-testimonial-success").offset(),a&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))}},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}},strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(a){this.settings=jQuery.extend({},this.defaults,a)},rules:{},setRules:function(){for(var a=0;a<this.settings.fields.length;a++)"rating"===this.settings.fields[a].type&&1===this.settings.fields[a].required&&(this.rules[this.settings.fields[a].name]={ratingRequired:!0})},init:function(){var a={};void 0!==window.strongForm&&(a=window.strongForm),this.setOpts(a),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(a){a.target.value=a.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var a=document.getElementsByClassName("strong-rating"),b=0;b<a.length;b++)a[b].addEventListener("click",this.handleRadioEvent,!0),a[b].addEventListener("keyup",this.handleRadioEvent,!0),a[b].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(a){if(48<=a.keyCode&&a.keyCode<=53){var b=a.keyCode-48;jQuery(this).find('input[type="radio"][value='+b+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(a,b){return 0<jQuery(b).find("input:checked").val()},jQuery.validator.messages.required)},validateForm:function(){jQuery("#wpmtst-submission-form").validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(a,b){if(b.numberOfInvalids())if(strongValidation.settings.scroll.onError){if(void 0!==b.errorList[0]){var c=jQuery(b.errorList[0].element),d=c.closest(".form-field").offset().top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:d},800,function(){c.focus()})}}else b.errorList[0].element.focus()},submitHandler:function(a){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var b={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(a).ajaxSubmit(b)}else a.submit()},rules:strongValidation.rules,errorPlacement:function(a,b){a.appendTo(b.closest("div.form-field"))},highlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").addClass(b).removeClass(c):jQuery(a).addClass(b).removeClass(c)},unhighlight:function(a,b,c){"checkbox"===a.type?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):"rating"===jQuery(a).data("fieldType")?jQuery(a).closest(".field-wrap").removeClass(b).addClass(c):jQuery(a).removeClass(b).addClass(c)}})},showResponse:function(a){window.onbeforeunload=null,strongValidation.enableForm();var b=JSON.parse(a);if(b.success)jQuery("#wpmtst-form").html(b.message),strongValidation.scrollOnSuccess();else for(var c in b.errors)b.errors.hasOwnProperty(c)&&jQuery("#wpmtst-submission-form").children(".field-"+c).find("span.error").remove().end().append('<span class="error">'+b.errors[c]+"</span>")},scrollOnSuccess:function(){var a,b;strongValidation.settings.scroll.onSuccess&&(a=jQuery(".wpmtst-testimonial-success").offset())&&(b=a.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(b-=32),jQuery("html, body").animate({scrollTop:b},800))},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}};
1
+ var strongValidation={defaults:{ajaxUrl:"",display:{successMessage:!1},scroll:{onError:!0,onErrorOffset:100,onSuccess:!0,onSuccessOffset:100},fields:{}},settings:{},setOpts:function(e){this.settings=jQuery.extend({},this.defaults,e)},rules:{},setRules:function(){for(var e=0;e<this.settings.fields.length;e++)"rating"===this.settings.fields[e].type&&1===this.settings.fields[e].required&&(this.rules[this.settings.fields[e].name]={ratingRequired:!0})},init:function(){var e={};void 0!==window.strongForm&&(e=window.strongForm),this.setOpts(e),this.settings.display.successMessage?this.scrollOnSuccess():(this.setRules(),this.changeEvents(),this.customValidators(),this.validateForm())},changeEvents:function(){jQuery('input[type="text"], input[type="url"], input[type="email"], textarea',"#wpmtst-submission-form").on("change blur",function(e){e.target.value=e.target.value.trim()}),jQuery("input[type=url]").change(function(){this.value.length&&!/^https*:\/\//.test(this.value)&&(this.value="https://"+this.value)});for(var e=document.getElementsByClassName("strong-rating"),s=0;s<e.length;s++)e[s].addEventListener("click",this.handleRadioEvent,!0),e[s].addEventListener("keyup",this.handleRadioEvent,!0),e[s].addEventListener("change",function(){jQuery(this).valid()},!0)},handleRadioEvent:function(e){if(e.keyCode>=48&&e.keyCode<=53){var s=e.keyCode-48;jQuery(this).find('input[type="radio"][value='+s+"]").click()}},customValidators:function(){jQuery.validator.addMethod("ratingRequired",function(e,s){return jQuery(s).find("input:checked").val()>0},jQuery.validator.messages.required)},validateForm:function(){jQuery("#wpmtst-submission-form").validate({onfocusout:!1,focusInvalid:!1,invalidHandler:function(e,s){if(s.numberOfInvalids())if(strongValidation.settings.scroll.onError){if(void 0!==s.errorList[0]){var t=jQuery(s.errorList[0].element),i=t.closest(".form-field").offset().top-strongValidation.settings.scroll.onErrorOffset;jQuery("html, body").animate({scrollTop:i},800,function(){t.focus()})}}else s.errorList[0].element.focus()},submitHandler:function(e){if(strongValidation.disableForm(),""!==strongValidation.settings.ajaxUrl){window.onbeforeunload=function(){return"Please wait while the form is submitted."};var s={url:strongValidation.settings.ajaxUrl,data:{action:"wpmtst_form2"},success:strongValidation.showResponse};jQuery(e).ajaxSubmit(s)}else e.submit()},rules:strongValidation.rules,errorPlacement:function(e,s){e.appendTo(s.closest("div.form-field"))},highlight:function(e,s,t){"checkbox"===e.type?jQuery(e).closest(".field-wrap").addClass(s).removeClass(t):"rating"===jQuery(e).data("fieldType")?jQuery(e).closest(".field-wrap").addClass(s).removeClass(t):jQuery(e).addClass(s).removeClass(t)},unhighlight:function(e,s,t){"checkbox"===e.type?jQuery(e).closest(".field-wrap").removeClass(s).addClass(t):"rating"===jQuery(e).data("fieldType")?jQuery(e).closest(".field-wrap").removeClass(s).addClass(t):jQuery(e).removeClass(s).addClass(t)}})},showResponse:function(e){window.onbeforeunload=null,strongValidation.enableForm();var s=JSON.parse(e);if(s.success)jQuery("#wpmtst-form").html(s.message),strongValidation.scrollOnSuccess();else for(var t in s.errors)s.errors.hasOwnProperty(t)&&jQuery("#wpmtst-submission-form").children(".field-"+t).find("span.error").remove().end().append('<span class="error">'+s.errors[t]+"</span>")},scrollOnSuccess:function(){var e,s;strongValidation.settings.scroll.onSuccess&&((e=jQuery(".wpmtst-testimonial-success").offset())&&(s=e.top-strongValidation.settings.scroll.onSuccessOffset,jQuery("#wpadminbar").length&&(s-=32),jQuery("html, body").animate({scrollTop:s},800)))},disableForm:function(){jQuery(".strong-form-wait").show(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!0)},enableForm:function(){jQuery(".strong-form-wait").hide(),jQuery("#wpmtst_submit_testimonial").prop("disabled",!1)}};
public/js/lib/imagesloaded/imagesloaded.min.js CHANGED
@@ -1 +1,2 @@
1
- (function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g});
 
1
+ (function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g}),function(){"use strict";
2
+ function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if("object"==typeof a){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);return c},d.getListenersAsObject=function(a){var b,c=this.getListeners(a);return c instanceof Array&&(b={},b[a]=c),b||c},d.addListener=function(a,c){var d,e=this.getListenersAsObject(a),f="object"==typeof c;for(d in e)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});return this},d.on=c("addListener"),d.addOnceListener=function(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){return this.getListeners(a),this},d.defineEvents=function(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function(a,c){var d,e,f=this.getListenersAsObject(a);for(e in f)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));return this},d.off=c("removeListener"),d.addListeners=function(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function(a){var b,c=typeof a,d=this._getEvents();if("string"===c)delete d[a];else if("object"===c)for(b in d)d.hasOwnProperty(b)&&a.test(b)&&delete d[b];else delete this._events;return this},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){var c,d,e,f,g=this.getListenersAsObject(a);for(e in g)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);return this},d.trigger=c("emitEvent"),d.emit=function(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},d._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return e.EventEmitter=f,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):a.eventie=f}(this),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(c,d){return b(a,c,d)}):"object"==typeof module&&module.exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(a,b,c){function d(a,b){for(var c in b)a[c]=b[c];return a}function e(a){return"[object Array]"==l.call(a)}function f(a){var b=[];if(e(a))b=a;else if("number"==typeof a.length)for(var c=0;c<a.length;c++)b.push(a[c]);else b.push(a);return b}function g(a,b,c){if(!(this instanceof g))return new g(a,b,c);"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=f(a),this.options=d({},this.options),"function"==typeof b?c=b:d(this.options,b),c&&this.on("always",c),this.getImages(),j&&(this.jqDeferred=new j.Deferred);var e=this;setTimeout(function(){e.check()})}function h(a){this.img=a}function i(a,b){this.url=a,this.element=b,this.img=new Image}var j=a.jQuery,k=a.console,l=Object.prototype.toString;g.prototype=new b,g.prototype.options={},g.prototype.getImages=function(){this.images=[];for(var a=0;a<this.elements.length;a++){var b=this.elements[a];this.addElementImages(b)}},g.prototype.addElementImages=function(a){"IMG"==a.nodeName&&this.addImage(a),this.options.background===!0&&this.addElementBackgroundImages(a);var b=a.nodeType;if(b&&m[b]){for(var c=a.querySelectorAll("img"),d=0;d<c.length;d++){var e=c[d];this.addImage(e)}if("string"==typeof this.options.background){var f=a.querySelectorAll(this.options.background);for(d=0;d<f.length;d++){var g=f[d];this.addElementBackgroundImages(g)}}}};var m={1:!0,9:!0,11:!0};g.prototype.addElementBackgroundImages=function(a){for(var b=n(a),c=/url\(['"]*([^'"\)]+)['"]*\)/gi,d=c.exec(b.backgroundImage);null!==d;){var e=d&&d[1];e&&this.addBackground(e,a),d=c.exec(b.backgroundImage)}};var n=a.getComputedStyle||function(a){return a.currentStyle};return g.prototype.addImage=function(a){var b=new h(a);this.images.push(b)},g.prototype.addBackground=function(a,b){var c=new i(a,b);this.images.push(c)},g.prototype.check=function(){function a(a,c,d){setTimeout(function(){b.progress(a,c,d)})}var b=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var c=0;c<this.images.length;c++){var d=this.images[c];d.once("progress",a),d.check()}},g.prototype.progress=function(a,b,c){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit("progress",this,a,b),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,a),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&k&&k.log("progress: "+c,a,b)},g.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(a,this),this.emit("always",this),this.jqDeferred){var b=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[b](this)}},h.prototype=new b,h.prototype.check=function(){var a=this.getIsImageComplete();return a?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,c.bind(this.proxyImage,"load",this),c.bind(this.proxyImage,"error",this),c.bind(this.img,"load",this),c.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},h.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},h.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.img,b)},h.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){c.unbind(this.proxyImage,"load",this),c.unbind(this.proxyImage,"error",this),c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype=new h,i.prototype.check=function(){c.bind(this.img,"load",this),c.bind(this.img,"error",this),this.img.src=this.url;var a=this.getIsImageComplete();a&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){c.unbind(this.img,"load",this),c.unbind(this.img,"error",this)},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit("progress",this,this.element,b)},g.makeJQueryPlugin=function(b){b=b||a.jQuery,b&&(j=b,j.fn.imagesLoaded=function(a,b){var c=new g(this,a,b);return c.jqDeferred.promise(j(this))})},g.makeJQueryPlugin(),g});
public/js/lib/lozad/lozad-load.min.js CHANGED
@@ -1 +1 @@
1
- lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe(),lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe(),lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe(),lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe();
1
+ lozad(".lazy-load",{rootMargin:"300px 0px",loaded:function(a){a.classList.add("is-loaded")}}).observe();
public/js/lib/lozad/lozad.min.js CHANGED
@@ -1 +1 @@
1
- !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self).lozad=b()}(this,function(){"use strict";function a(a){a.setAttribute("data-loaded",!0)}var b="undefined"!=typeof document&&document.documentMode,c={rootMargin:"0px",threshold:0,load:function(a){if("picture"===a.nodeName.toLowerCase()){var c=document.createElement("img");b&&a.getAttribute("data-iesrc")&&(c.src=a.getAttribute("data-iesrc")),a.getAttribute("data-alt")&&(c.alt=a.getAttribute("data-alt")),a.append(c)}if("video"===a.nodeName.toLowerCase()&&!a.getAttribute("data-src")&&a.children){for(var d=a.children,e=void 0,f=0;f<=d.length-1;f++)(e=d[f].getAttribute("data-src"))&&(d[f].src=e);a.load()}if(a.getAttribute("data-src")&&(a.src=a.getAttribute("data-src")),a.getAttribute("data-srcset")&&a.setAttribute("srcset",a.getAttribute("data-srcset")),a.getAttribute("data-background-image"))a.style.backgroundImage="url('"+a.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(a.getAttribute("data-background-image-set")){var g=a.getAttribute("data-background-image-set").split(","),h=g[0].substr(0,g[0].indexOf(" "))||g[0];h=-1===h.indexOf("url(")?"url("+h+")":h,1===g.length?a.style.backgroundImage=h:a.setAttribute("style",(a.getAttribute("style")||"")+"background-image: "+h+"; background-image: -webkit-image-set("+g+"); background-image: image-set("+g+")")}a.getAttribute("data-toggle-class")&&a.classList.toggle(a.getAttribute("data-toggle-class"))},loaded:function(){}},d=function(a){return"true"===a.getAttribute("data-loaded")};return function(){var b,e,f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=Object.assign({},c,g),i=h.root,j=h.rootMargin,k=h.threshold,l=h.load,m=h.loaded,n=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(n=new IntersectionObserver((b=l,e=m,function(c,f){c.forEach(function(c){(0<c.intersectionRatio||c.isIntersecting)&&(f.unobserve(c.target),d(c.target)||(b(c.target),a(c.target),e(c.target)))})}),{root:i,rootMargin:j,threshold:k})),{observe:function(){for(var b=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return a instanceof Element?[a]:a instanceof NodeList?a:b.querySelectorAll(a)}(f,i),c=0;c<b.length;c++)d(b[c])||(n?n.observe(b[c]):(l(b[c]),a(b[c]),m(b[c])))},triggerLoad:function(b){d(b)||(l(b),a(b),m(b))},observer:n}}}),!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self).lozad=b()}(this,function(){"use strict";function a(a){a.setAttribute("data-loaded",!0)}var b="undefined"!=typeof document&&document.documentMode,c={rootMargin:"0px",threshold:0,load:function(a){if("picture"===a.nodeName.toLowerCase()){var c=document.createElement("img");b&&a.getAttribute("data-iesrc")&&(c.src=a.getAttribute("data-iesrc")),a.getAttribute("data-alt")&&(c.alt=a.getAttribute("data-alt")),a.append(c)}if("video"===a.nodeName.toLowerCase()&&!a.getAttribute("data-src")&&a.children){for(var d=a.children,e=void 0,f=0;f<=d.length-1;f++)(e=d[f].getAttribute("data-src"))&&(d[f].src=e);a.load()}if(a.getAttribute("data-src")&&(a.src=a.getAttribute("data-src")),a.getAttribute("data-srcset")&&a.setAttribute("srcset",a.getAttribute("data-srcset")),a.getAttribute("data-background-image"))a.style.backgroundImage="url('"+a.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(a.getAttribute("data-background-image-set")){var g=a.getAttribute("data-background-image-set").split(","),h=g[0].substr(0,g[0].indexOf(" "))||g[0];h=-1===h.indexOf("url(")?"url("+h+")":h,1===g.length?a.style.backgroundImage=h:a.setAttribute("style",(a.getAttribute("style")||"")+"background-image: "+h+"; background-image: -webkit-image-set("+g+"); background-image: image-set("+g+")")}a.getAttribute("data-toggle-class")&&a.classList.toggle(a.getAttribute("data-toggle-class"))},loaded:function(){}},d=function(a){return"true"===a.getAttribute("data-loaded")};return function(){var b,e,f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=Object.assign({},c,g),i=h.root,j=h.rootMargin,k=h.threshold,l=h.load,m=h.loaded,n=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(n=new IntersectionObserver((b=l,e=m,function(c,f){c.forEach(function(c){(0<c.intersectionRatio||c.isIntersecting)&&(f.unobserve(c.target),d(c.target)||(b(c.target),a(c.target),e(c.target)))})}),{root:i,rootMargin:j,threshold:k})),{observe:function(){for(var b=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return a instanceof Element?[a]:a instanceof NodeList?a:b.querySelectorAll(a)}(f,i),c=0;c<b.length;c++)d(b[c])||(n?n.observe(b[c]):(l(b[c]),a(b[c]),m(b[c])))},triggerLoad:function(b){d(b)||(l(b),a(b),m(b))},observer:n}}}),!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self).lozad=b()}(this,function(){"use strict";function a(a){a.setAttribute("data-loaded",!0)}var b="undefined"!=typeof document&&document.documentMode,c={rootMargin:"0px",threshold:0,load:function(a){if("picture"===a.nodeName.toLowerCase()){var c=document.createElement("img");b&&a.getAttribute("data-iesrc")&&(c.src=a.getAttribute("data-iesrc")),a.getAttribute("data-alt")&&(c.alt=a.getAttribute("data-alt")),a.append(c)}if("video"===a.nodeName.toLowerCase()&&!a.getAttribute("data-src")&&a.children){for(var d=a.children,e=void 0,f=0;f<=d.length-1;f++)(e=d[f].getAttribute("data-src"))&&(d[f].src=e);a.load()}if(a.getAttribute("data-src")&&(a.src=a.getAttribute("data-src")),a.getAttribute("data-srcset")&&a.setAttribute("srcset",a.getAttribute("data-srcset")),a.getAttribute("data-background-image"))a.style.backgroundImage="url('"+a.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(a.getAttribute("data-background-image-set")){var g=a.getAttribute("data-background-image-set").split(","),h=g[0].substr(0,g[0].indexOf(" "))||g[0];h=-1===h.indexOf("url(")?"url("+h+")":h,1===g.length?a.style.backgroundImage=h:a.setAttribute("style",(a.getAttribute("style")||"")+"background-image: "+h+"; background-image: -webkit-image-set("+g+"); background-image: image-set("+g+")")}a.getAttribute("data-toggle-class")&&a.classList.toggle(a.getAttribute("data-toggle-class"))},loaded:function(){}},d=function(a){return"true"===a.getAttribute("data-loaded")};return function(){var b,e,f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=Object.assign({},c,g),i=h.root,j=h.rootMargin,k=h.threshold,l=h.load,m=h.loaded,n=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(n=new IntersectionObserver((b=l,e=m,function(c,f){c.forEach(function(c){(0<c.intersectionRatio||c.isIntersecting)&&(f.unobserve(c.target),d(c.target)||(b(c.target),a(c.target),e(c.target)))})}),{root:i,rootMargin:j,threshold:k})),{observe:function(){for(var b=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return a instanceof Element?[a]:a instanceof NodeList?a:b.querySelectorAll(a)}(f,i),c=0;c<b.length;c++)d(b[c])||(n?n.observe(b[c]):(l(b[c]),a(b[c]),m(b[c])))},triggerLoad:function(b){d(b)||(l(b),a(b),m(b))},observer:n}}}),!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):(a=a||self).lozad=b()}(this,function(){"use strict";function a(a){a.setAttribute("data-loaded",!0)}var b="undefined"!=typeof document&&document.documentMode,c={rootMargin:"0px",threshold:0,load:function(a){if("picture"===a.nodeName.toLowerCase()){var c=document.createElement("img");b&&a.getAttribute("data-iesrc")&&(c.src=a.getAttribute("data-iesrc")),a.getAttribute("data-alt")&&(c.alt=a.getAttribute("data-alt")),a.append(c)}if("video"===a.nodeName.toLowerCase()&&!a.getAttribute("data-src")&&a.children){for(var d=a.children,e=void 0,f=0;f<=d.length-1;f++)(e=d[f].getAttribute("data-src"))&&(d[f].src=e);a.load()}if(a.getAttribute("data-src")&&(a.src=a.getAttribute("data-src")),a.getAttribute("data-srcset")&&a.setAttribute("srcset",a.getAttribute("data-srcset")),a.getAttribute("data-background-image"))a.style.backgroundImage="url('"+a.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(a.getAttribute("data-background-image-set")){var g=a.getAttribute("data-background-image-set").split(","),h=g[0].substr(0,g[0].indexOf(" "))||g[0];h=-1===h.indexOf("url(")?"url("+h+")":h,1===g.length?a.style.backgroundImage=h:a.setAttribute("style",(a.getAttribute("style")||"")+"background-image: "+h+"; background-image: -webkit-image-set("+g+"); background-image: image-set("+g+")")}a.getAttribute("data-toggle-class")&&a.classList.toggle(a.getAttribute("data-toggle-class"))},loaded:function(){}},d=function(a){return"true"===a.getAttribute("data-loaded")};return function(){var b,e,f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",g=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=Object.assign({},c,g),i=h.root,j=h.rootMargin,k=h.threshold,l=h.load,m=h.loaded,n=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(n=new IntersectionObserver((b=l,e=m,function(c,f){c.forEach(function(c){(0<c.intersectionRatio||c.isIntersecting)&&(f.unobserve(c.target),d(c.target)||(b(c.target),a(c.target),e(c.target)))})}),{root:i,rootMargin:j,threshold:k})),{observe:function(){for(var b=function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return a instanceof Element?[a]:a instanceof NodeList?a:b.querySelectorAll(a)}(f,i),c=0;c<b.length;c++)d(b[c])||(n?n.observe(b[c]):(l(b[c]),a(b[c]),m(b[c])))},triggerLoad:function(b){d(b)||(l(b),a(b),m(b))},observer:n}}});
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).lozad=e()}(this,function(){"use strict";var t="undefined"!=typeof document&&document.documentMode,e={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var r=document.createElement("img");t&&e.getAttribute("data-iesrc")&&(r.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(r.alt=e.getAttribute("data-alt")),e.append(r)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var a=e.children,o=void 0,i=0;i<=a.length-1;i++)(o=a[i].getAttribute("data-src"))&&(a[i].src=o);e.load()}if(e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(",").join("'),url('")+"')";else if(e.getAttribute("data-background-image-set")){var n=e.getAttribute("data-background-image-set").split(","),d=n[0].substr(0,n[0].indexOf(" "))||n[0];d=-1===d.indexOf("url(")?"url("+d+")":d,1===n.length?e.style.backgroundImage=d:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+d+"; background-image: -webkit-image-set("+n+"); background-image: image-set("+n+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}};function r(t){t.setAttribute("data-loaded",!0)}var a=function(t){return"true"===t.getAttribute("data-loaded")};return function(){var t,o,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=Object.assign({},e,n),u=d.root,s=d.rootMargin,g=d.threshold,c=d.load,l=d.loaded,b=void 0;return"undefined"!=typeof window&&window.IntersectionObserver&&(b=new IntersectionObserver((t=c,o=l,function(e,i){e.forEach(function(e){(0<e.intersectionRatio||e.isIntersecting)&&(i.unobserve(e.target),a(e.target)||(t(e.target),r(e.target),o(e.target)))})}),{root:u,rootMargin:s,threshold:g})),{observe:function(){for(var t=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return t instanceof Element?[t]:t instanceof NodeList?t:e.querySelectorAll(t)}(i,u),e=0;e<t.length;e++)a(t[e])||(b?b.observe(t[e]):(c(t[e]),r(t[e]),l(t[e])))},triggerLoad:function(t){a(t)||(c(t),r(t),l(t))},observer:b}}});
public/js/lib/randomjs/random.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(a){return(a?this.find(a):this).parent().each(function(){jQuery(this).children(a).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this},jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(a){return(a?this.find(a):this).parent().each(function(){jQuery(this).children(a).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this},jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(a){return(a?this.find(a):this).parent().each(function(){jQuery(this).children(a).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this},jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(a){return(a?this.find(a):this).parent().each(function(){jQuery(this).children(a).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this};
1
+ jQuery(document).ready(function(){jQuery(".strong-view").randomize(".wpmtst-testimonial")}),jQuery.fn.randomize=function(n){return(n?this.find(n):this).parent().each(function(){jQuery(this).children(n).sort(function(){return Math.random()-.5}).detach().appendTo(this)}),this};
public/js/lib/readmore/readmore.min.js CHANGED
@@ -1 +1 @@
1
- !function(){var a=function(a){if("animationend"===a.type&&"fadeOutUp"===a.animationName){a.target.setAttribute("hidden","true"),a.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var c=a.target.parentElement.querySelector(".ellipsis");c&&(c.style.display="inline"),b()}},b=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("animationend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("click",function(a){if(a.target.matches(".readmore-text")){var c=a.target,d=c.parentElement,e=c.parentElement.parentElement.querySelector(".readmore-excerpt"),f=c.parentElement.parentElement.querySelector(".readmore-content"),g=c.parentElement.parentElement.querySelector(".ellipsis"),h=!1;if(e.classList.contains("all-html"))var h=!0;f&&(f.hasAttribute("hidden")?(f.removeAttribute("hidden"),c.innerText=c.dataset.lessText,d.setAttribute("aria-expanded",!0),g&&(g.style.display="none"),f.classList.add("fadeInDown"),f.classList.remove("fadeOutUp"),f.classList.remove("faster"),h&&(e.style.display="none"),b()):(d.style.display="none",d.setAttribute("aria-expanded",!1),c.innerText=c.dataset.moreText,f.classList.add("fadeOutUp"),f.classList.add("faster"),f.classList.remove("fadeInDown"),h&&(e.style.display="block")))}},!1))}(),!function(){var a=function(a){if("animationend"===a.type&&"fadeOutUp"===a.animationName){a.target.setAttribute("hidden","true"),a.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var c=a.target.parentElement.querySelector(".ellipsis");c&&(c.style.display="inline"),b()}},b=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("animationend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("click",function(a){if(a.target.matches(".readmore-text")){var c=a.target,d=c.parentElement,e=c.parentElement.parentElement.querySelector(".readmore-excerpt"),f=c.parentElement.parentElement.querySelector(".readmore-content"),g=c.parentElement.parentElement.querySelector(".ellipsis"),h=!1;if(e.classList.contains("all-html"))var h=!0;f&&(f.hasAttribute("hidden")?(f.removeAttribute("hidden"),c.innerText=c.dataset.lessText,d.setAttribute("aria-expanded",!0),g&&(g.style.display="none"),f.classList.add("fadeInDown"),f.classList.remove("fadeOutUp"),f.classList.remove("faster"),h&&(e.style.display="none"),b()):(d.style.display="none",d.setAttribute("aria-expanded",!1),c.innerText=c.dataset.moreText,f.classList.add("fadeOutUp"),f.classList.add("faster"),f.classList.remove("fadeInDown"),h&&(e.style.display="block")))}},!1))}(),!function(){var a=function(a){if("animationend"===a.type&&"fadeOutUp"===a.animationName){a.target.setAttribute("hidden","true"),a.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var c=a.target.parentElement.querySelector(".ellipsis");c&&(c.style.display="inline"),b()}},b=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("animationend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("click",function(a){if(a.target.matches(".readmore-text")){var c=a.target,d=c.parentElement,e=c.parentElement.parentElement.querySelector(".readmore-excerpt"),f=c.parentElement.parentElement.querySelector(".readmore-content"),g=c.parentElement.parentElement.querySelector(".ellipsis"),h=!1;if(e.classList.contains("all-html"))var h=!0;f&&(f.hasAttribute("hidden")?(f.removeAttribute("hidden"),c.innerText=c.dataset.lessText,d.setAttribute("aria-expanded",!0),g&&(g.style.display="none"),f.classList.add("fadeInDown"),f.classList.remove("fadeOutUp"),f.classList.remove("faster"),h&&(e.style.display="none"),b()):(d.style.display="none",d.setAttribute("aria-expanded",!1),c.innerText=c.dataset.moreText,f.classList.add("fadeOutUp"),f.classList.add("faster"),f.classList.remove("fadeInDown"),h&&(e.style.display="block")))}},!1))}(),!function(){var a=function(a){if("animationend"===a.type&&"fadeOutUp"===a.animationName){a.target.setAttribute("hidden","true"),a.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var c=a.target.parentElement.querySelector(".ellipsis");c&&(c.style.display="inline"),b()}},b=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("animationend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("click",function(a){if(a.target.matches(".readmore-text")){var c=a.target,d=c.parentElement,e=c.parentElement.parentElement.querySelector(".readmore-excerpt"),f=c.parentElement.parentElement.querySelector(".readmore-content"),g=c.parentElement.parentElement.querySelector(".ellipsis"),h=!1;if(e.classList.contains("all-html"))var h=!0;f&&(f.hasAttribute("hidden")?(f.removeAttribute("hidden"),c.innerText=c.dataset.lessText,d.setAttribute("aria-expanded",!0),g&&(g.style.display="none"),f.classList.add("fadeInDown"),f.classList.remove("fadeOutUp"),f.classList.remove("faster"),h&&(e.style.display="none"),b()):(d.style.display="none",d.setAttribute("aria-expanded",!1),c.innerText=c.dataset.moreText,f.classList.add("fadeOutUp"),f.classList.add("faster"),f.classList.remove("fadeInDown"),h&&(e.style.display="block")))}},!1))}(),!function(){var a=function(a){if("animationend"===a.type&&"fadeOutUp"===a.animationName){a.target.setAttribute("hidden","true"),a.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var c=a.target.parentElement.querySelector(".ellipsis");c&&(c.style.display="inline"),b()}},b=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("animationend",function(b){b.target.matches(".readmore-content")&&a(b)},!1),document.addEventListener("click",function(a){if(a.target.matches(".readmore-text")){var c=a.target,d=c.parentElement,e=c.parentElement.parentElement.querySelector(".readmore-content"),f=c.parentElement.parentElement.querySelector(".ellipsis");e&&(e.hasAttribute("hidden")?(e.removeAttribute("hidden"),c.innerText=c.dataset.lessText,d.setAttribute("aria-expanded",!0),f&&(f.style.display="none"),e.classList.add("fadeInDown"),e.classList.remove("fadeOutUp"),e.classList.remove("faster"),b()):(d.style.display="none",d.setAttribute("aria-expanded",!1),c.innerText=c.dataset.moreText,e.classList.add("fadeOutUp"),e.classList.add("faster"),e.classList.remove("fadeInDown")))}},!1))}();
1
+ !function(){var e=function(e){if("animationend"===e.type&&"fadeOutUp"===e.animationName){e.target.setAttribute("hidden","true"),e.target.parentElement.querySelector(".readmore-toggle").style.display="inline";var n=e.target.parentElement.querySelector(".ellipsis");n&&(n.style.display="inline"),t()}},t=function(){window.dispatchEvent(new Event("toggleFullContent"))};"querySelector"in document&&"addEventListener"in window&&(document.addEventListener("transitionend",function(t){t.target.matches(".readmore-content")&&e(t)},!1),document.addEventListener("animationend",function(t){t.target.matches(".readmore-content")&&e(t)},!1),document.addEventListener("click",function(e){if(e.target.matches(".readmore-text")){var n=e.target,a=n.parentElement,r=n.parentElement.parentElement.querySelector(".readmore-excerpt"),i=n.parentElement.parentElement.querySelector(".readmore-content"),s=n.parentElement.parentElement.querySelector(".ellipsis"),d=!1;if(r.classList.contains("all-html"))d=!0;i&&(i.hasAttribute("hidden")?(i.removeAttribute("hidden"),n.innerText=n.dataset.lessText,a.setAttribute("aria-expanded",!0),s&&(s.style.display="none"),i.classList.add("fadeInDown"),i.classList.remove("fadeOutUp"),i.classList.remove("faster"),d&&(r.style.display="none"),t()):(a.style.display="none",a.setAttribute("aria-expanded",!1),n.innerText=n.dataset.moreText,i.classList.add("fadeOutUp"),i.classList.add("faster"),i.classList.remove("fadeInDown"),d&&(r.style.display="block")))}},!1))}();
public/js/lib/strongpager/jquery-strongpager.min.js CHANGED
@@ -1 +1 @@
1
- !function(a){var b={pageSize:10,currentPage:1,pagerLocation:"after",scrollTop:1,offset:40,div:".strong-content",imagesLoaded:!0};a.fn.strongPager=function(c){if(0===this.length)return this;var d={},e=this,f=function(){var f=e.data("pager-var"),g={};"undefined"!=typeof window[f]&&(g=window[f].config),d.settings=a.extend({},b,g,c),d.div=e.find(d.settings.div),d.pageCounter=0,d.scrollto=0,d.currentPage=d.settings.currentPage,d.visibilityInterval=0,d.settings.imagesLoaded?e.imagesLoaded(n):n(),a(e).data("strongPager",this),e.attr("data-state","init")},g=function(){d.settings.scrollTop&&a("html, body").animate({scrollTop:d.scrollto},800)},h=function(){var b=1;d.div.wrap('<div class="simplePagerContainer"></div>'),d.div.children().each(function(c){var e=b*d.settings.pageSize-1;c>e&&b++,a(this).addClass("simplePagerPage"+b)}),d.pageCounter=b},i=function(){var a;a=e.closest(".woocommerce-tabs").length?e.closest(".woocommerce-tabs").offset():e.find(".simplePagerContainer").offset(),d.scrollto=~~(a.top-d.settings.offset),document.getElementById("#wpadminbar")&&(d.scrollto-=32)},j=function(a){d.div.children().hide(),e.show();var b=d.div.children(".simplePagerPage"+d.currentPage);a?b.fadeIn():b.show()},k=function(){for(var a,b='<ul class="simplePagerNav">',c=1;c<=d.pageCounter;c++)a="",c===d.currentPage&&(a="currentPage "),b+='<li class="'+a+"simplePageNav"+c+'"><a rel="'+c+'" href="#">'+c+"</a></li>";switch(b+="</ul>",b='<div class="simplePagerList">'+b+"</div>",d.settings.pagerLocation){case"before":d.div.before(b);break;case"both":d.div.before(b),d.div.after(b);break;default:d.div.after(b)}},l=function(){e.find(".simplePagerNav a").click(function(b){var c,e=a(b.target);return c=e.closest(".simplePagerContainer"),d.currentPage=e.attr("rel"),c.find("li.currentPage").removeClass("currentPage"),c.find('a[rel="'+d.currentPage+'"]').parent("li").addClass("currentPage"),j(!0),g(),!1})},m=function(){e.is(":visible")&&(clearInterval(d.visibilityInterval),i())},n=function(){h(),d.pageCounter>1&&(k(),l()),j(),d.visibilityInterval=setInterval(m,500)};return f(),this}}(jQuery),!function(a){var b={pageSize:10,currentPage:1,pagerLocation:"after",scrollTop:1,offset:40,div:".strong-content",imagesLoaded:!0};a.fn.strongPager=function(c){if(0===this.length)return this;var d={},e=this,f=function(){var f=e.data("pager-var"),g={};"undefined"!=typeof window[f]&&(g=window[f].config),d.settings=a.extend({},b,g,c),d.div=e.find(d.settings.div),d.pageCounter=0,d.scrollto=0,d.currentPage=d.settings.currentPage,d.visibilityInterval=0,d.settings.imagesLoaded?e.imagesLoaded(n):n(),a(e).data("strongPager",this),e.attr("data-state","init")},g=function(){d.settings.scrollTop&&a("html, body").animate({scrollTop:d.scrollto},800)},h=function(){var b=1;d.div.wrap('<div class="simplePagerContainer"></div>'),d.div.children().each(function(c){var e=b*d.settings.pageSize-1;c>e&&b++,a(this).addClass("simplePagerPage"+b)}),d.pageCounter=b},i=function(){var a;a=e.closest(".woocommerce-tabs").length?e.closest(".woocommerce-tabs").offset():e.find(".simplePagerContainer").offset(),d.scrollto=~~(a.top-d.settings.offset),document.getElementById("#wpadminbar")&&(d.scrollto-=32)},j=function(a){d.div.children().hide(),e.show();var b=d.div.children(".simplePagerPage"+d.currentPage);a?b.fadeIn():b.show()},k=function(){for(var a,b='<ul class="simplePagerNav">',c=1;c<=d.pageCounter;c++)a="",c===d.currentPage&&(a="currentPage "),b+='<li class="'+a+"simplePageNav"+c+'"><a rel="'+c+'" href="#">'+c+"</a></li>";switch(b+="</ul>",b='<div class="simplePagerList">'+b+"</div>",d.settings.pagerLocation){case"before":d.div.before(b);break;case"both":d.div.before(b),d.div.after(b);break;default:d.div.after(b)}},l=function(){e.find(".simplePagerNav a").click(function(b){var c,e=a(b.target);return c=e.closest(".simplePagerContainer"),d.currentPage=e.attr("rel"),c.find("li.currentPage").removeClass("currentPage"),c.find('a[rel="'+d.currentPage+'"]').parent("li").addClass("currentPage"),j(!0),g(),!1})},m=function(){e.is(":visible")&&(clearInterval(d.visibilityInterval),i())},n=function(){h(),d.pageCounter>1&&(k(),l()),j(),d.visibilityInterval=setInterval(m,500)};return f(),this}}(jQuery),!function(a){var b={pageSize:10,currentPage:1,pagerLocation:"after",scrollTop:1,offset:40,div:".strong-content",imagesLoaded:!0};a.fn.strongPager=function(c){if(0===this.length)return this;var d={},e=this,f=function(){var f=e.data("pager-var"),g={};"undefined"!=typeof window[f]&&(g=window[f].config),d.settings=a.extend({},b,g,c),d.div=e.find(d.settings.div),d.pageCounter=0,d.scrollto=0,d.currentPage=d.settings.currentPage,d.visibilityInterval=0,d.settings.imagesLoaded?e.imagesLoaded(n):n(),a(e).data("strongPager",this),e.attr("data-state","init")},g=function(){d.settings.scrollTop&&a("html, body").animate({scrollTop:d.scrollto},800)},h=function(){var b=1;d.div.wrap('<div class="simplePagerContainer"></div>'),d.div.children().each(function(c){var e=b*d.settings.pageSize-1;c>e&&b++,a(this).addClass("simplePagerPage"+b)}),d.pageCounter=b},i=function(){var a;a=e.closest(".woocommerce-tabs").length?e.closest(".woocommerce-tabs").offset():e.find(".simplePagerContainer").offset(),d.scrollto=~~(a.top-d.settings.offset),document.getElementById("#wpadminbar")&&(d.scrollto-=32)},j=function(a){d.div.children().hide(),e.show();var b=d.div.children(".simplePagerPage"+d.currentPage);a?b.fadeIn():b.show()},k=function(){for(var a,b='<ul class="simplePagerNav">',c=1;c<=d.pageCounter;c++)a="",c===d.currentPage&&(a="currentPage "),b+='<li class="'+a+"simplePageNav"+c+'"><a rel="'+c+'" href="#">'+c+"</a></li>";switch(b+="</ul>",b='<div class="simplePagerList">'+b+"</div>",d.settings.pagerLocation){case"before":d.div.before(b);break;case"both":d.div.before(b),d.div.after(b);break;default:d.div.after(b)}},l=function(){e.find(".simplePagerNav a").click(function(b){var c,e=a(b.target);return c=e.closest(".simplePagerContainer"),d.currentPage=e.attr("rel"),c.find("li.currentPage").removeClass("currentPage"),c.find('a[rel="'+d.currentPage+'"]').parent("li").addClass("currentPage"),j(!0),g(),!1})},m=function(){e.is(":visible")&&(clearInterval(d.visibilityInterval),i())},n=function(){h(),d.pageCounter>1&&(k(),l()),j(),d.visibilityInterval=setInterval(m,500)};return f(),this}}(jQuery);
1
+ !function(e){var t={pageSize:10,currentPage:1,pagerLocation:"after",scrollTop:1,offset:40,div:".strong-content",imagesLoaded:!0};e.fn.strongPager=function(a){if(0===this.length)return this;var r={},i=this,n=function(e){r.div.children().hide(),i.show();var t=r.div.children(".simplePagerPage"+r.currentPage);e?t.fadeIn():t.show()},s=function(){i.find(".simplePagerNav a").click(function(t){var a,i=e(t.target);return a=i.closest(".simplePagerContainer"),r.currentPage=i.attr("rel"),a.find("li.currentPage").removeClass("currentPage"),a.find('a[rel="'+r.currentPage+'"]').parent("li").addClass("currentPage"),n(!0),r.settings.scrollTop&&e("html, body").animate({scrollTop:r.scrollto},800),!1})},o=function(){var e;i.is(":visible")&&(clearInterval(r.visibilityInterval),e=i.closest(".woocommerce-tabs").length?i.closest(".woocommerce-tabs").offset():i.find(".simplePagerContainer").offset(),r.scrollto=~~(e.top-r.settings.offset),document.getElementById("#wpadminbar")&&(r.scrollto-=32))},l=function(){var t;t=1,r.div.wrap('<div class="simplePagerContainer"></div>'),r.div.children().each(function(a){a>t*r.settings.pageSize-1&&t++,e(this).addClass("simplePagerPage"+t)}),r.pageCounter=t,r.pageCounter>1&&(!function(){for(var e,t='<ul class="simplePagerNav">',a=1;a<=r.pageCounter;a++)e="",a===r.currentPage&&(e="currentPage "),t+='<li class="'+e+"simplePageNav"+a+'"><a rel="'+a+'" href="#">'+a+"</a></li>";switch(t='<div class="simplePagerList">'+(t+="</ul>")+"</div>",r.settings.pagerLocation){case"before":r.div.before(t);break;case"both":r.div.before(t),r.div.after(t);brea